New: Nitro Boost our Discord server and receive full donation perks here on the website! Join the Scripting Helpers Discord Server to learn more! You can also Support on Patreon as always.
Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

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

Asked by 5 months ago
Edited 5 months ago

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)

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? BashCaster 2371 — 5mo

2 answers

Log in to vote
0
Answered by 5 months ago

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.

Ad
Log in to vote
0
Answered by 5 months ago

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

Answer this question