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
 

Is there a more efficient way to do this?

Previous Thread :: Next Thread 
Jazzyforcefield is not online. Jazzyforcefield
Joined: 12 Jan 2010
Total Posts: 18838
27 Apr 2014 07:42 PM
game.Players.PlayerAdded:connect(function(Player)
Player.CharacterAdded:connect(function(char)
repeat wait() until char:FindFirstChild("Body Colors")
char["Body Colors"].HeadColor = BrickColor.new(1001)
char["Body Colors"].RightArmColor = BrickColor.new(1001)
char["Body Colors"].LeftArmColor = BrickColor.new(1001)
char["Body Colors"].RightLegColor = BrickColor.new(1001)
char["Body Colors"].LeftLegColor = BrickColor.new(1001)
char["Body Colors"].TorsoColor = BrickColor.new(1001)
a0 = Instance.new("CharacterMesh")
a0.OverlayTextureId = 68241528
a0.Parent = char
a0.MeshId = 68241543
a0.BodyPart = "LeftArm"
a1 = Instance.new("CharacterMesh")
a1.OverlayTextureId = 68241528
a1.Parent = char
a1.MeshId = 68241558
a1.BodyPart = "LeftLeg"
a2 = Instance.new("CharacterMesh")
a2.OverlayTextureId = 68241528
a2.Parent = char
a2.MeshId = 68241695
a2.BodyPart = "Torso"
a4 = Instance.new("CharacterMesh")
a4.OverlayTextureId = 68241528
a4.Parent = char
a4.MeshId = 68241677
a4.BodyPart = "RightLeg"
a5 = Instance.new("CharacterMesh")
a5.OverlayTextureId = 68241528
a5.Parent = char
a5.MeshId = 68241658
a5.BodyPart = "RightArm"
end)
end)


~To see or not to see, that is the question
Report Abuse
Jazzyforcefield is not online. Jazzyforcefield
Joined: 12 Jan 2010
Total Posts: 18838
27 Apr 2014 07:52 PM
bump


~To see or not to see, that is the question
Report Abuse
Jazzyforcefield is not online. Jazzyforcefield
Joined: 12 Jan 2010
Total Posts: 18838
27 Apr 2014 08:17 PM
Ok, I'll figure it out myself.


~To see or not to see, that is the question
Report Abuse
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
27 Apr 2014 08:23 PM
local parts = {LeftLeg=MeshIdHere,RightLeg=MeshIdHere2,Torso=MeshIdHere3,LeftArm=MeshIdHere4,RightArm=MeshIdHere5}

game.Players.PlayerAdded:connect(function(Player)
Player.CharacterAdded:connect(function(char)
repeat wait() until char:FindFirstChild("Body Colors")
char["Body Colors"].HeadColor = BrickColor.new(1001)
for i, v in pairs(parts) do
char["Body Colors"][i.."Color"] = BrickColor.new(1001)
local a0 = Instance.new("CharacterMesh")
a0.OverlayTextureId = 68241528
a0.Parent = char
a0.MeshId = v
a0.BodyPart = i
end
end)
end)

Crazy right?
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