print roblox lua code example
Example 1: How can you print in lua/roblox
-- You can print string
print("Hello, World!")
-- You can print math
print(5 + 5)
-- You can print variables
local i = 5
print(i + 2)
-- You can print number
print(5)
Example 2: how to print a string in roblox lua
local string = "" -- strings are enclosed in "" or ''
print(string) -- prints our variable string
print("Hello") -- directly print a string