MediumProgramming On Roblox Made Easier: 5 Tips | by Roblox Development | Medium
Sitemap
Roblox Development

Roblox Development

Programming On Roblox Made Easier: 5 Tips

3 min readJul 1, 2025

--

1. Shortcuts

you can hold alt + click any line that you want to select to select multiple lines

example:

Press enter or click to view image in full size
image of code

using Ctrl + Shift + D you can duplicate a line it will put the new line below the one you duplicated from (useful for editing gui object properties)

example:

image of code

ctrl + end to go to the last line of a script (rarely use this but I’m sure there will be a use case for it eventually)

Click 3 Times to highlight a full line (useful for deleting a line you don’t want or need anymore)

hold alt + double click any word to multi select on different lines (useful for changing variable names)

2. Naming Conventions

Different Case Styles:

  • snake_case
  • camelCase
  • PascalCase
  • lowercase

(there is a lot more but these seem to be the most popular)

I personally recommend never using snake case because you have to hold shift + dash which is two more buttons rather than just typing a word

example

local randomVariable = 3 -- okay
local randomvariable = 3 -- harder to read for me but feels better to type
local random_variable = 3 -- not okay
local RandomVariable = 3 -- better for readiablity imo but still too many keys for me

--[[
this is a multi line comment
]]

3. Organizing

I usually organize later or keep as is since It’s usually not messy

Get Roblox Development’s stories in your inbox

Join Medium for free to get updates from this writer.

example from a game I’m working on:

Overall, it’s pretty clean for me — packages for client and server, and packages for just the server. Server scripts cannot be stolen no matter where they’re placed, but for organization sake, any server script should only go into ServerScriptService. Anything else that is client-only or shared between client and server should go under ReplicatedStorage.

4. Reading Errors/Warns

I have seen so many cases of people failing to read errors and it always ends up being the most simple fix

example

local randomObject = workspace.Object
randomObject.CFrame = CFrame.new(3, 3, 3)

my current workspace

as you can see there is no object named Object under workspace the randomObject variable is attempting to get an object that doesn’t exist which result in an error.

Object is not a valid member of Workspace “Workspace”

to fix this you can simply add a part to the workspace and name it “Object”

or

Got this error? here’s a fix! ⬇️
CFrame is not a valid member of Model “Workspace.Object”

if you read the error it also tells you that you tried to get a cframe from a model.

if you did need the cframe for a model you can use :GetPivot() — this will return the cframe or to move the model you can use :PivotTo(CFrame.new(1, 1, 1)) — this will pivot the model to the cframe you give it

if you’re not using an instance that doesn’t contain a cframe value and try to run the example code it will error since this script was made for instances with a cframe property to change its location.

5. Useful Resources

Github (good for open source modules/code)

Roblox Documentation (Best overall)

Toolbox (great for getting placeholder things or learning from)

Developer Forum (Good for asking for help and also for getting open source modules/code)

--

--