#How to make script when you change team u get refreshed immediatelly

1 messages · Page 1 of 1 (latest)

tender moss
#

Hi how

tranquil pasture
#

wdym

tender moss
#

Like when u switch team A to team B you get refreshed

sacred fox
#

player:loadcharacterasync

tender moss
weary snow
#

Try this script in serverscriptservice:

#
local Teams = game:GetService("Teams")

local TeamA = Teams.TeamA
local TeamB = Teams.TeamB

TeamA.PlayerAdded:Connect(function(player)
  --Check if a player has been added to Team A, if you would like this with TeamB then replace TeamA with TeamB
  player:LoadCharacterAsync() --This "refreshes" the character.
end)
#

Or if you want it for all the teams, you could just

#
local Teams = game:GetService("Teams")

for _, Team in Teams:GetChildren() do
  Team.PlayerAdded:Connect(function(player)
    player:LoadCharacterAsync()
  end)
end
#

@tender moss

tender moss
#

It work

#

thanks yo

weary snow
#

I would add the solved tag to this chat

grave kelp
celest joltBOT
#

studio** You are now Level 2! **studio

grave kelp
#

brutal

weary snow
#

he shouldnt waste like 15 minutes on a vid for this

grave kelp
#

i guess but its just 15 minutes if you think about it