|
| 22 Jun 2012 05:04 PM |
local player = game.Players.LocalPlayer local menu = script.Parent.Parent local Class1 = menu.Assault
function clicked() game.Lighting("M1Thompson"):Clone().Parent = player.Backpack game.Lighting["Frag Grenade"]:Clone().Parent = player.Backpack game.Lighting("M1911"):Clone().Parent = player.Backpack g = menu:GetChildren() for i = 1, #g do if g[i].ClassName == "TextButton" then g[i].Visible = false end end end
Class1.MouseButton1Click:connect(clicked) output says nothing,also this is in a local script inside a textbutton |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Jun 2012 05:44 PM |
| BUMP why doesnt anyone replie |
|
|
| Report Abuse |
|
|
| |
|
swmaniac
|
  |
| Joined: 28 Jun 2008 |
| Total Posts: 15773 |
|
|
| 22 Jun 2012 07:41 PM |
| game.Lighting["M1911"]:Clone().Parent = player.Backpack |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2012 07:50 PM |
| still doesnt work after i changed that |
|
|
| Report Abuse |
|
|
swmaniac
|
  |
| Joined: 28 Jun 2008 |
| Total Posts: 15773 |
|
|
| 22 Jun 2012 07:51 PM |
| game.Lighting["M1Thompson"]:Clone().Parent = player.Backpack |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 22 Jun 2012 08:34 PM |
function clicked() pcall(function() game.Lighting["M1Thompson"]:Clone().Parent = player.Backpack game.Lighting["Frag Grenade"]:Clone().Parent = player.Backpack game.Lighting["M1911"]:Clone().Parent = player.Backpack end) g = menu:GetChildren() for i = 1, #g do if g[i].ClassName == "TextButton" then g[i].Visible = false end end end
Idk, I just put a pcall just in case the player isn't loaded or something.
|
|
|
| Report Abuse |
|
|