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: I need help with a give item when touched

Previous Thread :: Next Thread 
kedny23 is not online. kedny23
Joined: 11 Jul 2015
Total Posts: 182
23 Dec 2016 04:00 PM
I want to make it so that when a player gets touched by the person with the item then tell get the item.
Report Abuse
kedny23 is not online. kedny23
Joined: 11 Jul 2015
Total Posts: 182
23 Dec 2016 04:03 PM
im making a hot potatoe game!
Report Abuse
kedny23 is not online. kedny23
Joined: 11 Jul 2015
Total Posts: 182
23 Dec 2016 04:08 PM
anyone out there?
Report Abuse
XYmajik is online. XYmajik
Joined: 19 Apr 2015
Total Posts: 424
23 Dec 2016 04:09 PM
This is already default.
Report Abuse
kedny23 is not online. kedny23
Joined: 11 Jul 2015
Total Posts: 182
23 Dec 2016 04:12 PM
no like in hot potatoe when someone has the potatoe they give it to someone else
but i want it when a player touches them
Report Abuse
XYmajik is online. XYmajik
Joined: 19 Apr 2015
Total Posts: 424
23 Dec 2016 04:16 PM
Lol. This is easy. But my battery is 'bout to die...
Report Abuse
kedny23 is not online. kedny23
Joined: 11 Jul 2015
Total Posts: 182
23 Dec 2016 04:19 PM
could u help then!
:)
Report Abuse
KidNoobly is not online. KidNoobly
Joined: 15 Apr 2014
Total Posts: 107
23 Dec 2016 04:23 PM
Put a script into the part of the tool then do:
d = false
script.Parent.Touched:connect(function(hit)
if d == false then
d = true
H = hit.Parent.Humanoid
Na = H.Parent.Name
M = script.Parent.Parent:Clone()
M.Parent = game.Players:FindFirstChild(Na).Backpack
script.Parent.Parent:Remove()
end

end)

Am sure this will work try it out! :D
Report Abuse
KidNoobly is not online. KidNoobly
Joined: 15 Apr 2014
Total Posts: 107
23 Dec 2016 04:24 PM
Oh and in the touch function replace the if with:
if d == false and hit.Parent:FindFirstChild("Humanoid")~= nil then
Report Abuse
kedny23 is not online. kedny23
Joined: 11 Jul 2015
Total Posts: 182
23 Dec 2016 04:30 PM
Thx
Report Abuse
KidNoobly is not online. KidNoobly
Joined: 15 Apr 2014
Total Posts: 107
23 Dec 2016 04:31 PM
Np :D
Report Abuse
kedny23 is not online. kedny23
Joined: 11 Jul 2015
Total Posts: 182
23 Dec 2016 04:43 PM
d = false
script.Parent.Touched:connect(function(hit)
if d == false and hit.Parent:FindFirstChild("Humanoid")~= nil then
d = true
H = hit.Parent.Humanoid
Na = H.Parent.Name
M = script.Parent.Parent:Clone()
M.Parent = game.Players:FindFirstChild(Na).Backpack
script.Parent.Parent:Remove()
end

end)

THIS DOESNT WORK!!
Report Abuse
kedny23 is not online. kedny23
Joined: 11 Jul 2015
Total Posts: 182
23 Dec 2016 04:55 PM
SOME ONE PLZ HELP ME!!!!!!!
Report Abuse
KidNoobly is not online. KidNoobly
Joined: 15 Apr 2014
Total Posts: 107
23 Dec 2016 04:57 PM
You have to put it into the handle of the part read the script. Am really sure it works.
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