Can anyone tell me why this script won't work? Output show's no error's. I am trying to make a Custom-Chat GUI, But this KeyDown thing won't work.
wait(1)
-- Variables
local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
local Text = script.Parent.TextFrame.TextBox
-- Main Script
Mouse.KeyDown:connect(function(key)
if key == Enum.KeyCode.Slash then
Text:CaptureFocus()
end
end)

1 comment
To heck with KeyDown! http://wiki.roblox.com/index.php?title=API:Class/UserInputService