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: Torso color not changing?

Previous Thread :: Next Thread 
Extemporize is not online. Extemporize
Joined: 08 Jun 2015
Total Posts: 43
11 Jun 2015 03:11 PM
This script is in my game:
wait(10.0)
game.Players.PlayerAdded:connect(function(Player)
Player.CharacterAdded:connect(function(Character)
Character.Torso.BrickColor = BrickColor.new("Really red")
end)
end)

But it doesn't change the player's torso. What's wrong with it?
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
11 Jun 2015 03:14 PM
local Players = game:GetService("Players")
local TorsoColor = BrickColor.new("Really red")

Player.PlayerAdded:connect(function(Player)
Player.CharacterAdded:connect(function(Character)
local Torso = Character:WaitForChild("Torso")
Torso.BrickColor = TorsoColor
end)
end)


~Master bug finder twitch.tv/ROBLOX/c/4691695 14:07-14:25~
Report Abuse
Extemporize is not online. Extemporize
Joined: 08 Jun 2015
Total Posts: 43
11 Jun 2015 03:17 PM
But "Player" isn't defined. Didn't you mean Players?
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
11 Jun 2015 03:18 PM
I did yes.


~Master bug finder twitch.tv/ROBLOX/c/4691695 14:07-14:25~
Report Abuse
Extemporize is not online. Extemporize
Joined: 08 Jun 2015
Total Posts: 43
11 Jun 2015 03:22 PM
It is not working for me. I am placing it as a script (not local) in game.Workspace. I did not alter it, except for the variable mismatch.
Report Abuse
Extemporize is not online. Extemporize
Joined: 08 Jun 2015
Total Posts: 43
11 Jun 2015 03:27 PM
Bump
Report Abuse
Extemporize is not online. Extemporize
Joined: 08 Jun 2015
Total Posts: 43
11 Jun 2015 03:39 PM
Bumping again, sorry.
Report Abuse
SirIngenuity is not online. SirIngenuity
Joined: 06 Oct 2012
Total Posts: 3149
11 Jun 2015 04:04 PM
Not sure if this will work

local color = BrickColor.new("Really red")
local Players = game:GetService("Players")

Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
local BodyColors = character:WaitForChild("Body Colors")
BodyColors.TorsoColor = color
end)
end)
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