Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make a message not appear in chat?

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:

1 comment

0

add [Solved] or [Answered] at the end or front of your question since it is solved.

2 answers

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

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

2 comments

0

i think he means cancel the player from chatting when it has a / before the message

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

This discussion is preserved as it was. New answers, comments, and votes are closed.