Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Click a "start" button and the current gui will disappear and be replaced by a new 1?

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

1 comment

0

USE THE GOD DAMN CODE BLOCK

1 answer

✓ Accepted answer

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

3 comments

0

thanks it helps alot

0

If it does, please accept my answer :/

0

Yea sorry bout that i needed to go eat lunch

This discussion is preserved as it was. New answers, comments, and votes are closed.