My Team change script isn't working, I was wondering why, and how can I fix it?
Asked by
8 years ago Edited 8 years ago
I have a GUI that is supposed to change a player's team, but it doesn't. Here is my script, but note, I am new to scripting, so anything obvious to you is not so clear to me.
1 | if script.Parent.Rebel.MouseButton 1 Down:Connect( function () |
2 | game.Players.LocalPlayer.TeamColor = game:GetService( "Teams" ) [ "The Resistance" ] .TeamColor |
It's error log says this: 17:29:04.163 - Players.Player1.PlayerGui.ScreenGui.Frame.Rebel.LocalScript:4: 'then' expected near '<eof>'
Thanks in Advance!