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

Not working in game?

Asked by 8 years ago

This script seems to work when played solo on studio, but not when I join the game. I basically want it so if it's a certain name in the playerlist to run the script. The script is inside ScreenGui and the script is a LocalScript inside StarterPack (as it only seemed to work there.) Any help is appreciated.

if game.Players.LocalPlayer.Name == "toughjohncena1256"
    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


Answer this question