Using the New Ban API | Roblox Scripting Tutorial

  Рет қаралды 24,865

CodingCapybara

CodingCapybara

Күн бұрын

Пікірлер: 176
@CodingCapybaraRoblox
@CodingCapybaraRoblox 3 ай бұрын
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: kzbin.info/www/bejne/f6vMhHeZbp2Ge6c 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 ай бұрын
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 ай бұрын
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 ай бұрын
@@DHG-4000_Productions you just do, ask your friends to make it for you
@boi875_RBLX
@boi875_RBLX 3 ай бұрын
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 ай бұрын
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 ай бұрын
@@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)
@amaz1699
@amaz1699 3 ай бұрын
if you’re a BarneyHunter12 fan, (roblox KZbinr 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 ай бұрын
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
@carpet.
@carpet. 3 ай бұрын
damn only 209 Subs ????!! you deserve way more ngl
@marcuspage2026
@marcuspage2026 3 ай бұрын
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 ай бұрын
real soon? get on to it now!!
@Todoza
@Todoza 3 ай бұрын
@@macialdo100I’m starting once I get home from vacation!!
@marcuspage2026
@marcuspage2026 3 ай бұрын
@@macialdo100 hahah don’t worry! I meant next week because I had to finish a summer course in uni this week
@provideowatcher
@provideowatcher 3 ай бұрын
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 ай бұрын
that's not how that works skid
@Sakupenny
@Sakupenny 3 ай бұрын
best thing its IP ban
@provideowatcher
@provideowatcher 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
@konstantinosladas7723
@konstantinosladas7723 4 күн бұрын
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 3 ай бұрын
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 2 ай бұрын
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
@dvyn3833
@dvyn3833 3 ай бұрын
finally a real ban system that's not about of silly kicking.
@typoskwatter
@typoskwatter 3 ай бұрын
very informative. well done! dropping a sub ^-^
@avyukth3727
@avyukth3727 2 ай бұрын
As far as I know you're the only one who made a productive video on the ban API. Good job
@FunyGuyLol
@FunyGuyLol 3 ай бұрын
Finally! Now I don't have to have ban info in my datastore now
@insertusernamehere8125
@insertusernamehere8125 3 ай бұрын
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!
@Ianimategoofycharacters
@Ianimategoofycharacters 3 ай бұрын
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 ай бұрын
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
@BH_Animations
@BH_Animations 3 ай бұрын
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 ай бұрын
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 ай бұрын
you ban the person person lives near you. person has the same ip as you then you also get banned lol.
@deesh6378
@deesh6378 3 ай бұрын
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 ай бұрын
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
@XioJN
@XioJN 3 ай бұрын
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.
@chibisayori20
@chibisayori20 3 ай бұрын
just ban them again, simple
@Anobot
@Anobot 3 ай бұрын
Noice video! Roblox's Ban API epic
@Mohoragahrlp
@Mohoragahrlp Ай бұрын
Do i have to put it into a block i want to make this a gui
@CarmTzy
@CarmTzy 2 ай бұрын
lmao, i kinda wanna make the same vid but you deserve the views
@CodingCapybaraRoblox
@CodingCapybaraRoblox 2 ай бұрын
uh ok lol
@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?
@burgerbonkerqueenmsp9761
@burgerbonkerqueenmsp9761 3 ай бұрын
the script doesn't work
@8tan200
@8tan200 3 ай бұрын
cant you just use the command bar to unban and ban them?
@alexskorpik11play79
@alexskorpik11play79 3 ай бұрын
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)
@TheGamlng
@TheGamlng 3 ай бұрын
can u post the script in the comments
@CodingCapybaraRoblox
@CodingCapybaraRoblox 3 ай бұрын
I made a new pinned comment with it
@iHxperr
@iHxperr 3 ай бұрын
This is better than kicking players. Cuz they can just go in a alt. W Roblox
@Wolfractionwashere
@Wolfractionwashere 2 ай бұрын
Thanks you 😀
@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)
@ItsmeTOY
@ItsmeTOY 3 ай бұрын
WHAAAAAT
@danylos2
@danylos2 3 ай бұрын
I can't imagine this going well
@fudgecreations
@fudgecreations 3 ай бұрын
This tutorial was very helpful 👍
@Wyrizon
@Wyrizon 3 ай бұрын
easy alt account bypass lol
@JudlexAlternate
@JudlexAlternate 3 ай бұрын
yeah change your MAC address
@CodingCapybaraRoblox
@CodingCapybaraRoblox 3 ай бұрын
yea but at least its better than no detection at all ig
@Lvaic_
@Lvaic_ 3 ай бұрын
This is very sigma
@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.
@Alafandri
@Alafandri 3 ай бұрын
your really quiet. turn up volume when editing the video
@Trokumukum
@Trokumukum 2 ай бұрын
3:22
@zooba4255
@zooba4255 3 ай бұрын
Are there any places with an API ban so you can go in and check how it works?
@erickoavenada969
@erickoavenada969 3 ай бұрын
Roblox players be decreasing 10000× faster
@eric44910RobloxPlay
@eric44910RobloxPlay 3 ай бұрын
vancouver
@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 ай бұрын
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
@thef0giscoming224
@thef0giscoming224 3 ай бұрын
this guy is underated
@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
@antoniolaura443
@antoniolaura443 3 ай бұрын
thanks :) :D
@creatorbot0056
@creatorbot0056 3 ай бұрын
Pretty interesting cause the regular way to do it is by saving ban state in datastore.
@CrystalCoding-oy6qh
@CrystalCoding-oy6qh 3 ай бұрын
There wasnt a ban system?
@Trazor_
@Trazor_ 3 ай бұрын
@@CrystalCoding-oy6qh nah
@uliveulearnandregret
@uliveulearnandregret 3 ай бұрын
The Ban Brick!
@yamannminecraftzaman1947
@yamannminecraftzaman1947 3 ай бұрын
YEEEEEEESSS!!!!!FINALLYYYYY!!!!!!
@YNGricky
@YNGricky 3 ай бұрын
imagine getting unfairly ban in your favorite game, and you will never be able to play it again
@filled9971
@filled9971 3 ай бұрын
Use a vpn
@DeltaruneRalsei
@DeltaruneRalsei 3 ай бұрын
will the old way of banning (kicking) work still?
@WhyRBX
@WhyRBX 3 ай бұрын
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 ай бұрын
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 ай бұрын
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 🎉
@GoldVibranc
@GoldVibranc 3 ай бұрын
HOW did you enable ads eventho your under 1k subs because i can't do it.
@TheGamlng
@TheGamlng 3 ай бұрын
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 ай бұрын
(the game creator can get banned)
@ryukin77
@ryukin77 3 ай бұрын
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 ай бұрын
Players:UnbanAsync() moment
@Seg_Fault-lv5te
@Seg_Fault-lv5te 3 ай бұрын
Incorporating alt account detection into the ban API is a pretty stupid move on Roblox's part.
@zk3282
@zk3282 3 ай бұрын
why?
@Voipy
@Voipy 3 ай бұрын
???
@tiny_dino3049
@tiny_dino3049 3 ай бұрын
@@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 ай бұрын
@@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
@jobertgutierrez5788
@jobertgutierrez5788 3 ай бұрын
I love it ❤😂
@BitBloxDevs
@BitBloxDevs 3 ай бұрын
Wow
@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 ай бұрын
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
@Haze12492
@Haze12492 3 ай бұрын
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
@Alex-3-h4m
@Alex-3-h4m 3 ай бұрын
The trolling community is crying rn because of this amazing update
@firepalmmy5933
@firepalmmy5933 3 ай бұрын
not amazing its horrible
@JudlexAlternate
@JudlexAlternate 3 ай бұрын
It has already been bypassed since it released
@frostbyte3978
@frostbyte3978 3 ай бұрын
It's already bypassed
@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
@dirhi
@dirhi 3 ай бұрын
this is me when the when are
@gsdtxz
@gsdtxz 3 ай бұрын
vpn easy solo
@veethabeeyt
@veethabeeyt 3 ай бұрын
NOOOOO
Getting a Player's Ban History | Roblox Scripting Tutorial
7:53
CodingCapybara
Рет қаралды 3 М.
Roblox Faces Are Weirder Than You Realize
18:19
Nitrolord
Рет қаралды 511 М.
How Strong is Tin Foil? 💪
00:26
Preston
Рет қаралды 138 МЛН
Will A Guitar Boat Hold My Weight?
00:20
MrBeast
Рет қаралды 262 МЛН
Ozoda - Lada ( Official Music Video 2024 )
06:07
Ozoda
Рет қаралды 17 МЛН
How players pushed a Merging game to its limit
17:22
SlashedPort
Рет қаралды 1,6 МЛН
I redesigned my game
23:32
jdh
Рет қаралды 101 М.
Why I Started Game Dev In My Late 30s
7:32
Game Dev With Michael
Рет қаралды 22 М.
Roblox Devs, stop misusing :WaitForChild()!
17:13
Crusherfire
Рет қаралды 68 М.
I Made A Difficult Game About Climbing
15:04
Pontypants
Рет қаралды 2,1 МЛН
Can 6 DEVS Make a STORY Game Without Communicating?
15:32
RoDev
Рет қаралды 2,2 МЛН
I Broke EVERY Roblox Rule
21:16
AintNoobie
Рет қаралды 737 М.
What Is The Best AI For Roblox Studio Scripting?
10:42
RoDev
Рет қаралды 446 М.
I Made a Fake Warning to Scare Roblox Players
16:31
ByteBlox
Рет қаралды 1,3 МЛН
How Strong is Tin Foil? 💪
00:26
Preston
Рет қаралды 138 МЛН