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: Command Help

Previous Thread :: Next Thread 
theGOLDENidol is not online. theGOLDENidol
Joined: 11 Apr 2011
Total Posts: 787
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 is not online. 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
theGOLDENidol is not online. theGOLDENidol
Joined: 11 Apr 2011
Total Posts: 787
06 Oct 2014 02:10 PM
Yep, i guess..?
Report Abuse
RoflBread is not online. 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
theGOLDENidol is not online. theGOLDENidol
Joined: 11 Apr 2011
Total Posts: 787
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
theGOLDENidol is not online. theGOLDENidol
Joined: 11 Apr 2011
Total Posts: 787
06 Oct 2014 03:19 PM
bump
Report Abuse
eLunate is not online. 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
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