--inputService.InputBegan:connect(function(inputObj)
--	
--	-- Check if slash
--	if inputObj.KeyCode == Enum.KeyCode.ButtonL3 and not script.Parent.TypeArea:IsFocused() then
--		wait()
--		script.Parent.TypeArea:CaptureFocus()
--	elseif inputObj.KeyCode == Enum.KeyCode.ButtonL3 and script.Parent.TypeArea:IsFocused() then
--		wait()
--		script.Parent.TypeArea:ReleaseFocus()
--	end
--	
--end)


script.Parent.Toggle.MouseButton1Click:connect(function()
	
	-- Toggle visibility
	script.Parent.Parent.Chat.Visible = not script.Parent.Parent.Chat.Visible
	if script.Parent.Parent.Chat.Visible then
		script.Parent.Toggle.Text = "HIDE"
	else
		script.Parent.Toggle.Text = "SHOW"
	end
	
end)

while wait(1) do
	
	-- Decrement spam score
	if spamScore > 0 then
		spamScore = spamScore - 1
	end
	
end
