|
| 03 Jan 2016 03:45 AM |
If i made a chat system how would i make it so the lines adjust downwards? like if someone typed a really long msg it would adjust to that :|
|
|
|
| Report Abuse |
|
|
|
| 03 Jan 2016 03:47 AM |
TextScaled = true
If money grew on trees... It would be as valuable as leaves. | Twitter: @TwisterRBLX
|
|
|
| Report Abuse |
|
|
|
| 03 Jan 2016 03:47 AM |
Or WordWrap = true --or something... it's about wordwrap you'll see it :P
If money grew on trees... It would be as valuable as leaves. | Twitter: @TwisterRBLX
|
|
|
| Report Abuse |
|
|
|
| 03 Jan 2016 03:48 AM |
nonoonono ok you know how berezaa's chat is like if its too long it scales down the side of the actual box instead of the chat..,
|
|
|
| Report Abuse |
|
|
|
| 03 Jan 2016 03:49 AM |
| @twister leaves are valuable :3 xD |
|
|
| Report Abuse |
|
|
|
| 03 Jan 2016 03:49 AM |
Not sure then? TaxtScaled seems to fit your description
If money grew on trees... It would be as valuable as leaves. | Twitter: @TwisterRBLX
|
|
|
| Report Abuse |
|
|
|
| 03 Jan 2016 03:51 AM |
That how my other chat worked xd
|
|
|
| Report Abuse |
|
|
|
| 03 Jan 2016 03:54 AM |
lol i said 'Taxt' Text*
If money grew on trees... It would be as valuable as leaves. | Twitter: @TwisterRBLX
|
|
|
| Report Abuse |
|
|
| |
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 03 Jan 2016 03:55 AM |
Whatever you do don't use the TextWrapped property. It is completely useless in this situation. What you want to do is add newline characters "\n" where it is to wrap.
|
|
|
| Report Abuse |
|
|
|
| 03 Jan 2016 03:58 AM |
Tyvm :P Plus if i was going to make multiple frames such as a name followed by a rank in a color or an image like
[BETA](BlueColor)Player.Name(Red) something like that? would i do multiple frames then make the size like rank.Size = UDim2.new(0,rank.TextBounds.X+12,0,10) or huhuuhuhu?
|
|
|
| Report Abuse |
|
|
|
| 03 Jan 2016 04:06 AM |
ms1:TweenPosition(UDim2.new(0, ms.TextBounds.X, 0, ms.Position.Y.Offset), "Out", "Sine", 0.2, true) ms is the players name and ms1 is the players msg and it doesn't want to go to the end where is supposed to be :(
|
|
|
| Report Abuse |
|
|
AkaLua
|
  |
| Joined: 27 Jul 2012 |
| Total Posts: 526 |
|
|
| 03 Jan 2016 04:28 AM |
Do it on number of characters? If you get too many characters, go to the start of the previous word and add "/n", I think.
-____________________________- |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
AkaLua
|
  |
| Joined: 27 Jul 2012 |
| Total Posts: 526 |
|
|
| 04 Jan 2016 10:06 AM |
Alright fine. I gave it some thought here you are. For every message from a character, have a variable called score. Check each letter and if there is a lower case character add 1 to the score, a capital add 1.5, a punctuation mark add 0.5. If the score is greater than a certain value (you'll have to change this to match the size of your chat) then insert a "n/" or whatever it is.
-____________________________- |
|
|
| Report Abuse |
|
|
|
| 04 Jan 2016 10:14 AM |
i made a chat script recently, what i did was like^^^ (didnt thes this script)
--message for example = "Just a message", (has a lenght of 14)
local lenght = #string.sub(message, 1) local max = 10
if lenght > max then --textbox 1 textbox1.Text = string.sub(message, 1, max) --new texbox textbox2.Text = string.sub(message, max+1) elseif lengt <= max then textbox1.Text = string.sub(message, 1) end
|
|
|
| Report Abuse |
|
|
|
| 04 Jan 2016 12:13 PM |
You might want to add TextScaled
|
|
|
| Report Abuse |
|
|
AkaLua
|
  |
| Joined: 27 Jul 2012 |
| Total Posts: 526 |
|
|
| 04 Jan 2016 12:30 PM |
Thatd just make the text smaller, leading to impossibly small text.
-____________________________- |
|
|
| Report Abuse |
|
|