#Anchored HRP now animation glitches

1 messages · Page 1 of 1 (latest)

wanton sky
#

so essentially ive anchored a humanoidrootpart of the player character, tweened its position and after unanchoring the walk animation looks really glitched.

How do I fix this?

candid forge
#

how are you tweening it?

wanton sky
#

im tweening the humanoidrootpart position

oak bluff
#

moving the position is only going to move the hrp completely out of alignment with the rest of the character and make it rather glitchy.

wanton sky
#

ohh aight bet

candid forge
#

you can also do pivotto

wanton sky
#

bc its a method

#

ive ultimately decided not to tween and instead use an orb that beams down from a massive spawn orb

candid forge
# wanton sky yeah but can i tween a pivotto

If you're clever you can :)

local TweenService = game:GetService("TweenService")
return function(model: Model, tweenInfo: TweenInfo, goal)
    local cf = Instance.new("CFrameValue")
    cf.Value = model:GetPivot()
    cf.Changed:Connect(function()
        model:PivotTo(cf.Value)
    end)

    goal.Value = goal.CFrame
    goal.CFrame = nil
    return TweenService:Create(cf, tweenInfo, goal)
end