So... I did some giant sword script ( not giant, but for starters it's a bit complex ), it alternates attacks. But... It doesn't works, it simply wont use ( play the animation ) can someone help me? Scripts: equipEvent ( localScript ):~~~~~~~~~~~~~~~~~
script.Parent.Equipped:connect(function(swquip)
script.Parent.attackID.Value = 1
script.equipsound:Play()
script.Parent.CanDamage.Value = false
end)~~~~~~~~~~~~~~~~~
attackScript ( localScript ):~~~~~~~~~~~~~~~~~
local CanAttack = true
local attackID = script.Parent.attackID.Value
local attack1 = script.Parent.Parent.Humanoid:LoadAnimation(script.attack1)
local attack2 = script.Parent.Parent.Humanoid:LoadAnimation(script.attack2)
local attack3 = script.Parent.Parent.Humanoid:LoadAnimation(script.attack3)
local dmgAble = script.Parent.CanDamage.Value
script.Parent.Activated:connect(function()
if attackID == 1 and CanAttack == true then
attack1:Play()
CanAttack = false
wait(2)
attackID = 2
CanAttack = true
dmgAble = true
end
if attackID == 2 and CanAttack == true then
attack2:Play()
CanAttack = false
wait(3)
attackID = 3
CanAttack = true
dmgAble = true
end
if attackID == 3 and CanAttack == true then
attack3:Play()
CanAttack = false
wait(4)
CanAttack = true
attackID = 1
dmgAble = true
end
end)~~~~~~~~~~~~~~~~~
damageScript ( Script ):~~~~~~~~~~~~~~~~~
blade = script.Parent.blade
attackID = script.Parent.attackID.Value
dmgAble = script.Parent.CanDamage.Value
blade.Touched:connect(function(targetPlayer)
if targetPlayer.Parent:FindFirstChild("Humanoid") and attackID == 1 and dmgAble == true then
targetPlayer.Parent.Humanoid:TakeDamage(50)
dmgAble = false
end
if targetPlayer.Parent:FindFirstChild("Humanoid") and attackID == 2 and dmgAble == true then
targetPlayer.Parent.Humanoid:TakeDamage(75)
dmgAble = false
end
if targetPlayer.Parent:FindFirstChild("Humanoid") and attackID == 3 and dmgAble == true then
targetPlayer.Parent.Humanoid:TakeDamage(200)
dmgAble = false
end
end)~~~~~~~~~~~~~~~~~
CanDamage is a BoolValue attackID is an intValue I really don't know what I missed, the output doesn't gives me any errors... ( ONLY THE THANOS IDLE ANIMATION ERROR lol ) The thing that happens is: The animation wont work, when I use it, nothing happens! ;-; Please tell me what I need to fix or what makes it doesn't work, and... I'm not gonna use it in ROBLOX, only in Studio... Because I know it wont work on the ROBLOX ( Servers ) Sorry bad grammar, I'm brazilian. Oh yeah, the Animation Editor said there's no R15 parts ( I'm using R6, I built the animation on a R6 ), so I'm not sure if that's the problem.

5 comments
use code blocks plz
https://forum.scriptinghelpers.org/topic/82/how-to-format-questions-answers-on-the-main-site
put in codebox
that looks more like a essay than a question lol
Is it the BoolValue Value and IntValue Value are not updating?