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: For some reason brickcolor isnt working

Previous Thread :: Next Thread 
fire243 is not online. fire243
Joined: 04 Apr 2010
Total Posts: 6532
30 Nov 2013 10:27 PM
for i, player in ipairs(game.Players:GetChildren()) do
local head = player.Character:findFirstChild("Head")
head.face:remove()
head.BrickColor=BrickColor.new("Dark green")
end

little help?
Report Abuse
fire243 is not online. fire243
Joined: 04 Apr 2010
Total Posts: 6532
30 Nov 2013 10:28 PM
bump
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
30 Nov 2013 10:28 PM
ipairs only iterates through number indexes I believe. Make it pairs.
Report Abuse
fire243 is not online. fire243
Joined: 04 Apr 2010
Total Posts: 6532
30 Nov 2013 10:28 PM
okay
Report Abuse
Cr4shImp4ct is not online. Cr4shImp4ct
Joined: 23 Nov 2013
Total Posts: 107
30 Nov 2013 10:28 PM
There was absolutely no reason to bump. It was second on the Forum.
Report Abuse
fire243 is not online. fire243
Joined: 04 Apr 2010
Total Posts: 6532
30 Nov 2013 10:29 PM
nothing changed
Report Abuse
fire243 is not online. fire243
Joined: 04 Apr 2010
Total Posts: 6532
30 Nov 2013 10:30 PM
owell +1 post
Report Abuse
fire243 is not online. fire243
Joined: 04 Apr 2010
Total Posts: 6532
30 Nov 2013 10:34 PM
help
Report Abuse
fire243 is not online. fire243
Joined: 04 Apr 2010
Total Posts: 6532
01 Dec 2013 02:43 PM
bump
Report Abuse
fire243 is not online. fire243
Joined: 04 Apr 2010
Total Posts: 6532
01 Dec 2013 02:45 PM
...
Report Abuse
Cr4shImp4ct is not online. Cr4shImp4ct
Joined: 23 Nov 2013
Total Posts: 107
01 Dec 2013 02:45 PM
for _, player in pairs(game:GetService('Players'):GetPlayers()) do
if (player.Character) and (player.Character:FindFirstChild('Head')) then
player.Character.Head.BrickColor = BrickColor.new('Dark green')

if (player.Character.Head:FindFirstChild('face')) then
player.Character.Head.face:Destroy()
end end end
Report Abuse
Cr4shImp4ct is not online. Cr4shImp4ct
Joined: 23 Nov 2013
Total Posts: 107
01 Dec 2013 02:46 PM
Seriously, stop bumping as frequently as you have been.
Your impatience makes me wonder if you even *deserve* help.
Report Abuse
fire243 is not online. fire243
Joined: 04 Apr 2010
Total Posts: 6532
01 Dec 2013 02:48 PM
still didnt work..
Report Abuse
fire243 is not online. fire243
Joined: 04 Apr 2010
Total Posts: 6532
01 Dec 2013 03:05 PM
:c
Report Abuse
Cr4shImp4ct is not online. Cr4shImp4ct
Joined: 23 Nov 2013
Total Posts: 107
01 Dec 2013 03:13 PM
Thank you for the less-frequent bumps. I truly appreciate it.

As for the script, I haven't a clue why it isn't working.
Is there any output?
Report Abuse
fire243 is not online. fire243
Joined: 04 Apr 2010
Total Posts: 6532
01 Dec 2013 03:29 PM
Output:

logging probability 0.31076998199408
not logging
Report Abuse
Cr4shImp4ct is not online. Cr4shImp4ct
Joined: 23 Nov 2013
Total Posts: 107
01 Dec 2013 03:56 PM
So there was no error.

It worked on Single Player for me. There *is* no reason why it shouldn't have worked.
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