yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
|
| 01 Dec 2014 07:51 PM |
local Pizza = game.Lighting.Pizza:Clone()
-- not working :( |
|
|
| Report Abuse |
|
|
| |
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
|
| 01 Dec 2014 08:11 PM |
| I want the pizza to clone to workspace, still not working :( |
|
|
| Report Abuse |
|
|
|
| 01 Dec 2014 08:13 PM |
| It might be helpful if you specify where to clone it... |
|
|
| Report Abuse |
|
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
| |
|
|
| 01 Dec 2014 08:15 PM |
| Lighting is deprecated for storage. |
|
|
| Report Abuse |
|
|
|
| 01 Dec 2014 08:16 PM |
| game.Lighting.Pizza:clone''.Parent=workspace |
|
|
| Report Abuse |
|
|
|
| 01 Dec 2014 08:54 PM |
function idiot() x=game.Lighting.Pizza:clone() x.Parent=Workspace end wait(1)--when you want it to activare idiot:() |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 01 Dec 2014 11:55 PM |
Don't use Lighting, use ReplicatedStorage & ServerStorage. Use ServerStorage here.
pizza = game.Lighting.Pizza:Clone() -- Create a clone of Pizza. pizza.Parent = workspace -- You *MUST* set the parent of the clone.
Alternatively in one line::
game.Lighting.Pizza:Clone().Parent = workspace
How do you decide whether or not to assign the cloned object a variable?
If you just need a clone of that exact object with all those properties, don't bother with a variable.
However, if you want to change properties such as the name, colors, et cetera, or work with it in some other way, use a variable. |
|
|
| Report Abuse |
|
|