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
 

Re: Steps to creating a custom chat GUI?

Previous Thread :: Next Thread 
Wrathsong is online. Wrathsong
Joined: 05 Jul 2012
Total Posts: 22393
20 Nov 2016 07:59 PM
I'm aware there's a wiki tutorial on this but it's outdated and there are newer methods you have to use to filter strings and whatever. I've never tackled this, so can anyone point me in the right direction here?


Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow my twitch: twitch.tv/austinrblx
Report Abuse
LotsOfViolence is not online. LotsOfViolence
Joined: 29 Jun 2011
Total Posts: 8375
20 Nov 2016 08:01 PM
gui={"label","part","gui};

while true do
chat=workspace.Chat;
keyboard.KeyDown:connect(function(letters)
table.insert(gui,Instance.new("TextLabel", gui);
end


Report Abuse
FiredDusk is not online. FiredDusk
Joined: 18 May 2012
Total Posts: 160
20 Nov 2016 08:02 PM
Hey, your videos helped me get to where I am today. I thank you for that too. But idk exactly what you are looking for but this video helped me out: https://www.youtube.com/watch?v=uoUfrm9ZUbI&list=LLd6NwFz8dX8mXihBXsrpRAQ&index=21&t=704s
Report Abuse
Wrathsong is online. Wrathsong
Joined: 05 Jul 2012
Total Posts: 22393
20 Nov 2016 08:14 PM
thx lotsofviolence you're the best

Hi, FiredDusk, I'm glad I could help you out :) Thanks for the link, but that video is over a year old so I'm not sure I trust it - I'll check it out though. New methods have been introduced since then, I think, that involve filtering the string on the server and I trust certain people here more than people on YouTube.

I don't need a full tutorial, just some advice I guess


Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow my twitch: twitch.tv/austinrblx
Report Abuse
Wrathsong is online. Wrathsong
Joined: 05 Jul 2012
Total Posts: 22393
20 Nov 2016 09:10 PM
idk

b


Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow my twitch: twitch.tv/austinrblx
Report Abuse
sharpchain1 is not online. sharpchain1
Joined: 05 Aug 2013
Total Posts: 1009
20 Nov 2016 09:17 PM
First you need to create the gui that you will use for the custom chat then get rid of the default roblox chat. After that make two stringValues in the workspace or wherever you want it one named PlayerName and the other Chat. Then make a localscript that every player will have. In the script program it so that when the Chat changes you will show what it says in the player's chat gui. And then make it so when a player says something in their chat gui it will change the value in the workspace. Also because the localscript is only looking for the chat value to change you will need to set the PlayerName value before you change the text in the Chat value otherwise when the localscript detects the change it might not always get what the PlayerName value is. this is only one way to do a custom chat Im sure there are other ways that might be more efficient but iv only done a custom chat like one time before and this is how I did it. I hope this helped and good luck


R$5,390
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
20 Nov 2016 10:24 PM
^ Don't do that.





Report Abuse
newcoolman2 is not online. newcoolman2
Joined: 01 Apr 2010
Total Posts: 2637
20 Nov 2016 10:39 PM
The basics I feel.
Obviously A LOT more optimization.

need:
TextBox
ScrollingFrame

----client
local function newChat()
remoteevent:FireServer(TextBox.Text)
end

local function scroll()
if(statement on positions)then
--scroll this amount
end
end

local function event(player,message)
local a=Instance.new("TextLabel")
a.Text=player..": "..message
a.Parent=playergui
end

TextBox.FocusLost:connect(newChat)
ScrollingFrame.ChildAdded:connect(scroll)
remoteevent.OnClientEvent:connect(event)

----server

function event(player,message)
for _,p in next,game.Player:GetPlayers() do
local str=chat:FilterStringAsync(message,player,p)
remoteevent:FireClient(p,message)
end
end
remoteevent.OnServerEvent:connect(event)



Report Abuse
Wrathsong is online. Wrathsong
Joined: 05 Jul 2012
Total Posts: 22393
21 Nov 2016 02:43 PM
mk


Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow my twitch: twitch.tv/austinrblx
Report Abuse
foreverpower is not online. foreverpower
Joined: 05 Feb 2011
Total Posts: 5578
21 Nov 2016 02:52 PM
@Wrathsong
What? Nothing would have changed since then, and the filtering method should be trivial to add. If you don't know how to, you shouldn't be trying to create something like this in the first place.
Report Abuse
Intended_Pun is not online. Intended_Pun
Joined: 10 Aug 2016
Total Posts: 4384
21 Nov 2016 02:53 PM
Oh my goodness just fire a remoteevent when somebody chats and then whenever they chat display it in everybody's GUI.
Report Abuse
Wrathsong is online. Wrathsong
Joined: 05 Jul 2012
Total Posts: 22393
21 Nov 2016 03:18 PM
https://www.youtube.com/playlist?list=PLatbVFCcsDB9JZE_1WQvmG0i4NrpNIybs

i didn't say i don't know how to use fe wtf


Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow my twitch: twitch.tv/austinrblx
Report Abuse
Wrathsong is online. Wrathsong
Joined: 05 Jul 2012
Total Posts: 22393
25 Nov 2016 02:58 PM
thx


Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow my twitch: twitch.tv/austinrblx
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