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: How can I do this?

Previous Thread :: Next Thread 
Onyxfyre1 is not online. 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 is not online. Onyxfyre1
Joined: 02 Jan 2009
Total Posts: 135
05 Aug 2011 03:24 PM
Bumpity bump
Report Abuse
Fl0x is not online. Fl0x
Joined: 06 Aug 2010
Total Posts: 5169
05 Aug 2011 03:25 PM
With scripts.
Report Abuse
Onyxfyre1 is not online. 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 is not online. 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 is not online. 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 is not online. Onyxfyre1
Joined: 02 Jan 2009
Total Posts: 135
05 Aug 2011 03:50 PM
thanks
Report Abuse
Fl0x is not online. Fl0x
Joined: 06 Aug 2010
Total Posts: 5169
05 Aug 2011 03:51 PM
You're welcome.
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