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 » Scripters
Home Search
 

Re: How would i change the color of all player's head.

Previous Thread :: Next Thread 
RachelTays is not online. RachelTays
Joined: 02 Nov 2013
Total Posts: 398
02 Sep 2016 07:52 AM
My current script does not work:

#code
Head = game.Players.LocalPlayer.Character:WaitForChild("Head")
Head:Destroy()


thanks


Report Abuse
RachelTays is not online. RachelTays
Joined: 02 Nov 2013
Total Posts: 398
02 Sep 2016 07:53 AM
I meant to destroy the players head sorry.


Report Abuse
ClassicalGod is not online. ClassicalGod
Joined: 26 Sep 2008
Total Posts: 2842
02 Sep 2016 07:53 AM
change bodycolor bro
Report Abuse
KittehCatten is not online. KittehCatten
Joined: 22 Jul 2012
Total Posts: 509
02 Sep 2016 07:55 AM
That script would not work in a place with FilteringEnabled.
Create a server script with an "in pairs(game.Workspace:GetChildren())" for loop, and use game.Players:GetPlayerFromCharacter() to check each result. If the result is a player, you then call :Destroy() on their head.


Report Abuse
ClassicalGod is not online. ClassicalGod
Joined: 26 Sep 2008
Total Posts: 2842
02 Sep 2016 07:55 AM
oh to destroy, do this in server-script:

for i, v in pairs (game.Players:GetChildren()) do
v.Character:WaitForChild("Head"):Destroy()
end
Report Abuse
KittehCatten is not online. KittehCatten
Joined: 22 Jul 2012
Total Posts: 509
02 Sep 2016 07:56 AM
Classicals' is more efficient, ignore mine.


Report Abuse
RachelTays is not online. RachelTays
Joined: 02 Nov 2013
Total Posts: 398
02 Sep 2016 08:01 AM
I don't have filtering enabled.


Report Abuse
KittehCatten is not online. KittehCatten
Joined: 22 Jul 2012
Total Posts: 509
02 Sep 2016 08:03 AM
Do this stuff anyways.


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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