F9 Server console rights

is there any possible way, to make Server side console available for certain people in the roblox group for example?

or any way to recreate the same mechanic of it that i could put into my admin panel?
i want my ADMINS to have server side control.. but not the studio project control..

create your own admin panel, F9 executes luau code on the server, not your regular admin privileges

how can i achieve the same result? i just create a new server script every time? that executes the printed/written code from the command admin panel? if thats possible to do

in order for you to execute luau code, you need to use loadstring function, but before using it, it has to be enabled in ServerScriptService > LoadstringEnabled, but again, you need to verify before executing what the client wants

AdminRemote:FireServer("print('yes')")
AdminRemote.OnServerEvent:Connect(function(plr: Player, code: string)
    if typeof(code) ~= "string" then
        return
    end

    if isPlayerAdmin(plr) and hasPermission(plr, "loadstring") then
       loadstring(code)()
    end
end)
1 Like

okay thanks, i will take a look if that works.. then i contact back

(From what I remember) Loadstring doesn’t work even if you enable it via ServerScriptService. Instead, use VLua.

I strongly recommend against giving unrestricted server-side access to anyone in your game. If they do something malicious they can get both you and your game banned, apart from exposing minors to danger.

If you want some people(for example mods) to have super powers in your game you should make your own admin system instead, where you have a specific set of pre-coded things a mod can do with admin privileges. Ideally you need a rank system as well, so specific roles/ranks will be able to perform a specific set of commands in either a non-related or inherited way. For example an admin rank and a mod rank, whose main difference will be that a mod can do less things.

I would also recommend against using an already existing admin system. A general-purpose admin system isn’t tailored specifically for your game, you don’t know what it may be doing (since you haven’t written the code), and most of the time is bloated as hell(containing many party functions you didn’t ask for, or commands that may be used maliciously in ways you don’t expect).

1 Like

ancient memories pal, it wouldnt exist if it wouldnt work

it works seemingly perfect! thank you very much i guess!
no permissions test:
image
with permissions test:
image
and yeah, i got destroyed..

additionally I suggest making a loadstring access a separate permission, and give it only to the admins you trust 1000%

1 Like

well, i hope my moderators are good enough hehe, i am trying to give them a lot of power yet trying to make it strict at the same time, i may try to make it impossible to abuse that.. and i have pre-coded things in my admin panel already.. i just thing its not enough! free will on my team haha.. ranking system is done on my side already too, and i dont use any free admins, i coded my own gui and ranks myself few months ago, thanks for a warning tho

yeah i got you, appreciate your help here, but should i use that VLua thing??

I suggest staying with what Roblox already provides

1 Like

good! thanks for your time you spent on helping with my issue, appreciate that, and yeah, sorry for my bad english grammar if that`s an issue.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.