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)
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)
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.
1 comment
check for humanoid/ is a player, store the clone as a variable, and parent it to workspace.