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

Clone() script not cloning things into workspace, how do i fix this?

I was testing a script where when you touched it it would clone something in replicated storage into workspace but it's not working... Can someone please help?

script.Parent.Touched:Connect(function() game.ReplicatedStorage.Yeet:Clone()

end)

1 comment

0

check for humanoid/ is a player, store the clone as a variable, and parent it to workspace.

2 answers

✓ Accepted answer

Everything looks good, except you'll want to assign the clone to a variable and then parent that variable to the workspace. You'll probably also need a debounce to keep it from processing more than one touch.

The clone gets thrown into game unless you set the parent afterwards

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