Onyxfyre1
|
  |
| Joined: 02 Jan 2009 |
| Total Posts: 135 |
|
|
| 05 Aug 2011 03:12 PM |
| I want to make a gun or weapon that you can pick up off the ground but it doesnt just take the weapon. Kind of like a giver, only without the whole giver block. For example, a pistol on the ground that you walk over an pick one up, but its still there for other people to pick up. |
|
|
| Report Abuse |
|
|
Onyxfyre1
|
  |
| Joined: 02 Jan 2009 |
| Total Posts: 135 |
|
| |
|
Fl0x
|
  |
| Joined: 06 Aug 2010 |
| Total Posts: 5169 |
|
| |
|
Onyxfyre1
|
  |
| Joined: 02 Jan 2009 |
| Total Posts: 135 |
|
|
| 05 Aug 2011 03:26 PM |
| I know with scripts obviously, im wondering how to make the script. |
|
|
| Report Abuse |
|
|
Fl0x
|
  |
| Joined: 06 Aug 2010 |
| Total Posts: 5169 |
|
|
| 05 Aug 2011 03:27 PM |
Take a free model giver. Put the mesh of the gun into the giver brick. There you go, it looks different. |
|
|
| Report Abuse |
|
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 05 Aug 2011 03:32 PM |
My guess is that you would place a copy of the weapon you want to give into lighting or elsewhere, and when a player walks over a non-tool model of the weapon, it clones it into there inventory.
For example
function weaponGive(hit) local h = hit.Parent:FindFirstChild("Humanoid") if h ~= nil then local player = game.Players:FindFirstChild(h.Name) local tool = game.Lighting.Tool:Clone() tool.Parent = player.Backpack end end
script.Parent.Touched:connect(weaponGive)
Hope this has helped you, good sir. |
|
|
| Report Abuse |
|
|
Onyxfyre1
|
  |
| Joined: 02 Jan 2009 |
| Total Posts: 135 |
|
| |
|
Fl0x
|
  |
| Joined: 06 Aug 2010 |
| Total Posts: 5169 |
|
| |
|