#Code stopped working for no reason

18 messages · Page 1 of 1 (latest)

west beacon
#

It's located in StarterGui, was working fine, but then died for no reason. I didn't change anything and output doesn't say anything about it either. Why did it happen?

sudden ivyBOT
#

studio** You are now Level 1! **studio

grave tendon
#

Is your username in Roblox actually the player name?

#

Usernames on Roblox can be up to 20 characters long

#

The one in the code is longer than 20

#

BTW I suggest using the userid instead of player name because players can change their username for 1k robux.

jaunty knot
#

not only is that longer than 20 characters it also has two underscores

grave tendon
#

Dude

#

You don't need to repeat me

jaunty knot
grave tendon
#

Oh I didn't

west beacon
#

"local UserId = game.Players.LocalPlayer.UserId
if UserId == 1490759963 then"
You said that I need to use UserId, but there's something wrong about it

grave tendon
#

Is that number your actual userid?

#

Have you tried to print UserId and verify that it's the same number

#

You said Roblox's AI gave you that nickname and yet you still used it's UserId, I guess that's why it doesn't work.

west beacon
#

Already solved, thanks