C
C#2w ago
Hazzza

✅ How to move an NPC locally only

Im just trying to make an npc move to a location only for the client player only. My code below doesnt work
print("running")
local NPC = PlayerNPCFolder:WaitForChild("Noob")
local humanoid = NPC:WaitForChild("Humanoid")
humanoid:MoveTo(Vector3.new(18, 28.375, 147))
humanoid.MoveToFinished:Wait()
print("running")
local NPC = PlayerNPCFolder:WaitForChild("Noob")
local humanoid = NPC:WaitForChild("Humanoid")
humanoid:MoveTo(Vector3.new(18, 28.375, 147))
humanoid.MoveToFinished:Wait()
The code does run, and the local script is places in starter player scripts
3 Replies
Thinker
Thinker2w ago
This is Lua, no? What engine are you using? Love2D?
Hazzza
HazzzaOP2w ago
shit mb wrong server thanks anyway
Thinker
Thinker2w ago
yee no worries

Did you find this page helpful?