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..
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)
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).
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