Hello. I am creating team-change gui and i want to do quick respawn. The rest of script is working correctly only player:LoadCharacter() is not working.
local color = "Sand green" local group = 4384871 local player = script.Parent.Parent.Parent.Parent.Parent.Parent.Parent script.Parent.MouseButton1Click:Connect(function() if player:IsInGroup(group) then player.TeamColor = BrickColor.new(color) player:LoadCharacter() script.Parent.Parent.Parent.Visible = false end end)