Universal Script 📌
739 Views
1.0k Executions

Chat blocker for scripts that expose users in chat

Universal Script 📌
cvexe
cvexeFirst script
1 month ago · Updated

Reviewed by QueueSherlockPaid revieweron How review works

Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

You sometimes come across scripts that post the cheat's name in the chat for promotional purposes, which gives the user away, this script solves that problem

Notes

1
cvexe's profile picture
cvexeCreator1 month ago(edited)

needs executor with hookmetamethod and hookfunction

3
View Raw
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local TextChatService = game:GetService("TextChatService")
local CoreGui = game:GetService("CoreGui")

local env = (getgenv and getgenv()) or _G
env.__ChatBlocker = env.__ChatBlocker or { enabled = false, hooked = false }
local State = env.__ChatBlocker

if State.unload then
    pcall(State.unload)
end

local function isLegacyChatRemote(inst)
    return typeof(inst) == "Instance"
        and inst.ClassName == "RemoteEvent"
        and inst.Name == "SayMessageRequest"
end

local function isTextChannel(inst)
    return typeof(inst) == "Instance" and inst.ClassName == "TextChannel"
end

if not State.hooked then
    State.hooked = true

    if hookmetamethod and getnamecallmethod then
        local oldNamecall
        oldNamecall = hookmetamethod(game, "__namecall", newcclosure(function(self, ...)
            if State.enabled then
                local method = getnamecallmethod()
                if method == "FireServer" and isLegacyChatRemote(self) then
                    return
                end
                if method == "SendAsync" and isTextChannel(self) then
                    return
                end
            end
            return oldNamecall(self, ...)
        end))


Comments

2
Log in to join the conversation. Login
indistiputed's profile picture
indistiputed6 days ago

goated

1
Danechka's profile picture
Danechka3 weeks ago

Its OP :3

1

Tags

More universal scripts

See all
Universal Script 📌
12
0
Approved 26 minutes ago
Universal Script 📌
20
0
Approved 32 minutes ago
Key System
Universal Script 📌
27
5
Approved 38 minutes ago
Universal Script 📌
29
1
Approved 56 minutes ago
Universal Script 📌
39
2
Approved 1 hour ago
Script hub
83
2
Approved 2 hours ago

Script hub

konata.fun