Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is it possible to make a script that runs everytime someone changes/joins a team?

Asked by 5 years ago

I need this for my leaderstats but cannot work out how to get it working

1 answer

Log in to vote
1
Answered by 5 years ago

This script would go in serverscript storage:

game:GetService("Players").PlayerAdded:Connect(function(player)
player.Team.Changed:Connect(function(player)
-- your code
end)
0
Thank you :) tictac67 96 — 5y
Ad

Answer this question