Answers for "How to make a function only work when the player joins roblox studio"

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 make a function only work when the player joins roblox studio"

Browse Popular Code Answers by Language