Team Change GUI TextButtons are only working in studio. Any Help?
So, I have a team change GUI and it only seems to work in roblox studio. I will give you guys full detail. I have more than 1 team spawns for each team(including the neutral team/choosing) and the script is a local script.
I have one local script for each button(Red team and blue team).
I figured this cant be a problem where I need FE because all it does is kill the player once they click the GUI to send them to the team.
If i do need FE, what do I use? :FireClient()?
Thank you all.
Here is the local script in both textbuttons:
1 | local player = game.Players.LocalPlayer |
3 | script.Parent.MouseButton 1 Click:Connect( function () |
4 | player.TeamColor = BrickColor.new( "Cyan" ) |
5 | workspace [ player.Name ] .Head:Destroy() |