Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago
Edited 4 years ago

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

Log in to vote
1
Answered by 4 years ago
Edited 4 years ago

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.

0
Thank You! I understand what to do now! Lightning_Game27 232 — 4y
Ad
Log in to vote
1
Answered by
Borrahh 265 Moderation Voter
4 years ago

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

0
But I did testing and my friend and I got kicked from our own game Lightning_Game27 232 — 4y
0
That's because as you said about move speed gamepass, when you move it kicks you, change the value of walk speed Borrahh 265 — 4y
0
It is not a gamepass. It is a shift-to-sprint function Lightning_Game27 232 — 4y

Answer this question