Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR LUA

roblox format string

-- Just String
local str = "The magic word is %s"
print(string.format(str, "Roblox"))

-- With Quotes
local str = "The magic word is %q"
print(string.format(str, "Roblox"))

-- New Line
local str = "Skip to 
a new line and 
another new line!"
print(string.format(str, "%q"))
Source by developer.roblox.com #
 
PREVIOUS NEXT
Tagged: #roblox #format #string
ADD COMMENT
Topic
Name
3+4 =