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

Help Script Not Functioning Right?

Asked by 8 years ago
function proceedbeat(stupidchicken)
    if stupidchicken.Health > 0 then
        for i = 1, 100 do
            stupidchicken.Health = stupidchicken.Health-1^4152315
        end
    end
    if stuipdchicken.Health == 0 then
        return "StupidChickenHasBeenDefeated"
    end
end
function beat_the_chicken(parameter) 
    for i,v in pairs(parameter) do
        if v.Name == "Chicken" then
            thing =  proceedbeat(v)
            print(thing)
            if thing ~= "StupidChickenHasBeenDefeated" then
                print("StupidChickenRound2ISee")
                proceedbeat(v)
            end
        end
    end
end

error is that nothing pops up

Answer this question