| |
|
|
| 31 Dec 2015 07:16 AM |
local block = game.Workspace.Block local block2 = block:Clone() block2.Parent = game.Workspace
As an example |
|
|
| Report Abuse |
|
|
|
| 31 Dec 2015 07:21 AM |
still can't get it to work :/ I am trying to make a button that clones a part |
|
|
| Report Abuse |
|
|
|
| 31 Dec 2015 07:22 AM |
here's the script function onClicked() local Confetti = game.Workspace.Confetti local Confetti2 = Confetti:Clone() Confetti2.Parent = game.Workspace end |
|
|
| Report Abuse |
|
|
|
| 31 Dec 2015 07:25 AM |
i think you didnt call confetti2.
function onClicked() local Confetti = game.Workspace.Confetti local Confetti2 = Confetti:Clone().Parent = workspace Confetti:Clone().Parent = workspace --example stuff Confetti2.transparency = 1 end
Yellow is the new Mellow | +2113 posts |
|
|
| Report Abuse |
|
|
|
| 31 Dec 2015 07:26 AM |
oh, and did you call the function? else it doesnt work.
under my script, put script.Parent.ClickDetector.MouseClick:connect(onClicked)
and within the confetti part a clickdetector
Yellow is the new Mellow | +2113 posts |
|
|
| Report Abuse |
|
|
|
| 31 Dec 2015 07:32 AM |
this works, i tried it myself:
function onClicked() local Confetti = script.Parent local Confetti2 = Confetti:Clone() Confetti2.Parent = game.Workspace end script.Parent.ClickDetector.MouseClick:connect(onClicked)
Yellow is the new Mellow | +2113 posts |
|
|
| Report Abuse |
|
|
| |
|