#How to make script when you change team u get refreshed immediatelly
1 messages · Page 1 of 1 (latest)
wdym
Like when u switch team A to team B you get refreshed
player:loadcharacterasync
can u give me tutorial
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
I would add the solved tag to this chat
youtube
** You are now Level 2! **
brutal
its a really simple concept
he shouldnt waste like 15 minutes on a vid for this
i guess but its just 15 minutes if you think about it