So basicly im trying to make it so that once i click a button the button will disappear and a new button will appear my script currently is
wait(1) player = game.Players.LocalPlayer button = script.Parent
function teleappear() game.StarterGui.TeleScreenGuiByZen.TextButton.Visible = false wait(0.1) game.StarterGui.TeleScreenGuiByZen.ZensTeleButtonByZen.Visible = true end
button.MouseButton1Click:connect (teleappear)
it doesnt work can someone help me please
Hi there,
You went wrong on a couple of things. What you're doing with the script is you're disabling the GUI in the StarterGui, which will not affect your player, but instead other players that join the game.
Also, you don't need the wait(0.1)
in between, unless the effect you're attempting to create must have it. If you want it instantly, it's okay to remove it.
I have remade your script, and I hope it helps. If it does, make sure to press "Accept answer" in the button down below.
button.MouseButton1Click:connect(function() player.PlayerGui.TeleScreenGuiByZen.TextButton.Visible = false wait(0.1) -- It is not necessary, unless you truely want the delay. player.PlayerGui.TeleScreenGuiByZen.ZensTeleButtonByZen.Visible = true end)
Thanks, Rodrigo455