(code block fixed)
Hey there,
I've been having a issue with my team switch GUI. Basically, we have this GUI were you click, and it is supposed to switch your team to the other. (in this case, it should switch you to the "deep blue" team. But, for some reason, when I click it, it does nothing.
Here is my script:
function Click(mouse)
if script.Parent.Parent.Parent.Parent.Parent:IsInGroup(2544404) then
script.Parent.Parent.Parent.Parent.Parent.TeamColor = BrickColor.new("Deep blue")
end
end
script.Parent.MouseButton1Click:connect(Click)
Thank you to anyone that can help! (note that I am a beginner scripter!) -Rolerain

3 comments
Please place the code into a code block.
^
Fixed, sorry guys. First question here.