I cannot for the life of me get my team change GUI to work. First it refused to work at all. It works perfectly fine in Studio, but not in game.
FIRST SCRIPT:
function onButtonClicked() script.Parent.Parent.Parent.Parent.Parent.Character.Humanoid.Health = 0 end
script.Parent.MouseButton1Click:connect(onButtonClicked)
SECOND SCRIPT:
function Click(mouse) if script.Parent.Parent.Parent.Parent.Parent:IsInGroup(3832145) then script.Parent.Parent.Parent.Parent.Parent.TeamColor = BrickColor.new("Crimson") end end
script.Parent.MouseButton1Click:connect(Click)
I attempted to change from Script to LocalScript which did not work and then back to Script. I attempted putting a wait time before execution. I'm not sure what else to do.