ScriptConnection
Overview
Constructors
Properties
Connected
Code Samples
local Players = game:GetService("Players")
local Connection = nil
local function EnterPlayer(player)
print("EnterPlayer : ", player.Name)
end
Connection = Players.PlayerAdded:Connect(EnterPlayer)
if Connection.Connected then
print("The connection is active.")
else
print("The connection has been disconnected.")
endMethods
Disconnect
Parameters
Return
Code Samples
See also
EventLast updated