|
| 20 Aug 2014 04:04 AM |
local player = game.Players.LocalPlayer; local items = player.Items local chil = items:GetChildren() local num = 0 local y = 0.1
for i, v in pairs(chil) do a = Instance.new("TextButton", script.Parent) a.BackgroundColor3 = Color3.new(90,61,37) a.Position = UDim2.new(num, 3, y, 3) a.Size = UDim2.new(0.2, 0, 0.2, 0) a.Text = v.Name.."(x"..(v.Value)..")" num = num + 0.2 end
--the text buttons color is white even tho i told it to change?? |
|
|
| Report Abuse |
|
DataStore
|
  |
| Joined: 07 Feb 2012 |
| Total Posts: 8540 |
|
|
| 20 Aug 2014 04:06 AM |
Perhaps you didn't tell it to change sternly enough?
All joking aside, Color3 values are between 0 and 1, not 0 and 255. Divide the R, G, and B values by 255.
Color3.new(90/255, 61/255, 37/255) |
|
|
| Report Abuse |
|
| |