I'm not all that great with lua so i have no idea what i'm doing but i want a certain rank to get gear and this is what i have. It doesn't seem to work and i have no idea why, I used this same method for Rank Colors.
GroupId = 1141758
UnrefinedRank = newPlayer:GetRankInGroup(GroupId)
function onPlayerEntered(newPlayer)
if UnrefinedRank = 254 then
game.Lighting["Taser"]:Clone().Parent = newPlayer.StarterGear
end
if UnrefinedRank = 254 then
game.Lighting["Baton"]:Clone().Parent = newPlayer.StarterGear
end
end
game.Players.PlayerAdded:connect(onPlayerEntered)

9 comments
Is your exact rank number 254, or is it higher?
Okay, try the updated script.
What about now?
Did that work?
It works, but what does the < do? because i only want a certain rank to have it
I mean the >
I just realized that i just had to change > to = to make it ==
Thanks
I'd like to suggest looking into the GetRoleInGroup method. It returns the name of the rank the player has, rather than its value.