I see some admin models such as adonis I think? I don’t know how it is spelled but it can kind of like read the output logs? I don’t really know but it gives the owner of the game a message saying so and so might be hacking…
Do you mean when a player sends a command, it gets put an a GUI only the owner can see?
you know roblox studio command bar?
it sends a message to the owner of the game (if they are in the server)
that someone used it
Ah, i see. You could do a script like this,
(put this is serverscriptservice)
local prefix = ":"
game.Players.PlayerAdded:Connect(function(plr)
plr.Chatted:Connect(function(cht)
local msg = string.split(cht, " ")
local cmd = msg[1]
local cmmd = string.sub(cht, #cmd + 1)
if string.find(cmd, prefix) then
print(cmd)
end
end)
end)
This will print the command to the console if it contains the prefix :. Hope this helps!
no I mean like someone executes a line of code
ohh, like using the :s command in Adonis?
Understand?
- Yes
- No
- No idea what you mean…
0 voters
I understand, and I’m just thinking about the approach you would take.
You know the roblox command bar? where you can enter a script to run it mid game?
you put something in there and it gives the owner a message saying that the person is hacking
ok tell me when you come up with one
Unfortunately, I’m not sure how you would do it. I’m pretty sure Roblox doesn’t have a way of checking console input, sorry I can’t help.
how does the admin do it then???
Are you talking about Adonis? If so that only detects when the :s command (which runs scripts) is used I’m pretty sure. If you need help with scripting that, I put a script above.
I guess?
:(
Dang
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.