Hello,
I was wondering how can i make a script cloned object.
I am making a simulator with npc’s so i would like to know how to clone them and script all of them to make the same thing.
Thank you.
Hello,
I was wondering how can i make a script cloned object.
I am making a simulator with npc’s so i would like to know how to clone them and script all of them to make the same thing.
Thank you.
local clone = workspace.NPC:Clone();
clone.Parent = workspace;
clone:MoveTo(Vector3.new(x,y,z));
Is this what you’re looking for?
I guess you could have the same script in the npc so when you clone it then they will have the same script and do the same thing.
local clone = game.Workspace.NPC:Clone()
clone.Parent = game.Workspace
use tag service and add tags to the cloned object and make the script run for all the objects using for i,v in pairs() update the new tags every lets say 5 seconds