Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

I've tried everything but my part wont copy?

local Donkey = script.Parent

while true do wait(6.1) Donkey:Destroy()

wait(8)
local comeback = Donkey:Clone()
comeback.parent = game.Workspace
comeback.postion = Vector3.new(352, 9, -61)

end

1 comment

0

it's probably that you CLONE it AFTER you've destroyed it. and spelling. everything's spelled wrong.

2 answers

Well, you destroyed the Donkey before you cloned it.

while true do wait(6.1) 

Donkey:Destroy()

wait(8)

local comeback = Donkey:Clone()

You can't clone something that doesn't exist.

It's because of exactly what the first comment said; Destroying an object will lock its parent to nil. Also, the spelling isn't correct. The error was most likely parent is not a valid member of Part because the property is Parent, not parent. What the script should be is this:

local Donkey = script.Parent

while true do wait(6.1)
	Donkey.Parent = nil
	wait(8)
	Donkey.Parent = workspace
	Donkey.Position = Vector3.new(352, 9, -61)
end

1 comment

0

So how do I make it comeback after it's cloned

This discussion is preserved as it was. New answers, comments, and votes are closed.