function onClicked()
wait()
if game.Players.LocalPlayer:GetRankInGroup(2989165) > 3 then
script.Parent:Destroy()
end
end
script.Parent.MouseButton1Down:connect(onClicked)
I have no clue why this doesn't work, it works with the :IsInGroup(2989165) format.

1 comment
Is this script in the workspace? if so localscripts dont execute there.