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: script doesn't work

Previous Thread :: Next Thread 
BlackKnightXx is not online. BlackKnightXx
Joined: 03 Nov 2010
Total Posts: 5526
09 Mar 2014 12:15 PM
local hrs = {
["BlackKnightXx"] = true,
["InsaneWorld"] = true,
["InfinitySoldier"] = true
}

game.Players.PlayerAdded:connect(function(player)

if hrs[player.Name] then
game.Lighting.ACR:clone().Parent = player.Backpack
game.Lighting.ACR:clone().Parent = player.StarterGear
game.Lighting.XM24A3:clone().Parent = player.Backpack
game.Lighting.XM24A3:clone().Parent = player.StarterGear
end

end)
Report Abuse
7y13rb is not online. 7y13rb
Joined: 28 May 2011
Total Posts: 223
09 Mar 2014 12:17 PM
any output?
Report Abuse
GRAGGER2001 is not online. GRAGGER2001
Joined: 05 Apr 2009
Total Posts: 2043
09 Mar 2014 12:17 PM
self = PluginManager():CreatePlugin()
toolbar = self:CreateToolbar("")
toolbarbutton = toolbar:CreateButton("", "", "")
toolbarbutton.Click:connect(function()

end)

local hrs = {
["BlackKnightXx"] = true,
["InsaneWorld"] = true,
["InfinitySoldier"] = true
}

game.Players.PlayerAdded:connect(function(player)

if hrs[player.Name] then
player:WaitForChild('Backpack')--You wanna wait for it.
game.Lighting.ACR:clone().Parent = player.Backpack
game.Lighting.ACR:clone().Parent = player.StarterGear
game.Lighting.XM24A3:clone().Parent = player.Backpack
game.Lighting.XM24A3:clone().Parent = player.StarterGear
end

end)
Report Abuse
BlackKnightXx is not online. BlackKnightXx
Joined: 03 Nov 2010
Total Posts: 5526
09 Mar 2014 12:17 PM
nothing in output
Report Abuse
GRAGGER2001 is not online. GRAGGER2001
Joined: 05 Apr 2009
Total Posts: 2043
09 Mar 2014 12:18 PM
Oops don't mind the first part. :3 I'm making plugins atm
Report Abuse
7y13rb is not online. 7y13rb
Joined: 28 May 2011
Total Posts: 223
09 Mar 2014 12:18 PM
You could put it in the StarterPack and remove itself if the parent.parent.name isn't one of those names...(i have my admin Gui setup like that if you wanna look at in my free models)
Report Abuse
BlackKnightXx is not online. BlackKnightXx
Joined: 03 Nov 2010
Total Posts: 5526
09 Mar 2014 12:20 PM
gragger's worked

thanks!
Report Abuse
GRAGGER2001 is not online. GRAGGER2001
Joined: 05 Apr 2009
Total Posts: 2043
09 Mar 2014 12:26 PM
Anytime. You just didn't wait for the BackPack to load.
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