|
| 02 Dec 2013 07:44 PM |
I've been trying to copy a pick-up (not a tool) into Workspace from Lighting. It's not working and the output isn't showing anything bad.
" 1:local ModelCopy = game.Lighting.InvPresent:Clone() 2: ModelCopy.Parent = Workspace 3: wait(10) -- Time subject to change 4: game.Lighting.InvPresent:destroy() -- This is for if the pick up isn't picked up in time, this line's purpose is to keep from presents spamming the server
5: return "
Help? |
|
|
| Report Abuse |
|
|
lolb3
|
  |
| Joined: 16 Jan 2010 |
| Total Posts: 2268 |
|
|
| 02 Dec 2013 07:47 PM |
err what's with the numbering?
local ModelCopy = game.Lighting.InvPresent:Clone() ModelCopy.Parent = Workspace wait(10) -- Time subject to change
--i deleted the last line because the wait isn't necessary if it's not a loop |
|
|
| Report Abuse |
|
|
|
| 02 Dec 2013 08:59 PM |
| Then how do I get the pick ups to continually spawn if there's no loop? |
|
|
| Report Abuse |
|
|
robomax11
|
  |
| Joined: 07 Jul 2011 |
| Total Posts: 6828 |
|
|
| 02 Dec 2013 09:01 PM |
Clone it. Then Parent it
local thing = game.Lighting.THINGY
thingy = thing:Clone() then se the parent thingy.Parent = game.Workspace
and maybe do a while loop time = 10 while wait(time) do |
|
|
| Report Abuse |
|
|