One of my local scripts for gui wont ingame a server. It only works when i test in studio.
local MenuScreen = script.Parent.Parent.Menu1.MenuScreen local Man = script.Parent.Parent.Menu1.Man local Men = script.Parent.Parent.Menu1.Men local Message = script.Parent.Parent.Menu1.Message local Location = script.Parent.Parent.Menu1.Location local Options = script.Parent.Parent.Menu1.Option local Col1 = script.Parent.Parent.Menu1.ColTitle local Col2 = script.Parent.Parent.Menu1.Col local Button = script.Parent local toggle = false Button.MouseButton1Click:connect(function() if toggle == false then MenuScreen:TweenPosition (UDim2.new(0.5,-279,0.5,-170), 'Out', 'Sine', .5) --Open Position Man:TweenPosition (UDim2.new(0.5,-50,0.5,-145), 'Out', 'Sine', .5) Men:TweenPosition (UDim2.new(0.5,-50,0.5,-50), 'Out', 'Sine', .5) Message:TweenPosition (UDim2.new(0.5,-50,0.5,45), 'Out', 'Sine', .5) Location:TweenPosition (UDim2.new(0.5,-50,0.5,140), 'Out', 'Sine', .5) Options:TweenPosition (UDim2.new(0.5,-50,0.5,235), 'Out', 'Sine', .5) Col1:TweenPosition (UDim2.new(0.5,-263,0.5,27), 'Out', 'Sine', .5) Col2:TweenPosition (UDim2.new(0.5,-210,0.5,27), 'Out', 'Sine', .5) toggle = true else MenuScreen:TweenPosition (UDim2.new(0.5,-279,0.5,-1300), 'Out', 'Sine', .5) --Close Position Man:TweenPosition (UDim2.new(0.5,-50,0.5,-1300), 'Out', 'Sine', .5) Men:TweenPosition (UDim2.new(0.5,-50,0.5,-1300), 'Out', 'Sine', .5) Message:TweenPosition (UDim2.new(0.5,-50,0.5,-1300), 'Out', 'Sine', .5) Location:TweenPosition (UDim2.new(0.5,-50,0.5,-1300), 'Out', 'Sine', .5) Options:TweenPosition (UDim2.new(0.5,-50,0.5,-1300), 'Out', 'Sine', .5) Col1:TweenPosition (UDim2.new(0.5,-263,0.5,-1300), 'Out', 'Sine', .5) Col2:TweenPosition (UDim2.new(0.5,-210,0.5,-1300), 'Out', 'Sine', .5) toggle = false end end)