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 |
|
|
| |
|
|
| 04 Jun 2016 08:46 AM |
| Where are the tools located in the workspace |
|
|
| Report Abuse |
|
|
|
| 04 Jun 2016 08:52 AM |
i had the script for that but i lost it
sorry |
|
|
| Report Abuse |
|
|
|
| 04 Jun 2016 09:13 AM |
http://wiki.roblox.com/index.php?title=Absolute_beginner%27s_guide_to_scripting
|
|
|
| Report Abuse |
|
|
|
| 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 |
|
|