is it ok to not use lots of locals / none? alot of times when scripting i dont use locals just because personally its easier to read (i know strange)
for example
I’ll keep it sweet and short
Variables are ways for you to reference paths or objects with shorter words. Variables are very good in improving overall performance of your script and keeps everything readable.However, you need to know when to use it and when to not. Ex;
Use variables when you are going to reference an object that will not change throughout the code
local humr = plr.Character.HumanoidRootPart — Here I can use a variable as the hmr will not change.
You should not use variables when something is constantly changing throughout your script. Variables store the object or the value of something of that instant only
local value = workspace:GetAttribute(“Parts”) — This not a good usage of variables as parts will constantly be added to workspace with scripts, it’s better to just use the whole thing as you get the updated value when you use it instead of the variable