sorry if this is a pain but i already have my game based entirely already on LegacyChatService, so i cant change it to textchatservice. what i meant before is there a setting to change the /exe and /reset cmds to LegacyChatService. or u could tell me where the script is that handles the chat commands so i could edit and convert those TextChatCommands to working for LegacyChatService. i know it already works if you press F2 but there is no way to open this on mobile without converting my ENTIRE game to be using textchatservice and im not rly doing that.
EDIT 30/10/2024 (UK Format)
Legacy Chat is being removed!
To make (only) the /exe command work with LegacyChatService, you would have to edit some of the scripts.
First, add a RemoteEvent into the events folder and name it “admin_panel_open”.
Next, add a regular Script into ServerScriptService. The name doesn’t matter.
Copy and paste this code into it.
local ChatServiceRunner = game:GetService("ServerScriptService"):WaitForChild("ChatServiceRunner")
local ChatService = require(ChatServiceRunner.ChatService)
local remote = game:GetService("ReplicatedStorage").exe_storage.events.admin_panel_open
local function toggleExe(plr: string, msg: string)
if msg == nil then return false end
if string.sub(msg, 1, 4) == "/exe" then
remote:FireClient(game:GetService("Players")[plr])
return true
end
return false
end
ChatService:RegisterProcessCommandsFunction("exe", toggleExe)
This code makes the Server listen for someone sending the message “/exe”, fires the remote event, and hides the message in chat!
Lastly, go into the window_handler script.
You should see this piece of code in it
textchat_service.toggle_exe.Triggered:Connect(function()
if not db then
db = true
main_module:exe_admin_panel(not main_frame.Visible)
--
task.wait(1)
--
db = false
end
end)
Remove it and replace it with
local remote = game:GetService("ReplicatedStorage").exe_storage.events.admin_panel_open
remote.OnClientEvent:Connect(function()
if not db then
db = true
main_module:exe_admin_panel(not main_frame.Visible)
--
task.wait(1)
--
db = false
end
end)
This code opens the admin panel, what a surprise!
The remote event is used to send a signal to the Client from the Server to open the admin panel.
As far as I’m aware, only the server can stop the message from sending with a command.
- I didn’t post in a while so sorry if it’s quite hard to read.
- Keep in mind that this might not be the most well made way of doing this.
- Please tell me if you want me to tell you how to add the reset exe command.
Will there be a command line/console like cmdr for running commands quickly?
Still seems that usability and speed is sacrificed over a “pretty” UI
I agree on this, Most pages take way to long to load and ui can be buggy especialy when trying to drag tools
Having some issues, set my rank up to 100 and I can do everything but ban people and kick people out who are in the server, theres no problem banning people not in the server.
This is amazing!
Ironic how this is the 28th reply with a post that currently has 28 likes that was made on September 28th
hi, i did all the steps you said, heres a screenshot of your code block in the window handler:
but when i type it, it shows this:
and after i close the panel and try to type the /exe command again, it doesn’t even open, and provides the same warning/error.
Can you kindly DM me your place file?
This looks nice! Can you tell me you make these kinds of buttons, though?
I wish I could make cool stuff like this…
What do u mean by place file like the place id? Or like edit access
You could make these fairly easy with a lot of tools. I’d try Figma first by just dragging a box that size over, setting the background and outline, and making the text.
You can make everything cool, you just need the right tools to make them with.
You should take @pyxfluff’s advice to start with Figma. Figma is a simple, intuitive, and free graphic design software. All of the graphics here in this post was actually done in Figma.
hey toast, just asking this question again,
how to make the panel openable and resetable with Legacy Chat Service and no i cant switch to textchatservice because my game is already based of legacy chat. is there some sort of event i fire?
It’s because you made a BindableEvent, not a RemoteEvent.
It’s these types of mistakes that are so simple but always frustrating to find!
These certain replies to a topic show a good example of their differences
I also added more information to my original reply if you want to know how it works!
Thanks for including the output!
@pyxfluff & @blve_hxrizon , I meant how do I make the individual buttons work, like how they each teleport you to a page or a certain part of the post. No harm intended, though.
thanks it works! also what does the reset exe command do lol. if its important can u tell me how to do it as well?
I am pretty sure that all it does is reset the admin panel’s position and size. Do you want that command? I would be happy to assist you with it.