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: New Tool after opening tool?

Previous Thread :: Next Thread 
Darkboo77 is not online. Darkboo77
Joined: 26 Aug 2009
Total Posts: 94
23 Apr 2014 06:42 PM
Hey, I'm not very familiar with scripting, but I am very familiar with building.

Anyways, I made a tool, and I want the player to gain ANOTHER tool from Lighting when he/she opens the tool.

Im familiar with Studio, so I think I will be able to understand.

Thanks!
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
23 Apr 2014 06:48 PM
Just clone it from Lighting into the player backpack when the .Equipped fires.
Report Abuse
COOLDUDE11OO is not online. COOLDUDE11OO
Joined: 21 Aug 2011
Total Posts: 5115
23 Apr 2014 06:53 PM
Parent the tool to StarterPack

or..

tool = game.Lighting:FindFirstChild("Exact Tool Name Here")

for i,v in pairs(game.Players:GetChildren()) do
tool:Clone().Parent = v.Backpack
tool:Clone().Parent = v.StarterGear
end
Report Abuse
Darkboo77 is not online. Darkboo77
Joined: 26 Aug 2009
Total Posts: 94
23 Apr 2014 06:57 PM
Thanks for helping! But where would I put that script in?

Sorry for asking a lot of questions.
Report Abuse
COOLDUDE11OO is not online. COOLDUDE11OO
Joined: 21 Aug 2011
Total Posts: 5115
23 Apr 2014 07:02 PM
Well you could use it as a function and call it.

Like...

function dostuff()
--put what I posted here
end

--And, you can call the function in the script

dostuff() --this would call it
Report Abuse
Darkboo77 is not online. Darkboo77
Joined: 26 Aug 2009
Total Posts: 94
23 Apr 2014 07:05 PM
Well, ill try and figure it out.

Thanks so much for your help!
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