My Start GUI isnt working (output says Frame is not a valid member of ScreenGui, it is!) Script:
--Script by club101coolguy
local Player = game.Players.LocalPlayer
gui = script.Parent.Parent
Frame1 = gui.Frame1
Box = gui.Frame1
Play = gui.Play
Text = gui.TextLabel
local Sound = Instance.new("Sound", gui)
Sound.SoundId = "http://www.roblox.com/asset/?id=221235033"
Sound.Pitch = 1
Sound.Volume = 0.7
--Variables and Variable Properties
Sound:Play()
function MouseEnterPlayButton()
Play.FontSize = "Size48"
end
function MouseLeftPlayButton()
Play.FontSize = "Size36"
end
Play.MouseEnter:connect(MouseEnterPlayButton)
Play.MouseLeave:connect(MouseLeftPlayButton)
--Makes chat Play Button bigger when a mouse hovers.
function PlayGame()
Box:Destroy()
Play:Destroy()
Sound:Stop()
Text:Destroy()
end
Play.MouseButton1Down:connect(PlayGame)
--When a Player clicks on Play, Music stops and GUIs dissapear.

1 comment
Where is the script?