Main

How To Make A Game Like Piggy Pt.4 - Intermission Pt.2

Join My Discord Server https://discord.gg/ck4qbhtHnE Add Me On Discord @MonkeyDogGames#9254 Need Help? Contact Me On Discord Or Through Email/Gmail help@robloxtutorialzone.ml / support@robloxtutorialzone.ml My Website https://www.roloxtutorialzone.ml

Roblox Tutorial Zone

3 years ago

hey what's up guys it's your boy  here the red stone roller and welcome to part four on how to make a game  like piggy last episode we got well yeah last episode we got this done yay spam click it i'm just kidding it doesn't do  anything if you spam click it look votes house and then spam oh damn it i didn't get a spam click  as you guys can tell though it does remove the stuff in the votes folder and it does remove it  but today last episode we kind of fixed that see it disappeared well it disa
ppears but in today's  episode we're gonna fix the part when it's doing that it should disappear so we're going to fix  that which i came up with a theory on how to fix it so if we were to go to the game no not the  game handler script it's actually in the back button script if we were to go to it if you were  to just select the whole script then if you're press and hold with your mouse you can drag up and  see that little arrow well then you can just drag it to the spot and then it should you c
an do that  and then you just press like where the local thing is you just put your mouse thing and then oh sorry  so on my chair but um you guys can just like put um you guys can just put like your mouse little  cursor thing like see how it's blinking that part you can put it where the local is and press  enter and then it brings it down well then yeah or you can do it where you can copy and paste it or  you can also you can do the whole selecting thing and then put it like that have an enter a
lready  but yeah then now if we were to click play it should work i'm pretty sure it's because the  weight was actually because like all the stuff was first so i was waiting for all that stuff to  happen then it was gonna get rid of it so now when we click back yes it works perfect so in today's  episode last episode if you guys looked at the well i didn't have it at first on the video  but um i changed it so now the title says actually intermission part one because this  is intermission part tw
o the fourth episode of intermission part two so yeah you guys  can open all the scripts so it's easier so yeah oopsies actually put the camera script in  there bloop double click and yeah pretty sure that was all the scripts i don't think i put any  scripts in here not in the workspace okay so now we're gonna be working on the uh  what is it called what it's called oh yeah that we're gonna be working on the thingy that uh because as you guys could tell there's no  game mode though i think right
well we need some of that so we're gonna do that in today's episode  okay so first go to your game handler script then scroll down to the last part where it  says v colon destroy and there's a weight three double space down the right next to the weight  three then do four i comma v space in pairs then you're gonna want to do game mode m-o-d-e we're gonna actually have to create  a variable for the game mode so we're gonna have to go all the way up and we're  gonna have to double space at double
double i'm at down down and do local game oh game mode is gonna  be equal make sure you put the braces that's what these brackets are called braces then put in  spring slash quotation marks but inside of the first one player then go on the outside of it then  press comma then do another string slash uh the slash uh quotation marks then put inside  this one box and then do the exact same thing the comma and then the other string slash  quotation marks this is the last one do player space plus ba
sebot so now we have all those well  so now we're going to scroll back down to the part and hold up okay um right there then do do enter and then do if  v equals equals and then put strings left quotation marks and then put inside of it player  and do space then then do enter local int value uh capitalize the b then do equals instance  dot new its value comma our storage dot votes then do enter then do ins value dot  name oops sorry dot name equals v value dot value it's going to be equal to zer
o  then our event dot create c-r-e-a-t-e vote it's gonna be i'm at colon fire  all clients i'm gonna do parentheses v comma four three nine six three nine six  two nine three two nine three zero then do enter and then do else if enter i don't know enter  yeah then on the else have to v equals equals and then do string slash quotation marks don't do the  block bracket uh yeah the block brackets that do string such quotation marks and then type in that  bot then do space then then do local int val
ue again value is going to be equal to instance  dot new into value comma r storage dot votes and value dot name is going to be equal to v into value dot value it's going to be equal  to zero and then r events dot create vote confirm all clients and then parentheses v come  we probably can just copy and paste them but i'm gonna write them all out okay you guys probably  can copy and paste them i just i'm gonna write them all out okay so one zero five one two zero  zero nine zero zero okay so the
n do enter else if space v equals equals and do string  slash quotation marks and do player it's gonna be equal to instance instance dot new int value comma our storage dot vote dot v  o t e s then enter then into value dot name is going to be equal to v and then int value  that value is going to be equal to zero and then our events dot create eight vote parentheses v comma five zero i mean  not zero five six eight seven three then eight seven three five six zero  five six zero oops about 600 ri
ght yep yep then you have to scroll down then end and  then enter enter then go up to the map vote the map votes and then copy all the way  down to i'm assuming right there copy actually hold up hmm you're gonna want to go to here and then go down to  dot dot map highest that that that that copy it then scroll down all the way  to the bottom then right there then paste it then you're gonna want to delete  the configs dot status dot value and then change the map to mode mode mode and change that
and then find and then  change car mode to cur map i'm a nut map curve map to curve mode oh  my goodness that's funny then do our storage that votes come fight for child that  incur map to cur mode copy paste paste mode then you're going to want to change the map vote  change the map part just like delete it you can also wonder how i'm doing that you just have  to double click your mouse under one thing friendships double click and yeah but if you want  to select a whole entire sentence then jus
t double click for i'm at quite i think it's quadrupled  called just click four times i'm pretty sure because one two oh wait one two one two three one  two three one two three oh maybe it's three but if just do it just click and then until it does  the whole entire thing i'm pretty sure it's four but it might be three but anyhow do then  game mode and then you already have help so then pull up just making sure we did the script correct okay so i'm pretty sure we did the script  correct i'm goin
g to wait one and then do if number like a number sign then do  game dot players make sure it's game that players not game mode and then do  dot i don't know home get players then do greater than one then make sure it's a greater than sign which a greater  than sign if you're to look close on your keyboard the greater than or less than a right by the l  the less than sign is kind of in the shape of an l see oh wait call it if you were to do a capital  l c they're kind of similar well the greater
than sign is a backwards one so you'll notice  because they're because the greater than less than sign are right next to l so you'll see in  the l it's capital and keyboards so yeah so then we're gonna go to the configs folder okay then you're gonna add some  stuff into it so we're gonna add a string oh wait no object value insert an object value then  call it killer k i it's not oh okay shoot didn't it crash that's  good so yeah then duplicate it and then rename the duplicated  version to just
put p r e no not just p r e actually put p  r e v i'm not for previous killer then we're just going to close that for now  then you're going to want to press enter then you're going to want to go to you want to say  if mode then enter then configs dot status status that value is going to be equal to mode dot  dot space and then put the quotation marks strings and then do space has been s e l e c t e  d has been selected then do enter enter if mode equals equals put quotation well  string slash
quotation marks then right in it layer and then do  space that and enter and then do configs dot kill er dot value is going to be equal  to game dot players can't get children and then do the block brackets make sure they're not on the inside do not have them like that make  sure they're on the outside then write math.random and then put parentheses  and then do one comma number game well number sign then make sure it's game  knocking mode then do dot players on get children and then you can pre
ss enter and then do  another enter then do configs dot stack twist status dot value is v-a-l-u-e is gonna  be equal to configs dot killer dot value dot name dot dot space and then put  quotation marks and then do space has been s e l e c t e d space as the killer  k i l o e r exclamation mark then do i then go down make sure that that end is still  there then do enter and then do an else then do it enter then do mode equals game mode make sure  it's game oh see actually wrote game and then make
sure it's game mode and not game then do the  black brackets that's at least what i call them black brackets i'm at and then put one inside  then do enter configs dot status status dot value is going to be equal to mode dot dot space then put the quotation marks  slash up i'm not not quoted mark put the string slash quotation marks  and put space and then put has been see left dead select acted then do down enter  else not else if do it just else make sure it's just us then do mode equals and t
hen do a  string slash quotation marks and do a bot then do enter if mode space then  enter then do configs dot status stat at oh my goodness i'm spelling  that so wrong set this dot value equals mode dot dot space then put the quotation  marks slash i'm at string slash quotation marks then do speak has been s e l e c  t e d has been selected then do oh wait sorry then you have to do enter else make  sure it's an else not else if then do enter then do mode equals game mode and then put the block
  brackets and then do one then press enter then do configs dot status dot value is going to be  equal to mode dot dot space the string slash quotation marks into space has been selected  i see l e c yep i think s e l e c t e d okay has been selected then down down then enter enter  wait two then you're going to want to put oh wait we're basically i think done actually  but yeah do put a weight too actually make sure you put that weight too then press  play and i'm assuming it should work okay s
o if we were to click play it  should hopefully work intermission six five four three two one and dot dot  map flow we're gonna click on the map house next and we got an error  let's see what this error is so it's in the error with the player and the bot  so it's saying attempted to call an instant value so that's what happened we did not write fire  all clients so it gave an error because we just had our events dot create vote and then the  parentheses it needs to call and fire all clients or a
nswers won't work you do colon  fire all clients okay now it should work you always want to have the output open guys  because if you don't have it open then stuff like that could because right because we  wouldn't know what would have happened right we wouldn't know what script it came from  right stuff like that so you always gotta have the output open at all times okay okay  see so i actually said okay twice sorry so now see player bot and player and by i'm gonna  click buy well i'm assuming
it since there's only one person it should automatically choose  player oh no it has children block but i bet oh wait no i know what happens  and why didn't it destroy them that is glitch or something  it should have destroyed them that is weird right do you guys agree um i think i can fix it you just gotta go to game go find the map voting system and then go  down to the bottom where it says where this is oh sorry then just find the remove all votes and  then copy it and go all the way to the b
ottom of here and then do enter enter paste and then we  pasted that so now if you were to click play it should hopefully remove all the votes because  i'm pretty sure those go in the votes votes folder since we don't have a certain folder for them and to show you guys that i can't spam click  the thing for the vote if we were to click here then go to house and school see zero votes  well now look house and i'm spam clicking it here can you guys hear that i'm just clicking  it now the game mode
vote see they popped up and i choose player well i'm assuming it should  automatically choose bot for me because yes c it's because there's only one player in the game  well i'm pretty sure that if we click on start and open up test server it's called oops  sorry word some encouragement let's open but if we open up a test server hold up i'm gonna  pause the recording while the server loads okay sorry my mic was muted and i just noticed my  intermission isn't going that is weird i went to the ser
ver and it's what it is active oh this  is the game i was on i thought that as you guys can tell i'm on a server but you guys cannot  see the icon because these are the icons okay i'm just letting guys know i know i just i know  why the thing wasn't working now but um so i'm gonna vote for house not well that one's house  and this one's school school house let's see it should choose okay chose school  then i'm going to choose player now this one's going to choose player so now  if we were to wai
t it should choose player and what happened why is it frozen don't  you guys see this what happened to that player player what what the heck happened it's broken there's an error an error  okay let's see what the error is so it is the has been selected  okay so we're gonna have to stop it and okay so there was an error with  the script i guess it's a it's in the right here i guess it's saying i'm pretty  sure so let's i'm gonna look at this so it needs to be config stats that hold up so if numbe
r game game.players you  can't get layers from this is that then you should do that stop  value because has been selected it's saying that there's an error with this there is probably an error hold up we're looking at this because i don't  know where el was saying there was an error and that was very weird who agrees  it was just not working so one sec the video and i might not end  but like i'll stop in a minute so yeah so as you guys can see there is a  server loading up okay so yeah see you g
uys in one second i am back okay so now let's  just click play then let's just click play oh dana i wanna wait for the map vote to be  over so i'm gonna go to the status on the game and i'm gonna wait till it says intermission so i don't have to do anything so configs and then  status and then click on that the game of vote will be over in a second and i just noticed stacks  and i wrote something and it does work because when i was looking at the status i did see the  game mode so and it said pl
ayer has been selected so i think it doesn't work information  three two one and dot dot map vote so now this player is going to choose the house  and that player is going to choose school so now when we click so now it should say okay so  it picked one and it said school well now oh i don't want that i want to have it set as  player so player and player now let's see if we get that error which i'm assuming we probably  will but who knows yep see that error what does it mean so what is this erro
r so it's 129  it is that line 129 okay remember that 129 129 129 i'm sorry i'm just trying to remember  129 129 128 right yeah i did have it right so it has to be config star status that value  mode what it makes no sense then it says configs it's config.status dot value equals  mode dot dot and then has been selected that's what it is what the heck guys there's something not right and i guess i actually put ben and not ben so we gotta make sure i put ben okay so now  configs.killer.value that
that that so it can't be any of these so oh don't worry about  that though there's my dog barking one sec oh my goodness guys okay i know what's wrong  with it now look it says mode equals curve mode we have to have mode equals kermode dot name  that's probably why right no no wonder why well we're almost done with intermission part two  we're almost guys so click play and click play and now we're on in the mission okay school i'm at house and  then school house in school i choose school they ca
n finish it i was gonna  say school but then he didn't let me finish i kind of did grass crack though  so player player player player it worked omg that's why it's because we  forgot the dot name what the i'm sorry that was very loud i'm very sorry i  actually got a little too close to my mic but i'm just too excited it worked and  to actually test if it really does work we're gonna click it again and then  we only have one more part to add and i think we're done with intermission  part two so p
layer come on it's gonna choose a random person i choose player one  oh oh oh oh my goodness we guessed it so let's go because it just said play around  with that player one cause i'm pretty sure it's up player two has been chosen i've been  selected okay so now we only have one more part so the last part we have to add is the  oh what is it called what's it called what is it called again oh now  i remember it is called the okay so now let's start press  enter twice then do local m configs is go
ing to be equal to map cool and find oh  find first child parentheses then do and then put the string slash quotation marks and put it  inside of con figs and do enter then do a corn it's a quarantine i'm pretty  sure it's pronounced dot resume and then i'm just gonna say quarantine  it's not really actually how you spell quarantine but i'm pretty sure this is another  way of spelling quarantine but yeah so i'm just going to say quarantine because i'm pretty  sure that's what it says but i don't
know so yeah quarantine dot create and then parentheses  function then do the parentheses then that then oh make sure that you actually have  like that then do enter then there should be two like that two parentheses i think on it  then we're gonna do if mode equals equals then do the string slash uh  what it's called string slash quotation marks put inside of it player then  do or mode equals do the string slash quotation marks and do i mean not just one equals do  two equals because if you do
one equal as you guys could tell it gives me it's saying  it's wrong so you have to do two equals then put inside of your player plus spot then  do space then enter then do print mode i'm not no do i'm at string slash quotation marks  and put mode inside of it then do enter then do local plr it's gonna be equal to game.players.com  find first child configs dot killer dot value is i'mma got name and then  we're gonna do enter and then do if plr space line then do enter  then do print and then do
found player and then do enter locals we have not  done skins yet so we are not doing that okay so since we do not have skins yet we are not doing that the rest of it so we're only going to do  this okay it's because we did not have skins yet and we do not have the cutscene module yet so  we cannot do the cutscene module thing so we cannot do the rest for the skin because we don't  have the skins that will come in a later episode and also the custom module  will come in a later episode but not
in today's episode because i think  today's episode is about over so yeah um so we'll click we'll open up out as i put my  finger so i just smudged it but um once this thing so i'll see you guys once it's loaded alrighty  guys i am back and it has loaded so i'll play and play and it selected a map because  i waited a little bit so now click click so both of the screens as you guys could see  on both of my screens i clicked on player but i don't know why i clicked on it so on the sec the second t
ime we're going to  click player and bot to see who gets chosen okay so how's school okay we clicked house school  so now school it got children so now i want the player and a bot player and player  and boss player and bot has been selected but um so yeah the shot button does  not work yet but yeah i hoped you guys liked the video make sure you guys like subscribe comment down below so you'll never miss one of my  videos thanks for watching everybody and goodbye i'm not saying fantastic peace

Comments

@robloxtutorialzone

If you have any questions you can ask me on discord @MonkeyDogGames#9254 Also if you want to please join my discord server https://discord.gg/ck4qbhtHnE

@Calekek

Uhhh how do we like enter the game like after intermission In piggy u enter the map how do u do that plzzz say?