I’m working on a simple Clientside chatbot, but need a little help.
[lua]local on
local flip
concommand.Add("+chat",
function() on = true end)
concommand.Add("-chat",
function() on = false end)
hook.Add(“Think”, “chat”, function()
if on then
if ( LocalPlayer() then
RunConsoleCommand("say IT
WORKS, SO FAR!")
flip = true
elseif ( flip ) then
RunConsoleCommand("-jump")
flip = false
end
end
end)
[/lua]
I’m not sure how to:
A: Make it play a list of commands in random order, executing a command every X amount of seconds.
B: Make it not toggle (AKA: +chat)
I’m terrible with scripts, this is my first, so, please help, somehow.