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

i cant seem to find out why the if is false, can someone help me here?

Asked by 10 years ago

have a look I don't know where the problem is here

sp = script.Parent
debounce=true
function burn(hit)
    if hit and hit.Parent and hit.Parent.Name ~= "Part" and hit.Name ~= "Handle" and hit.Name ~= "fire" and debounce then
        debounce=false
        Humanoid=hit.Parent:FindFirstChild("Humanoid")
        if Humanoid then    
            Humanoid:TakeDamage(20)
            fire = sp:FindFirstChild("fire")
            if fire then
                fire.Enabled=false
            end
            sp.Anchored=true
            wait(2)
            sp:Destory()
        end
    end
end

sp.Touched:connect(burn)

this is the script from the "hoe to code your dragon" thing.

0
you people Thumbs Down for no reason really i have no idea whats wrong! chabad360 34 — 10y

1 answer

Log in to vote
0
Answered by 10 years ago

At line 15 you typed wrong "Destroy()"

0
but it doesnt take damage any way chabad360 34 — 10y
0
also that has nothing to do with the probem chabad360 34 — 10y
0
I never said that would solve your problem I pointed out an error nothing else. biocommand 30 — 10y
0
didnt help chabad360 34 — 10y
View all comments (2 more)
0
I never wanted to help ;) biocommand 30 — 10y
0
then you are welcome to leave scripting helpers chabad360 34 — 10y
Ad

Answer this question