#tween2 is not playing. Pls help

20 messages · Page 1 of 1 (latest)

grand reef
#

Try putting the locals first, and then the tween:plays

shadow plinth
grand reef
#

Do they animate the same part

shadow plinth
grand reef
shadow plinth
lime moat
#
tweenService:Create(part, tweenInfo1, {
  Position = Vector3.new(script.Parent.Position.X, script.Parent.Position.Y, 808.5),
  Orientation = Vector3.new(-90, 0, 0)
}
shadow plinth
#
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```
lime moat
#

Wait that's weird, my script works

#

@iron stream

#

wrong person mb

#

@shadow plinth

shadow plinth
#

I think I'll have to put tween 2 outside

#

It still doesn't work

shadow plinth