How To Make A Piggy Game In Roblox - Piggy / Granny Tutorial - Ep 2

Тәжірибелік нұсқаулар және стиль

[Ep 2] Learn how to make a Piggy Game in Roblox with this tutorial. You’ll learn how to make a Roblox game like Piggy or Granny with working doors, Piggy avatar skin, crouching, working keys and tools such as a hammer and bat.
Piggy Tutorial Help Section / Frequently Asked Questions on my Website: www.alvinblox.com/how-to-make...
Next part: • How To Make A Piggy Ga...
Piggy Kit Model Link (Please Like and Favourite the model so others can find it): www.roblox.com/library/493396...
(Piggy Kit is not finished project, you need to watch along to learn how to use and script it!)
BECOME A PREMIUM CHANNEL MEMBER TO GET THE COMPLETED PROJECT FILE :
Click the Join button next to Subscribe or go to www.alvinblox.com/join
ToMS function: pastebin.com/Bq7GXcz8
Download Roblox Studio: www.roblox.com/create
Become a Channel Member: www.alvinblox.com/join
Piggy Tutorial Sub-Videos (How to create the Kit)
- Coming soon, please check back in the future!
Other Videos Mentioned In This One To Help You:
Status Bar Tutorial: • Video
Functions / Arguments Tutorial: • Function Parameters / ...
Tables Tutorial: • Tables (table.remove /...
Remote Events Tutorial: • Remote Events ~ Filter...
It is also useful to watch my full beginner Roblox Studio Scripting Series if you are not confident in your coding abilities, or if you just need a refresher:
Recently, the game ‘Piggy’ has been taking the Roblox world by storm. After launching itself onto the front page, the game, developed by MiniToon, has already achieved 1 billion visits, becoming the fastest Roblox game to do so.
The game is simple. Players are spawned into a map where they are locked inside - an escape room. Not only do you have to try and escape in under 10 minutes, but you’re also being hunted down by a monster wielding a baseball bat who wants to kill you - the Piggy.
Although a Piggy is usually not thought to be evil and sinister, in this game the Piggy is the enemy. Do not get caught by the Piggy at any cost, because as soon as you’re killed, you’re out of the round.
The players who are trying to escape have to work together as a team to find keys that unlock other doors containing other useful items to help aid your escape. Only one tool or key can be equipped at once though - so you need to communicate with the others in the game to know who has what items.
#Piggy #Granny #Roblox
Become a Member today for exclusive perks and to support my channel!
► / @alvinblox
Subscribe to my KZread channel for more scripting videos:
►kzread.info?sub...
► Watch my full beginner scripting series: goo.gl/k3erz2
Got video suggestions or feedback? Contact me via my website
►www.alvinblox.com/
Roblox username: Alvin_Blox
The music in this video is licensed from Epidemic Sound
www.epidemicsound.com

Пікірлер: 2 900

  • @AlvinBlox
    @AlvinBlox4 жыл бұрын

    FREQUENTLY ASKED QUESTIONS / HELP GUIDE FOR IF YOU'RE STUCK ON MY WEBSITE: www.alvinblox.com/how-to-make-a-piggy-game-on-roblox/#statusbarnotworking Next part coming tomorrow!

  • @Sayfside

    @Sayfside

    4 жыл бұрын

    when the series is done can u make everything in a model that we can get? EDIT: and add a script that says what to do for example for the animation part1

  • @AlvinBlox

    @AlvinBlox

    4 жыл бұрын

    Channel Members get access to the full project file but you can watch along to learn how. Animations will also get covered.

  • @bat-

    @bat-

    4 жыл бұрын

    Just subscribed btw

  • @Sayfside

    @Sayfside

    4 жыл бұрын

    @@AlvinBlox ohh I dont have 5 dollars

  • @MrDoggoRoblox

    @MrDoggoRoblox

    4 жыл бұрын

    I still don't know why my game stops at 0 seconds then nothing happens Alvin can you help me please? And I checked my script but I still can't find what's wrong any advice and it says that it's correct?

  • @thegreenlaser5784
    @thegreenlaser57844 жыл бұрын

    We all know that AlvinBlox has secretly made every single game on roblox and that's why he can show us how to do it

  • @RattyCharles

    @RattyCharles

    4 жыл бұрын

    Yeah he made adopt it's so cool

  • @inferno1257

    @inferno1257

    4 жыл бұрын

    So true mate.

  • @dangraphx2231

    @dangraphx2231

    4 жыл бұрын

    Exposedddd

  • @fabbe432

    @fabbe432

    4 жыл бұрын

    Das True i swear, i have been subscribed for like 3 years to this dude

  • @nicolaadams618

    @nicolaadams618

    4 жыл бұрын

    True

  • @kirklurkpu4470
    @kirklurkpu44704 жыл бұрын

    So what I learned today : 1. How to let someone equip a tool right away instead of going to backpack first. 2. How to randomize where you spawn in the map 3. Puttings tags is helpful as it will recognize which is which, even though it's not visible at the front screen, still optimizes script manner. 4. How to countdown to minutes instead of just seconds.

  • @alicia-id4nu
    @alicia-id4nu3 жыл бұрын

    *lmao Studio quit unexpectedly and saved my code but deleted my chapters and the status value. Now I need to restart, major respects to you Alvin for doing this for us for free because this is A LOT of code*

  • @InevitableFmz
    @InevitableFmz3 жыл бұрын

    gg on the first vid. I'm excited to dive in to the next one!

  • @tomanator07
    @tomanator074 жыл бұрын

    "I wonder what I can make of this idea, what I can add on..." Every developer should always think of this

  • @grantanimationstudios6067

    @grantanimationstudios6067

    4 жыл бұрын

    Tomanator07 no u

  • @votreamie
    @votreamie4 жыл бұрын

    Me: ooh the second part Parent: You only have 1 hour of screen time Me: Looks at video length = 52:15 :(

  • @shortanimationsvids1660

    @shortanimationsvids1660

    4 жыл бұрын

    :(

  • @kaytea42

    @kaytea42

    4 жыл бұрын

    Luckily I don’t live with my parents no more

  • @soul5440

    @soul5440

    4 жыл бұрын

    why is second part so hard?? I lost my timer in this episode. Gone Forever and it's none of the common bugs.

  • @robloxpro947

    @robloxpro947

    4 жыл бұрын

    Me: *iT Is edUCatiONaL mOm* that actually worked no joke

  • @SilverScripter

    @SilverScripter

    3 жыл бұрын

    It’s only 52:14 not 52:15 lol

  • @ScopeScripter
    @ScopeScripter4 жыл бұрын

    Alvinblox OMG, you have done it again. I cant find the words to explain how awesome this tutorial was. It is simply amazing. It was a huge help. Thank you so so much.

  • @Shruti_Agarwal1234
    @Shruti_Agarwal12342 жыл бұрын

    Amazing stuff! So helpful

  • @Lex-Talionis
    @Lex-Talionis4 жыл бұрын

    your amazing Alvin I waited for this all day

  • @fortnitemethods

    @fortnitemethods

    4 жыл бұрын

    Yea me too

  • @fortnitemethods

    @fortnitemethods

    4 жыл бұрын

    If possible Alvin could you upload the parts daily????

  • @mr.toasty263

    @mr.toasty263

    4 жыл бұрын

    Same

  • @homesick2413
    @homesick24134 жыл бұрын

    Kinda early! I used to watch you ages ago and was always stuck! I’ve recently been watching your new vids and you seem very good and more experienced, hope you see this! I’m also British lol 🇬🇧

  • @homesick2413

    @homesick2413

    4 жыл бұрын

    Thanks for the heart! I love building in roblox studio!

  • @theminingmonke738

    @theminingmonke738

    3 жыл бұрын

    i am also british ☕☕☕☕☕☕☕☕

  • @yusufart4676
    @yusufart46762 жыл бұрын

    You’re channel is the best. It’s pretty awesome helping me making Roblox games.

  • @spiritualpanther2233
    @spiritualpanther22333 жыл бұрын

    I CANNOT EXPRESS HOW HELPFUL THIS IS TYSM ALVINBLOX :)

  • @Lowdave
    @Lowdave4 жыл бұрын

    Wow! I was not expecting it so soon! Thank you so much!

  • @AlvinBlox

    @AlvinBlox

    4 жыл бұрын

    You're welcome!!

  • @LavaCreeper

    @LavaCreeper

    4 жыл бұрын

    @@AlvinBlox please answer my comment before part 3 releases

  • @Azh_Tiel

    @Azh_Tiel

    3 жыл бұрын

    wait what was the question?

  • @SamuelWys
    @SamuelWys4 жыл бұрын

    Alvin, you seriously have some skill, like bruh. Wow...

  • @pony2540

    @pony2540

    2 жыл бұрын

    Remember me

  • @adiidk456
    @adiidk4564 жыл бұрын

    and yo alvin i didnt give up any of your videos when i was little i watched your channel and it didnt work but now they work i watched this tutorial like 5 times because it didnt work some trys and ye i want to thank you alvin for making all these tutorials for everyone :)

  • @Smalldude-ig3jb
    @Smalldude-ig3jb Жыл бұрын

    you earned a new sub! you spent so much work to help us acheive our dreams of being a developer!

  • @erdo3297
    @erdo32974 жыл бұрын

    I really like your videos, you help many people, I wish you continued success. :)

  • @AlvinBlox

    @AlvinBlox

    4 жыл бұрын

    Thank you very much!

  • @sxgarbear8560
    @sxgarbear85604 жыл бұрын

    Your channel is so underrated! Thanks so much for helping me

  • @eternallfrost

    @eternallfrost

    2 жыл бұрын

    No it's not..?

  • @MrBristaLeg
    @MrBristaLeg4 жыл бұрын

    Great Video I think youll get to 1 mill soon

  • @eliasschn
    @eliasschn3 жыл бұрын

    I like how AlvinBlox puts in nice supportive messages throughout his videos

  • @sonicscripts
    @sonicscripts4 жыл бұрын

    Thank you, I've been learning scripting for 2 years now. before episode 1 came out I decided to make a game related to flamingo called flimflam. But I was struggling alot since scripting is difficult to learn. but then I found your video and It helped so much! thank you! Edit: are you able to make intro cutscenes and endings?

  • @acex1212

    @acex1212

    4 жыл бұрын

    mrslurpfart it’s coming in future parts prob

  • @riktikdev
    @riktikdev4 жыл бұрын

    2st Very very nice alvin blox it's cool video

  • @AlvinBlox

    @AlvinBlox

    4 жыл бұрын

    I'm glad you like it

  • @alexisalidis9037
    @alexisalidis90374 жыл бұрын

    Man, you are like Minitoon!!! Well done dude, really good!!!

  • @1tsTommy
    @1tsTommy4 жыл бұрын

    AI GOT IT THANKYOU SO MUCH ALVINBLOX YOUR THE BEST MAN!!!!!

  • @clevertango88
    @clevertango884 жыл бұрын

    Hello Alvin! I would like a tutorial on inverse kinematics

  • @heathersmith8328
    @heathersmith83283 жыл бұрын

    Love this, my son and husband are making it together absolutely ecstatic

  • @muhittinbey6312
    @muhittinbey63124 жыл бұрын

    Thank yolu for this tutorials I subscribed and leaved a like

  • @srivatsavmaggari1519
    @srivatsavmaggari15193 жыл бұрын

    YOU ARE THE BEST! like seriously

  • @Selling29
    @Selling294 жыл бұрын

    I’m following A long thanks for making this

  • @AlvinBlox

    @AlvinBlox

    4 жыл бұрын

    Glad to hear it!

  • @Selling29

    @Selling29

    4 жыл бұрын

    AlvinBlox it’s not impossible cause we saw you’re video I’m trying to be a dev like u

  • @ItsEv
    @ItsEv4 жыл бұрын

    this is cool! im making a piggy fangame called "Freddy" and im working a little bit on it every day

  • @tehn5678

    @tehn5678

    4 жыл бұрын

    Im making one called kermit

  • @marlosuper

    @marlosuper

    4 жыл бұрын

    I'm working on one called "sand underman", as you can tell Piggy is Sans from Undertale.

  • @tacidus

    @tacidus

    4 жыл бұрын

    I’m making one called steve

  • @cool_meme3303

    @cool_meme3303

    4 жыл бұрын

    LilBoiGameplay mine is called contagion

  • @torak_34

    @torak_34

    4 жыл бұрын

    mines called "Hunted"

  • @carriebradbury5182
    @carriebradbury51823 жыл бұрын

    thanks so much for the piggy kit its a lot better since you did that thanks so much

  • @andreayount2713
    @andreayount27133 жыл бұрын

    Thank you! i've always wanted to make a piggy game thank you for making this!

  • @MilloSonic
    @MilloSonic4 жыл бұрын

    I’m the first comment and thanks for everything I know how to build because of you know I can make a piggy game

  • @Rayhero

    @Rayhero

    4 жыл бұрын

    @Millo sonic And games You’re not the first comment

  • @tfc_legend6651

    @tfc_legend6651

    4 жыл бұрын

    Sorry to say you are not girst

  • @tfc_legend6651

    @tfc_legend6651

    4 жыл бұрын

    *first

  • @kiamotoshan
    @kiamotoshan4 жыл бұрын

    Reactions: 8 Yt: no

  • @undertaleultra2223

    @undertaleultra2223

    4 жыл бұрын

    I don’t get it.

  • @dag2128

    @dag2128

    4 жыл бұрын

    ?

  • @funnyworldgasaali1537
    @funnyworldgasaali15374 жыл бұрын

    You've earned yourself a sub : )

  • @mohammedchowdhury8000
    @mohammedchowdhury80003 жыл бұрын

    u are the best i am getting new to making games on roblox thx sooooo much

  • @Nuttcheeks
    @Nuttcheeks4 жыл бұрын

    For everyone having problems with the teleportation pig part, a quick fix that worked for me is to copy all the code, remove it from the script, and then paste it back. Currently, Roblox has a Unicode error and this is one way to fix it! Hope this helped

  • @itzseconds2620

    @itzseconds2620

    3 жыл бұрын

    it didn't help for me :/

  • @brawlbang2092

    @brawlbang2092

    3 жыл бұрын

    how i dont understand

  • @TalkySteak

    @TalkySteak

    3 жыл бұрын

    If the fix suggested above did not work for you, ensure that you have updated the parameters for StartRound in your Game Logic script. You need to pass the time, piggy, and map.

  • @shootthecow69

    @shootthecow69

    2 жыл бұрын

    how do i copy the code if he keeps going down and making it so i cant

  • @KeepUpFast

    @KeepUpFast

    2 жыл бұрын

    I just added a print function to show who was selected to be the chosenPiggy and it works now. Btw the print function was print(chosenPiggy.Name)

  • @alex-chaseatlantic4lifer776
    @alex-chaseatlantic4lifer7764 жыл бұрын

    11:17 Don't mind me, I just wanted to put in the comments where I left off.

  • @hebenus6915

    @hebenus6915

    3 жыл бұрын

    L00kItZf0X _ hope that’s not still where you left off o-o

  • @sairanaveed1509

    @sairanaveed1509

    3 жыл бұрын

    L00kItZf0X _ lol

  • @flapyjacky4451

    @flapyjacky4451

    3 жыл бұрын

    i'm commenting to know where i left off 5:04

  • @flapyjacky4451

    @flapyjacky4451

    3 жыл бұрын

    52:14

  • @63donni

    @63donni

    3 жыл бұрын

    @@hebenus6915 ... hes just putting in the comments where he left off. There doesnt need to be any replies.

  • @maryroesel6087
    @maryroesel60874 жыл бұрын

    Thank you for these videos! Have always wandered how to create a nice survival game! ALSO! How do you change the piggy character to your own model you have made ? Or a prebuilt model ?

  • @stanfordisgoated

    @stanfordisgoated

    3 жыл бұрын

    Just replace all the body part models with your own. Put the Piggy model in workspace. (The model is in Server Storage)

  • @Eumboard

    @Eumboard

    2 жыл бұрын

    @@stanfordisgoated thx

  • @UltimateMixing
    @UltimateMixing3 жыл бұрын

    I had a problem where it in the Starter GUI > Main GUI > Intro > Logo. It had "GAME NAME" instead of "Piggy" as you have. And the text style was not Garamond which you have as the Play and Shop buttons. But as you probably can see I found the problem and fixed it. And for anyone who maybe has the same problem just do as I said. Thank you for dedicating so much time into teaching us Lua for FREE! :3

  • @inquisitive240

    @inquisitive240

    Жыл бұрын

    ...

  • @DemonMachine12

    @DemonMachine12

    Жыл бұрын

    You have to change it

  • @julianplayzrb598
    @julianplayzrb5984 жыл бұрын

    Me: Calls 911 911: Yes? Me:The youtuber "AlvinBlox" hasn't hit 1m+ Subs! 911:Hangs up Me:Worth a shot....

  • @nathananimations7328

    @nathananimations7328

    4 жыл бұрын

    he should tho...

  • @litton440

    @litton440

    4 жыл бұрын

    JulianPlayzRB lol

  • @weirddoggo4595

    @weirddoggo4595

    4 жыл бұрын

    LOL

  • @MightyCole1

    @MightyCole1

    4 жыл бұрын

    hahahahaha. nice.

  • @MerlucinYT

    @MerlucinYT

    4 жыл бұрын

    @Creeper charlie it doesnt work

  • @rapidfire300
    @rapidfire3003 жыл бұрын

    Do we need to pay for the custom piggy skin tutorial or is there some kind of link because I can't find it

  • @tombranson9341
    @tombranson93414 жыл бұрын

    This is great! I love this series. My dad is a programmer so he is helping me build and program this Piggy game. But we have a small problem. When I test play and get chosen as Piggy, I only have one arm and a grey hand, the left arm is missing... Maybe you know why, but please help with this bug. Thank you, love your videos and tutorials! :)

  • @TheAbsoluteMadLad456
    @TheAbsoluteMadLad4562 жыл бұрын

    Thanks dude this has been my dream to make a piggy style game

  • @conn_artist1328
    @conn_artist13284 жыл бұрын

    Hi guys, just some quick advice here: When I tried to play the game at first my piggy wouldn’t teleport to the waiting room. If the same has happened to you, try making sure that you have spelled ‘WalkSpeed’ with a capital ‘S’ in the middle (that was the problem for me). Other than that just turn on ‘Output’ while you play the game to find out exactly which parts of the script are creating the problem so you can check over that section.

  • @joegriffin1825

    @joegriffin1825

    4 жыл бұрын

    Oml thank you

  • @obviouslymikecrypto7787

    @obviouslymikecrypto7787

    3 жыл бұрын

    It worked but my character got out of the map instead in the house

  • @lightLM

    @lightLM

    2 жыл бұрын

    OMG thank you so much i have checked like everything and was like "WHAT IS ITTTt" thank you so much

  • @LaysRyum

    @LaysRyum

    2 жыл бұрын

    THANK YOU SO MUCH I WAS ABOUT TO GIVE UP

  • @goldenfirster

    @goldenfirster

    Жыл бұрын

    i had the same problem too! thanks!

  • @AronEnteredTheChat
    @AronEnteredTheChat3 жыл бұрын

    AlvinBlox Could You Tell Me Where The Episode Of Making Your Own Characters For Your Custom Piggy Game Is At?

  • @Woef0
    @Woef03 жыл бұрын

    Shout out to Alvin for these tutorials. Have been struggling with the teleportplayers function and after many trial and errors it turned out that some blank lines in between the function calls in the Game Logic script was causing it. So for those who have that same issue, try it out and remove white spaces and blank lines.

  • @jonathanr4242
    @jonathanr42423 жыл бұрын

    This is awesome.

  • @GasBLOX-The-Spy-Crab
    @GasBLOX-The-Spy-Crab4 жыл бұрын

    Alvin can you heart this comment please ive never been hearted by anyone famous

  • @GasBLOX-The-Spy-Crab

    @GasBLOX-The-Spy-Crab

    4 жыл бұрын

    Yay

  • @christysepulvado2077

    @christysepulvado2077

    4 жыл бұрын

    um

  • @mehmeterdogan1706

    @mehmeterdogan1706

    4 жыл бұрын

    Second heart xd

  • @foreverhd9396

    @foreverhd9396

    4 жыл бұрын

    me neither :(

  • @AbsnormalCoolest

    @AbsnormalCoolest

    4 жыл бұрын

    GasBLOX heart me too AlvinBlox

  • @ZephyrYeti
    @ZephyrYeti4 жыл бұрын

    He is the uncopylocked master , and im.guessing that he is probably the nephew of Roblox or something

  • @robloxpro947

    @robloxpro947

    4 жыл бұрын

    nah he sounds british. Roblox was made in the US

  • @viisiondev4485

    @viisiondev4485

    4 жыл бұрын

    Nah he is the dad of roblox

  • @Tamla1959
    @Tamla19593 жыл бұрын

    for some reason the way you said this made me laugh 4:21 (btw fantastic series! :))

  • @zigasean8354
    @zigasean83543 жыл бұрын

    this was helpful :D

  • @Cl5xYT
    @Cl5xYT Жыл бұрын

    is it ok because when the timer ends it dont teleport me and i look i dont see whats wrong so i just moved the box the box where you spussed to spawn in when your piggy i just moved that where you fall out of the map when your piggy can i just do that???

  • @elsaparan1196
    @elsaparan11963 жыл бұрын

    I get it thank alvin!!

  • @reyoski
    @reyoski3 жыл бұрын

    for those who are having trouble in spawning as Piggy and all spelling are correct in the Game Logic and RoundModule script. try to run your game and see if the InMenu under the player is still there... and you might want to check your EventHandling script if misspelled the "MenuPlay" to "Menuplay"... it works for me, now am spawning as a Piggy.

  • @Ezekia
    @Ezekia4 жыл бұрын

    The dislikes are from the 5 year olds that didn't know it wasn't already set up for them

  • @gammadosnahtan884

    @gammadosnahtan884

    4 жыл бұрын

    What if you are a 6 year old?

  • @votreamie

    @votreamie

    4 жыл бұрын

    But how would they know about alvinblox tho? Isn't Roblox too old for 5 year olds?

  • @Springlolbit

    @Springlolbit

    4 жыл бұрын

    Gaming with Friday no it’s for kids

  • @ferriscool8764

    @ferriscool8764

    4 жыл бұрын

    @@Springlolbit Its sarcasm bruh

  • @mystxshuni

    @mystxshuni

    4 жыл бұрын

    Yeah, when they figure out that it isn’t set out on a platter, they get their panties in a bunch. Reminder: this is mainly for LEARNING purposes

  • @Clarix
    @Clarix4 жыл бұрын

    Hello Alvin! Thank you very much for these videos, I have a bit of a problem so could you possibly help me solve it? I have done all the scripts (so far) on the Game Logic and RoundModule about the Dress.Piggy though when I test the game, the timer gets to 0 and nothing happens. Any help is appreciated. Thank you again.

  • @alapdo

    @alapdo

    4 жыл бұрын

    Hey, can you help me with an error I have with character.Name = Piggy.Name? I get this error: ServerScriptService.GameLogic.RoundModule32

  • @LuaTech
    @LuaTech4 жыл бұрын

    Great tutorial!

  • @musabbirabdul7613
    @musabbirabdul76133 жыл бұрын

    Your so good at explaining the script

  • @_jbbolter
    @_jbbolter4 жыл бұрын

    I can’t spawn in as piggy. It stays stuck on the “Next Round in 0 seconds”. In the output it says KeyModule is not a valid member of Script and also ServerScriptService.GameLogic.RoundModule:32: attempt to index nil with ‘Name’. Could you help please?

  • @smasherty9163

    @smasherty9163

    4 жыл бұрын

    Same

  • @darkness-lc2sg

    @darkness-lc2sg

    4 жыл бұрын

    i got the same error as well

  • @CharcoolDev

    @CharcoolDev

    4 жыл бұрын

    Yeah same

  • @teamRBX2923

    @teamRBX2923

    4 жыл бұрын

    same (o.o)

  • @deploydeployment212

    @deploydeployment212

    4 жыл бұрын

    Same with me

  • @olijutuber5937
    @olijutuber59374 жыл бұрын

    can someone give script on "items tweaning" that I can only have one thing in eq | that I can only have one item in my inventory, and when I click another, I won't have 2 in my inventory, just what I clicked, and the old one will replace the new one 1

  • @DanTh3Man.
    @DanTh3Man.4 жыл бұрын

    thank you so much!

  • @lauranyhus8410
    @lauranyhus84104 жыл бұрын

    Alvin you are a legend

  • @desolation_81
    @desolation_813 жыл бұрын

    FOR PEOPLE WHO DON'T TELEPORT TO PIGGY WAITING ROOM Make sure that in Game Logic script you have exact same code: Round.TeleportPiggy(chosenPiggy) I accidentally wrote "ChosenChapter" and I was quite confused, but when I found the answer to the problem I was like "Oh well, I guess I'm not paying as much attention-"

  • @certixlyplays2577
    @certixlyplays25774 жыл бұрын

    Hey Alvin, can you help me? I was doing the part where it makes piggy spawn in the box, on lines 40-50 in the Round Module script, but it isn't working, can you do paste a bin on lines 40-15 so i can fix it, k thx!

  • @sbfshadoe9918

    @sbfshadoe9918

    2 жыл бұрын

    did you make the S capital in the walkspeed? thats how i fixed it

  • @PositivelyWeird
    @PositivelyWeird3 жыл бұрын

    OMG , These Tutorial Rock ! To Be Honest , You ARE The Best KZreadr Who Does These Amazing Scripting Tutorials

  • @hansdeemer7942
    @hansdeemer79423 жыл бұрын

    Dude this guy is amazing it took me to days to fix this thing I thought you were a fake but I found what I did wrong PLayer

  • @BlueDoggy
    @BlueDoggy4 жыл бұрын

    41:22 ( just a marking of how the doors work )

  • @username9528
    @username95283 жыл бұрын

    EVERYONE IF UR HAVING ANY SCRIPT PROBLEMS GO TO VIEW THEN OUTPUT AND THEN PLAY THE GAME AFTER THAT CLICK THE RED LINES AND IT WILL BRING YOU TO THE PART WHERE U MADE AN ERROR AND JUST GO BACK TO THE PART OF THE VID WHERE HE SHOWS IT! HOPE THAT HELP

  • @kravataf

    @kravataf

    3 жыл бұрын

    thx bro

  • @meleeyn
    @meleeyn3 жыл бұрын

    38:10

  • @Cj-ku9ie
    @Cj-ku9ie3 жыл бұрын

    Thank you so much you gave helped me thank you

  • @deadlyphantom51
    @deadlyphantom514 жыл бұрын

    When you do "function module.choosePiggy" If I wanted to change it to like the actual "morph" I was going to use for example it says piggy and i'm using a chicken would I put chicken there or keep it piggy?

  • @antiscammersquad2547

    @antiscammersquad2547

    4 жыл бұрын

    I've called it the name of my game instead of piggy and it works perfectly for me

  • @upsidedownsmileyface4302

    @upsidedownsmileyface4302

    4 жыл бұрын

    You can do either but it would be easier to keep them as piggy but chance the piggy model to be whatever model you want to use

  • @pabcp8116

    @pabcp8116

    4 жыл бұрын

    I dont think you actually have to put piggy for example if you change everywhere it says piggy to chicken it wont effect it. Idk im not a coding pro but i think thats it

  • @iSkyy6000

    @iSkyy6000

    Жыл бұрын

    Yeah i'm using an rat it worked for me with every that of those its called it and the model of the chicken is called chicken

  • @sxgarbear8560
    @sxgarbear85604 жыл бұрын

    Does someone else doesn’t have the ‘Next round starts is...’ thingy after like 40:00? And if you do, how do I get it back?

  • @TheruleroftheSkaters

    @TheruleroftheSkaters

    4 жыл бұрын

    me too

  • @LuaTech

    @LuaTech

    4 жыл бұрын

    Try reading all errors to see where it went wrong

  • @LuaTech

    @LuaTech

    4 жыл бұрын

    I lost mine at 30:00

  • @alicia-id4nu

    @alicia-id4nu

    3 жыл бұрын

    same but no one seems to know how to get it back ;/

  • @alicia-id4nu

    @alicia-id4nu

    3 жыл бұрын

    Try This: On the wbsite it says to capitalize, which I think confused some people. *Do not capatalize the S in status value* instead, you should *write it like:* *status.Value with the V capitalized*

  • @polopourt3531
    @polopourt35312 жыл бұрын

    Hey i just wanna ask do we have to remake all the scripts we already did when we make a new chapter

  • @ashoswaldshen
    @ashoswaldshen4 жыл бұрын

    25:05 Where i left because I'm tired. Good game btw alvin keep it up : )

  • @HumanoidYT
    @HumanoidYT4 жыл бұрын

    Hey AlvinBlox, I noticed that when you are Piggy, you have to click to kill a player. Is there a way to just kill a player by just getting close to them?

  • @appledoesrandomstuff

    @appledoesrandomstuff

    4 жыл бұрын

    awesomegamer1000 idk

  • @bubbletea695

    @bubbletea695

    2 жыл бұрын

    You can give the Piggy a hitbox as well so when the piggy hitbox collides with the players one it kills the player

  • @TylerFursman
    @TylerFursman3 жыл бұрын

    I litteraly had to set the intermission to 150 seconds to test because my computer took over 2 minutes to load the server test lol 😆

  • @sairanaveed1509

    @sairanaveed1509

    3 жыл бұрын

    Tyler F lol 😅😅😅😅 can you teleport the player into the map? if u can plz told me what u write for the scripts. (copy and paste it)

  • @al3x1sfru1ty

    @al3x1sfru1ty

    3 жыл бұрын

    XD

  • @kbpromotions

    @kbpromotions

    3 жыл бұрын

    lol 150 seconds lol. btw 2 minutes it 120 seconds so yeah good thinking.

  • @romarkgaming2009

    @romarkgaming2009

    3 жыл бұрын

    even more potato laptop/pc then me ;-;

  • @cubing_cadar9506
    @cubing_cadar95062 жыл бұрын

    This vid really help me

  • @timmytotten
    @timmytotten3 жыл бұрын

    im becomming a member now

  • @phalon6755
    @phalon67554 жыл бұрын

    Yea But how do we make a cutscene like how when a piggy chapter starts it has a cutscene?

  • @dddddd9225

    @dddddd9225

    4 жыл бұрын

    just add a cut scene part

  • @bluegamer3980

    @bluegamer3980

    4 жыл бұрын

    maybe cutscenes editor when button click or custom scene

  • @MichelisGerasimos

    @MichelisGerasimos

    4 жыл бұрын

    Yes i agree wtih you

  • @MichelisGerasimos

    @MichelisGerasimos

    4 жыл бұрын

    Maybe alvin will make that in part 5 or something

  • @fusionburstofficial

    @fusionburstofficial

    4 жыл бұрын

    yes thats i a thing i wanna know

  • @Wubbarb.
    @Wubbarb.4 жыл бұрын

    Hey Alvin! Thank you for doing this, also i dont know why I’m saying this but my roblox username is “extsion” thank you for doing the how to make a piggy game, also I really like the channel and I hope to become a good scripter like you I’m a bad scripter and builder

  • @elliottjewell5898

    @elliottjewell5898

    4 жыл бұрын

    HEY! WHAT HAPPENED TO YOUR GAME WANTED TO CHECK OUT WHAT BECAME OF IT BUT IT WASNT THERE

  • @sakkaliaplu8482
    @sakkaliaplu84823 жыл бұрын

    Alvin is way better than my professor trying to explain a codes to the class.

  • @Hs-cv6rn
    @Hs-cv6rn4 жыл бұрын

    That Explains alots.

  • @Monke-man227
    @Monke-man2274 жыл бұрын

    5:06 just ignore this im putting a marker where I left off

  • @DevilRobbeRoblox
    @DevilRobbeRoblox4 жыл бұрын

    The problem I have is when I am playing I wont spawn in and theres no piggy which is choosen can you help me or maybe copy paste the scripts bc its not working 😐

  • @squaredcube6018

    @squaredcube6018

    4 жыл бұрын

    maybe you need two peaple?????

  • @relaxingsooth7148

    @relaxingsooth7148

    4 жыл бұрын

    same

  • @hatakemaru9727
    @hatakemaru97272 жыл бұрын

    THANKSS BROOO

  • @markmule2533
    @markmule25333 жыл бұрын

    you are the best roblox tutorial youtube channel - -pls make video to make gamepass and it should be working like 2x speed gamepass- -

  • @markmule2533

    @markmule2533

    3 жыл бұрын

    sorry for the cut in the comment

  • @markmule2533

    @markmule2533

    3 жыл бұрын

    it is pls make video to make gamepass and it should be working like 2x speed gamepass

  • @jasonzhang8016
    @jasonzhang80163 жыл бұрын

    when the timer reaches 9m 41 seconds it stops and also on the output (when it reaches 9m 41secs) it says attempt to index nit with playerspawns? pls help

  • @noahfunnyguy

    @noahfunnyguy

    3 жыл бұрын

    getting the same problem here. any luck on fixing it?

  • @itzseconds2620

    @itzseconds2620

    3 жыл бұрын

    @@noahfunnyguy same :/

  • @t2mptedd517

    @t2mptedd517

    3 жыл бұрын

    Same here

  • @DarkShadic9632

    @DarkShadic9632

    3 жыл бұрын

    Same here. I hope somebody brings up how to fix this...

  • @kbpromotions

    @kbpromotions

    3 жыл бұрын

    the script never works for me. this what i wrote in round module: local status = game.ReplicatedStorage:WaitForChild("Status") function module.Intermsition(length) for i = length,0, -1 do status.Value = "Next round starts in "..i.." seconds." wait(1) end end function module.SelectChapter() local rand = Random.new() local chapters = game.ReplicatedStorage.Chapters:GetChildren() local chosenChapter = chapters[rand:NextInteger(1, #chapters)] return chosenChapter end function module.ChooseNoob(players) local rand = Random.new() local chosenNoob = players[rand:NextInteger(1, #players)] return chosenNoob end function module.DressNoob(noob) local character = game.ServerStorage.OOFER:Clone() character.Name = noob.Name noob.Character = character character.Parent = game.Workspace end function module.TeleportNoob(player) if player.Character then player.Character.Humanoid.WalkSpeed = 14 if player.Character:FindFirstChild("HumanoidRootPart") then player.Character.HumanoidRootPart.CFrame = game.Workspace.WaitingRoom.PiggyWaitingSpawn.CFrame + Vector3(0,5,0) end end end function module.TeleportPlayers(players, mapSpawns) local rand = Random.new() for i, player in pairs(players) do if player.Character then local character = player.Character if character:FindFirstChild("HumanoidRootPart") then player.Character.Humanoid.WalkSpeed = 16 player.Character.HumanoidRootPart.CFrame = mapSpawns[rand:NextInteger(1, mapSpawns)].CFrame + Vector3(0,10,0) end end end end function module.InsertTag(contestants,tagName) for i, player in pairs(contestants) do local Tag = Instance.new("BoolValue") Tag.Name = tagName Tag.Parent = player end end local function toMS(s) return ("%02i:%02i"):format(s/60%60, s/%60) end function module.StartRound(length,noob,chosenMap) for i = length, 0, -1 do status.Value = toMS(i) wait(1) end end This What I Wrote For Game Logic Script: local Round = require(script.RoundModule) local Door = require(script.DoorModule) Round.Intermsition(30) local chosenChapter = Round.SelectChapter() local clonedChapter = chosenChapter:Clone() clonedChapter.Name = "Map" clonedChapter.Parent = game.Workspace local contestants = {} for i,v in pairs(game.Players:GetPlayers()) do if not v:FindFirstChild("InMenu") then table.insert(contestants,v) end end local chosenNoob = Round.ChooseNoob(contestants) for i, v in pairs(contestants) do if v == chosenNoob then table.remove(contestants,i) else game.ReplicatedStorage.ToggleTrap:FireClient(v,true) end end Round.DressNoob(chosenNoob) Round.TeleportNoob(chosenNoob) if clonedChapter:FindFirstChild("PlayerSpawns") then Round.TeleportPlayers(contestants, clonedChapter.PlayerSpawns:GetChildren()) else warn("Fatal Error: You Forgot To Add A Player Spawns Folder Into Your Map.") end Round.InsertTag(contestants, "Contestant") Round.InsertTag({chosenNoob},"OOFER") Round.StartRound(600,chosenNoob,clonedChapter)

  • @bruhwhosjustin1790
    @bruhwhosjustin17904 жыл бұрын

    alvin i have a problem when the timer says 0 second im not transformed into piggy? :(

  • @kenny3345

    @kenny3345

    4 жыл бұрын

    Bruhwhosjustin • Same for me I’m not teleport either

  • @miraa__

    @miraa__

    4 жыл бұрын

    AniMattz Don’t Give Up! (even if you were kidding)

  • @miraa__

    @miraa__

    4 жыл бұрын

    I was once making a game, and I had a problem in the output. I tried everything, but nothing worked. After who knows long of trying, I got back on, look at the line that the error was on, and realized I had a spelling mistake. You’ll find your problem if you try and believe! Don’t just immediately give up or give up 10 minutes after you tried fixing the problem.

  • @_Iseah
    @_Iseah3 жыл бұрын

    without alvinblox i would be stuck doing nothing but alvinblox is the best and seriously he makes the best tutorials and im making a game like piggy called Slendy a slenderman version of piggy

  • @_Iseah

    @_Iseah

    3 жыл бұрын

    i used notepad and also looked at the screen to make sure i did it right and copy paste it and its fun to make a piggy game thanks to alvinblox

  • @Chopsey0
    @Chopsey03 жыл бұрын

    @alvinBlox is there a reason that when the player on the lefts cursor is invisible but the piggys isnt

  • @ashleyken6606
    @ashleyken66064 жыл бұрын

    Would like some help and advises: Here's my problem, When I test out using the roblox studio, one player got chosen as piggy but the contestant didn't get teleported to the map when using the "test" function in Roblox Studio and sometimes i also come with the problem that both the piggy and the Players didn't get teleported. Any help would be useful, thank you!

  • @whiteleaf7031

    @whiteleaf7031

    4 жыл бұрын

    happening too please if you find fix tell me

  • @F1re_

    @F1re_

    4 жыл бұрын

    For me it did not work because of the humanoid.walkspeed so i replaced that with just --Alvin blox stuff lol it teleported and worked

  • @squidzillathefish2579

    @squidzillathefish2579

    4 жыл бұрын

    That is mu problem too! Im sure Alvin has a solution!

  • @squidzillathefish2579

    @squidzillathefish2579

    4 жыл бұрын

    My problem’s fixed now! How silly of me, I spelt HumanoidRootPart with “Rot” It’s so easy to make little mistakes

  • @squidzillathefish2579

    @squidzillathefish2579

    4 жыл бұрын

    Lol, I tested and it still doesn’t work

  • @poigamerhd9908
    @poigamerhd99084 жыл бұрын

    what is the weird letter in the time of the video called 35:58 i dont understand

  • @aspyn0015

    @aspyn0015

    4 жыл бұрын

    is a percent sign hold down shift and press five to do it it looks weird in studio %

  • @cringeyzed

    @cringeyzed

    4 жыл бұрын

    its a percent(%)

  • @MattVSNNL
    @MattVSNNL2 жыл бұрын

    Thanks for teaching me how to convert to Minutes and seconds

  • @lexvi1682
    @lexvi16824 жыл бұрын

    Hey Alvin, I was just wondering if I can changes those decals (The parts where there were decals of showing what the hammer uses and the wrench) and add a BillboardGui, will that affect anything if I delete it?

  • @joelmtb346
    @joelmtb3464 жыл бұрын

    The spawns didn't work.. I would love it if you could type out the script.. I have no money so I cant become a member :c totally would tho..

  • @GamingwithMusa

    @GamingwithMusa

    4 жыл бұрын

    The normal players spawns didn't work for me. :(

  • @GamingwithMusa

    @GamingwithMusa

    4 жыл бұрын

    it was my mistake

  • @LMJPDN

    @LMJPDN

    4 жыл бұрын

    yeah it dident work anyone know why

  • @danielpashley3323

    @danielpashley3323

    4 жыл бұрын

    Doesn’t work for me either

  • @weirdape1134
    @weirdape11344 жыл бұрын

    5:12 Ignore this. I’m just picking up where I left off

  • @aryanbodakhe1902
    @aryanbodakhe19023 жыл бұрын

    THANKS

  • @srikanthsai5143
    @srikanthsai51432 жыл бұрын

    great

Келесі