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 » Scripters
Home Search
 

Question about roblox's chat system

Previous Thread :: Next Thread 
spinywind is online. spinywind
Joined: 26 Jan 2012
Total Posts: 3580
12 Sep 2017 03:06 AM
So I was looking through the modules and almost found what I was looking for but its really difficult because of how many modules they use and the methods they use. Im basically trying to make my chat so the the text label is as big as the amount of characters in the label string. So like

Note: [] is the text box

Instead of

[spiny]wind

This is what im looking for:

[spinywind]


Report Abuse
spinywind is online. spinywind
Joined: 26 Jan 2012
Total Posts: 3580
13 Sep 2017 10:41 AM
Is it just a formula?


Report Abuse
Shining_Diamando is not online. Shining_Diamando
Joined: 11 Oct 2014
Total Posts: 460
13 Sep 2017 11:03 AM
Elaborate(?)
Report Abuse
TeamAvolitionleader is not online. TeamAvolitionleader
Joined: 22 Feb 2015
Total Posts: 73
13 Sep 2017 11:05 AM
All you really have to do is find the limit and change it to math.huge


~TeamAv / Sigma
Report Abuse
spinywind is online. spinywind
Joined: 26 Jan 2012
Total Posts: 3580
13 Sep 2017 11:05 AM
trying to make a text label the size of the actual text.


Report Abuse
spinywind is online. spinywind
Joined: 26 Jan 2012
Total Posts: 3580
13 Sep 2017 11:06 AM
so players with longer names wont go over the text label border.


Report Abuse
Shining_Diamando is not online. Shining_Diamando
Joined: 11 Oct 2014
Total Posts: 460
13 Sep 2017 11:07 AM
Oh.
TextService has a neat method for that.
Report Abuse
spinywind is online. spinywind
Joined: 26 Jan 2012
Total Posts: 3580
13 Sep 2017 12:23 PM
Oh really? Thanks, never knew that.


Report Abuse
spinywind is online. spinywind
Joined: 26 Jan 2012
Total Posts: 3580
13 Sep 2017 12:24 PM
Is there a wiki link by chance?


Report Abuse
WatermelonMan4676 is not online. WatermelonMan4676
Joined: 20 Jan 2014
Total Posts: 5516
13 Sep 2017 12:29 PM
goo.gl/eb8c1K
Report Abuse
spinywind is online. spinywind
Joined: 26 Jan 2012
Total Posts: 3580
13 Sep 2017 12:30 PM
Im trying to find what im looking for, idk the specific name of the function or anything. I went on text service.


Report Abuse
WatermelonMan4676 is not online. WatermelonMan4676
Joined: 20 Jan 2014
Total Posts: 5516
13 Sep 2017 12:31 PM
theres only 2 functions in textservice, ill give you a hint. it's the one that has 'size' in it.
Report Abuse
spinywind is online. spinywind
Joined: 26 Jan 2012
Total Posts: 3580
13 Sep 2017 12:33 PM
if your talking about tweening then no thats not what i need.


Report Abuse
spinywind is online. spinywind
Joined: 26 Jan 2012
Total Posts: 3580
13 Sep 2017 12:36 PM
so u guys know about the roblox chat system? how do they change the size of the players name text label based on the amount of strings/how long the players name is
is there a formula for it using the amount of characters in the string there are?

thats what i need


Report Abuse
WatermelonMan4676 is not online. WatermelonMan4676
Joined: 20 Jan 2014
Total Posts: 5516
13 Sep 2017 12:37 PM
your not the brightest are you?

http://wiki.roblox.com/index.php?title=API:Class/TextService/GetTextSize
Report Abuse
spinywind is online. spinywind
Joined: 26 Jan 2012
Total Posts: 3580
13 Sep 2017 12:42 PM
Oops, i was looking at text label.


Report Abuse
spinywind is online. spinywind
Joined: 26 Jan 2012
Total Posts: 3580
13 Sep 2017 01:23 PM
tried this:

Size = script.Parent.Size
x = game:GetService("TextService")
y = x:GetTextSize(script.Parent.Text, script.Parent.TextSize, Vector2.new(Size.X.Scale,Size.X.Offset,Size.Y.Scale,Size.Y.Offset))
print(y)

got this error:

Unable to cast Vector2 to token


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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