Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why won't my group rank GUI work?

Asked by
cc0de 35
8 years ago

The idea is to only move the GUI if the player is a certain rank or higher in a group. Except that doesn't happen. Can anyone help?

player = game.Players.LocalPlayer

if player:GetRankInGroup(2796272) >= 253  then 
    script.Parent.Parent = player.PlayerGui

end

1 answer

Log in to vote
0
Answered by 8 years ago

Are you sure your group ID is correct? If so, then maybe try making the parenthesis right next to the numbers instead of having a space at the start and end.

0
That doesn't work still. cc0de 35 — 8y
0
Strange....-also what does the "253" stand for/mean? Are you sure all your capitalization is correct? Overstrand 10 — 8y
0
253 is the group rank. cc0de 35 — 8y
0
Ah, that makes sense. So this is a custom made gui with the person's rank details on it? Or is this on a leader board or something? Overstrand 10 — 8y
Ad

Answer this question