I have been a roblox developer for a long time, and I have seen a lot of ways to make your code simpler and cleaner. My question is whether you can assign two variables like a and b to the same variable like this but without errors:
local a, b = 8
My only solution would be to do this but it seems lengthy:
The first wouldn’t work because it’s initialized at once (image a Tuple), not one by one.
The reason you got 8 on b is because you used globals instead of locals and probably ran that script more than once (meaning a already existed on future runs)
This is further noticeable if you use locals: