Jump to content

Clear chat (SKRIPT)


AHelpingCandy

Recommended Posts

Hello! So I made this because yeah I was bored! I hope you enjoy!
    

command /clearchat:
    aliases:  /cc, /chatc, /clearc
    trigger:
        clearChat(player)
        wait 5 tick
        broadcast "&7(&c!&7) &6Chat Has Been Cleared By %player%"

Function clearChat(p: player):
    loop 5000 times:
        broadcast ""


This is my first time using functions! Sorry if it doesn't work :C

Edited by Chloe30k
  • Like 1
image.png.6b83388bece6fb7d874e120f33c8dd96.png


IGN ➣ Pickey ( Soon ) 
Joined MineHut ➣ January 7th 2019
Joined Forums ➣ January 11th 2021
 
Admin on NotedGens
Manager on NotedGens
Developer on Cropied
Developer on Gennow (Genable)

==========================================
Best Job: Badlion ( Client Moderator [ Failed Trial / Demoted] )
Retired From: InvadedLands ( Moderator )
Retired From:  MineTime ( Sr.Moderator )
Retired From: Hero Mines ( Helper )
Link to comment
Share on other sites

It's good speaking it's a first time using functions however you looped it far too much which will end up causing lag with too many players on I believe the minimum is like 180 or something so normally using 200 or 300 times is just fine

 

and since I know this is your first time using functions I won't say it's useless however it is best to just loop and then broadcast this way there aren't any chances of the broadcast being sent before the last broadcast ""

 

along with that the function being ClearChat(p: player) isn't really needed since you aren't using the vairable just using ClearChat() is fine

Edited by Mesyl2
spelling & adding more

I'm a guy yes but I am also human just like any female so why do you believe it's so wrong to cry too?

Link to comment
Share on other sites

On 4/4/2021 at 7:18 PM, Fusezion said:

It's good speaking it's a first time using functions however you looped it far too much which will end up causing lag with too many players on I believe the minimum is like 180 or something so normally using 200 or 300 times is just fine

 

and since I know this is your first time using functions I won't say it's useless however it is best to just loop and then broadcast this way there aren't any chances of the broadcast being sent before the last broadcast ""

 

along with that the function being ClearChat(p: player) isn't really needed since you aren't using the vairable just using ClearChat() is fine

I wanted to make sure that people with the following; badlion, blazingpack, lunar, and more wouldn't be able to scroll up etc,

 

image.png.6b83388bece6fb7d874e120f33c8dd96.png


IGN ➣ Pickey ( Soon ) 
Joined MineHut ➣ January 7th 2019
Joined Forums ➣ January 11th 2021
 
Admin on NotedGens
Manager on NotedGens
Developer on Cropied
Developer on Gennow (Genable)

==========================================
Best Job: Badlion ( Client Moderator [ Failed Trial / Demoted] )
Retired From: InvadedLands ( Moderator )
Retired From:  MineTime ( Sr.Moderator )
Retired From: Hero Mines ( Helper )
Link to comment
Share on other sites

21 hours ago, Chloe30k said:

I wanted to make sure that people with the following; badlion, blazingpack, lunar, and more wouldn't be able to scroll up etc,

 

understandable however in many cases it's not worth the increased lag if they want to screenshot a racist message spammed let em

I'm a guy yes but I am also human just like any female so why do you believe it's so wrong to cry too?

Link to comment
Share on other sites

On 4/6/2021 at 11:47 AM, Chloe30k said:

I wanted to make sure that people with the following; badlion, blazingpack, lunar, and more wouldn't be able to scroll up etc,

 

also lunar has "stack messages" setting, so yeah, that would be useless

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...