Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How to make a message not appear in chat?

Asked by 3 years ago

If you noticed, typing /console in the chat opens up the developer console and the message "/console" doesn't shows up in the chat. How do I make a script to make my command not showing up in the chat? Any help would be appreciated. :smiley:

0
add [Solved] or [Answered] at the end or front of your question since it is solved. JesseSong 3916 — 3y

2 answers

Log in to vote
0
Answered by 3 years ago

I fixed it now you just have to edit the script in messagesender

at line 15 you can change your script to something like this

function methods:SendMessage(message, toChannel)
    if message == "/hello" then
        print("okh")
    else
        self.SayMessageRequest:FireServer(message, toChannel)
    end
end
Ad
Log in to vote
-1
Answered by 3 years ago

Put this inside a LocalScript:

local runService = game:GetService("RunService")
local starterGui = game:GetService("StarterGui")

runService.Heartbeat:Connect(function()
    pcall(function()
        starterGui:SetCore("DevConsoleVisible", false)
    end)
end

This LocalScript will always close the developer console even if you press f9

0
i think he means cancel the player from chatting when it has a / before the message MightBeAHaxxer 24 — 3y
0
i said i want if someone writes a command like /respawn the message doesn't appear in the chat. Please read properly try not to rush WINDOWS10XPRO 438 — 3y

Answer this question