local Monster = script.Parent local ParticleEmitter = script.Parent.ParticleEmitter local Face = script.Parent.Decal

function move(MovePower, speed) if MovePower == true and speed == 5 then Monster.Orientation = Vector3.new(-90, 0, 0) repeat wait(0.001) Monster.Position = Monster.Position + Vector3.new(0, 0, 1) until game.Workspace.Part.Position.Z >= 118 end end

move(true, 5)

So When Z position is 118, it just keeps going. I tried the double equals but still wont work. Any suggestions?

3 comments

0

Please, format your code corretly.

0

why do you use game.Workspace.Part.Position and not Monster.Position?