Basedmessage
Basedmessage
-- Function
function FunctionName(...)
print(...)
end
FunctionName("Test", "threedotsahhthing")
-- Tables
local Table = {
"One"; -- will be indexed as 1 ( Table[1] )
["PlayerName"] = "Developer" -- will be indexed as PlayerName
( Table[PlayerName] ), but the value will be "developer"
}
-- Services
local RunService = game:GetService("RunService") -- Service that runs every
tick(used for updating something with ur fps)
--//RunService usage
RunService.RenderStepped:Connect(function(dt)
print("Current DeltaTime is: "..math.ceil(dt))
end)
--//Debris
-- Debris service is used to destroy something, for ex:
local Debris = game.Debris
Debris:AddItem(workspace.SpawnLocation, 10) -- destroys spawnlocation part after 10
seconds
--//
--// bools
if bool then
print("bool is true")
else
print("bool is false")
end
if bool then
print("bool is true")
else
print("bool is false")
end
bool = "Text"
print(bool)
local bool = 6
--// Instances