How to make an info log

Hey, I recently tried to do and client info log when player joins, and the “}” mark dont appears, Can someone help me? pls

print("client.info = {\n\ name = "..game.Players.LocalPlayer.Name..",\n\}")

image

it was supposed to appear the } and it doesn’t appear anything, just the { and my name

The string is not properly terminated with a closing quotation mark. Here’s the adjusted code:

print("client.info = {\n\ name = \""..game.Players.LocalPlayer.Name.."\",\n\}")

Nope, Still the same :frowning:

image

When I run either of the code snippets I get the closing brace:
image

print(string.format([[client.info = {
	name = %s,
	id = %d
}
]], 
	game.Players.LocalPlayer.Name, -- name
	game.Players.LocalPlayer.UserId -- id
)) 

-- use %s for string
-- use %d for numbers
1 Like

I’ve tested the code, and it works fine, maybe this could be a roblox glitch or a glitch with the font your using?

I’m running this in a local script, That could be the problem?

This works perfectly, Thanks!
Im trying it on a server script, To detect the problem from my other script

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.