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 » Scripting Helpers
Home Search
 

Re: I'm stumped *PLEASE HELP*

Previous Thread :: Next Thread 
NeonRiver is not online. 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
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
10 Jun 2014 12:32 PM
in the ""s put Humanoid

b.Parent = hit.Parent
Report Abuse
NeonRiver is not online. 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 is not online. 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
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
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
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
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 is not online. 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
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
10 Jun 2014 12:39 PM
I remember you, I don't forget much

the game "hitMan"
Report Abuse
NeonRiver is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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