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
|
  |
| Joined: 26 Jan 2012 |
| Total Posts: 3580 |
|
| |
|
| |
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 13 Sep 2017 11:07 AM |
Oh. TextService has a neat method for that. |
|
|
| Report Abuse |
|
|
spinywind
|
  |
| Joined: 26 Jan 2012 |
| Total Posts: 3580 |
|
|
| 13 Sep 2017 12:23 PM |
Oh really? Thanks, never knew that.
|
|
|
| Report Abuse |
|
|
spinywind
|
  |
| Joined: 26 Jan 2012 |
| Total Posts: 3580 |
|
|
| 13 Sep 2017 12:24 PM |
Is there a wiki link by chance?
|
|
|
| Report Abuse |
|
|
| |
|
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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| Joined: 26 Jan 2012 |
| Total Posts: 3580 |
|
|
| 13 Sep 2017 12:42 PM |
Oops, i was looking at text label.
|
|
|
| Report Abuse |
|
|
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 |
|
|