#How do i get my zombie to move? [Solved]

122 messages · Page 1 of 1 (latest)

sterile bone
#

this is my mob script,
local ServerStorage = game:GetService("ServerStorage")
local mob = {}

function mob.Move(mob, map)
local humanoid = mob:WaitForChild("Humanoid")
local waypoints = map:WaitForChild("Waypoints")

for waypoint=1, #waypoints:GetChildren() do    
    Humanoid:MoveTo(waypoints[waypoint].Position)
    Humanoid.MoveToFinished:Wait()
end

end

function mob.Spawn(name, map)
local mobExists = ServerStorage.Mobs:FindFirstChild(name)

if mobExists then
    local newMob = mobExists:Clone()
    newMob.HumanoidRootPart.CFrame = map.Start.CFrame
    newMob.Parent = workspace
    
    mob.Move(newMob, map)
else
    warn("Requested mob does not exist", name)
end

end

return mob

native moss
#

First check if that line is even running

#

Second make sure it isn't anchored

sterile bone
#

What isn’t ancohed

native moss
#

The character

sterile bone
#

Anchored

#

Lemme check

native moss
#

More specifically the humaboidrootpart

#

If that is anchored then everything is anchored

sterile bone
#

It’s not anchkfed

#

Anchored

sterile bone
#

It’s just stuck

#

Also this is another part of the script

#

@native moss

native moss
sterile bone
#

It just says infinite yield

native moss
#

On what script

sterile bone
#

Workspace.Grassland:Waitforchild(“Waypoints”)

proper archBOT
#

studio** You are now Level 3! **studio

native moss
#

Wait nvm

sterile bone
#

It is

native moss
#

Yeah

sterile bone
#

Want me to send u the line

native moss
#

U gotta fix that

#

It's not passing that line

sterile bone
#

It also says an error but idk if that has to do with anything

#

Cause it been she ong earlier and working fine

sterile bone
native moss
#

Well I gotta go so

#

Bye

sterile bone
#

Bye

#

@lime cedar

lime cedar
#

yo

sterile bone
#

Hi

#

I also sent videos

#

On the problem I’m encountering

lime cedar
sterile bone
#

Want me to send u the line

#

It’s talking about

#

That specific line also had an error and someone told me to fix it to this and now I’m stuck on infinite yield

#

Yk you there

#

@lime cedar

lime cedar
#

yea im there chill

#

im helping someone out too

sterile bone
#

Oh ok

#

Mb

lime cedar
#

are the waypoints inside the grassland fs?

sterile bone
#

Yes

#

Wait wdym

lime cedar
#

like

#

the waypoints is it a folder or a group model

sterile bone
#

The way points folder are suppose to go into grassland flodrr

lime cedar
#

yea ok its in the grassland folder

#

sick

sterile bone
lime cedar
#

what

#

then where is the waypoints folder

sterile bone
#

The way point is a folder

#

It’s under workspace

lime cedar
#

its supposed to be Workspace:WaitForChild("Waypoints") then

#

try changing the line ur having problems on and put that

sterile bone
#

Got a new error

lime cedar
#

dont add require

#

js do script.Mob

#

unless its a modulescript

sterile bone
#

On my main script or module

#

The long script is. A module

#

I’m gonna put it to my old line

#

And see if you could fix it then

lime cedar
#

pretty sure theres an error inside ur modulescript itself

sterile bone
#

This is my module script

#

And this is the error I have been facing today

#

It’s not a valid member of my folder called grassland which is my map

#

There should be an easy fix to this

lime cedar
#

same issue as before

#

waypoints is under workspace

#

not grassland

sterile bone
lime cedar
#

js change local waypoints = map.Waypoints to
local waypoints = Workspace.Waypoints

sterile bone
#

I did Workspace.Waypoojbts

lime cedar
#

try now

#

should work

sterile bone
#

New error

proper archBOT
#

studio** You are now Level 4! **studio

sterile bone
#

This is text

lime cedar
#

does the mob have a Humanoid

sterile bone
sterile bone
lime cedar
#

check inside the mob

sterile bone
#

Yes

#

It dies

#

Does

lime cedar
#

does the mob have HumanoidRootPart

sterile bone
#

Yes

lime cedar
#

oh wait

#

no

#

its a capital mistake

#

its humanoid not Humanoid

sterile bone
#

Ok

lime cedar
#

lua is case sensitive

sterile bone
#

For both

lime cedar
#

even the line below that chang eit

sterile bone
#

K

#

I fucking love you

#

It worked

#

It’s moving now

#

Ty ong

lime cedar
#

lmfao

#

yw

#

put the post as solved

sterile bone
#

Ok