Тёмный

Using the New Ban API | Roblox Scripting Tutorial 

CodingCapybara
Подписаться 361
Просмотров 18 тыс.
50% 1

Today I teach you how to use the new Ban API to ban players from your game or places!
Roblox Creator Documentation: create.roblox.com/docs
DevForum Post: devforum.roblox.com/t/introdu...
Ban API Documentation: create.roblox.com/docs/refere...
Timestamps:
0:00 - Intro
0:36 - Banning / BanAsync
7:01 - Unbanning / UnbanAsync
9:32 - Outro
Tags (Ignore):
Roblox, Roblox Ban API, Ban API Tutorial, Roblox Ban API, How to Use Ban API, Ban Players and Alts Roblox, Roblox Ban System, Ban API Guide, Player Ban Script Roblox, Ban API Integration, Banning Alts Roblox, Roblox Security Tutorial, Developer Ban Tools, Advanced Ban API, Ban System Scripting, Roblox Game Security, Managing Bans in Roblox, Ban API Features, Roblox Player Moderation, How to Ban Players Roblox, Ban API Roblox Studio, Scripting Player Bans, Roblox Ban Management, Ban API for Developers, Roblox API Tutorial, Ban System Implementation, Banning Players Effectively, Ban API Best Practices, Player Ban Techniques, Roblox Studio Ban Script, Ban System Guide, Ban API Functionality, Effective Player Banning, Ban Alt Accounts Roblox, Ban API Documentation, Roblox Security Tools, Custom Ban Scripts, Ban Players Automatically, Ban API Configuration, Roblox API Integration, Player Moderation Script, Ban API Setup, Handling Bans in Roblox, Ban API Tips and Tricks

Хобби

Опубликовано:

 

4 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 170   
@CodingCapybaraRoblox
@CodingCapybaraRoblox 7 дней назад
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: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-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
@DHG-4000 7 дней назад
How do you make it into a ban ui?
@localscripted
@localscripted 6 дней назад
@@DHG-4000code it
@communistparty-zs2ts
@communistparty-zs2ts 6 дней назад
tanks you :))
@madnessmyth
@madnessmyth 6 дней назад
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 6 дней назад
@@DHG-4000 you just do, ask your friends to make it for you
@carpet.
@carpet. 6 дней назад
damn only 209 Subs ????!! you deserve way more ngl
@saintdeity9443
@saintdeity9443 6 дней назад
very informative. well done! dropping a sub ^-^
@marcuspage2026
@marcuspage2026 6 дней назад
Just discovered your account, very excited for the content you will be creating! I plan to learn scripting real soon this summer
@macialdo100
@macialdo100 6 дней назад
real soon? get on to it now!!
@Todoza
@Todoza 5 дней назад
@@macialdo100I’m starting once I get home from vacation!!
@marcuspage2026
@marcuspage2026 5 дней назад
@@macialdo100 hahah don’t worry! I meant next week because I had to finish a summer course in uni this week
@Anobot
@Anobot 6 дней назад
Noice video! Roblox's Ban API epic
@fudgecreations
@fudgecreations 6 дней назад
This tutorial was very helpful 👍
@noxoreits
@noxoreits 6 дней назад
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 5 дней назад
that's not how that works skid
@Sakupenny
@Sakupenny 5 дней назад
best thing its IP ban
@noxoreits
@noxoreits 5 дней назад
@@carbonz that is quite literally how it works, im not a "skid", dont talk on topics you arent educated in
@Anikin3-
@Anikin3- 5 дней назад
you can't "inject" something into a game just by joining it
@AlmiraMiliss
@AlmiraMiliss 5 дней назад
@@Sakupennyeasy to bypass
@FunyGuyLol
@FunyGuyLol 5 дней назад
Finally! Now I don't have to have ban info in my datastore now
@angelkingcat
@angelkingcat 20 часов назад
love the video lookie should make a tut on how to code in roblox! Edit: like the man basic's of coding in roblox!
@boi8756
@boi8756 6 дней назад
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 6 дней назад
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 6 дней назад
@@TREB0RZcsgo after leaving a comp game
@goldfishglory
@goldfishglory 6 дней назад
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)
@BH_Animations
@BH_Animations 7 дней назад
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 7 дней назад
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 6 дней назад
you ban the person person lives near you. person has the same ip as you then you also get banned lol.
@deesh6378
@deesh6378 6 дней назад
I doubt it uses your IP alone, it's probably a mixture between HWID, IP, and some behavioural factors.
@XioJN
@XioJN 6 дней назад
@@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 6 дней назад
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
@amaz1699
@amaz1699 5 дней назад
if you’re a BarneyHunter12 fan, (roblox RU-vidr 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 4 дня назад
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 4 дня назад
@@nopfp416 that too
@dvynout
@dvynout 6 дней назад
finally a real ban system that's not about of silly kicking.
@jobertgutierrez5788
@jobertgutierrez5788 6 дней назад
I love it ❤😂
@antoniolaura443
@antoniolaura443 6 дней назад
thanks :) :D
@thef0giscoming224
@thef0giscoming224 6 дней назад
this guy is underated
@danylos2
@danylos2 6 дней назад
I can't imagine this going well
@XioJN
@XioJN 6 дней назад
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.
@wedoalittletrolling723
@wedoalittletrolling723 6 дней назад
just ban them again, simple
@creatorbot0056
@creatorbot0056 6 дней назад
Pretty interesting cause the regular way to do it is by saving ban state in datastore.
@CrystalCoding-oy6qh
@CrystalCoding-oy6qh 6 дней назад
There wasnt a ban system?
@Trazor_
@Trazor_ 6 дней назад
@@CrystalCoding-oy6qh nah
@Errordimensions
@Errordimensions 5 дней назад
yeah i saw hd admin and there was an ban alt accounts
@zooba4255
@zooba4255 6 дней назад
Are there any places with an API ban so you can go in and check how it works?
@卂尺乂工𠘨
@卂尺乂工𠘨 6 дней назад
This is better than kicking players. Cuz they can just go in a alt. W Roblox
@uliveulearnandregret
@uliveulearnandregret 4 дня назад
The Ban Brick!
@Lvaic_
@Lvaic_ 6 дней назад
This is very sigma
@Gala_RF
@Gala_RF 6 дней назад
Roblox did a W 🎉
@wrld_of_trey4730
@wrld_of_trey4730 4 дня назад
Can you please a police radio with voice chat with a keybind to enabled it.
@YNGricky
@YNGricky 6 дней назад
imagine getting unfairly ban in your favorite game, and you will never be able to play it again
@filled9971
@filled9971 5 дней назад
Use a vpn
@Senoplay
@Senoplay 6 дней назад
Thanks dude I'll ban everyone forever
@insertusernamehere8125
@insertusernamehere8125 6 дней назад
so this is that dreaded "alt detection feature" everyone's talking about
@saintdeity9443
@saintdeity9443 6 дней назад
Do we know if it's IP or HWID based?
@TechnicalIssuesOfficial
@TechnicalIssuesOfficial 6 дней назад
@@saintdeity9443 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 6 дней назад
@@saintdeity9443mac
@ValipPowa
@ValipPowa 5 дней назад
@@saintdeity9443 it doesn't matter? they are both the same more or less hwid less cancerous but it's probably a combo
@nopfp416
@nopfp416 4 дня назад
​@ValipPowa they're very different but ok
@Alafandri
@Alafandri 6 дней назад
your really quiet. turn up volume when editing the video
@qxxrd
@qxxrd 6 дней назад
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 6 дней назад
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 6 дней назад
​@TypKris I don't use the switch accounts thing, I just log out and log into the alt
@CodingCapybaraRoblox
@CodingCapybaraRoblox 6 дней назад
my guess is it uses your ip to see if its an alt
@TypKris
@TypKris 5 дней назад
@@CodingCapybaraRobloxyes youre right probably, but im pretty sure they also ban the accounts attached to the account you ban
@nopfp416
@nopfp416 4 дня назад
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
@BitBloxDevs
@BitBloxDevs 6 дней назад
Wow
@Ianimategoofycharacters
@Ianimategoofycharacters 6 дней назад
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 6 дней назад
No, not how it works place needs to be owned by owner unless he owns bedwars he cant ban ppl from it
@chanchowaton
@chanchowaton 6 дней назад
you need ownership of the game
@CodingCapybaraRoblox
@CodingCapybaraRoblox 6 дней назад
"Places" refer to places in YOUR game. not other games
@burgerbonkerqueenmsp9761
@burgerbonkerqueenmsp9761 День назад
the script doesn't work
@NORMAL_ACCOUNT...
@NORMAL_ACCOUNT... 6 дней назад
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)
@Monkeymario.
@Monkeymario. 5 дней назад
1:49 it says service not live so you cant use it yet
@nopfp416
@nopfp416 4 дня назад
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
@user-fe8ex9tx5r
@user-fe8ex9tx5r 6 дней назад
The trolling community is crying rn because of this amazing update
@firepalmmy5933
@firepalmmy5933 6 дней назад
not amazing its horrible
@JudlexAlternate
@JudlexAlternate 6 дней назад
It has already been bypassed since it released
@frostbyte3978
@frostbyte3978 6 дней назад
It's already bypassed
@Haze12492
@Haze12492 6 дней назад
Am I able to connect it into a command script?
@xBaqq1
@xBaqq1 6 дней назад
Yes just where your put the info of the user get it from your command it’s really simple
@erickoavenada969
@erickoavenada969 6 дней назад
Roblox players be decreasing 10000× faster
@8tan200
@8tan200 6 дней назад
cant you just use the command bar to unban and ban them?
@alexskorpik11play79
@alexskorpik11play79 6 дней назад
no, only server scripts can do it, command bar has the authority of plugin scripts
@CodingCapybaraRoblox
@CodingCapybaraRoblox 6 дней назад
The ban and unban only work in real servers, not in studio (pretty sure)
@TheGamlng
@TheGamlng 7 дней назад
can u post the script in the comments
@CodingCapybaraRoblox
@CodingCapybaraRoblox 7 дней назад
I made a new pinned comment with it
@-fat
@-fat 6 дней назад
Alt accounts too??? How do they decide what “alternative accounts” to ban?? Trolling has fallen in Robloxia!
@卂尺乂工𠘨
@卂尺乂工𠘨 6 дней назад
I think it’s IP
@JudlexAlternate
@JudlexAlternate 6 дней назад
MAC address
@卂尺乂工𠘨
@卂尺乂工𠘨 6 дней назад
@@JudlexAlternate true also
@chanchowaton
@chanchowaton 6 дней назад
i dont know if its hardware based but probably not
@DeltaruneRalsei
@DeltaruneRalsei 6 дней назад
will the old way of banning (kicking) work still?
@WhyRBX
@WhyRBX 6 дней назад
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 6 дней назад
yes but the new way is better
@BitBloxDevs
@BitBloxDevs 6 дней назад
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.
@andrewthedoggo1423
@andrewthedoggo1423 6 дней назад
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 6 дней назад
yes, but it is recommended to use the new feature since its easier and more efficient
@TheNight55
@TheNight55 6 дней назад
This is bad for those people who is hacking
@epixerty
@epixerty 6 дней назад
does that mean that if a banned player joins it doesn't trigger PlayerAdded?
@Voipy
@Voipy 6 дней назад
probably, yeah
@SiegeStudiosOfficial
@SiegeStudiosOfficial 6 дней назад
Not even sure but it could be a possibility, read more about the api or something and u can get more info. Prolly somewhere like devforums.
@epixerty
@epixerty 6 дней назад
@@SiegeStudiosOfficial i could do a quick test but i was just curious and asked in case someone knows already. if i ever need to use it I'll check it myself
@kaasmetlk
@kaasmetlk 6 дней назад
@@epixerty so whats result you got?
@TheResidence.mp4
@TheResidence.mp4 6 дней назад
​@@epixertyCurious about the results of your PlayerAdded test
@eric44910RobloxPlay
@eric44910RobloxPlay 3 дня назад
vancouver
@NORMAL_ACCOUNT...
@NORMAL_ACCOUNT... 6 дней назад
i bet 50% of devs are going to abuse this function looking at you pet sim 99
@TheGamlng
@TheGamlng 7 дней назад
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 7 дней назад
no, it will ban the alt account if the creator is banned and joins on an alt and is detected
@TheGamlng
@TheGamlng 7 дней назад
@@kokobroxdbro the creator gets banned and u cant fix it with hd
@TheGamlng
@TheGamlng 7 дней назад
(the game creator can get banned)
@ryukin77
@ryukin77 7 дней назад
wouldn't you just be able to add yourself to the unban list? you could also try making some sort of whitelist for bans
@x64dbghehe
@x64dbghehe 7 дней назад
Players:UnbanAsync() moment
@Seg_Fault-lv5te
@Seg_Fault-lv5te 6 дней назад
Incorporating alt account detection into the ban API is a pretty stupid move on Roblox's part.
@zk3282
@zk3282 6 дней назад
why?
@Voipy
@Voipy 6 дней назад
???
@tiny_dino3049
@tiny_dino3049 6 дней назад
@@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.
@botmanone
@botmanone 6 дней назад
​@@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 6 дней назад
@@botmanone tmac can simply bypass hwid bans lol
@GoldVibranc
@GoldVibranc 6 дней назад
HOW did you enable ads eventho your under 1k subs because i can't do it.
@GarbageCanVsChild
@GarbageCanVsChild 3 дня назад
waste of time. already been bypassed
@ItsmeTOY
@ItsmeTOY 5 дней назад
WHAAAAAT
@gsdtxz
@gsdtxz 5 дней назад
vpn easy solo
@veethabeeyt
@veethabeeyt 6 дней назад
NOOOOO
@BrickMasterXx
@BrickMasterXx 7 дней назад
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
@dirhi
@dirhi 6 дней назад
this is me when the when are
@Wyrizon
@Wyrizon 6 дней назад
easy alt account bypass lol
@JudlexAlternate
@JudlexAlternate 6 дней назад
yeah change your MAC address
@CodingCapybaraRoblox
@CodingCapybaraRoblox 6 дней назад
yea but at least its better than no detection at all ig
Далее
How to Make a Key Door in Roblox Studio!
2:40
Просмотров 24 тыс.
Computing Pi on the NES
9:43
Просмотров 195 тыс.
EditableMesh full tutorial Roblox Studio
23:55
Просмотров 36 тыс.
How To Make A REALISTIC Roblox Horror Game
20:19
Просмотров 374 тыс.
Roblox Tycoon Scripting Tutorial
10:36
Просмотров 88 тыс.
How Are Minimaps Actually Programmed?
15:12
Просмотров 12 тыс.
I am opening my DISCORD
2:52
Просмотров 14
easy game filter 😎
0:12
Просмотров 6 млн
ВЕЛОСИПЕД ЗАГОВОРИЛ
0:15
Просмотров 7 млн