RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"create a hit animation"
-- This mode only specializes in Animation scripts, please use another appropriate mode for getting better responses for this query -- Add the script to the humanoid of your npc local humanoid = script.Parent local hitAnimation = Instance.new("Animation") hitAnimation.AnimationId = "rbxassetid://522638767" -- replace this with your hit animation id local loadedAnimation = humanoid:LoadAnimation(hitAnimation) humanoid.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then loadedAnimation:Play() end end)