|
| 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 |
|
|
| |
|
|
| 30 Nov 2014 07:07 PM |
How did loleris do it then?
--forumPost:disconnect() |
|
|
| Report Abuse |
|
|
|
| 30 Nov 2014 07:08 PM |
| You mean a pseudo chat gui? |
|
|
| Report Abuse |
|
|
ChuckXZ
|
  |
| Joined: 26 Jan 2012 |
| Total Posts: 2996 |
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 30 Nov 2014 07:19 PM |
Cmon... Someone has to know this...
--forumPost:disconnect() |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 30 Nov 2014 07:30 PM |
works thanks :)
--forumPost:disconnect() |
|
|
| Report Abuse |
|
|