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

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

Asked by 4 years ago
Edited 4 years ago

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)

0
check for humanoid/ is a player, store the clone as a variable, and parent it to workspace. Fad99 286 — 4y

2 answers

Log in to vote
0
Answered by 4 years ago

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.

Ad
Log in to vote
0
Answered by
Joshument 110
4 years ago

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

Answer this question