[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: file.png (478 KB, 1024x1024)
478 KB PNG
>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 out
Is it over before it even began? I've been at this for 3 hours
>>
opposite sides of a dice always add up to 7
so 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
>>
>>108657604
interesting, didn't know that
>>
>>108657616
stop talking to yourself
>>
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
>>
>>108657604
That's a nice work around
>>
>>108657623
This also op should show his code
>>
File: file.png (370 KB, 850x478)
370 KB PNG
>>108657629
>work around
anything else would be a workaround
>>
>>108657604
based
>>
>>108657622
>>108657604
>>108657612
>>108657616
>>108657623
>>108657629
>>108657636
schizo samefag
>>
File: 1776401700092518.jpg (34 KB, 473x184)
34 KB JPG
>>108657660
>>
>>108657604
Double check if it's the case for your model.
>>
>Roblox
Get Fuck out of here, pedophile.
>>
>>108657672
>inspect element
>>
backdoorpedo thread, go back to /vm/ subhuman
>>
>>108657681
i swear its not, i promise
>>
>>108657687
it's okay i believe you pill-chan
>>
>>108657683
he would be using AI instead of learning like OP is
>>
>>108657683
meds
>>
I wish coding could just be easy so I can make the ultimate roblox game and meet my girlfriend there
>>
>>108657602
>>figure roblox lua will be an easy place to start
Holy shit why
If you want to try lua try a game engine made in a real language, a real version of lua, like LOVE. Roblox lua is purposefully held together with duct tape and chewing gum because they don't want users having *too* much freedom in t
>>
>>108657602
Why not check Which face's normal is pointing up
>>
>>108657602
just print a random number, zoomers aren't going to look that the dice anyway
>>
>>108657602
you coded all that as a novice?
cube physics?
>>
File: file.png (10 KB, 75x75)
10 KB PNG
>>108657604
what the fuck you're right
>>
>>108657742
zoomers are all grown ass men now
>>
>>108657602
Someone had a similar problem a while ago, maybe you'll find answers in that thread
https://desuarchive.org/g/thread/108218622
>>
>>108657602
Lol you watched that one child Roblox dev youtuber's tutorial with the dice

I watched it a couple of years ago too
>>
>>108657757
ok what the fuck is going on
>>
>>108657743
Roblox provides a physics engine
>>
>>108657602
Try making a gun first
>>
>>108657772
which is very based.
>>
>>108657602
If you started from zero that's actually pretty good for only 3 hours.
>>
>>108657743
Have you never seen a roblox video? Roblox provides camera, physics, texture, everything; even the character
>>
>>108657602
lua is a historically dogshit proprietary programming language

go learn python, you’ll have a much more enjoyable time there
>>
>>108657642
checking the opposite side isnt
>>
Is no one else gonna point out it's a repost of a thread from one month ago? this is creepy.
>>
>>108657805
meds
>>
File: file.png (354 KB, 695x959)
354 KB PNG
>>108657811
no, you meds
>>
>>108657817
kek wtf is this
>>
File: file.png (38 KB, 725x478)
38 KB PNG
>>108657817
>>108657818
holy shit its real
>>
>>108657818
my pet conspiracy theory is 4chan reposting random threads to drive up engagement
>>
dead 4chan theory
>>
>>108657805
I picked up on that too. Partially the same responses too.
>>
>>108657805
>>108657660
i'm telling you, my intuition is always right
>>
>>108657824
I feel like it's just randos doing it for the (You)s.

I know this because I've done it before. Multiple times.
>>
>>108657604
finally someone that understands maths
>>
File: h25t.png (367 KB, 823x785)
367 KB PNG
>>108657602
>>108657642
>>108657748
>>108657817
>>108657823
>file.png
goofy ahh nigga talking to himself
>>
>>108657840
has literally nothing to do with math
>>
>>108657843
subtraction. addition. complementary pairs
>>
>>108657829
>>108657841
WTF I KEEP HITTING ACES (jokes aside i had no idea when i wrote >>108657660)
>>
>>108657817
>>108657818
You guys must be new around here
>>
File: file.png (95 KB, 786x494)
95 KB PNG
>>108657604
>>108657602
but why
>>
>>108657867
dead internet practice
>>
>>108657602
you're overcomplicating the issue. it's a fixed model so you know if say "6" is facing down then "1" must be facing up and so on
>>
>>108657823
>>108657867
>different font
GPT-7 thread
>>
>>108657883
henceforth this thread shall be considered the new DEAD INTERNET THEORY GENERAL
discuss the topic of whether or not any of us are real below:
>>
I like Lua and I hear the Roblox people have made their own interpreter with some features that are good for Roblox devs.
But also Roblox is a kids game so the idea of learning anything about it where most of the education and example material is probably written by 8 year olds is not something I would want to deal with.
Maybe it would be better to learn Lua or programming without Roblox to start, and come back to it later when you have a little bit of a handle on things? idk
>>
File: 1761475999294363.jpg (87 KB, 956x1024)
87 KB JPG
>>108658163
local code = [[
local noop = function(...) return ... end
local game, pcall, type, hookfunction, getrawmetatable, setstackhidden, newcclosure, getnamecallmethod, error, index = game, pcall, type, hookfunction, getrawmetatable, setstackhidden or noop, newcclosure or noop, getnamecallmethod, error, function(self, key) return self[key] end
local function checkparallel(str)
local isparallel, err = pcall(index, game, 'GetService')
isparallel = not isparallel
if type(err) == 'string' and type(str) == 'string' then
err = err:gsub('ServiceProvider.GetService', str)
end
return isparallel, err
end

local LocalPlayer = game:GetService('Players').LocalPlayer
local namecall; namecall = hookfunction(getrawmetatable(game).__namecall, function(...)
local method = getnamecallmethod()
if select(1, ...) == LocalPlayer and method == 'Kick' or method == 'kick' then
local isparallel, err = checkparallel('Player.Kick')
if isparallel then
error(err, 2)
end
return
end
return namecall(...)
end)
local kick; kick = hookfunction(LocalPlayer.Kick, function(...)
if select(1, ...) == LocalPlayer then
local isparallel, err = checkparallel('Player.Kick')
if isparallel then
error(err, 2)
end
return
end
return kick(...)
end)
]]
loadstring(code)()

if run_on_actor then
for _,actor in getactors and getactors() or game:QueryDescendants('Actor') do
run_on_actor(actor, code)
end
local added = on_actor_state_created or on_actor_added
if added then
added.Event:Connect(function(actor)
run_on_actor(actor, code)
end)
end
end

print('antikick')
>>
>>108657604
don't even need to do that. just swap the labels of the faces. so like have a face which is internally named "6" but has a "1" on the texture
>>
File: 1765883990780358.mp4 (1.33 MB, 1046x720)
1.33 MB MP4
>>108657867
>>108657823
>>108657817
Reporting bots gets you banned btw
>>
entry-level coder, newbie: >>108657604
project manager, guru: >>108658259
>>
File: 1757271719869783.jpg (35 KB, 317x265)
35 KB JPG
>>108657796
>lua is a historically dogshit proprietary programming language
Nigga what?
https://www.lua.org/license.html
>>
>>108659749
i think he was trying to ragebait
you fell for it lol
>>
>>108658163
Agreed, learn LÖVE instead
https://love2d.org/
Balatro was written with this btw. It's not an engine so you are starting from less, but it's a bundle of libraries required to write a game (physics, sound, 2d rendering, etc)
>>
>>108659770
its just roblox but without the instance system/datamodel, the phyiscs engine etc. the frame system and delatime etc is very similar.
>physics
doesnt love only include some experimental thing and ur supposed to make actual physics yourself?
>>
>>108657805
>>108657817
>>108657824
THIS WAS NOT ME also good luck getting the 4chan pass to show you screwbag!
>>
File: 1770757473460000.png (206 KB, 973x329)
206 KB PNG
>>108657602
>roblox
https://webmatrices.com/post/how-a-roblox-cheat-and-one-ai-tool-brought-down-vercel-s-entire-platform
>>
>>108659814
>its just roblox but without the instance system/datamodel
No it's fucking not
>the frame system and delatime etc is very similar
If you're talking about using delta time to measure the time since the last frame, that is a standard feature in every game engine and graphics library since the beginning of time
>doesnt love only include some experimental thing
No, it bundles box2d which is mature software
>>
>>108659695
holy shit
>>
>>108659840
>roblox cheat
>lumma
it couldve been literally any other cheat
ur supposed to get roblox cheats from https://whatexpsare.online/
>>
File: KEEEEEEK.jpg (59 KB, 680x1069)
59 KB JPG
>>108659833
>he boughted
>>
>>108659867
This shit should not be on 4chan
Roblox e***oiters should have died in 2016, it's like a cancer that never stops. Do something better with your life.
>>
>>108659879
are you the obsessed nigger that ddosed cliffchan?
>>
I literally can't stop sucking cocks
>>
>>108659887
I don't know who that is
Take your meds
>>
>>108659891
lol
>>
>>108659870
>he does captchas
>>
File: 1771836407188w.png (541 KB, 1305x1483)
541 KB PNG
>>108659893
oh cmon
dont think i could ever forget what you did
>>
>>108659911
>doesnt know
>>
>>108659914
>he projects his discord e-celeb drama onto everybody
More proof legoshit is inherently brain damaging. Seeing a thread mentioning Roblox isn't an invitation to come shit up the board, and I still don't recognize your e-celebs or discord personalities
>>
nigger
>>
e4rtyhuj65rtyujiu5rtghuj
>>
8765r4ertyhujikuyt5r4tgyujikutrde
>>
File: 2025-12-16 23-24-37.mp4 (1.42 MB, 1920x1080)
1.42 MB MP4
>>108659911
>>108659923
>>
why does this thread keep resurfacing
>>
>>108660084
meds



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.