Adding Quotation in Quotation? lol

Yes the title sounds weird but im trying to do this image

	PC = "Press E to Grab ";

PC = 'Press "E" to Grab '
or
PC = [[Press "E" to Grab ]]

2 Likes

@D0RYU and OP,

You can also just use a backslash before the quotation marks to get an escaped form:

"Press \"E\" to Grab"
3 Likes

As well as the two solutions described above you could also achieve this by using string.format:

local key = "E"
local text = string.format("Press %q to Grab Flashlight",  key)
2 Likes