Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

can anyone HELP me with this?

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

✓ Accepted answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.