Im making a tool where u equip it, it plays a different idle animation, heres the script.

local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local hum = char:WaitForChild("Humanoid")
local choose =  1
local tool = script.Parent
local idleAnim = hum:LoadAnimation(script.Idle)

tool.Equipped:Connect(function()
	idleAnim:Play()
end)

tool.Unequipped:Connect(function()
	idleAnim:Stop()
end)

inside the tool is the local script, and the animation inside the script named "Idle"

3 comments

0

this is r15 btw

0
  1. Is it looped 2. Any errors 3. whats its priority?
0

no errors, the priority is idle, and it is looped