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 font

Previous Thread :: Next Thread 
Fearlessblocky202 is not online. Fearlessblocky202
Joined: 16 Jun 2010
Total Posts: 391
24 Mar 2014 03:11 PM
How would I do this without errors:
local font = Instance.new("StringValue", v)
font.Name = "Font"
if child.Name == "Fearlessblocky202" then
font.Value = "SourceSansBold"
else
font.Value = "Arial"
end
And then later on..
t1.TextColor3 = t2.TextColor3
t1.Text = t2.Text
t1.Font = t2.Font.Text
t2.TextColor3 = t3.TextColor3
t2.Text = t3.Text
t2.Font = t3.Font.Text
And so on until:
t6.TextColor3 = col.Value
t6.Text = v.Value
t6.Font = font.Value.Text

I checked the parents and everything like that is fine. The only problem I seem to be having is that the fonts don't change. If I remove the editing of the font, the script works perfectly fine.
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
24 Mar 2014 03:15 PM
Remove all of the '.Text's from the '.Font's.
Report Abuse
Fearlessblocky202 is not online. Fearlessblocky202
Joined: 16 Jun 2010
Total Posts: 391
24 Mar 2014 03:15 PM
I tried that too
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
24 Mar 2014 03:25 PM
t1.TextColor3 = t2.TextColor3
t1.Text = t2.Text
t1.Font = t2.Font
t2.TextColor3 = t3.TextColor3
t2.Text = t3.Text
t2.Font = t3.Font

t6.TextColor3 = col.Value
t6.Text = v.Value
t6.Font = font.Value

Also remove them from '.Value'.
Report Abuse
CounterCrysis is not online. CounterCrysis
Joined: 08 Oct 2007
Total Posts: 832
24 Mar 2014 03:28 PM
Do you mean to be checking for "Fearlessblocky202" as a child? It would be a bit odd to store a player's model within a script.
Report Abuse
Fearlessblocky202 is not online. Fearlessblocky202
Joined: 16 Jun 2010
Total Posts: 391
24 Mar 2014 08:08 PM
Nevermind, I found my mistake just now.
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