Pop up minigame

Alright so I want to make something like a minigame that pops up when you click on a part something like cable connect

I tried to do a bit of research on how to start it but didn’t got much so far so I’ll be happy to get any tip of how to start it, it will be something like this

1 Like

You will have to use a GUI and clone it to the players screen when the player clicks the part
I’m not exactly sure what you want the actual mini game to do

1 Like

It’s like in the image each cable connects to the other with the same color

The way to do this is to get mouse position and get the cable start position. Then get the midpoint and use the pythagorean theorem to find the length between them. Next, make a frame at the midpoint, set the length, then use some simple trigonometry to find the angle at which to bend the frame. Next, detect when the mouse collides with the correct cable end position and add 1 to a variable that stores the number of cables connected. Next detect when all cables are detected and close the window. Good Luck! :smiley: (If you don’t understand feel free to ask)

6 Likes

So as @domboss37 you would clone the GUI into the players PlayerGui, but you also might want to make other GUI invisible while the player is playing the mini game.