#help

11 messages · Page 1 of 1 (latest)

glad talon
#

` local zombie = game.workspace.Zombie
local i = zombie.Humanoid.WalkSpeed

if i < 100 then do
repeat
i = i + 1
print ("Speed is increasing")
wait(1)
until
i == 100
end
end `

It's not working, I want the script to increase my zombie speed every second until it hit 100. I set the zombie speed to 0 in workspace btw.

oblique spadeBOT
#

studio** You are now Level 1! **studio

crude kettle
#

yikes

#

alright

#

first of all, rename "i" to something like zombieSpeed

#

then

#
while zombieSpeed <= 100 do
    zombieSpeed += 1
    task.wait(1)
end
#

you can replace the massive code block with just this

#

quick fix...

#

just do this

#
local Zombie = game.Workspace.Zombie
local ZombieHumanoid = Zombie.Humanoid

while ZombieHumanoid.WalkSpeed <= 100 do
    ZombieHumanoid.WalkSpeed += 1
    task.wait(1)
end