NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
|
| 10 Jun 2014 12:31 PM |
So when you touch the parent, it gives you a tool. I'm stumped, because I don't know what you would make the "FindFistChild" as... i.e (script) :
script.Parent.Touched:connect(function(hit) h = script.Parent:FindFirstChild("") --idk, what this be "Player"? b = game.Lighting.Deagle:Clone() b.Parent = h end)
13,484/40,000 R$ |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2014 12:32 PM |
in the ""s put Humanoid
b.Parent = hit.Parent |
|
|
| Report Abuse |
|
|
NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
|
| 10 Jun 2014 12:34 PM |
So the weapon would be transferred to the humanoid? in Guis, you use localplayer.backpack oh, I also forgot backpack :/
13,484/40,000 R$ |
|
|
| Report Abuse |
|
|
NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
|
| 10 Jun 2014 12:34 PM |
script.Parent.Touched:connect(function(hit) h = script.Parent:FindFirstChild("Humanoid") --idk, what this be "Player"? b = game.Lighting.Deagle:Clone() b.Parent = h.Parent:FindFirstChild("Backpack") --or would it be h.Parent.Backpack? end)
13,484/40,000 R$ |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2014 12:35 PM |
hooboy..
Deb = false script.Parent.Touched:connect(function(obj) if Deb then return end Deb = true p = game.Players:FindFirstChild(obj.Parent.Name) if not p then return end b = game.Lighting.Deagle:Clone() b.Parent = p.Backpack end) |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2014 12:36 PM |
woops
Deb = false script.Parent.Touched:connect(function(obj) if Deb then return end p = game.Players:FindFirstChild(obj.Parent.Name) if not p then return end Deb = true b = game.Lighting.Deagle:Clone() b.Parent = p.Backpack wait(2) Deb = false end) fixed |
|
|
| Report Abuse |
|
|
NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
|
| 10 Jun 2014 12:37 PM |
oh Thanks man :P I haven't scripted in awhile. You probably don't remember me do you?
13,484/40,000 R$ |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2014 12:39 PM |
I remember you, I don't forget much
the game "hitMan" |
|
|
| Report Abuse |
|
|
NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
|
| 10 Jun 2014 12:40 PM |
yup :P That's a bit of a lost project I'm afraid... I'm working on "Welcome to the town of robloxia" But trust me, it's a LOT different than the others. Plus, I'm just trying to earn some xtra r$ to complete my goal
13,484/40,000 R$ |
|
|
| Report Abuse |
|
|