Since after you put an end you can't use local what is the point
like for example
local part = game.workspace.part
end
--cannot use anymore
--new script
part = game.workspace.part
end
part.BrickColor = BrickColor.new("Lavender")
--I dont get why people use local in some of the scripts

1 comment
You should always use local variables. Usage of global variables is bad practice, it makes code messy. Global variables also pollute the global namespace as well as increase risks for name collisions.