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
 

Re: Changing Color and Size of TextButton and fire??

Previous Thread :: Next Thread 
cyclone3260 is not online. cyclone3260
Joined: 23 Aug 2010
Total Posts: 1038
15 Sep 2012 10:59 PM

How do you change both of them with scripting?



Is is with Color2.new? Or... Color.new??

Is it with Vector3.new or Vector2.new Or what?!
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
15 Sep 2012 11:01 PM
Color is Color3.new

Size UDim2.new
Report Abuse
Strieken is not online. Strieken
Joined: 17 Jun 2011
Total Posts: 3058
15 Sep 2012 11:01 PM
Do you want to change the TextButton's TextColor or the background color?

You need to use Color3 and Vector3 for Size and Color.

For the fire, you need to use Color3.
Report Abuse
Strieken is not online. Strieken
Joined: 17 Jun 2011
Total Posts: 3058
15 Sep 2012 11:02 PM
Latepost.

Also, I wasn't thinking correctly, the guy ahead of me is correct, UDim2 is what you use for changing size/position of GUI's.
Report Abuse
adark is not online. adark
Joined: 13 Jan 2008
Total Posts: 6412
15 Sep 2012 11:02 PM
Fire uses BrickColor.new() for color and its size is determined by its "Heat" and "Size" values, which are both integers.

All GUI elements use Color3.new() for Color, and their size is changed with UDim2.new()
Report Abuse
cyclone3260 is not online. cyclone3260
Joined: 23 Aug 2010
Total Posts: 1038
15 Sep 2012 11:05 PM
Soo....

TextButton.Size = UDim2(0,0;0,0)???
Report Abuse
TheLuaTester is not online. TheLuaTester
Joined: 24 May 2012
Total Posts: 168
15 Sep 2012 11:08 PM
Well yes, but call me a Stickler, but change your semi-collin to a coma ;D. But yes, that would create a default textbutton with a size of...nothing! :D

if CookieMonster.pro == true
then do
repeat wait()
KirbyDance
until CookieMonster.pro = false --In other words, KirbyDance forever!

-Tester-
Report Abuse
cyclone3260 is not online. cyclone3260
Joined: 23 Aug 2010
Total Posts: 1038
15 Sep 2012 11:20 PM
Mmk well can you tell me why this script isn't working? :o


me = cyclone3260
local a = Instance.new("ScreenGui",game.Players.cyclone3260.PlayerGui)
local b = Instance.new("TextButton",game.Players.cyclone3260.PlayerGui.a)
b.Size = UDim2(0,100,0,100)
b.Style = "RobloxButtonDefault"

Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
15 Sep 2012 11:22 PM
me = "cyclone3260"
local a = Instance.new("ScreenGui",me.PlayerGui)
local b = Instance.new("TextButton",a)
b.Size = UDim2.new(0,100,0,100)
b.Style = "RobloxButtonDefault"
Report Abuse
cyclone3260 is not online. cyclone3260
Joined: 23 Aug 2010
Total Posts: 1038
15 Sep 2012 11:36 PM
I did


me = "cyclone3260"
local a = Instance.new("ScreenGui",me.PlayerGui)
local b = Instance.new("TextButton",a)
b.Size = UDim2.new(0,1000,0,1000)
b.Style = "RobloxButtonDefault"



There was no errors.. But I didn't see it :\
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
15 Sep 2012 11:38 PM
Also, fire can use Color and SecondaryColor
Report Abuse
cyclone3260 is not online. cyclone3260
Joined: 23 Aug 2010
Total Posts: 1038
16 Sep 2012 03:08 AM
^^ needs an answer plS
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