How do you make a chat dont appear when someone chatted it

so i want to make my chat don’t appear when i do admin cmds how can i achieve it?

you dont want it to appear for everyone?

2 Likes

u can disable the chat by doing: game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false)

1 Like

should i put it in localscript or script?

yeah it works in localscript :+1:

1 Like

it disables the chat i only want the chat to be not seen by the players

do you want bubblechat? like you can still type but not see the chat and a bubble appears above your head with the text?

The one i want is if i typed a cmd it wil not show up in the chat even in bubblechat

so like when you do commands you want others not to be able to see them?

1 Like

I get what you mean here. You can create an array with all of the possible commands, and find them in the chat message the player sends. Use Player.Chatted:Connect(function(Message) to get their message, then loop through the array items and check if any of the commands appear in the message. If they do, you can locate the message and delete it.

1 Like

I’m now making an admin panel so that players cant see what im typing but i have a qustion how can i make it like this it gives me an eror that args is = nil which i know it is but how can i make an admin command

script.Parent.Changed:Connect(function()
	local args 
	if string.lower(script.Parent.Text) == "/mutate jumpscare" .. args then
		game.ReplicatedStorage.AdminCMDS.Jumpscare:FireServer(args)
	end
end)

I’m new to making admin cmds so bare with me thanks

The args variable has no data.

2 Likes