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

How do i make a cube that when it is touched it makes another cube?

I have a cube that makes a sound and disappears but I want that cube to make another cube that has the first cube's script in it so i can endlessly pick up cubes. I've tried many things but it just isn't working. (Sorry if this is confusing, I'm trying to learn)

1 answer

I don't have info on your setup but I'll provide a basic idea of what I think you mean

-- get your cube object
cube = game.Workspace.mycube
-- make a clone
newCube = cube:Clone()
-- Parent it to the workspace
newCube.Parent = game.Workspace
-- Play your sound
-- Delete the first cube
cube:Destroy()

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