more complicated than the script me / @yoshicoolTV provided
but still works so
What?
this could be
function isEven(number)
return number % 2 == 0
end
Returning true if even that’s 3 lines for every number you could ask it. Drop that in a mod and make it a command.
Are you looking for something other than finding odd or even?
yea but “odd” is not false. if 3 is not even, it is odd, which is then true
if you sent this 3 it would come back false …
function isEven(number)
return number % 2 == 0
end
I just posted both you really only need one …
not in that type of way. yes it returns false but in a logical sense it shouldn’t
so using a string is a bit better
i get it for efficiency but that is why elseif is there
It’s retuning false because this query is not true with a 3: return number % 2 == 0
Checking the root of the number, it is not 0, so it is not even …
I guess I don’t know what all you’re doing.
That’s my 2 cents … good luck.
Why so complicated? When you can have easier and more advanced script like i did?
That’s waaaay too complicated. OP’s solution is extremely efficient and will perform much better.
2 million lines doesn’t sound extremely efficient
You must not understand modern efficiency. OP clearly knows the most efficient way to write Luau code.
It took me 7 hours to write this whole script and I’m already planning on supporting numbers up to a billion.
The code is just a small
so you’re telling me you want a roblox script that’s 2 billion lines long?
Why not, it’s more advanced and effective.
Current version on GitHub: https://github.com/sgisheree/Help-with-handwritten-advanced-number-system/blob/main/even.lua
Too complicated.
noooo why would you wanna do something like this
Just use a few line function that can detect if it’s odd or even like modulo
Simply do something like % 2 == 0
Sorry I pasted the wrong script. This is the real one.
function isEven(x) do
return x == 0 or x == 2 or x == 4 or x == 6 or x == 8 or x == 10 or x == 12 or x == 14 or x == 16 or x == 18 or x == 20 or x == 22 or x == 24 or x == 26 or x == 28 or x == 30 or x == 32 or x == 34 or x == 36 or x == 38 or x == 40 or x == 42 or x == 44 or x == 46 or x == 48 or x == 50 or x == 52 or x == 54 or x == 56 or x == 58 or x == 60 or x == 62 or x == 64 or x == 66 or x == 68 or x == 70 or x == 72 or x == 74 or x == 76 or x == 78 or x == 80 or x == 82 or x == 84 or x == 86 or x == 88 or x == 90 or x == 92 or x == 94 or x == 96 or x == 98 or x == 100 or x == 102 or x == 104 or x == 106 or x == 108 or x == 110 or x == 112 or x == 114 or x == 116 or x == 118 or x == 120 or x == 122 or x == 124 or x == 126 or x == 128 or x == 130 or x == 132 or x == 134 or x == 136 or x == 138 or x == 140 or x == 142 or x == 144 or x == 146 or x == 148 or x == 150 or x == 152 or x == 154 or x == 156 or x == 158 or x == 160 or x == 162 or x == 164 or x == 166 or x == 168 or x == 170 or x == 172 or x == 174 or x == 176 or x == 178 or x == 180 or x == 182 or x == 184 or x == 186 or x == 188 or x == 190 or x == 192 or x == 194 or x == 196 or x == 198 or x == 200 or x == 202 or x == 204 or x == 206 or x == 208 or x == 210 or x == 212 or x == 214 or x == 216 or x == 218 or x == 220 or x == 222 or x == 224 or x == 226 or x == 228 or x == 230 or x == 232 or x == 234 or x == 236 or x == 238 or x == 240 or x == 242 or x == 244 or x == 246 or x == 248 or x == 250 or x == 252 or x == 254 or x == 256 or x == 258 or x == 260 or x == 262 or x == 264 or x == 266 or x == 268 or x == 270 or x == 272 or x == 274 or x == 276 or x == 278 or x == 280 or x == 282 or x == 284 or x == 286 or x == 288 or x == 290 or x == 292 or x == 294 or x == 296 or x == 298 or x == 300 or x == 302 or x == 304 or x == 306 or x == 308 or x == 310 or x == 312 or x == 314 or x == 316 or x == 318 or x == 320 or x == 322 or x == 324 or x == 326 or x == 328 or x == 330 or x == 332 or x == 334 or x == 336 or x == 338 or x == 340 or x == 342 or x == 344 or x == 346 or x == 348 or x == 350 or x == 352 or x == 354 or x == 356 or x == 358 or x == 360 or x == 362 or x == 364 or x == 366 or x == 368 or x == 370 or x == 372 or x == 374 or x == 376 or x == 378 or x == 380 or x == 382 or x == 384 or x == 386 or x == 388 or x == 390 or x == 392 or x == 394 or x == 396 or x == 398 or x == 400 or x == 402 or x == 404 or x == 406 or x == 408 or x == 410 or x == 412 or x == 414 or x == 416 or x == 418 or x == 420 or x == 422 or x == 424 or x == 426 or x == 428 or x == 430 or x == 432 or x == 434 or x == 436 or x == 438 or x == 440 or x == 442 or x == 444 or x == 446 or x == 448 or x == 450 or x == 452 or x == 454 or x == 456 or x == 458 or x == 460 or x == 462 or x == 464 or x == 466 or x == 468 or x == 470 or x == 472 or x == 474 or x == 476 or x == 478 or x == 480 or x == 482 or x == 484 or x == 486 or x == 488 or x == 490 or x == 492 or x == 494 or x == 496 or x == 498 or x == 500 or x == 502 or x == 504 or x == 506 or x == 508 or x == 510 or x == 512 or x == 514 or x == 516 or x == 518 or x == 520 or x == 522 or x == 524 or x == 526 or x == 528 or x == 530 or x == 532 or x == 534 or x == 536 or x == 538 or x == 540 or x == 542 or x == 544 or x == 546 or x == 548 or x == 550 or x == 552 or x == 554 or x == 556 or x == 558 or x == 560 or x == 562 or x == 564 or x == 566 or x == 568 or x == 570 or x == 572 or x == 574 or x == 576 or x == 578 or x == 580 or x == 582 or x == 584 or x == 586 or x == 588 or x == 590 or x == 592 or x == 594 or x == 596 or x == 598 or x == 600 or x == 602 or x == 604 or x == 606 or x == 608 or x == 610 or x == 612 or x == 614 or x == 616 or x == 618 or x == 620 or x == 622 or x == 624 or x == 626 or x == 628 or x == 630 or x == 632 or x == 634 or x == 636 or x == 638 or x == 640 or x == 642 or x == 644 or x == 646 or x == 648 or x == 650 or x == 652 or x == 654 or x == 656 or x == 658 or x == 660 or x == 662 or x == 664 or x == 666 or x == 668 or x == 670 or x == 672 or x == 674 or x == 676 or x == 678 or x == 680 or x == 682 or x == 684 or x == 686 or x == 688 or x == 690 or x == 692
end
script.lua (3.7 MB)
this is much better than OP’s script, thank you for this wonderful resource. have you thought of letting it rest in the hall of fame in #resources:community-resources?
Still, too complicated and my script is still more advanced and reliable.
It’s a good script what do you mean?
Too conplicated than my script
Just press “View rew” to see the script.
Try at your own risk
it’s so optimized whenever i try to scroll it reloads the page