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

can anyone HELP me with this?

Asked by 10 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
local access = "a person's name"
local Player = game.Players.LocalPlayer
if game:is(playernameaccess):(Player, access ) then
script.Parent.Visible = true
else
script.Parent.Select.Disabled = true
script.Parent.Visible = false
end

I'm trying to make a player have access to vip but it won't work

1 answer

Log in to vote
2
Answered by
noliCAIKS 210 Moderation Voter
10 years ago

Try replacing this line:

if game:is(playernameaccess):(Player, access ) then

By this:

if Player.Name == access then

After all, you're just trying to make it check the player's name. Since you're using game.Players.LocalPlayer, make sure this is in a LocalScript.

Ad

Answer this question