I'm trying to make a Menu GUI where a player can select their team. It's a really simple GUI and literally just fires a RemoteEvent that switches their team and reloads the player. In Studio it works and it transports them to the right team spawn but in-game it only half works. It changes the player's team and reloads them but they spawn at the completely wrong spawn (which I assume is just the default spawnpoint). Neutral is disabled on all of the spawnpoints and at this point I'm really confused why the player is not being transported to the right spawn like in studio.
GUI Script:
local rStorage = game:GetService("ReplicatedStorage")
local remote = rStorage:WaitForChild("removegui")
function CheckTeams()
if script.Parent.Parent.Parent.Parent.Parent:GetRankInGroup(#######) >= 0 then
script.Parent.Parent.Parent.Parent.Parent.TeamColor = BrickColor.new("Dark stone grey")
remote:FireServer()
script.Parent.parent.Parent.Parent.ACRMenu.Enabled = false
end
end
script.Parent.MouseButton1Click:Connect(CheckTeams)
Server Script:
local rStorage = game:GetService("ReplicatedStorage")
local remote = rStorage:WaitForChild("removegui")
remote.OnServerEvent:connect(function(player)
player:LoadCharacter()
end)

1 comment
Are the spawns for the right team