idk whats wrong with this but the model "Businessman" keeps breaking joints. At the first cloning of the model its doesnt break but as soon as it cloned another and so on it breaks the joints and its not spawning at the Part called "Part".
local hey = workspace.Value.Value function yeap() hey = hey +1 print("its doing fine") end function nope() for i=1,hey do wait() game.ServerStorage["Businessman"]:Clone().Parent = game.Workspace.Part game.Workspace.Part.Businessman:MakeJoints() end end function done() print("its working") yeap() wait(1) nope() end wait(1) for i=1,10 do done() end
It is part.****Position not Part as parent
local hey = workspace.Value.Value function yeap() hey = hey +1 print("its doing fine") end function nope() for i=1,hey do wait() local NPC = game.ServerStorage["Businessman"]:MakeJoints()--.Parent = game.Workspace.Part remove this NPC:MoveTo(game.Workspace.Part.Position) end end function done() print("its working") yeap() wait(1) nope() end wait(1) for i=1,10 do done() end
Or just use one of mine.
army = game.Lighting.Zombie--change to where your NPC is while true do if game.Workspace.zomval.Value <= 25 then--limit and put an intvalue in workspace local model = army:clone() model.Parent = game.Workspace.zom model:MakeJoints() model:MoveTo(game.Workspace.zomspawn1.Position)--zomspawn1 = your spawn location for NPC game.Workspace.zomval.Value = game.Workspace.zomval.Value + 1 wait(10) else print("Can't spawn zombie") wait(1.1) end end
Here is the link to two games I use this on,
http://www.roblox.com/games/247431974/The-Bloxing-Dead
and