#help me with this animation

1 messages · Page 1 of 1 (latest)

candid abyss
#

it is drinking from the shoulder when its supposed to drink from the hand and its all weird here is the script:

#

local dummy = script.Parent

local head = dummy:FindFirstChild("Head")
local torso = dummy:FindFirstChild("Torso")
local rightArm = dummy:FindFirstChild("Right Arm")

if not (head and torso and rightArm) then
warn("Missing essential parts in the R6 dummy!")
return
end

local neck = torso:FindFirstChild("Neck")
local rightShoulder = torso:FindFirstChild("Right Shoulder")

if not (neck and rightShoulder) then
warn("Missing Motor6D joints: Neck or Right Shoulder!")
return
end

local originalNeckC0 = neck.C0
local originalShoulderC0 = rightShoulder.C0
local function tweenMotor(motor, targetC0, duration)
local steps = 20
local delay = duration / steps
local initialC0 = motor.C0
for i = 1, steps do
local alpha = i / steps
motor.C0 = initialC0:Lerp(targetC0, alpha)
task.wait(delay)
end
end

local function drink()
local raisedShoulderC0 = originalShoulderC0
* CFrame.Angles(-math.rad(90), 0, 0) -- Raise arm upwards
* CFrame.Angles(0, math.rad(90), 0) -- Rotate arm inward

local tiltedNeckC0 = originalNeckC0 * CFrame.Angles(-math.rad(30), 0, 0)

tweenMotor(rightShoulder, raisedShoulderC0, 1)
tweenMotor(neck, tiltedNeckC0, 1)

task.wait(2)

tweenMotor(rightShoulder, originalShoulderC0, 1)
tweenMotor(neck, originalNeckC0, 1)

end

while true do
drink()
task.wait(5)
end

twin ridge
teal knot
#

definitely concur with p here, animation cannot be that hard, even I can do it

candid abyss