Hi. For some reason this script isn't working. I don't know why, it was working absolutely fine before I logged off for bed last night, came back on, not working. Basically I just want the button to be visible if a certain player joins the game, in this case, me. The script is a local inside StarterGui. Any help to resolving this will be appreciated.
local plr = game.Players.LocalPlayer
plr:WaitForChild("PlayerGui")
if plr.Name == "toughjohncena1256" or plr.Name == "Player1" then
plr.PlayerGui.cars.OPEN.Visible = true
end

7 comments
Are there any errors? Is there definitely something named "cars" and "OPEN" in the playergui?
There are no errors, sorry, forgot to say. They are both in the StarterGui, yes.
Got any errors?
No.
Is "cars" visible when you make the Open button visible.
There's no option to make the whole ScreenGui visible. The button (open) is not visible, as the idea is for it to appear to the right person. If I made it visible, everyone would see it.
Oh, didn't even hit me that cards was a ScreenGui object. -_-