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\}")
it was supposed to appear the } and it doesn’t appear anything, just the { and my name
ShaShxa
(Sha)
October 21, 2023, 10:59pm
#2
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\}")
When I run either of the code snippets I get the closing brace:
yo9sa
(yosa)
October 22, 2023, 7:39am
#5
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
system
(system)
Closed
November 7, 2023, 1:04pm
#9
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.