Answers for "how to run code when player joins roblox"

7

roblox playeradded

local Players = game:GetService("Players")
 
Players.PlayerAdded:Connect(function(player)
	print(player.Name .. " joined the game!")
end)
 
Players.PlayerRemoving:Connect(function(player)
	print(player.Name .. " left the game!")
end)
Posted by: Guest on August-06-2020

Code answers related to "how to run code when player joins roblox"

Browse Popular Code Answers by Language