generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: [custom chat] Detect spam?

Previous Thread :: Next Thread 
unroot is not online. 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
Reset2378658 is not online. Reset2378658
Joined: 21 May 2015
Total Posts: 4374
27 Feb 2016 07:16 PM
ROBLOX automatically does the spam checking for you



Report Abuse
unroot is not online. 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
Reset2378658 is not online. Reset2378658
Joined: 21 May 2015
Total Posts: 4374
27 Feb 2016 07:17 PM
yes, it does check automatically with custom chats too. try spamming and see for yourself



Report Abuse
unroot is not online. 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
Reset2378658 is not online. Reset2378658
Joined: 21 May 2015
Total Posts: 4374
27 Feb 2016 07:25 PM
oh you have a custom chat bar, i thought you used the default one



Report Abuse
unroot is not online. 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
morashsPeasant is not online. morashsPeasant
Joined: 06 Jan 2011
Total Posts: 4944
27 Feb 2016 07:38 PM
Post your code for using tick(). That's how it should be done.
Report Abuse
unroot is not online. 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
killerbot29003 is online. killerbot29003
Joined: 04 Oct 2014
Total Posts: 3054
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
morashsPeasant is not online. morashsPeasant
Joined: 06 Jan 2011
Total Posts: 4944
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
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
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 is not online. 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
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
28 Feb 2016 05:10 AM
if tick() > lastMsg + delay then
Report Abuse
128Gigabytes is not online. 128Gigabytes
Joined: 17 Apr 2014
Total Posts: 3616
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 is online. 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 is not online. 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
128Gigabytes is not online. 128Gigabytes
Joined: 17 Apr 2014
Total Posts: 3616
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image