Does anyone know how to fix this problem?
I have made a team changer GUI and I don't want to "kill" the player instead I just want to load the player in with player:LoadCharacter() if I can. The script will work in studio but it won't in game.
Here is my code.
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:connect(function()
player.TeamColor = BrickColor.new('Really red')
player:LoadCharacter()
end)
I am using a local script.
