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

Why My ID Card, Group Rank Display Script is not working?

Asked by 8 years ago

So i have a tool, whenever player takes it in he's hand, it is supposed to show up the player's who holds the card rank in my group, but it doesn't show it up. It is a LocalScript. What is the problem with it? Could someone please rewrite the script so it works fine?

if Player:GetRankInGroup(2684229) == 255 then
        script.Parent.Text = "F-DIRECTOR"

And could someone give me a script that would display card holders username?

~Thank you! :)

1 answer

Log in to vote
-1
Answered by 8 years ago

is it a localscript? where is "Player" defined? any errors? did you put "end" at the end of the script? try this

Player = game.Players.LocalPlayer
if Player:GetRankInGroup(2684229) == 255 then
        script.Parent.Text = "F-DIRECTOR"
end

make sure its in a localscript

Ad

Answer this question