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: Lighting

Previous Thread :: Next Thread 
KEVEKEV77 is not online. KEVEKEV77
Joined: 12 Mar 2009
Total Posts: 6961
29 Oct 2013 07:55 PM
while wait(5) do --makes a loop
c = game.Players:GetChildren() -- defines 'c' as all the players in the game
for i =1,#c do -- for every player do...
if c[i].Backpack:FindFirstChild("Rocket Launcher") == nil -- If rocket launcher = nil
and debounce == false then -- If you get as many as want then
debounce = true -- false
-- if there is no sword in the backpack then
game.Lighting:FindFirstChild("Rocket Launcher"):Clone().Parent = c[i].Backpack -- put a Rocket Launcher (I hope) into the backpack
else break
end
end
end -- ENDS


Thanks!


Doesent work D: It did work, but gave me 2 rocket launchers, so i added debounce system and it broke.
Report Abuse
KEVEKEV77 is not online. KEVEKEV77
Joined: 12 Mar 2009
Total Posts: 6961
29 Oct 2013 08:06 PM
Cmon! Help me with this!
Report Abuse
KEVEKEV77 is not online. KEVEKEV77
Joined: 12 Mar 2009
Total Posts: 6961
29 Oct 2013 08:18 PM
Help!
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
29 Oct 2013 08:20 PM
You never added "debounce = false"
Report Abuse
KEVEKEV77 is not online. KEVEKEV77
Joined: 12 Mar 2009
Total Posts: 6961
29 Oct 2013 08:29 PM
Stil does not work. D:


while wait(5) do --makes a loop
c = game.Players:GetChildren() -- defines 'c' as all the players in the game
for i =1,#c do -- for every player do...
debounce = false
if c[i].Backpack:FindFirstChild("Rocket Launcher") == nil -- If rocket launcher = nil
and debounce == false then -- If you get as many as want then
debounce = true -- false
-- if there is no sword in the backpack then
game.Lighting:FindFirstChild("Rocket Launcher"):Clone().Parent = c[i].Backpack -- put a Rocket Launcher (I hope) into the backpack
else break
end
end
end -- ENDS
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
29 Oct 2013 08:30 PM
You don't know how to use debounce correctly -.-
Report Abuse
KEVEKEV77 is not online. KEVEKEV77
Joined: 12 Mar 2009
Total Posts: 6961
29 Oct 2013 08:33 PM
WAIT! It works! I spelled it "beboune" in real script :D.
Thanks a lot!
Report Abuse
18cwatford is not online. 18cwatford
Joined: 08 Oct 2009
Total Posts: 5410
29 Oct 2013 08:44 PM
"WAIT! It works! I spelled it "beboune" in real script :D.
Thanks a lot!"

No... okay nevermind just do that ok goodbye.
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