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

Why wont this script work? [Un-answered]

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?

3 comments

0

What is your issue?

0

Sorry about that, I edited in my issue.

0

What's the thumbs down about?

2 answers

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

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.

5 comments

0

Okay, I'll try that.

0

Not working, would you mind making a script real quick?

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

0

@IcyArticunoX Notice, maybe he wants it to become visible for everyone in the server? Not just 1 player.

0

It wouldn't show at all..

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