Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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.

1 comment

0

you people Thumbs Down for no reason really i have no idea whats wrong!

1 answer

At line 15 you typed wrong "Destroy()"

6 comments

0

but it doesnt take damage any way

0

also that has nothing to do with the probem

0

I never said that would solve your problem I pointed out an error nothing else.

0

didnt help

0

I never wanted to help ;)

0

then you are welcome to leave scripting helpers

This discussion is preserved as it was. New answers, comments, and votes are closed.