Making a case system

Hello there!

I have begun to work on a team and will be making a case system for the game. I would like to tell you about the game however, it is top secret and it would be unfair if I leaked the game without consent of the owner.

Anyway, I am making a case system right now and I would like to know if you have any ideas on how to plan it out. I also have no idea how I would make the rolling bit as I’m not that advanced with the TweenService so please can you give me a hint as to do that.

Here is the code that I have written so far as a base:

local m = {}



m.Cases = {
	Test = {
		Items = {
			"Molten";
			"Nightfall";
			"Sunset";
			"Blue";
			"Cyan";
			"Green";

		};

		Rarities = {

			{name = "Rare";
			rarity = 0.15
			};
			
			{name = "Common";
			rarity = 0.85;
			}
		
		};
		
		Price = {500
		}
	}
}








m.Knives = {

	Molten = {
		name = "Molten";
		iamgeID = "6328216082";
		rarity = "Rare"	;
		crafting = true;
		trading = true;
	};

	Midas = {
		name = "Midas";
		iamgeID = "6328216760";
		rarity = "Rare"	;
		crafting = true;
		trading = true;
	};

	Nightfall = {
		name = "Nightfall";
		iamgeID = "6328218954";
		rarity = "Rare"	;
		crafting = true;
		trading = true;
	};

	No_Name = {
		name = "No_Name";
		iamgeID = "6328160689";
		rarity = "Rare"	;
		crafting = true;
		trading = true;
	};

	Anonymous = {
		name = "Anonymous";
		iamgeID = "6328222011";
		rarity = "Rare"	;
		crafting = true;
		trading = true;
	};

	Sunset = {
		name = "Sunset";
		iamgeID = "6328223985";
		rarity = "Rare"	;
		crafting = true;
		trading = true;
	};

	Pastel = {
		name = "Pastel";
		iamgeID = "6328225902";
		rarity = "Rare"	;
		crafting = true;
		trading = true;
	};

	Pitch_Black = {
		name = "Pitch Black";
		iamgeID = "6328179525";
		rarity = "Common"	;
		crafting = true;
		trading = true;
	};

	Yellow = {
		name = "Yellow";
		iamgeID = "6328180235";
		rarity = "Common"	;
		crafting = true;
		trading = true;
	};

	Cyan = {
		name = "Cyan";
		iamgeID = "6328182883";
		rarity = "Common"	;
		crafting = true;
		trading = true;
	};

	Orange = {
		name = "Orange";
		iamgeID = "6328183446";
		rarity = "Common"	;
		crafting = true;
		trading = true;
	};

	Blue = {
		name = "Blue";
		iamgeID = "6328180988";
		rarity = "Common"	;
		crafting = true;
		trading = true;
	};

	Green = {
		name = "Green";
		iamgeID = "6328181631";
		rarity = "Common"	;
		crafting = true;
		trading = true;
	}


}

return m

Let me know if there are any edits that I need to make to the code that I have so far.

Thanks for the help if you decide to give it,
Luke.

1 Like

There is actually a full tutorial on what u said but its for pet so you can use the logic in the tutorial to make your case opening: PET INVENTORY & EQUIPPING PETS! Roblox Egg Hatching System Tutorial Part 2 - YouTube

1 Like

That does seem interesting… however, I want to make a case system like Jailbreak or MM2 where it spins and lands on an item and you get that…

for the case system code try get it from the video code but where it hatch egg then u can ignore this part and other stuff and just make an animation for the case opening

1 Like

I will try that thanks.

I’m going to admit that I can’t animate UI though…

TweenService ain’t that hard tbh you should learn it

I know this is from 2021 but imma reply anyway

1 Like

Yeah I figured it out, thanks bro