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
 

Color

Previous Thread :: Next Thread 
Maplen is not online. Maplen
Joined: 19 Sep 2012
Total Posts: 545
10 Oct 2016 09:48 PM
local plr = script.Parent.Parent.Parent.Parent.Parent.Parent
local Buttons = script.Parent:GetChildren()
for i,v in pairs(Buttons) do
if v.ClassName == "TextButton" then
v.MouseButton1Click:connect(function()
workspace.Character_Model["Body Colors"]= BrickColor.new('v.Color.Value') -- Is a BrickColor Value
end)
end
end

output: 'Color3, expected got BrickColor'

and then when i change BrickColor to Color3, i get the same error.
Report Abuse
Maplen is not online. Maplen
Joined: 19 Sep 2012
Total Posts: 545
10 Oct 2016 10:12 PM
b1
Report Abuse
Devnxius is not online. Devnxius
Joined: 24 May 2016
Total Posts: 254
10 Oct 2016 10:23 PM
The Color has to be a string. Like : "Crismon" or "Earth Green" it cant be a var
Report Abuse
Maplen is not online. Maplen
Joined: 19 Sep 2012
Total Posts: 545
10 Oct 2016 10:26 PM
output 'Body Colors is not a valid member of Model'

But I checked and there are Body Colors in the Model that im changing.
Any idea?
Report Abuse
Devnxius is not online. Devnxius
Joined: 24 May 2016
Total Posts: 254
10 Oct 2016 10:28 PM
Use Color3.new("CRISMON RED")
Report Abuse
Maplen is not online. Maplen
Joined: 19 Sep 2012
Total Posts: 545
10 Oct 2016 10:29 PM
@Dev
I already fixed that issue, and im getting a new error saying that Body Colors isnt a child of Model
Report Abuse
Cytheur is not online. Cytheur
Joined: 12 Aug 2014
Total Posts: 7328
10 Oct 2016 10:39 PM
Is this in a local script? If so save yourself the pain of that player variables, and use

local player = game.Players.LocalPlayer


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