I'm trying to change my name so when i join the game my name won't be madman5533 anymore, it will be "HAX" , What is wrong with this current script? Is this even possible?
game.Players.madman5533.Name="HAX"
Well because Players isnt located in workspace. Only the player model is located in workspace.
In order to do this, you need to check for the creator's id. If you're inside the game, then it will change your name. So, you need to use a for loop to check through all players and find if you're there.
while true do --while true do loop to keep checking for _,v in ipairs(game.Players:GetPlayers()) do --for loop, that checks through players if v.userId == game.CreatorId then --checks if v(all players) includes the creators id. v.Name = "HAX" --changes name to "HAX" end end wait(10) end
Accept this answer and upvote me if this helped!
You cannot change the name of a player its locked by roblox making it read only, but you could get around this by creating a custom leaderboard or just disabling the current one and then hiding your current characters name and replacing it with a billboard gui.