Hii, I am looking to achieve this interaction in which the player gets “locked” to a main part and then plays an animation while the player can’t move, any help is appreciated it!
Anchor the humanoid rootpart and play your animation
3 Likes
You could do something like:
local connection
game.RunService.HeartBeat:Connect(function()
HumanoidRootPart.CFrame = animationCFrame
HumanoidRootPart.AssemblyLinearVelocity = Vector3.zero
HumanoidRootPart.AssemblyAngularVelocity = Vector3.zero
end)
animation:Play()
task.wait(animationTime)
connection:Disconnect()
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.