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
|
  |
| Joined: 11 Jul 2015 |
| Total Posts: 182 |
|
|
| 23 Dec 2016 04:03 PM |
| im making a hot potatoe game! |
|
|
| Report Abuse |
|
|
kedny23
|
  |
| Joined: 11 Jul 2015 |
| Total Posts: 182 |
|
| |
|
XYmajik
|
  |
| Joined: 19 Apr 2015 |
| Total Posts: 424 |
|
| |
|
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
|
  |
| 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
|
  |
| Joined: 11 Jul 2015 |
| Total Posts: 182 |
|
| |
|
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
|
  |
| 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
|
  |
| Joined: 11 Jul 2015 |
| Total Posts: 182 |
|
| |
|
KidNoobly
|
  |
| Joined: 15 Apr 2014 |
| Total Posts: 107 |
|
| |
|
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
|
  |
| Joined: 11 Jul 2015 |
| Total Posts: 182 |
|
|
| 23 Dec 2016 04:55 PM |
| SOME ONE PLZ HELP ME!!!!!!! |
|
|
| Report Abuse |
|
|
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 |
|
|