Alright, I was really bored and tried to make a chat spammer.
This is what I came up with
concommand.Add("spamchat", function(ply,cmd,args) if not ply.SpamChat then ply.SpamChat = true spamness=tostring(args) timer.Create("Spamtime", 0.1,0, RunConsoleCommand("say",spamness)) ply:ChatPrint("Spamming Enabled") else ply:ChatPrint("Spamming Disabled") ply.SpamChat = false timer.Destroy("Spamtime") end end)
The thing I can’t get to work is args turns into a nil value. Can anyone help.