generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Need help with copying a model into Workspace from Lighting

Previous Thread :: Next Thread 
cornholio234 is not online. cornholio234
Joined: 22 Oct 2010
Total Posts: 15142
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 is not online. 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
cornholio234 is not online. cornholio234
Joined: 22 Oct 2010
Total Posts: 15142
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image