|
| 06 Oct 2014 01:48 PM |
if msg:lower():sub(1,3) == "gun " then local plrz = GetPlr(plr, msg:lower():sub(7)) for i, v in pairs(plrz) do coroutine.resume(coroutine.create(function() if v and v:findFirstChild("Backpack") then local m = game.Lighting.Machinegun local h = game.Lighting.Handgun local b = m:Clone() local z = h:Clone() b.Parent = v.Backpack z.Parent = v.Backpack end end)) end end
So I got this admin command and it does not seem to work, it most likely is a stupid mistake but can someone please fix |
|
|
| Report Abuse |
|
|
SLY3
|
  |
| Joined: 10 Jul 2008 |
| Total Posts: 1700 |
|
|
| 06 Oct 2014 02:07 PM |
| just manually clone the gun into your backpack with the admin's player script thing? |
|
|
| Report Abuse |
|
|
| |
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 06 Oct 2014 02:12 PM |
if msg:lower():sub(1,3) == "gun " then
You're comparing the first 3 characters of a string to a 4-character string. |
|
|
| Report Abuse |
|
|
|
| 06 Oct 2014 02:58 PM |
| I have no idea what is happening. Im using a bit of kohls for help, can someone just help? |
|
|
| Report Abuse |
|
|
| |
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 06 Oct 2014 03:23 PM |
if msg:lower():sub(1,3) == "gun" then local plrz = GetPlr(plr, msg:lower():sub(7)) -- Lol I have no idea what this bit is so I hope you do... for i, v in pairs(plrz) do coroutine.wrap(function() if v and v:findFirstChild("Backpack") then local m = game.Lighting.Machinegun local h = game.Lighting.Handgun local b = m:Clone() local z = h:Clone() b.Parent = v.Backpack z.Parent = v.Backpack end end)) end end
Might work better. |
|
|
| Report Abuse |
|
|