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 » Scripters
Home Search
 

Re: Need when touched, item goes in inventory Script

Previous Thread :: Next Thread 
izzy4101 is not online. izzy4101
Joined: 04 Sep 2012
Total Posts: 332
03 Jun 2016 09:17 AM
Does anyone know how to make a script where when touched, you'll get something in your inventory?

I also need it to be removed after you leave a certain area, how do you make this?
Please help!

-Izzy4101
Report Abuse
mathgeek008 is not online. mathgeek008
Joined: 26 Jun 2009
Total Posts: 88
04 Jun 2016 08:46 AM
easy. pay me
Report Abuse
mathgeek008 is not online. mathgeek008
Joined: 26 Jun 2009
Total Posts: 88
04 Jun 2016 08:46 AM
Where are the tools located in the workspace
Report Abuse
Unknown_Opcode is not online. Unknown_Opcode
Joined: 24 Jun 2013
Total Posts: 26514
04 Jun 2016 08:52 AM
i had the script for that but i lost it

sorry
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
04 Jun 2016 09:13 AM
http://wiki.roblox.com/index.php?title=Absolute_beginner%27s_guide_to_scripting


Report Abuse
littlelegomanon is not online. littlelegomanon
Joined: 07 Oct 2011
Total Posts: 146
04 Jun 2016 10:41 AM
for inserting the tool:

local sp = script.Parent
local tool = sp:WaitForChild("Tool1")
sp.Touched:connect(function(part_that_touched)
local plr = game.Players:GetPlayerFromCharacter(part_that_touched.Parent)
if part_that_touched and plr and plr:FindFirstChild("Backpack") and not plr.Backpack:FindFirstChild(tool.Name) then
local newTool = tool:Clone()
newTool.Parent = plr.Backpack
end
end)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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