For the past few days I have been working on my own modded Lua (if you didnt know, roblox uses Luau which is a modded version of Lua). So far, I have completed the following functions
- randomNumber(integer, integer) – replaces math.random(integer, integer)
- returnSquareRoot(#) – replaces math.sqrt
- floor(#) – removes all decimals from a number, replaces math.floor and math.ceil
- greaterThan(arg1, arg2) – replaces ‘if arg1 > arg2 then local var = true return end’
- lessThan(arg1, arg2) – replaces ‘if arg1 < arg2 then local var = true return end’
- equalTo(arg1, arg2) – replaces ‘if arg1 == arg2 then local var = true return end’
- getChild(checking, lookingfor) – replaces :FindFirstChild() and :WaitForChild()
I tried to minimize the amount of premade Luau functions I used because using them would be pointless, but heres a list of what I used so far
- random.new():NextNumber(#,#)
here is a Link to the module, If i could get some feedback on my progress that would be amazing. I also need some ideas on functions I should add, because I dont want to just remake Luau functions. Thank you!!!
– there is a script inside the module with examples on how to use the functions –