#tween2 is not playing. Pls help
20 messages · Page 1 of 1 (latest)
The orientation tween still doesn't play
So, are they both for the same thing
Do they animate the same part
yes
They might be overriding each other
how can I fix that?
Make it one tween
tweenService:Create(part, tweenInfo1, {
Position = Vector3.new(script.Parent.Position.X, script.Parent.Position.Y, 808.5),
Orientation = Vector3.new(-90, 0, 0)
}
tweeninfo for both are seperate and different
local tweenInfo1 = TweenInfo.new(
math.random(1, 5),
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out,
1,
false,
0
)
local tweenInfo2 = TweenInfo.new(
1,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out,
-1,
false,
0
)
while wait() do
if script.Parent then
if script.Parent.Parent == game.Workspace then
if script.Parent.Position.Z ~= 808.5 then
if rolling == false then
rolling = true
local tween1 = tweenService:Create(part, tweenInfo1, {Position = Vector3.new(script.Parent.Position.X, script.Parent.Position.Y, 808.5) })
local tween2 = tweenService:Create(part, tweenInfo2, {Orientation = Vector3.new(-90, 0, 0) })
tween1:Play()
tween2:Play()
end
else
script.Parent:Destroy()
end
end
end
end```
Don't make them seperate
How to make them in 1?