Hi,
Basicily when a player clicks his button it is supposed to check if the user is that certain rank in that group if they are then they are teamed. if not then the click is ignored.
I don't know why it does not work.
function Click(mouse)
if script.Parent.Parent.Parent.Parent.Parent.Parent:GetRoleInGroup(798194) == 254 then
script.Parent.Parent.Parent.Parent.Parent.Parent.TeamColor = BrickColor.new("Sand blue")
script.Parent.Parent.Parent.Parent.Parent.Parent.Character.Humanoid.Health = 0
else
end
end
script.Parent.MouseButton1Down:connect(Click)

2 comments
ok thanks I will try it.
Does not fix the problem.