Added NPCWrapper

- NPC.new, NPC:moveTo() & NPC.maxHealth have all been added
This commit is contained in:
2021-05-04 02:01:33 -05:00
committed by gsemaj
parent e8659962a5
commit 794b881c4d
6 changed files with 243 additions and 1 deletions

View File

@@ -9,6 +9,11 @@ function onJoin(plr)
plr:kick()
elseif msg == "hi" then
print("hello " .. plr.name)
elseif msg == "pet" then
local dog = NPC.new(plr.x, plr.y, plr.z, 3054)
while wait(2) and plr:exists() do
dog:moveTo(plr.x + math.random(-500, 500), plr.y + math.random(-500, 500), plr.z)
end
end
end)
end