1 | local access = "a person's name" |
2 | local Player = game.Players.LocalPlayer |
3 | if game:is(playernameaccess):(Player, access ) then |
4 | script.Parent.Visible = true |
5 | else |
6 | script.Parent.Select.Disabled = true |
7 | script.Parent.Visible = false |
8 | end |
I'm trying to make a player have access to vip but it won't work
Try replacing this line:
1 | if game:is(playernameaccess):(Player, access ) then |
By this:
1 | 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.