So I have made a shotgun and animated it. The reload and idle animation works, but for some reason, the shoot animation does. I have tried other animations on the shoot animation, still doesn't, there is no error in the output but it just doesn't play?
here is the local code:
wait(3)
local set = true
local uis = game:GetService("UserInputService")
local plr = game.Players.LocalPlayer
local char = plr.Character
local e = char.Humanoid:LoadAnimation(script.Parent.Edile)
local vbn = char.Humanoid:LoadAnimation(script.Parent.Shut)
local g = char.Humanoid:LoadAnimation(script.Parent.Relod)
vbn.Looped = false
g.Looped = false
script.Parent.Equipped:Connect(function(mouse)
e:Play()
mouse.Button1Down:Connect(function(zxc)
if script.Parent.Poopy.Value == true then
if script.Parent.Ammo.Value > 0 then
if script.Parent.Idit.Reloading.Value == 0 then
if mouse.Target.Parent:FindFirstChild("Humanoid") then
vbn:Play()
script.Parent.dam:FireServer(mouse.Target.Parent, 999999)
script.Parent.Oof:Play()
end
end
end
end
end)
end)
script.Parent.Unequipped:Connect(function(kpcvo)
e:Stop()
end)
while wait(.1) do
if set == true then
if script.Parent.Ammo.Value == 0 then
set = false
script.Parent.Idit.Reload:Pause()
if script.Parent.Poopy.Value == true then
script.Parent.Idit:FireServer()
g:Play()
wait(7)
set = true
end
end
end
end

2 comments
is the animation priority set to action?
/\