Well, my problem is that in line 10, in the part of if NoTala.Value == false then
a slash should be done, but it doesn’t, it just gives the print that I put.
local PlayAnim = script.Parent:WaitForChild("PlayAnim")
local Value = script.Parent:WaitForChild("Acción")
local Debounce = false
local Debounce2 = false
local tool = script.Parent
local NoTala = script.Parent:FindFirstChild("TalarArbolAnim")
local function mine()
print("neutro")
if NoTala.Value == false then
if not Debounce then
Debounce = true
local str = Instance.new("BoolValue", script.Parent)
str.Name = "toolanim"
str.Value = "Slash"
wait(0.2)
Debounce = false
print("not lumber")
str:Destroy()
end
elseif NoTala.Value == true then
if not Debounce2 then
local Character = script.Parent.Parent
local AnimationTrack = Character:WaitForChild("Humanoid"):LoadAnimation(PlayAnim)
Debounce2 = true
AnimationTrack:Play()
wait(0.21)
Value.Value = true
AnimationTrack:Stop()
wait(0.2)
Value.Value = false
wait(0.1)
Debounce2 = false
print("lumber")
end
end
end
tool.Activated:Connect(mine)