>decide to get into coding>figure roblox lua will be an easy place to start>binge a few tutorials>okay time to make some original code>try to write a script that will print a dice-roll result from a 3d dice model falling naturally in the game>face of the dice hits the baseplate>game detects what face hit the baseplate>but it's still rolling so that result is not useful>wait until it's stopped rolling>but then the face that hits the baseplate is the underside of the dice>instead print the opposite face, ie the one facing up>can't figure it outIs it over before it even began? I've been at this for 3 hours
opposite sides of a dice always add up to 7so print (7 - face that hit the baseplate)
I think I need to spend more time learning the syntax. I've learned some of the concepts but can't figure out how to put them into a script that the computer likes
>>100146547interesting, didn't know that
Wait until it stops rolling, then check which of the cube's orientation vector (up, right, forward) is (loosely, cause floats) parallel to the world vertical one (0,1,0). Adjust for opposite face with the result vector's y component sign
>>100146547That's a nice work around
>>100147169This also op should show his code
>>100146547Double check if it's the case for your model.
>>100146502just print a random number, zoomers aren't going to look that the dice anyway
>>100146502you coded all that as a novice?cube physics?
>>100146502Lol you watched that one child Roblox dev youtuber's tutorial with the dice I watched it a couple of years ago too
>>100150173Roblox provides a physics engine
>>100146502Try making a gun first
>>100151329-which is very based.
>>100150173Have you never seen a roblox video? Roblox provides camera, physics, texture, everything; even the character
>>100146502If you started from zero that's actually pretty good for only 3 hours.
>>100146502lua is a historically dogshit proprietary programming languagego learn python, you’ll have a much more enjoyable time there