Roblox has recently started to slowly roll out there display name update. Some people(like me) think that people will use it to impersonate famous devs and(mainly) youtubes to scam users. so I’ve made a script that overrides this update if the games owner so wishes. I’m not able to put the script on sale, so here it is for download. Think I can improve on it or wish to give feedback, feel free to leave a reply.
From the looks of it, it just changes the DisplayName to Username. Pretty simple but I doubt Roblox is going to allow changing Player Instance displayname tinkering (AKA Read-Only).
repeat wait(1) until game.Players.LocalPlayer ~= nil
local player = game.Players.LocalPlayer
if player.Character.Name ~= player.Name then
player.Character.Name = player.Name
end
You could say so, everyone has their own way of scripting. However, what you did just imposes an unnecessary delay of up to 1 second, and judging by the LocalPlayer, it’s a localscript which won’t be replicated Server-Side.
Perhaps the current permission lets the username be allowed as a valid display name, but nothing else as the creator of a game could potentially name an unsuspecting player something inappropriate.