Answers for "roblox format string"

Lua
0

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 \na new line and \nanother new line!"
print(string.format(str, "%q"))
Posted by: Guest on February-25-2022

Browse Popular Code Answers by Language