Using the New Ban API | Roblox Scripting Tutorial

Поделиться
HTML-код
  • Опубликовано: 30 сен 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: ruclips.net/video/IziSDc98SEE/видео.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

  • @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

  • @konstantinosladas7723
    @konstantinosladas7723 2 дня назад

    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)

  • @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

  • @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

  • @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!

  • @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

  • @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

  • @typoskwatter
    @typoskwatter 3 месяца назад +3

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

  • @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

  • @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

  • @dvyn3833
    @dvyn3833 3 месяца назад +2

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

  • @iHxperr
    @iHxperr 3 месяца назад +1

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

  • @amaz1699
    @amaz1699 3 месяца назад +2

    if you’re a BarneyHunter12 fan, (roblox RUclipsr 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

  • @Mohoragahrlp
    @Mohoragahrlp Месяц назад

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

  • @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

  • @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!

  • @FunyGuyLol
    @FunyGuyLol 3 месяца назад +1

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

  • @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)

  • @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.

  • @TheGamlng
    @TheGamlng 3 месяца назад +2

    can u post the script in the comments

  • @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

  • @CarmTzy
    @CarmTzy 2 месяца назад

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

  • @fudgecreations
    @fudgecreations 3 месяца назад +1

    This tutorial was very helpful 👍

  • @burgerbonkerqueenmsp9761
    @burgerbonkerqueenmsp9761 3 месяца назад

    the script doesn't work

  • @Wyrizon
    @Wyrizon 3 месяца назад +1

    easy alt account bypass lol

  • @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)

  • @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?

  • @danylos2
    @danylos2 3 месяца назад +1

    I can't imagine this going well

  • @Lvaic_
    @Lvaic_ 3 месяца назад +1

    This is very sigma

  • @Wolfractionwashere
    @Wolfractionwashere 2 месяца назад +1

    Thanks you 😀

  • @NORMAL_ACCOUNT...
    @NORMAL_ACCOUNT... 3 месяца назад

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

  • @wrld_of_trey4730
    @wrld_of_trey4730 3 месяца назад

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

  • @zooba4255
    @zooba4255 3 месяца назад

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

  • @gsdtxz
    @gsdtxz 3 месяца назад

    vpn easy solo

  • @erickoavenada969
    @erickoavenada969 3 месяца назад

    Roblox players be decreasing 10000× faster

  • @eric44910RobloxPlay
    @eric44910RobloxPlay 3 месяца назад

    vancouver

  • @ItsmeTOY
    @ItsmeTOY 3 месяца назад

    WHAAAAAT

  • @Alafandri
    @Alafandri 3 месяца назад

    your really quiet. turn up volume when editing the video

  • @thef0giscoming224
    @thef0giscoming224 3 месяца назад +1

    this guy is underated

  • @Errordimensions
    @Errordimensions 3 месяца назад

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

  • @exploitdevs
    @exploitdevs 3 месяца назад

    This is bad for those people who is hacking

  • @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

  • @antoniolaura443
    @antoniolaura443 3 месяца назад +1

    thanks :) :D

  • @Trokumukum
    @Trokumukum 2 месяца назад

    3:22

  • @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

  • @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

  • @uliveulearnandregret
    @uliveulearnandregret 3 месяца назад

    The Ban Brick!

  • @Anobot
    @Anobot 3 месяца назад

    Noice video! Roblox's Ban API epic

  • @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

  • @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

  • @veethabeeyt
    @veethabeeyt 3 месяца назад

    NOOOOO

  • @Alex-3-h4m
    @Alex-3-h4m 3 месяца назад

    The trolling community is crying rn because of this amazing update

  • @-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

  • @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

  • @jobertgutierrez5788
    @jobertgutierrez5788 3 месяца назад

    I love it ❤😂

  • @Gala_RF
    @Gala_RF 3 месяца назад

    Roblox did a W 🎉

  • @creatorbot0056
    @creatorbot0056 3 месяца назад

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

  • @BitBloxDevs
    @BitBloxDevs 3 месяца назад

    Wow

  • @GoldVibranc
    @GoldVibranc 3 месяца назад +1

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

  • @dirhi
    @dirhi 3 месяца назад +1

    this is me when the when are