I have tried my best let's say it didn't turn out to work. Here it is:
wait(1)
local tool =script.Parent
local plr = game:GetService("Players").LocalPlayer
mouse = plr:GetMouse()
local Equipped = false
local Reload = false
local anim = script.Equip
local reload = script.Reload
local equip = plr.Character.Humanoid:LoadAnimation(anim)
tool.Equipped:connect(function()
Equipped = true
if Equipped == true then
equip:Play()
end
end)
function onKeyDown(key)
key = key:lower()
if key == "r" then
Equipped = false
Reload = true
if Reload == true then
reload:Play()
wait(2)
reload:Stop()
else
reload:Stop()
end
end
end
tool.Unequipped:connect(function()
Equipped = false
equip:Stop()
end)
mouse.KeyDown:connect(onKeyDown)
For some reason the equip animation doesn't work AND the reload doesn't either the output for pressing R is "Play is not a valid member of Animation"
Please help if you could, thanks.

1 comment
Any errors pop up? Because at the moment the only thing i can think of is adding a 'WaitForChild()' for line 08 and 09 for the animations your locating