How To: Gun Game (🟨)

Foreward

Gun Games are one of the most fun game modes to play with your friends but a guide on making the actual function of a Gun Game has not come to GKC until now. This Guide Will Show you three methods of making a Gun Game that you and your friends can enjoy for the low cost of only ~5% memory used.

All three different methods of making a Gun Game are relatively the same and all revolve around a few things, so let us make those first.

Common System

To Start, grab a lifecycle, a counter and a property.

Set the lifecycle to listen for player knocks out. Wire it to your counter. “Event Occurs → Increment Counter.” The counter should not be visible in game and should have a scope of player. It will update a player scoped property called Knockouts. When the Knockouts property changes it should broadcast on the channel Grant Guns.

Now you are going to want to decide how many Knockouts you have to get to win the game. For this guide I will be using fifteen but you can change it for you. Once you have determined this number go back to the counter and set its target to your desired number of knockouts to win the game. When that target is reached it should broadcast on the channel “End Game.” An end game device should receive on “End Game” and well end the game.

So far your system should look like this.
GimkitGunGame

Next you are going to want to grab an item granter and an IIM for however many knockouts you need to win the game. So for me I will have 15 item granters and 15 IIM’s. Make sure all IIMs only allow you to have one of each item and clear inventory when receiving on “ClearInven”.

Note One item granter will be paired with one IIM to make a set for each weapon that you will use in your gun game.

Now choose fifteen unique guns and change each set (one item granter and one IIM) to manage that gun.

You Should now have a system that resembles this.

Now go to channels and number off your guns In order from first to last but put weapons in front of the number. Example (w1,w2,w3,…).

You have now completed the base system for all types of Gun Games! (not the whole guide)

Traditional Random Gun Game

In a Traditional Gun Game the order of the weapons is randomized but is the same for every player. Essentially if you have red, green, blue, and purple marble and put them into a bag when you shake it up a random combination would come out. This is essentially what we are doing, mixing up the order of how you receive guns.

Start by making a property for every gun. I will have fifteen. The properties will number and global all with a default of zero. Make them concentated like so with the word round in front of them.

Enter your last property (my round15 property) and make it broadcast on “GunsSet” when property value is changed. Now make three more properties. They all are global, number, and have a default of 1. Name these RandomGun#, SettingProp#, CheckingProp#. (Prop is short for property)
GimkitGunGame(4

Now start by making a lifecycle that receives on game start and broadcasts on “Set Random Gun”. Then get a trigger that is not visible in game and can not be triggered by player collision. This trigger will run on the channel “Set Random Gun.” Go to the block code in that trigger and Set the the property RandomGun# to a random integer from 1 to however many knockouts you need to win. Then have it broadcast on the channel “CheckProp.” It should look like this.
GimkitGunGame(5

Now duplicate that trigger. Remove the Block Code and make it trigger on the channel “Check Prop.” Make it deactivated when receiving on “GunsSet.” Go back to block code and follow this picture to make this monstrosity.
GimkitGunGame(6

What this code block does. We need to use a randomizer to get unique loadouts. However if for the first round of the game weapon 13 is picked we don’t want the randomizer to pick 13 again. Gimkit doesn’t have advanced enough blocks to do this and so we can exclude that number from being randomly picked, however we can check to see if that number has already been picked and then get a new random number. This is what this system does it uses recursion to increment through and see if the random generate number has already been used, if it has it resets the CheckProp# property which it is using to check properties and then gets a new random number. If it hasn’t been used it sets the round to the random number resets the CheckProp# and increases the SettingProp# and then gets a new random number.

For the final part of this guide make one last trigger. It should receive on Grant Guns, be invisible in game and not be triggerable by player collision. In block coding it should have the following blocks.
GimkitGunGame(7

In your game make it so players will broadcast on Grant Guns after the channel Guns Set is broadcast on and then you should be good to go.

Player Random Gun Game

In a Player Random Gun Game the order of the weapons is randomized but is most likely different for every player. Essentially if you and all your friends have red, green, blue, and purple marble and put them into a bag when you shake it up a random combination would come out. But your friends will most likely have different combinations. This is essentially what we are doing, mixing up the order of how you receive guns.

Start by making a property for every gun. I will have fifteen. The properties will number and player all with a default of zero. Make them concentated like so with the word round in front of them.

Enter your last property (my round15 property) and make it broadcast on “GunsSet” when property value is changed. Now make three more properties. They all are player, number, and have a default of 1. Name these RandomGun#, SettingProp#, CheckingProp#. (Prop is short for property)
GimkitGunGame(4

Now start by making a lifecycle that receives on game start and wire it to a relay to all players that broadcasts on “Set Random Gun”. Then get a trigger that is not visible in game and can not be triggered by player collision. This trigger will run on the channel “Set Random Gun.” Go to the block code in that trigger and Set the the property RandomGun# to a random integer from 1 to however many knockouts you need to win. Then have it broadcast on the channel “CheckProp.” It should look like this.
GimkitGunGame(5

Now duplicate that trigger. Remove the Block Code and make it trigger on the channel “Check Prop.” Make it deactivated when receiving on “GunsSet.” Go back to block code and follow this picture to make this monstrosity.
GimkitGunGame(6

What this code block does. We need to use a randomizer to get unique loadouts. However if for the first round of the game weapon 13 is picked we don’t want the randomizer to pick 13 again. Gimkit doesn’t have advanced enough blocks to do this and so we can exclude that number from being randomly picked, however we can check to see if that number has already been picked and then get a new random number. This is what this system does it uses recursion to increment through and see if the random generate number has already been used, if it has it resets the CheckProp# property which it is using to check properties and then gets a new random number. If it hasn’t been used it sets the round to the random number resets the CheckProp# and increases the SettingProp# and then gets a new random number.

For the final part of this guide make one last trigger. It should receive on Grant Guns, be invisible in game and not be triggerable by player collision. In block coding it should have the following blocks.
GimkitGunGame(7

In your game make it so players will broadcast on Grant Guns after the channel Guns Set is broadcast on and then you should be good to go.

Linear Gun Game

In a linear gun game the guns you receive as you level up are always received in the same order and are not random. This really allows only the most skilled players to win your games.

Literally all you have to do is make a trigger that receives on Grant Guns, is invisible in game and is not be triggerable by player collision. In blocks put this.
GimkitGunGame(8

Kinda feels really short but yeah that’s literally all for this.

Difficulty Poll

  • 0/10 :white_large_square:
  • 1/10 :blue_square:
  • 2/10 :green_square:
  • 3/10 :green_square:
  • 4/10 :yellow_square:
  • 5/10 :yellow_square:
  • 6/10 :orange_square:
  • 7/10 :orange_square:
  • 8/10 :red_square:
  • 9/10 :red_square:
  • 10/10 :purple_square:
  • 11/10 :black_large_square:
0 voters

For the Reader

This is not a step by step guide. This Guide is meant for more advanced gims and has a high level of customizability therefore it will not be perfect and a few things are left for you to create if you are confused just ask but you should be knowledgeable on at the very minimum the basics of block code and have heard of some advanced gimkit mechanics.

Also this forum has a like button for a reason. If you Did read my post and appreciated it, leave a like. If you have a question about troubleshooting this guide then you can reply but I do not want empty comment posts such as “oh nice guide” or “This is really useful.” If you want to compliment at least make it meaningful and unique if not the like button is plenty. This is even part of the forum FAQ and Rules.

By replying to this guide you acknowledge that you have read this whole guide, have an understanding of the replies and are not about to leave an empty comment.

Thanks,
@TorontoBulls1

11 Likes

This seems neat! But just a question, What is gun game? Is it like an actual game or a gimkit discovery game or what?

2 Likes

A gun game is a type of gamemode where you get a different weapon every time you knock someone out but it is a kill race to actually win. Its pretty common in roblox and fortnite and many other shooter games.

4 Likes

Oh! That makes since! I’ve played a game like that on discovery! Thanks for the clarification! And btw, I do think it’s very cool that you made a guide for something this complicated!

3 Likes

Thanks a lot for the compliment. I actually wasn’t planning on making this guide until yesterday where I was making a map with a friend who is obsessed with Fortnite.

2 Likes

Nice Guide! Cool Gun game!

2 Likes

That’s very interesting. I’m not a fan of Fortnite myself, but if it led to an amazing guide like this, it’s cool in my book.

2 Likes

Yeah this would make for a great game!

2 Likes

I think they don’t want people to say nice guide. From what I read, I think they want compliments with kinda meaning behind them.

3 Likes

Yeah, that’s a trend nowadays.

3 Likes

Personally, I don’t mind, but I respect others opinions.

3 Likes

In Apex Legends it’s called Gun Run.

Is there a way to make it so there are 4 teams and you and your team have the same kill score? And the team placement is always displayed up top?

2 Likes

I cannot get on my computer to test but I believe it should work if you follow the player random gun game directions but set everything (properties, triggers,relays) to team scope. If that doesn’t work they’re might be a small bug it changing the scope should get you 90% of the way there

2 Likes

this is pretty cool! I’m currently building a build to survive the evil gims game, and its taking up 26% of my memory, and i’m not even decorating, its a small map, but the device thing computer lab where I do stuff is too big… so seeing this take 5% is pretty cool! I would think it would take way more.

This is like Roblox arsenal too lol

1 Like

Cool guide and good job. Can’t believe we dont have any guides like this yet.

1 Like

Maybe say why they had such a good guide instead of plainly saying “Nice guide!” as always.

2 Likes

@wingwave is right, I think that generic compliments don’t show appreciation for the guide and for how much time it takes to make a decent guide it tales so much less to actually read and tell the author what stands out.

2 Likes

bump because this guide is actually pretty good!

3 Likes