Answers for "how to make an npc move in roblox studio"

0

how to make an npc move in roblox studio

-- Variables for the zombie and its humanoid
local zombie = game.Workspace.Zombie
local humanoid = zombie.Humanoid
 
-- Variables for the point(s) the zombie should move between
local pointA = game.Workspace.GreenFlag
 
-- Move the zombie to the primary part of the green flag model
humanoid:MoveTo(pointA.PrimaryPart.Position)
Posted by: Guest on April-11-2022

Code answers related to "how to make an npc move in roblox studio"

Browse Popular Code Answers by Language