Using the New Ban API | Roblox Scripting Tutorial

Поділитися
Вставка
  • Опубліковано 28 вер 2024

КОМЕНТАРІ • 176

  • @CodingCapybaraRoblox
    @CodingCapybaraRoblox  3 місяці тому +39

    ATTENTION:
    Ban History is actually released, you just can't use it in studio, which was the reason I thought it wasn't released at first. You can watch a tutorial for it here: ua-cam.com/video/IziSDc98SEE/v-deo.html
    Here is the finished script if you need it:
    local Part = script.Parent
    Part.Touched:Connect(function(touched)
    if touched.Parent:FindFirstChild("Humanoid") then
    local plr = game.Players:GetPlayerFromCharacter(touched.Parent)

    local success, erro = pcall(function()
    game.Players:BanAsync({
    UserIds = {plr.UserId},
    ApplyToUniverse = true,
    Duration = -1,
    DisplayReason = "You have been banned because you touched the part!!!!!!!!!!",
    PrivateReason = "Touched Part",
    ExcludeAltAccounts = true
    })
    end)
    end
    end)

    • @DHG-4000_Productions
      @DHG-4000_Productions 3 місяці тому +2

      How do you make it into a ban ui?

    • @localscripted
      @localscripted 3 місяці тому

      @@DHG-4000_Productionscode it

    • @communistparty-zs2ts
      @communistparty-zs2ts 3 місяці тому

      tanks you :))

    • @madnessmyth
      @madnessmyth 3 місяці тому +1

      This expects the touched parent to be a player which is not required, instead you should just get player from touched.Parent and check if its nil or not. There's no need to check if there is a humanoid

    • @alexskorpik11play79
      @alexskorpik11play79 3 місяці тому +1

      @@DHG-4000_Productions you just do, ask your friends to make it for you

  • @provideowatcher
    @provideowatcher 3 місяці тому +33

    this sounds like an amazingly useful feature, as lots of exploiters have a script for old banning methods to simply avoid the kick, whereas this kicks them before they have a chance to inject their exploits + ban alts too. a win for us devs

    • @carbonz
      @carbonz 3 місяці тому +8

      that's not how that works skid

    • @Sakupenny
      @Sakupenny 3 місяці тому +1

      best thing its IP ban

    • @provideowatcher
      @provideowatcher 3 місяці тому +3

      @@carbonz that is quite literally how it works, im not a "skid", dont talk on topics you arent educated in

    • @Anikin3-
      @Anikin3- 3 місяці тому

      you can't "inject" something into a game just by joining it

    • @AlmiraMiliss
      @AlmiraMiliss 3 місяці тому

      @@Sakupennyeasy to bypass

  • @boi875_RBLX
    @boi875_RBLX 3 місяці тому +13

    Apply to universe sounds a little complex but its not.
    When you make a roblox game, the entire game itself is the universe. In the asset manager, you can create new places inside of the universe that you can teleport your players to.
    For example, you might have a horror game. The horror game itself will be the universe. You made a lobby game and a main game for the horror game.
    If you want to ban the player only from joining the main game, you would want to set ApplyToUniverse to false, and ban them only in the main game, which means that they can still join the lobby place, but won't be able to join the main game. If you set ApplyToUniverse to true, then no matter what, they will be banned from the whole game, not being able to join the lobby or main game.

    • @TREB0RZ
      @TREB0RZ 3 місяці тому +5

      sounds useful for things like if your game has multiple gamemodes and you can ban a player from certain gamemodes (like a casual and a competitive and you only want to ban them from competitive)

    • @goldfishglory
      @goldfishglory 3 місяці тому +1

      @@TREB0RZcsgo after leaving a comp game

    • @goldfishglory
      @goldfishglory 3 місяці тому

      but in all seriousness this is really good and opens up a lot of possibilities for moderation in your own game and other gimicks (because i know people are gonna make a game out of this)

  • @carpet.
    @carpet. 3 місяці тому +8

    damn only 209 Subs ????!! you deserve way more ngl

  • @marcuspage2026
    @marcuspage2026 3 місяці тому +9

    Just discovered your account, very excited for the content you will be creating! I plan to learn scripting real soon this summer

    • @macialdo100
      @macialdo100 3 місяці тому +4

      real soon? get on to it now!!

    • @Todoza
      @Todoza 3 місяці тому +1

      @@macialdo100I’m starting once I get home from vacation!!

    • @marcuspage2026
      @marcuspage2026 3 місяці тому +1

      @@macialdo100 hahah don’t worry! I meant next week because I had to finish a summer course in uni this week

  • @avyukth3727
    @avyukth3727 2 місяці тому +1

    As far as I know you're the only one who made a productive video on the ban API. Good job

  • @BH_Animations
    @BH_Animations 3 місяці тому +20

    this is really exciting! i never have had proper banning systems in any of my projects, so dealing with annoying players was quite a task. this solves so many problems now. not to mention you can IP ban too!!!!

    • @fitmotheyap
      @fitmotheyap 3 місяці тому +6

      I feel the ip ban is a mistake unless it expires(as most do), since most people have dynamic IPs, you are just gonna surprise someone with an unexpected ban if 2 people live nearby and the ISP cycles the same IPs for that 1 street

    • @michaeljacobdelossantos
      @michaeljacobdelossantos 3 місяці тому +5

      you ban the person
      person lives near you.
      person has the same ip as you then you also get banned lol.

    • @deesh6378
      @deesh6378 3 місяці тому +5

      I doubt it uses your IP alone, it's probably a mixture between HWID, IP, and some behavioural factors.

    • @XioJN
      @XioJN 3 місяці тому

      @@deesh6378 that's what I think as well, from what I've heard on v3rmillion, phantom forces has pretty complicated ban system and using ban api might make phantom forces harder to cheat on

    • @fakeeClock
      @fakeeClock 3 місяці тому +4

      wow ip bans, my brother exploits in games but i dont (he exploits in the games i like too) so if he gets banned, i cant appeal because its a IP ban WOW!!!! what a bad idea

  • @FunyGuyLol
    @FunyGuyLol 3 місяці тому +1

    Finally! Now I don't have to have ban info in my datastore now

  • @ValxaL
    @ValxaL Місяць тому

    I can't unban myself, i explain i tried the ban async so i've banned my self for 7k days and exclude alt accounts, when i used the UnbanAsync when i join, it tell me that it unban me from Roblox Studio but from Roblox i'm still ban, if i made something wrong pls tell me

  • @Ianimategoofycharacters
    @Ianimategoofycharacters 3 місяці тому +2

    Wait but if it bans you from all places then couldn't the evil dev ban you from a lot of places by TPing you to idk like Bedwars for example

    • @aRARARAR-lf1px
      @aRARARAR-lf1px 3 місяці тому +1

      No, not how it works place needs to be owned by owner unless he owns bedwars he cant ban ppl from it

    • @chanchowaton
      @chanchowaton 3 місяці тому

      you need ownership of the game

    • @CodingCapybaraRoblox
      @CodingCapybaraRoblox  3 місяці тому

      "Places" refer to places in YOUR game. not other games

  • @CarmTzy
    @CarmTzy 2 місяці тому

    lmao, i kinda wanna make the same vid but you deserve the views

  • @Anobot
    @Anobot 3 місяці тому

    Noice video! Roblox's Ban API epic

  • @zooba4255
    @zooba4255 3 місяці тому

    Are there any places with an API ban so you can go in and check how it works?

  • @Errordimensions
    @Errordimensions 3 місяці тому

    yeah i saw hd admin and there was an ban alt accounts

  • @burgerbonkerqueenmsp9761
    @burgerbonkerqueenmsp9761 2 місяці тому

    the script doesn't work

  • @Wolfractionwashere
    @Wolfractionwashere 2 місяці тому +1

    Thanks you 😀

  • @qxxrd
    @qxxrd 3 місяці тому

    I'm kind of curious on how the alt account ban works. Does it track all of the accounts that you're logged into? Or does it recognize your MAC address?

    • @TypKris
      @TypKris 3 місяці тому

      Probably bans the accounts that are attached to your accounts at the Switch Accounts feature that you can find at the settings button if you are on a pc not sure where it is for mobile

    • @frostbyte3978
      @frostbyte3978 3 місяці тому

      ​@TypKris I don't use the switch accounts thing, I just log out and log into the alt

    • @CodingCapybaraRoblox
      @CodingCapybaraRoblox  3 місяці тому

      my guess is it uses your ip to see if its an alt

    • @TypKris
      @TypKris 3 місяці тому

      @@CodingCapybaraRobloxyes youre right probably, but im pretty sure they also ban the accounts attached to the account you ban

    • @nopfp416
      @nopfp416 3 місяці тому +2

      I tested it by making an alt after being banned and I was able to just rejoin so it's either not done or useless

  • @Alafandri
    @Alafandri 3 місяці тому

    your really quiet. turn up volume when editing the video

  • @jobertgutierrez5788
    @jobertgutierrez5788 3 місяці тому

    I love it ❤😂

  • @Trokumukum
    @Trokumukum 2 місяці тому

    3:22

  • @uliveulearnandregret
    @uliveulearnandregret 3 місяці тому

    The Ban Brick!

  • @NORMAL_ACCOUNT...
    @NORMAL_ACCOUNT... 3 місяці тому

    i bet 50% of devs are going to abuse this function looking at you pet sim 99

  • @eric44910RobloxPlay
    @eric44910RobloxPlay 2 місяці тому

    vancouver

  • @ItsmeTOY
    @ItsmeTOY 3 місяці тому

    WHAAAAAT

  • @dirhi
    @dirhi 3 місяці тому +1

    this is me when the when are

  • @veethabeeyt
    @veethabeeyt 3 місяці тому

    NOOOOO

  • @konstantinosladas7723
    @konstantinosladas7723 3 години тому

    Guys here is another one!!!!!!:local blacklisted = {["USERNAME"] = true}
    game.Players.PlayerAdded:Connect(function(plr)
    if blacklisted[plr.Name] then
    plr:Kick "REASON"
    end
    end)

  • @angelkingcat
    @angelkingcat 2 місяці тому +1

    love the video lookie should make a tut on how to code in roblox!
    Edit: like the man basic's of coding in roblox!

  • @dvyn3833
    @dvyn3833 3 місяці тому +2

    finally a real ban system that's not about of silly kicking.

  • @typoskwatter
    @typoskwatter 3 місяці тому +3

    very informative. well done!
    dropping a sub ^-^

  • @insertusernamehere8125
    @insertusernamehere8125 3 місяці тому +4

    so this is that dreaded "alt detection feature" everyone's talking about

    • @typoskwatter
      @typoskwatter 3 місяці тому

      Do we know if it's IP or HWID based?

    • @TechnicalIssuesOfficial
      @TechnicalIssuesOfficial 3 місяці тому

      @@typoskwatter I think its a MAC address thing, I heard cleaning up with Disk Cleanup just fixes this and won't get you banned on other accounts.

    • @aimRBLX
      @aimRBLX 3 місяці тому

      @@typoskwattermac

    • @nopfp416
      @nopfp416 3 місяці тому

      ​@ValipPowa they're very different but ok

    • @binwonk
      @binwonk 2 місяці тому

      @@typoskwatter neither, it's text file based (very scary and impossible to bypass (impossible to delete robloxcookies.dat to bypass)) roblox is truly innovating and changing the gaming industry forever!

  • @amaz1699
    @amaz1699 3 місяці тому +2

    if you’re a BarneyHunter12 fan, (roblox UA-camr that does trolling with alts) this can be a huge problem because if you get all of your alts banned permanently then that means you will never get to play the game again, unless you change your IP I think or move to a new house I’m pretty sure. But I’m also a roblox developer that cannot stand annoying exploiters so this is a huge W for me. So overall I have mixed feelings about this update.
    Also I love your channel! Very underrated!

    • @nopfp416
      @nopfp416 3 місяці тому +1

      Instead of moving house you can either get a new router or if your ip is dynamic just wait for 2 weeksish for an unban or manually reset your ip

    • @amaz1699
      @amaz1699 3 місяці тому

      @@nopfp416 that too

  • @iHxperr
    @iHxperr 3 місяці тому +1

    This is better than kicking players. Cuz they can just go in a alt. W Roblox

  • @DogeManJenkins
    @DogeManJenkins 2 місяці тому

    If they can detect alt accounts, wouldn’t roblox know if you are botting? If so, that means they can add tix back

  • @TheGamlng
    @TheGamlng 3 місяці тому +2

    can u post the script in the comments

  • @8tan200
    @8tan200 3 місяці тому +2

    cant you just use the command bar to unban and ban them?

    • @alexskorpik11play79
      @alexskorpik11play79 3 місяці тому +2

      no, only server scripts can do it, command bar has the authority of plugin scripts

    • @CodingCapybaraRoblox
      @CodingCapybaraRoblox  3 місяці тому

      The ban and unban only work in real servers, not in studio (pretty sure)

  • @Mohoragahrlp
    @Mohoragahrlp Місяць тому

    Do i have to put it into a block i want to make this a gui

  • @XioJN
    @XioJN 3 місяці тому +1

    gotta try this when I get my vm working
    Heard there are already bypasses, using the bypass + reinstalling/deleting files makes the banapi completely useless, well at least for games like stateview prison.

  • @Lvaic_
    @Lvaic_ 3 місяці тому +1

    This is very sigma

  • @danylos2
    @danylos2 3 місяці тому +1

    I can't imagine this going well

  • @gsdtxz
    @gsdtxz 3 місяці тому

    vpn easy solo

  • @Haze12492
    @Haze12492 3 місяці тому +1

    Am I able to connect it into a command script?

    • @xBaqq1
      @xBaqq1 3 місяці тому

      Yes just where your put the info of the user get it from your command it’s really simple

  • @fudgecreations
    @fudgecreations 3 місяці тому +1

    This tutorial was very helpful 👍

  • @SBLN_games
    @SBLN_games 2 місяці тому

    Question. When you ban someone with their alts, does it hardware ban them, IP Ban them, or does it just ban the accounts linked to your email?

  • @Wyrizon
    @Wyrizon 3 місяці тому +1

    easy alt account bypass lol

  • @antoniolaura443
    @antoniolaura443 3 місяці тому +1

    thanks :) :D

  • @NORMAL_ACCOUNT...
    @NORMAL_ACCOUNT... 3 місяці тому

    pov cafe game devs : OH YEAH FOR ANYONE THAT SAYS I WANT A DIARRHEA DRINK WE'RE GOING TO RUN THIS BAN FUNCTION ON THEM (when they can use it on exploder not just for doing stupid things or just being annoying like bruh people are definitely going to abuse this I mean its because of them they are the one who made this update feel like the end of trolling in a cafe game but other than that the update seems kind a nice not going to lie)

  • @thef0giscoming224
    @thef0giscoming224 3 місяці тому +1

    this guy is underated

  • @wrld_of_trey4730
    @wrld_of_trey4730 3 місяці тому

    Can you please a police radio with voice chat with a keybind to enabled it.

  • @exploitdevs
    @exploitdevs 3 місяці тому

    This is bad for those people who is hacking

  • @erickoavenada969
    @erickoavenada969 3 місяці тому

    Roblox players be decreasing 10000× faster

  • @yamannminecraftzaman1947
    @yamannminecraftzaman1947 2 місяці тому

    YEEEEEEESSS!!!!!FINALLYYYYY!!!!!!

  • @DeltaruneRalsei
    @DeltaruneRalsei 3 місяці тому +1

    will the old way of banning (kicking) work still?

    • @WhyRBX
      @WhyRBX 3 місяці тому +1

      It should unless they remove the :Kick() function which even if they did it would still be depreciated and able to be used.

    • @BusyScripting
      @BusyScripting 3 місяці тому +1

      yes but the new way is better

    • @BitBloxDevs
      @BitBloxDevs 3 місяці тому

      Why not. The new API is simply intended to make it easier to ban players without saving them in the datastore and kicking them after joining. Also this has many other cool features that are very useful.
      I see no reason to remove kick. By kicking a player, we don't always want to ban him. And I think that many people is using it 4fun.

    • @andrewthedoggo
      @andrewthedoggo 3 місяці тому +1

      The devforum post specifies the following:
      The Kick API will remain active to avoid unnecessary adjustments. However, we recommend performing all of your account actions through the Ban API if this is your first time setting up an API.
      edit: why does that sound so passive aggressive

    • @CodingCapybaraRoblox
      @CodingCapybaraRoblox  3 місяці тому

      yes, but it is recommended to use the new feature since its easier and more efficient

  • @Gala_RF
    @Gala_RF 3 місяці тому

    Roblox did a W 🎉

  • @YNGricky
    @YNGricky 3 місяці тому

    imagine getting unfairly ban in your favorite game, and you will never be able to play it again

  • @Seg_Fault-lv5te
    @Seg_Fault-lv5te 3 місяці тому +1

    Incorporating alt account detection into the ban API is a pretty stupid move on Roblox's part.

    • @zk3282
      @zk3282 3 місяці тому +2

      why?

    • @Voipy
      @Voipy 3 місяці тому

      ???

    • @tiny_dino3049
      @tiny_dino3049 3 місяці тому +1

      @@zk3282probably since it uses IPs so if someone in your house gets banned for some bad reason, you’ll also get banned for not doing anything wrong.

    • @CIA_Insights
      @CIA_Insights 3 місяці тому

      ​@@tiny_dino3049I was thinking of that but it doesn't do that it Hardware bans you so it doesn't matter what your IP is

    • @oiretsyM
      @oiretsyM 3 місяці тому +1

      @@CIA_Insights tmac can simply bypass hwid bans lol

  • @-fat
    @-fat 3 місяці тому

    Alt accounts too??? How do they decide what “alternative accounts” to ban??
    Trolling has fallen in Robloxia!

    • @iHxperr
      @iHxperr 3 місяці тому

      I think it’s IP

    • @JudlexAlternate
      @JudlexAlternate 3 місяці тому

      MAC address

    • @iHxperr
      @iHxperr 3 місяці тому

      @@JudlexAlternate true also

    • @chanchowaton
      @chanchowaton 3 місяці тому

      i dont know if its hardware based but probably not

  • @TheGamlng
    @TheGamlng 3 місяці тому +1

    So uh here’s a bug
    This can also ban the creator of the game if alt acc is detected 😬
    how do i unban the account what script do i use

    • @kokobroxd
      @kokobroxd 3 місяці тому

      no, it will ban the alt account if the creator is banned and joins on an alt and is detected

    • @TheGamlng
      @TheGamlng 3 місяці тому

      @@kokobroxdbro
      the creator gets banned and u cant fix it with hd

    • @TheGamlng
      @TheGamlng 3 місяці тому +1

      (the game creator can get banned)

    • @ryukin77
      @ryukin77 3 місяці тому +1

      wouldn't you just be able to add yourself to the unban list? you could also try making some sort of whitelist for bans

    • @ඞඞඞඞඞඞච
      @ඞඞඞඞඞඞච 3 місяці тому +1

      Players:UnbanAsync() moment

  • @BitBloxDevs
    @BitBloxDevs 3 місяці тому

    Wow

  • @Monkeymario.
    @Monkeymario. 3 місяці тому

    1:49 it says service not live so you cant use it yet

    • @nopfp416
      @nopfp416 3 місяці тому

      You can use it but it's so new documentation on it wasn't up so when it tried to fetch the documentation it gave a "service not live" error

  • @BrickMasterXx
    @BrickMasterXx 3 місяці тому +2

    local Part = script.Parent
    Part.Touched:Connect(function(touched)
    if touched.Parent:FindFirstChild("Humanoid") then
    local plr = game.Players:GetPlayerFromCharacter(touched.Parent)

    local success, erro = pcall(function()
    game.Players:BanAsync({
    UserIds = {plr.UserId},
    ApplyToUniverse = true,
    Duration = -1,
    DisplayReason = "You have been banned because you touched the part!!!!!!!!!!",
    PrivateReason = "Touched Part",
    ExcludeAltAccounts = true
    })
    end)
    end
    end)
    Edit

  • @creatorbot0056
    @creatorbot0056 3 місяці тому

    Pretty interesting cause the regular way to do it is by saving ban state in datastore.

  • @Alex-3-h4m
    @Alex-3-h4m 3 місяці тому

    The trolling community is crying rn because of this amazing update

  • @GoldVibranc
    @GoldVibranc 3 місяці тому +1

    HOW did you enable ads eventho your under 1k subs because i can't do it.