This doesn't seem to work for me, and yes it's in a LocalScript
Player = game.Players.LocalPlayer
Name = Player.Name
if Name = "Builderman" then print ("Welcome Builderman")
Your question doesn't really sum up what you want, but I will fix your code.
Your syntax is incorrect meaning you used an = sign, this is only to set a value, if you want to compare a value in Lua, you use 2 equal signs like this==
Also, you forgot and end at well, the end... Fixed code bellow:
1 | Player = game.Players.LocalPlayer |
2 |
3 | Name = Player.Name |
4 |
5 | if Name = = "Builderman" then |
6 | print ( "Welcome Builderman" ) |
7 | end |
8 |
9 | --Keep in mind your name is not Builderman so this wont work for you, obviously |
If this helped, accept this answer! Any questions/Problems? Comment them bellow