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
|
  |
| Joined: 19 Sep 2012 |
| Total Posts: 545 |
|
| |
|
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
|
  |
| 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
|
  |
| Joined: 24 May 2016 |
| Total Posts: 254 |
|
|
| 10 Oct 2016 10:28 PM |
| Use Color3.new("CRISMON RED") |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|