Start GUI works in Studio, but not in servers?(I FIXED!)
I was making a start GUI for my game, and it worked just fine in studio, but not in servers.
I tried to fix it by making the variables local and not local, but it still didn't work.
Here is the script:
01 | local Player = game.Players.LocalPlayer |
02 | Box = script.Parent.Parent.Frame |
03 | Play = script.Parent.Parent.Play |
04 | gui = script.Parent.Parent |
05 | Text = script.Parent.Parent.TextLabel 1 |
06 | local Sound = Instance.new( "Sound" , gui) |
14 | function MouseEnterPlayButton() |
15 | Play.FontSize = "Size48" |
18 | Play.MouseEnter:connect(MouseEnterPlayButton) |
20 | function MouseLeftPlayButton() |
21 | Play.FontSize = "Size36" |
24 | Play.MouseLeave:connect(MouseLeftPlayButton) |
33 | Play.MouseButton 1 Down:connect(PlayGame) |
Thanks!
-club101coolguy