Making Player spawn on team's spawn with team change GUI?
Hello Im scripting this SCP game and I added a team select GUI. For some reason this sets the player's team but he doesn't spawn on the team's spawn points please help!
01 | local player = game.Players.LocalPlayer |
02 | script.Parent.MouseButton 1 Click:Connect( function () |
03 | player.TeamColor = script.Parent.Information.TeamColor.Value |
04 | script.Parent.Parent.Parent:TweenPosition(UDim 2. new(- 1 , 0 , 0 , 0 )) |
06 | script.Parent.Parent.Parent.Visible = false |
07 | script.Parent.Parent.Parent.Parent.MainSelect.Position = UDim 2. new(- 1 , 0 , 0 , 0 ) |
09 | script.Parent.Parent.Parent.Parent.MainSelect.Visible = true |
10 | script.Parent.Parent.Parent.Parent.MainSelect:TweenPosition(UDim 2. new( 0 , 0 , 0 , 0 )) |