Roblox -Funktion
local function functionName(params...)
code...
end
CoolProCoder
local function functionName(params...)
code...
end
local function functionName(string)
print(Function has been called)
print(string)
end
functionName("String")
local function addAndSubtract(num1, num2)
local sum = num1 + num2
local difference = num1 - num2
return sum, difference
end
local sum, difference = addAndSubtract(2, 3)
print(sum)
print(difference)
local function pt(text)
print(text)
end
pt(text)