Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How do you spawn an item that you have already made?

Asked by
thortol 22
8 years ago

mypart = game.Workspace.Dirt Instance.new("mypart", Workspace)

I'm trying to spawn a tool called Dirt however it's not working.

1 answer

Log in to vote
3
Answered by
xuefei123 214 Moderation Voter
8 years ago

You need to use the :Clone() function, eg:

mypart = game.Workspace.Dirt:Clone()
mypart.Parent = game.Workspace

If this helps, could you accept the answer? It gives us both rep!

0
thank you very much sorry i wasn't online thortol 22 — 8y
0
No problem. Happy I could help :) xuefei123 214 — 8y
Ad

Answer this question