function parameters roblox code example
Example 1: function parameters roblox
function generatePart(isAnchored, transpareny, canCollide, name)
local part = Instance.new("Part")
part.Name = name
part.Anchored = isAnchored
part.Transparency = transpareny
part.CanCollide = canCollide
part.Position = Vector3.new(0,15,0)
part.Parent = workspace
end
generatePart(true, 0.5, false, "ThankYouGuys!")
Example 2: lua roblox function
function NameOfFuction()
--Your code
end