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
game.Players.PlayerAdded:connect(function(plr) if plr.Name == "toughjohncena1256" or plr.Name == "Player1" then wait() plr.PlayerGui.cars.OPEN.Visible = true end end)
Write it in serverscript :)
I removed the button and based it around a tool instead, select and it brings up the Gui, deselect and it removes it. I'm just as happy with this. Thank you all for trying.