Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why wont this script work? [Un-answered]

Asked by 10 years ago

The button that you press for the songlist is a SurfaceGUI, btw. The Songlist (game.StarterGui.SongList.Frame) Doesn't show when I click the SurfaceGui.

local Button = script.Parent
local Songlist = game.StarterGui.SongList.Frame


function onClick()


Songlist.Visible = true

end

Button.MouseButton1Click:connect(onClick)

Help?

0
What is your issue? NovusTheory 133 — 10y
0
Sorry about that, I edited in my issue. SchonATL 15 — 10y
0
What's the thumbs down about? SchonATL 15 — 10y

2 answers

Log in to vote
0
Answered by 10 years ago

Just put a PlayerAdded event, then clone the GUI and put it in their PlayerGui

Ad
Log in to vote
-1
Answered by 10 years ago

Notice how you are leading the script to StarterGui. StarterGui is where the GUIs go when a Player spawns. If you edit the properties of GUIs in StarterGui, the changes won't show until you reset. Use PlayerGui instead.

0
Okay, I'll try that. SchonATL 15 — 10y
0
Not working, would you mind making a script real quick? SchonATL 15 — 10y
0
Changing for the PlayerGui will make you use a local script. I suggest you to place the surface gui inside the PlayerGui and set the Adornee: http://wiki.roblox.com/index.php?title=Adornee Tesouro 407 — 10y
0
@IcyArticunoX Notice, maybe he wants it to become visible for everyone in the server? Not just 1 player. Vividex 162 — 10y
0
It wouldn't show at all.. SchonATL 15 — 10y

Answer this question