#Why Tween doesn't change pivot

1 messages · Page 1 of 1 (latest)

mint stratus
#

I changed my levers pivot to bottom instead of the middle but Tween still thinks the pivot is in the middle.

#
--// Service
local TS = game:GetService("TweenService")

--// Stats
local Prompt = script.Parent
local Lever = script.Parent.Parent

local Delayed = false

--// Tween
local TInfo = TweenInfo.new(1, Enum.EasingStyle.Sine,Enum.EasingDirection.InOut,0,true)
local TGoal = {
    CFrame = Lever.CFrame * CFrame.Angles(math.rad(90),0,0)
}

--// Roll
local function Roll()
    local RollTween = TS:Create(Lever, TInfo, TGoal);RollTween:Play()
end

Prompt.Triggered:Connect(function()
    if Delayed == false then
        Delayed = true
        task.delay(5,function()
            Delayed = false
        end)
        Roll()
    end
end)
tawny sable
#

You can only make use of the pivot by using :PivotTo()

#

You could also offset the goal by the pivot

mint stratus
tawny sable
mint stratus
mint stratus
#

can you explain

mint stratus
#

@tawny sable if you are free can you?

tawny sable