What I would like to do is find if the player in which clicked the button is in the group AND is higher than a certain rank id. I just cant do the Rank ID part. Any ideas of fixing the following bracketed section?
local a = script.Parent.Parent.Play.Anthem
function OnClicked(player)
if player:IsInGroup(1152346) and[ player:GetRoleInGroup(1152346) >= 50 ]then
a:Stop()
wait()
end
end
script.Parent.ClickDetector.MouseClick:connect(OnClicked)

1 comment
The first half of that conditional is unnecessary: GetRankInGroup returns
0for non-members.