Hello everybody! I am quite new to Devforum but I have made an idle animation. But it seems that the script I made only makes the idle animation start for a while, and then the animation doesn’t loop. Here’s the script.
local Tool = nil
local animScript = nil
script.Parent.Equipped:Connect(function()
Tool = script.Parent
animScript = Tool.Parent:WaitForChild("Animate")
animScript:WaitForChild("toolnone"):WaitForChild("ToolNoneAnim")
animScript.toolnone.ToolNoneAnim.AnimationId = "https://roblox.com/asset/?id=9157492617"
end)
script.Parent.Equipped:Connect(function()
Tool = script.Parent
animScript:WaitForChild("toolnone"):WaitForChild("ToolNoneAnim")
animScript.toolnone.ToolNoneAnim.AnimationId = "https://roblox.com/asset/?id=9157492617"
end)