script.Parent.MouseButton1Down:connect(function() script.Parent.Parent:TweenPosition(UDim2.new(-0.9,0,0.377,0), 'Out', 'Sine', .5) end)
Just tryin
--USE IN LOCALSCRIPT THEN PUT UNDER THE PART local player = game.Players.LocalPlayer local Mouse = player:GetMouse() Mouse.Button1Down:connect(function() script.Parent.Parent:TweenPosition(UDim2.new(-0.9,0,0.377,0), 'Out', 'Sine', .5) end)
Okay so I found out myself and I got it
--USE IN LOCALSCRIPT THEN PUT UNDER THE PART script.Parent.MouseButton1Down:connect(function() script.Parent.Parent:TweenPosition(UDim2.new(-0.9,0,0.377,0), 'Out', 'Sine', .5) end)