if attack1numbercan.Value == true and canattack1number == true then
local Ring = game:GetService("ReplicatedStorage").BossAttackType.Attack1Boss.Ring:Clone()
attack1numbercan.Value = false
warn("Working AttackNumber ".. attacknumber)
canattack1number = false
wait(3)
Ring:Destroy()
elseif attack1numbercan.Value == false and canattack1number == false or canattack1number == false then
warn("Boss wait")
wait(10)
attack1numbercan.Value = true
canattack1number = true
end
This script in serverscriptservice and i don’t get any error. but don’t get warn in output
warn(“Boss wait”)
Hello!
I’m not sure whether this is a format text mistake or not, but you don’t have to use if and elseif without else in the same function. Instead, you can simply use if and else. What you can also do to make things easier is replace this statement:
elseif attack1numbercan.Value == false and canattack1number == false or canattack1number == false then
with this one:
elseif canattack1number == false then
or this one:
elseif not canattack1number then
I also cannot know how your script works, but it’s probably stopping at wait(10). Why? Because every time first condition is not fulfilled, it warns about debounce (warn(“Boss wait”)) and starts waiting for 10 seconds. The script doesn’t check if it can continue, but rather waits again and again each time the function is called.