Hi, I want to ask somebody why my script doesn´t work.
script.Parent.MouseButton1Click:Connect(function() if script.Parent.Parent.Position == UDim2.new(0,0,0,0) then script.Parent.Parent.:TweenPosition(UDim2.new(0,0,1,0)), "Out", "Quad", 2) elseif script.Parent.Parent.Position == UDim2.new(0,0,1,0)) then game.StarterGui.MainMenue.ChangelogMenue.GameFrame:TweenPosition(UDim2.new(0,0,0,0), "In", "Quad", 2) end end)
script.Parent.MouseButton1Click:Connect(function() if script.Parent.Parent.Position == UDim2.new(0,0,0,0) then script.Parent.Parent:TweenPosition(UDim2.new(0,0,1,0)), "Out", "Quad", 2) --you had a period next to your colon lol elseif script.Parent.Parent.Position == UDim2.new(0,0,1,0)) then game.StarterGui.MainMenue.ChangelogMenue.GameFrame:TweenPosition(UDim2.new(0,0,0,0), "In", "Quad", 2) end end)