drilinz
(drilinz)
August 14, 2023, 12:23pm
#1
The animation for my tool won’t load for some reason. Please help.
Script:
local plr = script.Parent.Parent.Parent
local char = plr.Character
local animation = Instance.new("Animation")
animation.AnimationId = "http://www.roblox.com/Asset?ID=14432455972"
animation = char.Humanoid:LoadAnimation(animation)
animation.Priority = Enum.AnimationPriority.Action
local plr = script.Parent.Parent.Parent
script.Parent.Equipped:Connect(function()
animation:Play()
end)
script.Parent.Unequipped:Connect(function()
animation:Stop()
end)
kittyPGR
(KittyPlays)
August 14, 2023, 12:26pm
#2
can you say how does a player get the tool ?
like do you parent it from ReplicatedStorage/ServerStorage to player’s Char or it get’s equipped from inventory ?
drilinz
(drilinz)
August 14, 2023, 12:27pm
#3
The tool is in starter pack at the moment.
you have 2 plr local variables.
1 Like
drilinz
(drilinz)
August 14, 2023, 12:31pm
#5
Nevermind, I have resolved the problem.
system
(system)
Closed
August 28, 2023, 12:32pm
#7
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.