What type of Scripting Framework yall use?

You basically there are two types of script that does the same thing, which one yall prefer. I call it…

Local Function Framework

--//local function framework
local function part()
	local part = script.Parent
	part.Transparency = 1
	part.CanCollide = false

	local decal = part:WaitForChild("Decal")
	decal.Transparency = 1
end

game.Players.PlayerAdded:Connect(part)

or

Regular Framework

--//Regular Framework\\--
local part = script.Parent
local decal = part:WaitForChild("Decal")

part.Transparency = 1
part.CanCollide = false

decal.Transparency = 1

let me know your opinions

I think this should be on another category

and which category is that bec idk what to use

Sometimes i use the First framework because it would be suitable to use it many times,
like:
Calling the function part() whenever i want this to be an repeated action, sometimes_

while the Regular framework… i use when i don’t want to call it many times. only making a reference or something very direct ( because the script will execute this only one time ( if inside a blank script without functions )

I use whatever is best for a specific situation.

Also, these aren’t frameworks? A framework, is a group of methods / libraries that makes programming something easier, e.g. the Love2D framework, it’s great for making 2D games in Lua, or the Roblox framework, aka Roblox. Great for making 3D games with ease in Lua, though Roblox is more of a game engine, not a framework.

1 Like