-
What do you want to achieve? I want to disable the animation that plays when the character equips a tool. The animation is located in character.Animate.toolnone.
-
What is the issue? The toolnone animation overwrites and prevents other animations from playing and is not stoppable.
This is how it looks like when the tool is equipped by default.
-
What solutions have you tried so far? I’ve tried setting the animation ID to 0 and deleting the animation instance but it reverts to default whenever i try. I haven’t looked on devforum because the issue is too specific. I am creating a new topic in case someone knows how to fix the issue.
What i am trying to do is to create an idle animation for a tool. I have a thought that this might be the wrong way of doing it because i am disabling toolnone and using my own animation when the tool is equipped. Why am i doing this? Because toolnone animation loops every moment the tool is equipped. This prevents me from playing other animations.
1 Like
If the animation overwriting is the problem then
[InsertYourAnimationHere].Priority = Enum.AnimationPriority.Idle
-- // Mess around with the Enum value, heres a priority list
-- LOWEST PRIORITY (probably wont overwrite)
-- Enum.AnimationPriority.Core [7]
-- Enum.AnimationPriority.Idle [6]
-- Enum.AnimationPriority.Movement [5]
-- Enum.AnimationPriority.Action [4] (default for all non-roblox added animation)
-- Enum.AnimationPriority.Action2 [3]
-- Enum.AnimationPriority.Action3 [2]
-- Enum.AnimationPriority.Action4 [1]
-- HIGHEST PRIORITY (probably overwrite)
Just put this in a script, in ServerScriptService
local NOHANDOUT_ID = 04484494845
local function DisableHandOut(character)
local Animator = character.Animate
local Animation = Instance.new("Animation")
Animation.AnimationId = "http://www.roblox.com/asset/?id="..NOHANDOUT_ID
local ToolNone = Animator:FindFirstChild("toolnone")
if ToolNone then
local NewTool = Instance.new("StringValue")
NewTool.Name = "toolnone"
Animation.Name = "ToolNoneAnim"
Animation.Parent = NewTool
ToolNone:Destroy()
NewTool.Parent = Animator
end
end
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
DisableHandOut(character)
end)
end)
(I found this script on the DevForum, where someone had a similar issue)
1 Like