So I own a Roblox Army group, and I'm almost done with the base, except I can't seem to get this GUI to work. I'll post the code I have inside the TextButton Below.
function Click(mouse)
if script.Parent.Parent.Parent.Parent.Parent:IsInGroup(4123247) then
script.Parent.Parent.Parent.Parent.Parent.TeamColor = BrickColor.new("Crimson")
end
end
script.Parent.MouseButton1Click:connect(Click)
Any help would be appreciated.

2 comments
What exactly do you need help with here?
Instead of using tons of script.Parents use game.Players.LocalPlayer thanks.