I stumbled upon this with a custom chat gui me and my friend made. I’m not sure which is failing the UserInput Service or the Enum.KeyCode.
Here’s the Error Code
The first error is my Chat part of the code, the second one is Roblox’s Chat script which is set to be disabled.
for my Code the error falls on this line:
IS.InputBegan:connect(function(input)
if input.KeyCode == Enum.KeyCode.Slash then -- errors here
if chatting then return end
chatting = true
chatframe.Channel.BackgroundColor3 = Color3.new(1,1,1)
chatframe.Channel.Text = "Global"
chatframe.TextBox:CaptureFocus()
chatframe.TextBox.Size = UDim2.new(0, 0, 0, 25)
Also this is a Mac only bug, as my friend has a windows and it works fine for him, and me and a friend on a mac get the bug 100%
How it happens is kinda a mystery to me. We have if the slash key it pressed it focuses on a text box to chat with. We also have it where if you press the ’ key it chats in team chat. But when ever the ’ key is pressed I get the error shown above.
--APOSTR is a boolValue set to be true when ever ' key is pressed
keyinputs.APOSTR.Changed:connect(function()
if chatting then return end
chatting = true
chatframe.Channel.BackgroundColor3 = Color3.new(0,1,0)
chatframe.Channel.Text = "Team"
chatframe.TextBox:CaptureFocus()
chatframe.TextBox.Size = UDim2.new(0, 0, 0, 25)
end)
[strike]Link to place it happens at http://www.roblox.com/Baumzs-Place-Number-79-place?id=172360442[/strike]
Edit: made it so it doesn’t error anymore on that game.