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

How I do make it so the ImageButtons go visible after someone pressed a Textbutton?

The script is located in Lighting, inside a Screen GUI. What I'm trying to do is so when the Intro GUI loads, and the person presses 'start' the two Image Buttons appear.

script.Parent.TextButton.MouseButton1Click:Connect(function()

script.Parent.Frame.Visible = false

script.Parent.Frame1.Visible = false

script.Parent.TextButton.Visible = false

script.Parent.TextLabel.Visible = false

script.Parent.TextLabel2.Visible = false

script.Parent.TextLabel3.Visible = false

script.Parent.Parent.Parent.StarterGui.EggMenu.a2018.Visible = true

script.Parent.Parent.Parent.StarterGui.EggMenu.a2019.Visible = true

end)

(it used to work until i put the screen gui into Lighting this is because the script to load the screen gui when someone joins required for it to be in lighting)

1 comment

0

It's obvious that the GUI won't be seen by the player unless it is cloned into their PlayerGui. Why do you even have it in Lighting? Why not ReplicatedStorage?

2 answers

✓ Accepted answer

Okay, first of all the fact that you have it in lighting is just wrong. You don't put it in lighting. And like RobloxWhizYT said you should put it in ReplicatedStorage. playergui = game.Players.LocalPlayer:WaitForChild("PlayerGui") and then do something like GUI = YourGui:Clone() Gui.Parent = playergui

Your script here.

Same with me

When I create Screen Guis, I either put them in PlayerGui or in Replicated storage. Putting Guis in lighting can cause a lot of problems. Please Upvote this to support me

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