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

My object tweens wired?

Asked by 4 years ago

So I want my lever to go up and down but it twists then goes up and down what is the problem here

Vid link: https://streamable.com/cejhwu script:

01local bar = script.Parent.Bar
02local cd = script.Parent.Bar.ClickDetector
03local ts = game:GetService("TweenService")
04local ti = TweenInfo.new(
05    0.3,   
06    Enum.EasingStyle.Linear,
07    Enum.EasingDirection.Out,
08    0,
09    false,
10    0
11)
12 
13local pulleddown = script.Parent.pulled.Value
14local Positions = script.Parent.Positions
15local uppos = {CFrame = CFrame.new(Positions.uppos.Position)}
View all 31 lines...
0
It looks like you changed the orientation at some point. It's just a problem with the positioning. Try different positions, and it should work. Dovydas1118 1495 — 4y

Answer this question