Hello,
My animations wont load in Roblox but only in Roblox Studio.
Whenever im running this tool´s script i get both messages (“swing” and “waitet for swing”) printed in the output, so it cant be any problem with the script and there are also no error messages.
I hope anyone knows the issue.
wait(3.5)
local rs = game.ReplicatedStorage
local player = game:GetService("Players").LocalPlayer
local char = player.Character
local slashAnim = script.Parent:FindFirstChild("SlashOne")
local slashPlay = char.Humanoid:LoadAnimation(slashAnim)
local tool = script.Parent
local canSlash = true
local debounce = 1
script.Parent.Activated:Connect(function()
if canSlash then
canSlash = false
slashPlay:Play()
rs.Events.SwordAttack:FireServer()
print("swing")
wait(debounce)
rs.Events.SwordAttackOff:FireServer()
canSlash = true
print("waited for swing")
end
end)