How to clone a tool and make it arrive at the starting point?

Hi! Recently i’ve been working on a new gam- “experience” where you need to deliever pizzas to make customers happy. How do i clone a tool?
I tried

script.Parent:Clone()

but it wont seem to work. How do i do this?

P.S = Going to bed now, 8:10 AM in the morning, i am a late sleeper. Hope to see your questions tommorow!

There should be no problems with your code, unless you’re not actually referencing the tool and script.Parent is nil.

its because you’re not setting the parent of the tool

local Tool = script.Parent:Clone()
Tool.Parent = workspace -- for example

Assign that code to a variable, then parent the variable to where you want it.

local clone = script.Parent:Clone()
clone.Parent = game:GetService("StarterPack")
local toolClone = script.Parent:Clone()
toolClone.Parent = --Where you want to parent it.

Studio crashed. Studio crashed on almost ALL your solutions.

script.Parent:Clone().Parent = workspace seems to work for me.
You either do:

local clone = script.Parent:Clone()
clone.Parent = workspace

or the version I’ve shown before. It’s the same thing and works the same way.

why not remote events?

(climit)

Yeah, but my studio crashed while doing almost everyones script.

How are you willing to clone the tool? By clicking a UI button? Touching the tool?

Normally, but i need to make it arrive at it’s starting point, because the pizzas are…
image

I thought that was the morning.

If your tool is placed in an area where scripts won’t run, that’s most likely your solution.

That’s because the script is inside the tool. Place the script outside the tool.

ToolClone = script.Parent.Tool:Clone()
while task.wait(3) do
local clone = ToolClone:Clone()
clone.Parent = workspace
game:GetService("Debris"):AddItem(clone, 15)
end

and make sure the script isn’t cloned with it.

Wdym by “Outside the tool”

jaaaaaaaaaaaa

The script.Parent property must not be parented to any descendant of the tool.

So, where do i place the script in explorer?

I’m not sure. You didn’t provide me with enough info. Just make it the parent the same parent the tool has.

So put it in “Handle?”

dddddddddddddd

That’s the opposite of what I said…
Don’t put the script inside of the tool.

Ah, put it into workspace?````

Yeah. Put both the tool and script into workspace. The tool also must be named “Tool” as well.