How do I create a command that uses HTTPService or something to ban someone from my game, even when the server restarts?
COMMUNITY QUESTION
Perm ban someone ingame?
1 answer
Well, the best way to do this is use DataStores, if using it In-Game, but if you want to do something where you go into roblox studio and manually edit it, thena server script. i think you could do a local script to, i will list that as well. ServerScript:
function playeradded(player)
while true do --this is to constantly kill if the person is a hacker
if player.Name == {"namehere", "namehere"} then
player.Character:Destroy()
wait(1)
end
end
end
local script:
local player = script.Parent.Parent
function killplayer()
if player.Name == {"namehere", "namehere"} then
player.Character:Destroy()
end
end
now, it gets complicated. Assuming you would be using the chat service, this is where we get into stringvalues in scripts and datastores, and the onchatted function. But that, is very complex, and whn i write a program in my test place, i'll move it over to another place so you can use it.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Thanks alot!
Did they work?