Text 14
Text 14
inputsrv.InputBegan:Connect(function(key, gp)
if gp then return end
if key.KeyCode == Enum.KeyCode.T and not vis then
vis = true
inp.Visible = true
inp:CaptureFocus()
txt = ""
inp.Text = ""
twsrv:Create(inp, TweenInfo.new(0.15, Enum.EasingStyle.Cubic),
{BackgroundTransparency = 0, TextTransparency = 0}):Play()
elseif key.KeyCode == Enum.KeyCode.Return and vis then
if txt ~= "" then
local c, args = parse(txt)
if c == "mute" and args[2] then
mute[args[2]] = true
addmsg("sys", "muted " .. args[2])
elseif c == "unmute" and args[2] then
mute[args[2]] = nil
addmsg("sys", "unmuted " .. args[2])
elseif c == "muteall" then
mute.all = true
addmsg("sys", "muted all")
elseif c == "unmuteall" then
mute.all = nil
addmsg("sys", "unmuted all")
else
send(txt)
end
end
vis = false
twsrv:Create(inp, TweenInfo.new(0.15, Enum.EasingStyle.Cubic),
{BackgroundTransparency = 1, TextTransparency = 1}):Play()
task.wait(0.15)
inp.Visible = false
inp:ReleaseFocus()
end
end)
inp:GetPropertyChangedSignal("Text"):Connect(function()
if vis then
txt = inp.Text
end
end)
task.spawn(function()
hook()
sync()
poll()
end)
if loader() then
task.spawn(function()
local res = fetch(9453023)
if res then
addmsg("sys", "asset 9453023 loaded")
end
poll()
end)
end