Hello, im trying to make a soccer game with animated gui's and cool stuff. However, all the GUI's function as coded in Studio but nothing actually happen when i publish the game "Private" and try it out. As well as none of the buttons function ingame. "They don't even show"
Script location: game.StarterGui.Menu.MenuB.Script
If i wanna call it im using: game.Players.LocalPlayer.PlayerGui.Menu.MenuB.Script
Menu button code:
F = script.Parent.Parent.Frame
O = F.Frame
script.Parent.MouseButton1Click:connect(function()
script.Parent.Parent.Frame.Visible = true
F.Position = UDim2.new(-1, -500, 0, 0)
O.Position = UDim2.new(0, -100, 0, 0)
wait(.3)
F:TweenPosition(UDim2.new(0, 0, 0, 0), "In", "Quad", .4)
O:TweenPosition(UDim2.new(0, 0, 0, 0), "Out", "Back", 1)
wait(.3)
script.Parent.Visible = false
script.Parent.Parent.Parent.PLLogo.Enabled = false
script.Parent.Parent.Parent.Player.Enabled = false
script.Parent.Parent.Parent.ScoreboardB.Enabled = false
script.Parent.Parent.Parent.ScoreboardA.Enabled = false
end)

1 comment
connect is deprecated use Connect. But the problem is you used a Script so switch your script to a LocalScript and problem solved. ALWAYS have localscripts handle GUI