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
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
| |
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 29 Oct 2013 08:20 PM |
| You never added "debounce = false" |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|