Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why doesn't the firepart and cancollide work in conjunction with my script de-activation?

Asked by 10 years ago

damage = game.Workspace.Dragon1head.Hellfire.Fire1.Damagescript local i = 1 --this sets the digit for the repeat. while i < 10 do --This part of the script starts the repeat game.Workspace.Dragon1head.Hellfire.Fire1.CanCollide=false game.Workspace.Dragon1head.Hellfire.Fire1.Fire.Enabled=false damage.disabled=true wait (3)
game.Workspace.Dragon1head.Hellfire.Fire1.CanCollide=true game.Workspace.Dragon1head.Hellfire.Fire1.Fire.Enabled=true damage.disabled=false wait (3) game.Workspace.Dragon1head.Hellfire.Fire1.CanCollide=false game.Workspace.Dragon1head.Hellfire.Fire1.Fire.Enabled=false damage.disabled=true wait (3) game.Workspace.Dragon1head.Hellfire.Fire1.CanCollide=true game.Workspace.Dragon1head.Hellfire.Fire1.Fire.Enabled=true damage.disabled=false wait (3) end --this makes the repeat loop start again.

So this is my code. My expected outcome was that when the Firepart and Cancollide were turned off my damage script would also be turned off. Unfortunately this does not appear to be the case. The damage script is ALWAYS turned on. The firepart and the cancollide are always disabled / off. I don't understand why this is, especially considering that without "damage.disabled=true" The rest of the script seems to work fine? Thanks for reading, Luker

0
Put the script inside a codeblock. lomo0987 250 — 10y

Answer this question