I’m doing an arrest system and I want to put an animation (the common ones). Could someone tell me what ways I can do them?
3 Likes
You could create an animation in the character and load it to the humanoid. Make sure you do
animTrack:Play()
and set the animation priority to action.
Here’s an example:
-- make sure the code is in a local script
local player = game.Players.LocalPlayer
local id = "rbxassetid://the id of the animation"
local anim = Instance.new("Animation",player.Character)
anim.AnimationId = id
local animTrack = player.Character.Humanoid:LoadAnimation(anim)
animTrack:Play()
5 Likes