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: Disabling chat gui but not chat bar

Previous Thread :: Next Thread 
EncodedLua is not online. EncodedLua
Joined: 02 May 2012
Total Posts: 1555
30 Nov 2014 07:06 PM
How would I disable the core chat gui without disabling the chat bar? game.StarterGui:SetCoreGuiEnabled("Chat", false) disables both, that's why I'm asking.


--forumPost:disconnect()
Report Abuse
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
30 Nov 2014 07:07 PM
I do not believe you can.
Report Abuse
EncodedLua is not online. EncodedLua
Joined: 02 May 2012
Total Posts: 1555
30 Nov 2014 07:07 PM
How did loleris do it then?


--forumPost:disconnect()
Report Abuse
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
30 Nov 2014 07:08 PM
You mean a pseudo chat gui?
Report Abuse
ChuckXZ is not online. ChuckXZ
Joined: 26 Jan 2012
Total Posts: 2996
30 Nov 2014 07:10 PM
idk


Chucky Incorporated
Report Abuse
EncodedLua is not online. EncodedLua
Joined: 02 May 2012
Total Posts: 1555
30 Nov 2014 07:10 PM
You mean a custom gui? I know. I made a custom chat gui but it also removed the chat bar. I had to make a new chat bar but since you can't check for slash presses, you use c. Is anyone able to figure out how to ONLY remove the chat gui?


--forumPost:disconnect()
Report Abuse
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
30 Nov 2014 07:12 PM
You can detect slash presses though. I don't think you can selectively remove parts of a CoreGui.
Report Abuse
EncodedLua is not online. EncodedLua
Joined: 02 May 2012
Total Posts: 1555
30 Nov 2014 07:13 PM
How do you do it then? And don't say use an event because it is a reserved character and roblox doesn't fire that KeyDown or KeyPressed event when you press /.
Report Abuse
EncodedLua is not online. EncodedLua
Joined: 02 May 2012
Total Posts: 1555
30 Nov 2014 07:19 PM
Cmon... Someone has to know this...


--forumPost:disconnect()
Report Abuse
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
30 Nov 2014 07:20 PM
It does fire slash with KeyDown (at least on play solo in 'edit').

This is a LS I made, but it isn't the full thing:

local player = game.Players.LocalPlayer
repeat wait() until player.Character

local mouse = player:GetMouse()
local character = player.Character

local box = script.Parent
local defaultmsg = "Press '/' to begin chatting, or click this box."

local Time = workspace.TimeScript
local focus = Enum.UserInputType.MouseButton1

function addMessage(text, priv, color)
if text == "" then return end
local storage = game.ReplicatedStorage
local holder = storage.Messages
local lines = holder:GetChildren()
local line = storage.LineTemplate:Clone()
local pos = (0.02 * #lines) - 0.02
line.Name = "Line" .. (#lines + 1)
local sec = Time.Seconds.Value
local m = Time.Minutes.Value
local hr = Time.Hours.Value
if priv > 0 then
line.Text = "[" .. hr .. ":" .. m .. ":" .. sec .. "]" .. " [Server] : " .. text
else
line.Text = "[" .. hr .. ":" .. m .. ":" .. sec .. "]" .. " [" .. player.Name .. "] : " .. text
end
line.TextColor = color
line.Position = UDim2.new(0, 0, pos, 0)
line.Parent = holder
end

mouse.KeyDown:connect(function(key)
if key == "/" then
if box.Text == defaultmsg then
box.Text = ""
box:CaptureFocus()
else
box:CaptureFocus()
end
end
end)

box.FocusLost:connect(function(isDone)
if isDone then
local msg = box.Text
box.Text = defaultmsg
addMessage(msg, 0, player.TeamColor)
end
end)

box.InputBegan:connect(function(i)
local type = i.UserInputType
if box.Text == defaultmsg and type == focus then
box.Text = ""
end
end)

character.Humanoid.Died:connect(function()
addMessage(player.Name .. " has died!", 1, BrickColor.new("Really red"))
end)

If it doesn't work online, you can always use the UserInputService to detect a slash.

Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
30 Nov 2014 07:26 PM
it's a game setting but loleris uses a custom chat

Classic = Show just chat gui
Bubble = Show just chat bubbles
Both = Show both
Report Abuse
EncodedLua is not online. EncodedLua
Joined: 02 May 2012
Total Posts: 1555
30 Nov 2014 07:30 PM
works thanks :)


--forumPost:disconnect()
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