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

I need help in regards to what I am doing wrong or need to add?

this runs the break when "if enemy.SlimeWormModel.SlimeProjectileIzzi then" becomes false not "while enemy.Name == "IzziWorm" do "

while enemy.Name == "IzziWorm" do 
            if enemy.SlimeWormModel.SlimeProjectileIzzi then
            enemy.SlimeWormModel.SlimeProjectileIzzi:Destroy()
            else
            break
            end

4 comments

0

I hope you have an 'end' to the while statement that would be on line 7

0

isn't that what it is supposed to do though?

0

Can you tell us further what are you trying to achieve? The information you gave is still vague.

0

theres not really more to explain in this gmae theres a place called tower it has 50 differnt floors with abunch of different enemies and that particular enemy shoots an orb every 1.5 - 2 seconds

1 answer

Here's the best solution i can think of:

while enemy.Name == "IzziWorm" do 
	wait()
        if enemy.SlimeWormModel.SlimeProjectileIzzi then
        	enemy.SlimeWormModel.SlimeProjectileIzzi:Destroy()
        else
        	break
        end
end

I hope it helps!

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