Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why does this Tween Position script not work I have tried multiple things?

Asked by
uhTeddy 101
8 years ago
1script.Parent.MouseButton1Down:connect(function()
2    script.Parent.Parent:TweenPosition(UDim2.new(-0.9,0,0.377,0), 'Out', 'Sine', .5)
3end)

2 answers

Log in to vote
0
Answered by
glinary 19
8 years ago

Just tryin

1--USE IN LOCALSCRIPT THEN PUT UNDER THE PART
2 
3local player = game.Players.LocalPlayer
4local Mouse = player:GetMouse()
5 
6Mouse.Button1Down:connect(function()
7   script.Parent.Parent:TweenPosition(UDim2.new(-0.9,0,0.377,0), 'Out', 'Sine', .5)
8end)
0
That did't work uhTeddy 101 — 8y
0
How could that possibly make a difference? the only think is you added two variables but the variables dont go to anything uhTeddy 101 — 8y
Ad
Log in to vote
0
Answered by
uhTeddy 101
8 years ago

Okay so I found out myself and I got it

1--USE IN LOCALSCRIPT THEN PUT UNDER THE PART
2 
3script.Parent.MouseButton1Down:connect(function()
4   script.Parent.Parent:TweenPosition(UDim2.new(-0.9,0,0.377,0), 'Out', 'Sine', .5)
5end)
0
What changed? Tesouro 407 — 8y

Answer this question