I'm making a start GUI for someones game, but for some reason, the play button won't even act like a TextButton, and the GUI won't disappear when I click on it. Here's the script.
local player = script.Parent.Parent
local gui = script.Parent
local sound = Instance.new("Sound",gui)
sound.SoundId = "http://www.roblox.com/asset/?id=221235033"
sound.Pitch = 1
sound.Volume = 0.7
local frame = gui.Frame
Play = script.Parent.Frame.Play
sound:play()
function OpenCloseGui()
gui:remove()
end
Play.MouseButton1Down:connect(OpenCloseGui)
Thanks! -club101coolguy

1 comment
It doesn't :( Whenever I click, the button doesn't change the slightest bit.