unroot
|
  |
| Joined: 18 Sep 2009 |
| Total Posts: 1114 |
|
|
| 27 Feb 2016 07:12 PM |
^title^
I tried something with two values using tick(), but it ended up not working, so I just scrapped it. Do you have any other ideas on how I could do this?
#code print("yolo" .. string.rep("o", math.huge)) |
|
|
| Report Abuse |
|
|
|
| 27 Feb 2016 07:16 PM |
ROBLOX automatically does the spam checking for you
|
|
|
| Report Abuse |
|
|
unroot
|
  |
| Joined: 18 Sep 2009 |
| Total Posts: 1114 |
|
|
| 27 Feb 2016 07:17 PM |
In the title, I put [custom chat] because I'm using a custom chat.
#code print("yolo" .. string.rep("o", math.huge)) |
|
|
| Report Abuse |
|
|
|
| 27 Feb 2016 07:17 PM |
yes, it does check automatically with custom chats too. try spamming and see for yourself
|
|
|
| Report Abuse |
|
|
unroot
|
  |
| Joined: 18 Sep 2009 |
| Total Posts: 1114 |
|
|
| 27 Feb 2016 07:22 PM |
It doesn't. I made a custom chat, and chat bar.
#code print("yolo" .. string.rep("o", math.huge)) |
|
|
| Report Abuse |
|
|
|
| 27 Feb 2016 07:25 PM |
oh you have a custom chat bar, i thought you used the default one
|
|
|
| Report Abuse |
|
|
unroot
|
  |
| Joined: 18 Sep 2009 |
| Total Posts: 1114 |
|
|
| 27 Feb 2016 07:38 PM |
No, sorry, I should've clarified.
#code print("yolo" .. string.rep("o", math.huge)) |
|
|
| Report Abuse |
|
|
|
| 27 Feb 2016 07:38 PM |
| Post your code for using tick(). That's how it should be done. |
|
|
| Report Abuse |
|
|
unroot
|
  |
| Joined: 18 Sep 2009 |
| Total Posts: 1114 |
|
|
| 27 Feb 2016 07:58 PM |
I already undid everything, but I'll re-do it and keep retrying. Thanks, now I know to use the tick() method.
#code print("yolo" .. string.rep("o", math.huge)) |
|
|
| Report Abuse |
|
|
|
| 27 Feb 2016 08:36 PM |
you could make it so that a player can only chat every 3 seconds.
This siggy is copyrighted ©
|
|
|
| Report Abuse |
|
|
|
| 27 Feb 2016 08:37 PM |
:D something like this
local lastMsg = tick(); chatDelay = 1 --every second or somefing like this --Inside your message push function if tick() - lastMsg >= chatDelay then lastMsg = tick() --magic here end
|
|
|
| Report Abuse |
|
|
|
| 27 Feb 2016 09:16 PM |
Spawn(function() -- subtract a strike over time end)
local delay = 1 local lastMsg = tick() if lastMsg <= tick() then lastMsg = tick() -- allow message else -- add strike if(strikes > strike_limit)then -- spammers will spam end end |
|
|
| Report Abuse |
|
|
unroot
|
  |
| Joined: 18 Sep 2009 |
| Total Posts: 1114 |
|
|
| 27 Feb 2016 10:39 PM |
Thanks for the replies! It seems that neither of your scripts are working, even when I use a macro key to spam.
#code print("yolo" .. string.rep("o", math.huge)) |
|
|
| Report Abuse |
|
|
|
| 28 Feb 2016 05:10 AM |
| if tick() > lastMsg + delay then |
|
|
| Report Abuse |
|
|
|
| 28 Feb 2016 05:19 AM |
| Are you trying to prevent them from saying a bunch if messages fast or prevent them from saying the same message over and over. |
|
|
| Report Abuse |
|
|
Naco88
|
  |
| Joined: 30 Oct 2009 |
| Total Posts: 665 |
|
|
| 28 Feb 2016 07:10 AM |
| Maybe make a list which holds their last 3 messages and if they try and say one of them again it doesn't let them. |
|
|
| Report Abuse |
|
|
unroot
|
  |
| Joined: 18 Sep 2009 |
| Total Posts: 1114 |
|
|
| 03 Mar 2016 07:37 PM |
@128 Trying to prevent them from saying a bunch of messages rapidly.
#code print("yolo" .. string.rep("o", math.huge)) |
|
|
| Report Abuse |
|
|
|
| 03 Mar 2016 07:53 PM |
| morashsPeasant's script looks like it would work to me, how did you add it in? The part of the script that creates the message is meant to be at --magic here |
|
|
| Report Abuse |
|
|