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

Clone after Wait for Child?

wp = game:GetService("Workspace")
HR = wp:WaitForChild("Holder"):Clone()
HR.Parent = script.Parent

The script works but it completely ignores the Clone function, just moving Holder to script.parent, instead of cloning... what can i do to fix that?

1 comment

1 answer

✓ Accepted answer
local Holder = workspace:WaitForChild("Holder"):Clone()
Holder.Parent = script.Parent

If this doesn't work then try this.

local Holder = workspace:WaitForChild("Holder")
local NewHolder = Holder:Clone()
NewHolder.Parent = Holder

4 comments

0

Only use global variables when needed to, always try to use local variables

0

Thanks!

0

np

0

CosmicguyTinyWeenous what are you talking about, i don't wan't robucks

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