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: Making a chat gui

Previous Thread :: Next Thread 
Scriptural is not online. Scriptural
Joined: 06 Sep 2013
Total Posts: 2979
21 Jan 2014 10:02 PM
What are some tips?
I need things like, How to work out the position / size of the box based on the size of the text and such
Report Abuse
TheLuaWeaver is not online. TheLuaWeaver
Joined: 09 Feb 2010
Total Posts: 1504
21 Jan 2014 10:03 PM
You have a chat gui with code available right on ROBLOX. Just take a look at your friendly neighborhood CoreScripts!

~LuaWeaver; Programmer, gamer, developer.
Report Abuse
Scriptural is not online. Scriptural
Joined: 06 Sep 2013
Total Posts: 2979
21 Jan 2014 10:04 PM
I'm not sure how to look at the core scripts
Report Abuse
TheLuaWeaver is not online. TheLuaWeaver
Joined: 09 Feb 2010
Total Posts: 1504
21 Jan 2014 10:05 PM
I suggest starting up your player, then cloning everything in CoreGui into workspace. You can see them there.

~LuaWeaver; Programmer, gamer, developer.
Report Abuse
Scriptural is not online. Scriptural
Joined: 06 Sep 2013
Total Posts: 2979
21 Jan 2014 10:06 PM
Core scripts aren't stored in core gui anymore unless they changed it back
Report Abuse
TheLuaWeaver is not online. TheLuaWeaver
Joined: 09 Feb 2010
Total Posts: 1504
21 Jan 2014 10:06 PM
Oh, a note, do it with the Studio start player, not solo. I don't know about the differences, safer that way.

~LuaWeaver; Programmer, gamer, developer.
Report Abuse
Scriptural is not online. Scriptural
Joined: 06 Sep 2013
Total Posts: 2979
21 Jan 2014 10:10 PM
I was right
for i,v in pairs (Game.CoreGui:GetChildren()) do v.Parent = workspace end
No scripts in any of them qq
Report Abuse
secretidagent is not online. secretidagent
Joined: 07 Nov 2010
Total Posts: 1600
21 Jan 2014 10:11 PM
for i,v in pairs (Game.CoreGui:GetChildren()) do x=v:clone() x.Parent = Workspace end

The above works. I just did it in studio.
Report Abuse
Scriptural is not online. Scriptural
Joined: 06 Sep 2013
Total Posts: 2979
21 Jan 2014 10:13 PM
But I don't want the gui (And really the scripts probably won't help much)
I need help working out the size
Like if they say
"Hello my name is BLAH"
How do I know how big to make the chat box that holds that text?
Report Abuse
Scriptural is not online. Scriptural
Joined: 06 Sep 2013
Total Posts: 2979
21 Jan 2014 10:13 PM
"Chat box that holds that text"
Text box*
Report Abuse
123eee555 is not online. 123eee555
Joined: 15 Feb 2009
Total Posts: 199
21 Jan 2014 10:58 PM
Perhaps have the script measure the amount of characters in the text, then multiply the width by said amount, don't ask me for polished code, I cant do the lua well :l

DatChatGui = Instance.new("TextBox")
DatChatGui.Text = ChattedMessage
DatChatGui.Size = UDim2.new(0,#ChattedMessage*7,0,20)
DatChatGui.Parent = WhateverYourChatHolderIs
Report Abuse
Scriptural is not online. Scriptural
Joined: 06 Sep 2013
Total Posts: 2979
22 Jan 2014 12:19 PM
That sounds like a good idea but, it wouldn't work
Not all characters are the same size
_ !
For example
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