Dołączanie, spawnowanie w Roblox Lua

local Players = game:GetService("Players")

Players.PlayerAdded:Connect(
	function(player)
		print(player.Name .. " joined the game!")
		player.CharacterAdded:Connect(
			function(character)
				print("Spawn")
			end)
	end)

Players.PlayerRemoving:Connect(
	function(player)
		print(player.Name .. " left the game!")
	end)

Scroll to Top