1 | script.Parent.MouseButton 1 Down:connect( function () |
2 | script.Parent.Parent:TweenPosition(UDim 2. new(- 0.9 , 0 , 0.377 , 0 ), 'Out' , 'Sine' , . 5 ) |
3 | end ) |
Just tryin
1 | --USE IN LOCALSCRIPT THEN PUT UNDER THE PART |
2 |
3 | local player = game.Players.LocalPlayer |
4 | local Mouse = player:GetMouse() |
5 |
6 | Mouse.Button 1 Down:connect( function () |
7 | script.Parent.Parent:TweenPosition(UDim 2. new(- 0.9 , 0 , 0.377 , 0 ), 'Out' , 'Sine' , . 5 ) |
8 | end ) |
Okay so I found out myself and I got it
1 | --USE IN LOCALSCRIPT THEN PUT UNDER THE PART |
2 |
3 | script.Parent.MouseButton 1 Down:connect( function () |
4 | script.Parent.Parent:TweenPosition(UDim 2. new(- 0.9 , 0 , 0.377 , 0 ), 'Out' , 'Sine' , . 5 ) |
5 | end ) |