Functional Rubik's Cube + Solver

So, I recently developed an obsession with Rubik’s cubes. I bought a few and have been working on my time ever since. I got the bright idea one day to make one on Roblox. I really feel like it turned out well, so I decided to post it here. It features the common moves(excluding middle layer moves).

Controls:
Holding Shift + A Move Key = Opposite of the move key’s rotation (Known as prime in rubik’s notation)
Q = X Axis Turn
W = Top/Up Layer Turn
E = Y Axis Turn
A = Left Layer Turn
S = Bottom/Down Layer Turn
D = Right Layer Turn
Z = Front Layer Turn
X = Back Layer Turn
Spacebar = Scramble the Cube
Enter = Solve the Cube

Place Link: Functional Roblik's Cube and Solver - Roblox

Edit: I tried to add mouse controls(click and drag) but I didn’t really know how to do that. If somebody has an idea of how to do that, I would be glad to add it.

Like a million years ago I made a rubiks cube. It does use mouse controls, if you care to decipher ancient texts. I’d be amazed if it still works.

Also, fun fact: The sides are moved physically, not logically. I cheated by swapping the parts around, so it can’t be solved automatically.

Edit: My god, it actually still works.

[quote] Like a million years ago I made a rubiks cube. It does use mouse controls, if you care to decipher ancient texts. I’d be amazed if it still works.

Also, fun fact: The sides are moved physically, not logically. I cheated by swapping the parts around, so it can’t be solved automatically.

Edit: My god, it actually still works. [/quote]

I read your code and still can’t quite understand how you did it. Also, my cube actually keeps all cube data in a table, so the brick cube isn’t really needed to solve it. That’s just for the fun visual aspect. Also, I did a test and the solver can actually solve it in 0.004 seconds.

I made an update that added a controls GUI at the right of the screen. It tells the keys to press to get a certain turn, or you can click the buttons to turn the cube.