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
 

color3 problems on GUI...

Previous Thread :: Next Thread 
hovertank7 is not online. hovertank7
Joined: 15 Nov 2008
Total Posts: 178
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 is not online. 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
hovertank7 is not online. hovertank7
Joined: 15 Nov 2008
Total Posts: 178
20 Aug 2014 04:09 AM
ohhhhhh, xD thanks..
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