im getting errors for some reason
local Tool = script.Parent
local 10bladeanimation = script.Parent:WaitForChild("10bladeanimation", 1)
Tool.Activated:Connect(function()
local Character = Tool.Parent
if Character then
local Humanoid = Character:FindFirstChildWhichIsA("Humanoid")
if Humanoid then
local LoadedAnim = nil
if Humanoid.RigType == Enum.HumanoidRigType.R6 and 10bladeanimation then
LoadedAnim = Humanoid:LoadAnimation(10bladeanimation)
end
if LoadedAnim then
LoadedAnim:Play()
end
end
end
end)