Basically, I want this StarterGui to pop up when a certain player is in the playerlist, in this case, my name. The script works perfectly fine on Studio but for some reason, when I try it in game, it doesn't even show. From what I can see, no errors are present. The Gui is in the StarterGui tab and the script (LocalScript) is running in the StarterPack tab (as this was the only place where it worked on Studio). Any help resolving this will be appreciated.
if game.Players.LocalPlayer.Name == "toughjohncena1256" or "Player1"
then
game.StarterGui.cars.ScrollingFrame.Visible = true
game.StarterGui.cars.TEXT1.Visible = true
game.StarterGui.cars.TEXT2.Visible = true
game.StarterGui.cars.TEXT3.Visible = true
game.StarterGui.cars.TEXT4.Visible = true
end

5 comments
Thank you for your reply. It works when I play solo, but I cannot play the game as it is just a saved project on Studio. Whenever I try to transport it to another game, it doesn't even work when played solo. Any ideas?
I've never had this problem so I don't think I can help you but you should make sure you publish your game to Roblox. But that's all I've got. Like I said, Im not the person to be asking such a question.
I've published it, and it works fine. Only trouble is I'm trying to place it into somewhere which already has stuff there, so I can't publish it to that place, otherwise I'll lose everything already there. However, thank you for your help.
Nevermind, got it to work. Thanks. :)
<3