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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Lighting()

Previous Thread :: Next Thread 
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
28 Aug 2012 04:47 PM
So say I have this gun in my Starterpack with a part on it named 'Rail'. How would I make a script that clones a model with multiple parts (lets name this model 'RedDot') to the positon of the rail?
Report Abuse
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
28 Aug 2012 05:02 PM
Bump
Report Abuse
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
28 Aug 2012 05:28 PM
Can someone please respond
Report Abuse
Sharpshooter26 is not online. Sharpshooter26
Joined: 26 May 2010
Total Posts: 5166
28 Aug 2012 05:30 PM
Never done it, but I believe you do something along the lines of



game.Lighting.Model:Clone().Position = game.Workspace.Part.Position
Report Abuse
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
28 Aug 2012 05:46 PM
It dont work...
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
28 Aug 2012 05:46 PM
local Cloned = game.Lighting.Model:Clone()
Cloned.Position = game.Workspace.Part.Position
Cloned.Parent = Workspace

¤¤ †KMXD† ¤¤ [SHG Tier~3] [Freelancing Scripting Guru] •д•
Report Abuse
Darkmist101 is not online. Darkmist101
Joined: 30 Jul 2010
Total Posts: 6208
28 Aug 2012 05:47 PM
local Clone = Obj:Clone()
Clone:MoveTo(Rail.Position)
Clone.Parent = Parent
Report Abuse
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
28 Aug 2012 05:58 PM
The part that I cloning it to is in a tool is you guys didn;t know that
Report Abuse
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
28 Aug 2012 06:10 PM
The tool is int the starter pack...
Report Abuse
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
29 Aug 2012 04:21 PM
Halp lol
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