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)
I believe the function used is 'GetRankInGroup', not 'GetRoleInGroup'.
if player:IsInGroup(1152346) and player:GetRankInGroup(1152346) >= 50 then