About 459,000 results
Open links in new tab
  1. operators - Engine Features - Developer Forum | Roblox

    May 30, 2020 · Adding these common operators to Lua would make my fiddly math code easier to read. Having to type “nw = nw + 1” or “dx = dx * f” seems pedantic.

  2. Operators tutorial - Community Tutorials - Developer Forum

    Feb 9, 2025 · Operators are one of the basic programming tools, used in any programming language; at many of tutorials operators is second place after variables. Neverthless i often see people having troubles with them. This is article from documentation but with more examples and explaining Definition: “An operator is a symbol for performing an operation or conditional evaluation.” Basically function ...

  3. Using logical operators in variable assignment - Roblox

    Aug 20, 2022 · I’ve seen many people use logical operators(and, or, not) while assigning variables. I don’t understand how it works. I’ve searched around quite a bit but I can’t seem to find anything that explains how it works. I read this while looking through a post regarding ledge climbing system: surface = ((position - cframe.p).magnitude > (position - surfaces[surface].p).magnitude and surface ...

  4. Ternary Expressions in Luau - Guide - DevForum | Roblox

    Jul 21, 2022 · Ternary Expressions in Luau - Guide Introduction: As of 2022, the ternary feature has remained an extremely underrated and uncovered feature, that can save lines, and increase readability and elegance in the code. There isn’t much documentation on it on behalf of Roblox, nor are there any videos and guides covering the updated methods of achieving the ternary operation. Therefore, in this ...

  5. Help with % math operator - Scripting Support - Developer Forum …

    Jul 6, 2020 · The % operator is the modulus (or modulo) operator.It gives you the remainder of two numbers after division. ...

  6. More operators! - Engine Features - Developer Forum - Roblox

    Jul 9, 2017 · As a roblox developer, currently it is IMPOSSIBLE to make your code look attractive! When doing an operation on a variable and using that variable in the operation, it makes sense to only have to type the variable on the left side, but NOOOOO, WE CANT DO THAT IN THIS ROBLOX LUA! Other languages have operators such as: x+=5 – adds 5 to x x*=5 – multiplies x by 5 x-=5 – subtracts 5 from x ...

  7. Please add bitwise operators (<<, >>, ~, & and |) - Engine

    Apr 19, 2025 · As a Roblox developer, it is currently difficult to make expressions that utilise chains of bitwise operators look clean. The reasoning is because to do any bitwise operation, we need to defer to the bit32 library, rather than being able to use mathmatical equations. Lets take a simple algorithm, decoding a ULEB128 number from a binary stream, in most high level languages, we can use the ...

  8. Modulus % operator - Scripting Support - Developer Forum - Roblox

    Aug 26, 2023 · I am so confused because I haven’t found any topic that explains what it does and how it works. Someone please explain me.

  9. There's more to logical operators than you think - Resources

    Sep 13, 2020 · Hey, I’ve realized most beginner scripters don’t learn this simple concept often. Logical Operators are a simple concept that you probably use a lot while using if statements. You probably didn’t know this, but you can use them outside of if statements. Disclaimer : I am likely going to use some incorrect terminologies but you should get what I mean. print(not true) -- …

  10. Ternary Operator - Scripting Support - Developer Forum - Roblox

    Jul 28, 2021 · Guys I forgot how to do it what is the ternary operator for saying " If this is true then do this else do this" but you can use it with something like “true and 0 or 5” or something? I have this Body Velocity function and I just wanna know how the operator works so I can basically say instead of 3.5 I want to say if Combo < 4 then It’s 3.5 otherwise It’s 45, thanks. local BodyVelocity ...

Refresh