|
| 10 Feb 2013 11:13 PM |
| I'm trying to make a game where a player with basic tools can build creations from pre-designed parts. Because I lack the skills and knowledge of Lua/scripting, I feel that creating some sort of inventory (such as the Sandbox inventory GUI) that enables you to store and access a wide variety of building materials/objects from a single interface is far beyond my reach. However, I can duplicate the effect by having the materials/objects (ex. wall part, floor tile, chair, plant) active to the player, and they can simply copy the object and place it wherever they want. The key word here is 'copy', because I can't seem to find any knowledge of an existing model copy tool. Does anyone know of such a tool, where I can find one or possibly devise a script for it? |
|
|
| Report Abuse |
|
|
hunte922
|
  |
| Joined: 28 May 2008 |
| Total Posts: 6969 |
|
|
| 11 Feb 2013 12:08 AM |
Well, there's this model move hopperbin: http://www.roblox.com/Grab-item?id=106410983 After that, make a script that copies itself whenever its parent is moved. You can use...
clone = script.Parent:Clone() function change(value) print(value) if value == "Position" then clone.Parent = workspace end end script.Parent.your_reference_part_here.Changed:connect(change) |
|
|
| Report Abuse |
|
|
|
| 11 Feb 2013 12:11 AM |
| I suggest not using that hopperbin since hopperbins are deprecated now. |
|
|
| Report Abuse |
|
|
hunte922
|
  |
| Joined: 28 May 2008 |
| Total Posts: 6969 |
|
|
| 11 Feb 2013 12:17 AM |
@buddy
The ROBLOX wiki says otherwise. http://wiki.roblox.com/index.php/RBX.lua.HopperBin_(Object) |
|
|
| Report Abuse |
|
|