Pcall - Roblox Scripting Tutorial

Pcall - Roblox Scripting Tutorial

AlvinBlox

11 месяцев назад

15,362 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@hike8932
@hike8932 - 02.07.2024 04:20

Protip: if you dont know which line the pcall ended in an error, next time print the line number along the error

Ответить
@DrDreadful
@DrDreadful - 05.07.2024 02:20

May you friend me back? It’s me Isaiahcoolkidyo. I understand if you want to save your friend slots though.

Ответить
@ernestoramirez8167
@ernestoramirez8167 - 05.07.2024 20:04

Alvin Nice job for doing The soccer game 🎉

Ответить
@krispcode
@krispcode - 05.07.2024 22:25

Very nice new style, you should do an OOP tutorial sometime. Theres really no good tutorials out there right now for OOP and it took me a while to learn.

Ответить
@IAmNotInsane123
@IAmNotInsane123 - 06.07.2024 21:24

I love youuuu

Ответить
@TobyScripts
@TobyScripts - 10.07.2024 15:24

This is the first time ive watched an alvinblox video in like 5 years and holy your voice sounds so much more mature now

Ответить
@Clamo_
@Clamo_ - 12.07.2024 07:08

u disappeared again 😥

Ответить
@peefiftee6060
@peefiftee6060 - 14.07.2024 07:24

by any chance, can you do an advanced tutorial on a hide and seek game with the following functions:
When players first join, they spawn in the lobby, even if there's a session of hide and seek going on.
Map voting system.
the map with the most votes is where the players will teleport into.
each intermission is around 2 minutes in the lobby.
After the intermission, give all the players 4 options of randomnly selected maps to vote from.
everyone would have 10 seconds to vote.
out of all the players, select a random player to be the seeker with the text as "[Player] is the seeker"
after the players teleport to the map with the most votes, they have one minute to hide, meanwhile, the seeker stays in the lobby.
After the one minute to hide, THEN teleport the seeker to the map where everyone is hiding.
After the 1 minute to hide is over, make the text say "Time left of session:" 4 minutes. in format MM:SS
if the seeker is caught, their character resets and teleports back to the lobby.
each time a player is removed from the session and teleported back to the lobby, make a text that tells you how many players are left in the round.
all the players that survive after the four minutes is up, make a text that says "[Player], [Player}, etc... survived the round"
And then teleport everyone back to the lobby.
and repeat the intermission process, etc...
Not to mention. Make it to where a random player is selected as the hunter which will teleport with the victims to the map.
If the seeker resets the character during the session, or if the seeker is eliminated by the hunter, everyone automatically wins.
All people that survive each round get a currency of 10 Points.
Roles should be:
Hider
Seeker
Lobby
Hunter
Not to mention, after everyone is teleported, hiders should see a gui that tells them what to do, same with the seeker and hunter.
I would greatly appreciate it as it would be helpful. I wasn't able to find anything advanced than beginner tutorials. Please Alvinblox, thanks!

Ответить
@ibtdrgn
@ibtdrgn - 17.07.2024 10:56

Alvin can you make a video about how to make an enemies that copy our avatar and chase us ? it's like an impostor game from Interliminality i've played before.

Ответить
@monkvr_gt
@monkvr_gt - 18.07.2024 20:00

what happend to the story game tuts

Ответить
@AxelOk-j1e
@AxelOk-j1e - 23.07.2024 06:14

Can you show us how to add kicking system from TPs street? Pls I’m a fan

Ответить
@JackPlaysMinecraft575
@JackPlaysMinecraft575 - 23.07.2024 21:07

i would love to see a Pathfinding Vid because EVERY Pathfinding tutorial i find Is Fake and its Super Annoying

Ответить
@Balloons-ce8um
@Balloons-ce8um - 28.07.2024 12:31

Can you do how to make a flashlight pls

Ответить
@FedoraVRgtag
@FedoraVRgtag - 31.07.2024 04:09

Everyone that’s watching this, if someone can help me by putting a script and explaining how to make this: if anyone can tell me how to make a model chase me. I tried rigs and failed saying I’m making a horror game that includes a mascot. So if anybody in the comments can tell me how to make a model chase me then thank you.

Ответить
@oleNikolic
@oleNikolic - 03.08.2024 02:50

POST A UPDATED REGION3 TUTORIAL!!😅

Ответить
@ColdGaming10-SC
@ColdGaming10-SC - 03.08.2024 17:34

Hello Alvin I need you to make something in my game for me

Ответить
@yharon1-c3h
@yharon1-c3h - 14.08.2024 17:26

yo can you make tutorial playlist how to make an dummies vs noobs game also test ones too to test the allies ai and boss/enemies ai for your dvn game with how to make sparta ai too

Ответить
@thefearfulharmony
@thefearfulharmony - 16.08.2024 19:31

build a bridge simulator

Ответить
@SaBssY-lf3fn
@SaBssY-lf3fn - 17.08.2024 16:13

hey man can u do tutorial about damage circle thats following you and when npc is in circle its gona auto attack it yk ye? like its in anime defense or smt like that pls its not even single tutorial in yt

Ответить
@TDGrowing
@TDGrowing - 23.08.2024 02:05

bro said a few days lol 😭😭😭😭😭😭😭😭

Ответить
@ObliviousStudiosDev
@ObliviousStudiosDev - 24.08.2024 20:14

Can you remake your Piggy series? I know alot of people who would like an update on it!

Ответить
@FunTextStories-z7h
@FunTextStories-z7h - 25.08.2024 16:50

Hey, Alvin please can you tell me how to make a game like the game "There is no game" on roblox studio

Ответить
@earthquakebros
@earthquakebros - 25.08.2024 21:11

The last Alvinblox video…

Ответить
@rendomstuf4019
@rendomstuf4019 - 30.08.2024 06:25

Alvin sounds more depressing every video

Ответить
@BasicBeni
@BasicBeni - 05.09.2024 04:26

You should make a difficulty chart obby tutorial specifically the stage selector

Ответить
@JilowTheGeorgeDestroyer
@JilowTheGeorgeDestroyer - 08.09.2024 00:12

piggy kit remaster when

Ответить
@Noah.Nation
@Noah.Nation - 08.09.2024 07:54

You forgot to mention that the second variable can also be the returned value from the function inside the pcall

Ответить
@totallynoone
@totallynoone - 10.09.2024 17:09

omg myfriend met you

Ответить
@daily_texts100
@daily_texts100 - 19.09.2024 19:40

fake

Ответить
@Rioooo_69
@Rioooo_69 - 28.09.2024 00:27

Congrats, chatgpt told me to see ur videos to learn Lua 😭

Ответить
@JoulesRblx
@JoulesRblx - 06.10.2024 17:45

Thxxx so much bro I knew I could always count on ur tutorials every time I get confused at scripting, and I said Huge thxxx again

Ответить
@vali96
@vali96 - 13.10.2024 22:05

can you please create a tower defense game tutorial

Ответить
@WallyWritewand
@WallyWritewand - 22.10.2024 14:14

hello, complete tutorial for inventory/backpack pls. If the player didn't equipped the item inside the backpack, the toolbox/hotbar is invisible. pls make a video about.

Ответить
@wailpro6378
@wailpro6378 - 27.10.2024 23:30

u disappeared man i used to watch ur videos in my old account that get banned

Ответить
@bosstehmuss
@bosstehmuss - 29.10.2024 07:36

Can you do a video on how to fix lag on Studio for when you resize parts on the Studio? It lags and idk what to do and I have a gaming laptop so idk why it would be lagging. Please help!

Ответить
@PROPLAYERMARTIM
@PROPLAYERMARTIM - 03.11.2024 19:48

Bro you are alive? You can make more videos PLS
Pls bro...

Ответить
@parkerknowz
@parkerknowz - 18.11.2024 00:12

Hey Alvin! It's been a while. If you are looking for ideas of new videos, you could potentially go back and fix/renovate your old Sword Fighting game from years ago! That would be very cool to see.

Ответить
@JasperLugtenburg
@JasperLugtenburg - 17.12.2024 23:33

PLS read the comments on Roblox Tycoon Scripting Tutorial (Part 6) we want answers and pls finish it so i can finish the game: Add thing such as: how much a button cost, rotating the plot if it is on the other side, etc

Ответить
@sheepgtps
@sheepgtps - 08.01.2025 17:45

Hi, im your new Membership

Ответить
@lineofscripting6304
@lineofscripting6304 - 12.01.2025 08:10

Alvin its been many years and i just wanna say thank u so much for helping me code back in 2018, today im with 300m visits across my games. all thanks to you!! //Firemalte07

Ответить
@KingOfTheVolt
@KingOfTheVolt - 12.01.2025 16:59

The best way to rerun code if it wasn't found:

local s, e = pcall(function()
--Code here
end)

while not s do
wait ()
s, e = pcall(function()
warn(e)
--Code Here
end)
end

print("Success")


Essentailly, the game first tries the pcall at the top. If it returns unsuccessful, the game will repetitively try it and not let more code execute until it has worked correctly. Then it moves on to what is below, in this case the success print

Ответить
@NomanAli-y6h8h
@NomanAli-y6h8h - 26.01.2025 19:23

hi alvin! please accept my friend request my id is Nomi_Don

Ответить
@Gloomiz
@Gloomiz - 29.01.2025 20:53

AlvinBlox bro I love your videos. I'm a beginner scripting and when I look at this video playlist it's just so overwhelming. Could u please make a new playlist with the videos for beginners scripting. That would be so awesome from you

Ответить
@absolutfreeman1033
@absolutfreeman1033 - 12.02.2025 04:10

Bro how are you doing? I used to watch your video back in 2016. Been a long time. I dont play roblox anymore currently. And I almost gradute nursing school. How time flies so fast

Ответить
@IceyIcey-p2z
@IceyIcey-p2z - 16.02.2025 17:04

alvin can u please bring ur pls donate video back?

Ответить
@XLil3dx
@XLil3dx - 27.02.2025 18:52

Bro Calvin come back to yt 😭

Ответить
@Sabrinas.Cookie
@Sabrinas.Cookie - 15.03.2025 23:38

Hey Alvin! It's been a while now so I'm here to ask you for some things! Like can you please come back creating more amazing videos? I just love watching you! And can you make a tutorial on how to make a game like theme park tycoon? That's all! Thanks for your time!❤

Ответить
@6y428
@6y428 - 28.04.2025 04:04

Really nice tutorial however you shouldn't teach people wrong stuff, pcall does NOT make a new thread, standing for "protected call", pca just runs the code inside in "protected mode" (handled internally in C) but it can yield just like any other thread-level execution

Ответить
@doughboy4525
@doughboy4525 - 10.05.2025 00:42

post moreeee

Ответить