hello, i am looking for a way to disable the tool anim, but not entirely, only for one tool and at a specific time. i have tried the other solutions but none of them seem to fit my problem. any ideas?
What do you mean by tool animation? The idle animation for holding a tool?
yeah, i have no clue how to disable that if im being honest.
nvm! i figured it out, all i had to do was just disable the tool animation when it was equipped and add it back when it was unequipped. (add into tool)
local Tool = script.Parent
local Player = Tool.Parent.Parent
repeat wait() until Player.Character
repeat wait() until Player.Character:FindFirstChild("Animate")
local Animate = Player.Character:FindFirstChild("Animate")
local OriginalAnimationId = Animate.toolnone.ToolNoneAnim.AnimationId
Tool.Equipped:Connect(function()
Animate.toolnone.ToolNoneAnim.AnimationId = "rbxassetid://1"
end)
Tool.Equipped:Connect(function()
Animate.toolnone.ToolNoneAnim.AnimationId = OriginalAnimationId
end)
1 Like
Uhm
U should probably define your variables like this btw
local Player = game:GetService(“Players”).LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Animator = Character:WaitForChild(“Humanoid”).Animator --u can WFC the animator too tbf
–u should use Animator:LoadAnimation
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.