yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
|
| 05 Sep 2014 03:28 PM |
How would I make it so the script clones it to Workspace?
game.Lighting.Item:Clone() |
|
|
| Report Abuse |
|
|
|
| 05 Sep 2014 03:29 PM |
game.Lighting.Item:Clone().Parent = Workspace;
|
|
|
| Report Abuse |
|
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
|
| 05 Sep 2014 03:30 PM |
| Also, how would I give the model a position? I have been curious on how that works. |
|
|
| Report Abuse |
|
|
|
| 05 Sep 2014 03:31 PM |
| http://wiki.roblox.com/index.php?title=MoveTo_(Method)/model |
|
|
| Report Abuse |
|
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
|
| 05 Sep 2014 03:31 PM |
| Thanks man! Appreciate the help! |
|
|
| Report Abuse |
|
|
|
| 05 Sep 2014 03:32 PM |
You need to set a parent or else its just in space I guess.
local h = game.Lighting.Item:Clone() h.Parent = Workspace --You can do other manipulations because you have set it as a variable (h) such as color or any property. |
|
|
| Report Abuse |
|
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
|
| 05 Sep 2014 03:36 PM |
| Wait. The cloning isn't working.. |
|
|
| Report Abuse |
|
|
|
| 05 Sep 2014 03:36 PM |
| Send us the script. We will help debug and fix errors. |
|
|
| Report Abuse |
|
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
|
| 05 Sep 2014 03:38 PM |
while true do wait()
if script.Parent.Text == "11" then script.Parent.Text = "" local h = game.Lighting.Item:Clone() h.Parent = Workspace
end end |
|
|
| Report Abuse |
|
|
|
| 05 Sep 2014 03:40 PM |
Line 3, it should be = instead of ==. Line 6, try game.Workspace Line 5, I may be wrong, but is the actual item in Lighting called "Item" or is it something else? |
|
|
| Report Abuse |
|
|
|
| 05 Sep 2014 03:41 PM |
| My bad, line 3 is correct. |
|
|
| Report Abuse |
|
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
| |
|
|
| 05 Sep 2014 03:49 PM |
| Look in lighting, what is the name of the object you are trying to clone. |
|
|
| Report Abuse |
|
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
| |
|
|
| 05 Sep 2014 03:54 PM |
| Are there multiple things named Item? |
|
|
| Report Abuse |
|
|
|
| 05 Sep 2014 03:55 PM |
| I think I may be wrong, but are you just repeating wait over and over and over? |
|
|
| Report Abuse |
|
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
| |
|
|
| 05 Sep 2014 03:58 PM |
while true do wait() until
thing = script.Parent thing.Text == "11" then thing.Text = "" local h = game.Lighting.Item:Clone() h.Parent = Workspace
end end
Try this? |
|
|
| Report Abuse |
|
|
|
| 05 Sep 2014 03:58 PM |
| If there are multiple things named Item in lighting then you need to isolate one. So make it like Item1, Item2, Item3, etc. And in the script, specify which item you want specifically |
|
|
| Report Abuse |
|
|