Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

[SOLVED] How do I unban myself from my game?

So I made an anti-hack script that bans players from a game if they have too much walkspeed:

local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
repeat wait() until LocalPlayer.Character
 
while true do
    wait()
    if LocalPlayer.Character.Humanoid.WalkSpeed ~= 16 then
        LocalPlayer:Kick("Exploiting")
        wait(10)
    end
end

But, I forgot that I had a sprint function in-game, so when I tried team-testing, it kicked me and my friend from the server. How can I unban my friend and I from our own game?

2 answers

✓ Accepted answer

If I know correctly, (I am assuming that you are using sprint, or moving fast/ btw jumping is not always 16 walk speed) That what you could do instead of the hacking you could check if the player name is yours or your friends.

local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
repeat wait() until LocalPlayer.Character

while true do
    wait()
    if LocalPlayer.Character.Humanoid.WalkSpeed ~= 16 then
        if LocalPlayer.Name  ~= "Lightning_Game27" then --you can change the name to anyone.
			LocalPlayer:Kick("Exploiting")
       			wait(10)
		
end
    end
end

If that doesn't work maybe you need to change game settings such as jumping/falling.

1 comment

0

Thank You! I understand what to do now!

I believe that you haven't banned yourself based on the script, you can just remove this Kick Player and Problem Solved?

3 comments

0

But I did testing and my friend and I got kicked from our own game

0

That's because as you said about move speed gamepass, when you move it kicks you, change the value of walk speed

0

It is not a gamepass. It is a shift-to-sprint function

This discussion is preserved as it was. New answers, comments, and votes are closed.