Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Team change gui works, but I can't spawn into the right spawn?

Asked by 6 years ago

I put this into a local script.

player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:connect(function(mouse) 
    if player:IsInGroup(3083232) then 
        if player.TeamColor ~= BrickColor.new("Bright yellow") then
            player.TeamColor = BrickColor.new("Bright blue")
        end
    end 
end)

The whole thing works, I change teams fine. I made it so that if they are in the group, the can change. Then If they are not a prisoner. It works and all, however I can't respawn in the correct area. I keep spawning in the starting team area.

1 answer

Log in to vote
1
Answered by
Kulh 125
6 years ago
Edited 6 years ago

This wouldn't be an issue with the script, rather an issue with your spawn point settings, check the property's of the spawn bricks, make sure each property is correct.

Ad

Answer this question