So I have a dagger in my game but I only made the animation for r15 man rigs. Here is the script.
local cooldown = false
script.Parent.Equipped:Connect(function(Mouse)
Mouse.Button1Down:Connect(function()
if not cooldown then
cooldown = true
local animation = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent.Animation)
animation:Play()
wait(1.75) -- cooldown timer
cooldown = false
end -- Add this
end)
end)
Now this animation called "Animation" is also in the thing. I know I need to animate for r15 block rigs, but I don't know the script to detect if the play is using a block rig and then give them the correct animation. Also that script is in a local script so would that make it so other people can see me swing?
