Advertisement
Dead_L0L

Roblox Character Display Name Changer Tool

Jan 19th, 2025 (edited)
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.96 KB | Source Code | 0 0
  1. -- Character Display Name Changer Tool
  2.  
  3. -- Console invisibility
  4. -- Recurring feature
  5. -- Practical usage
  6.  
  7. -- By HTS / Fatjohnstrangler --
  8.  
  9. -- For hide/open function
  10. local Key1 = Enum.KeyCode.LeftControl
  11. local Key2 = Enum.KeyCode.J
  12. -- For fill function
  13. local Key3 = Enum.KeyCode.F4
  14.  
  15.  
  16. local ExclFillPlr = false
  17.  
  18. local Lp = game.Players.LocalPlayer
  19. local ScreenGui = Instance.new("ScreenGui")
  20. local Frame = Instance.new("Frame")
  21. local UICorner = Instance.new("UICorner")
  22. local _04Info = Instance.new("TextLabel")
  23. local _03AlterBox = Instance.new("TextBox")
  24. local _02TargetBox = Instance.new("TextBox")
  25. local Display = Instance.new("TextLabel")
  26. local _00Mark = Instance.new("TextButton")
  27. local UICorner_2 = Instance.new("UICorner")
  28. local Info = Instance.new("TextLabel")
  29. local UIListLayout = Instance.new("UIListLayout")
  30. local _01Mark = Instance.new("TextButton")
  31. local UICorner_3 = Instance.new("UICorner")
  32. local Info_2 = Instance.new("TextLabel")
  33.  
  34. --Properties:
  35.  
  36. ScreenGui.Parent = Lp:WaitForChild("PlayerGui")
  37. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  38.  
  39. Frame.Parent = ScreenGui -- set to core, if needed.
  40. Frame.BackgroundColor3 = Color3.fromRGB(83, 83, 83)
  41. Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  42. Frame.BorderSizePixel = 0
  43. Frame.Position = UDim2.new(.708945274, 0, .699203193, 0)
  44. Frame.Size = UDim2.new(.272363156, 0, .282868534, 0)
  45.  
  46. UICorner.CornerRadius = UDim.new(.1, 0)
  47. UICorner.Parent = Frame
  48.  
  49. _04Info.Name = "04-Info"
  50. _04Info.Parent = Frame
  51. _04Info.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  52. _04Info.BackgroundTransparency = 1
  53. _04Info.BorderColor3 = Color3.fromRGB(0, 0, 0)
  54. _04Info.BorderSizePixel = 0
  55. _04Info.Position = UDim2.new(0, 0, .833162546, 0)
  56. _04Info.Size = UDim2.new(1, 0, .16, 0)
  57. _04Info.Font = Enum.Font.SourceSans
  58. _04Info.Text = "Display Changer($ to hide/open)"
  59. _04Info.TextColor3 = Color3.fromRGB(0, 0, 0)
  60. _04Info.TextScaled = true
  61. _04Info.TextSize = 14
  62. _04Info.TextWrapped = true
  63.  
  64. _03AlterBox.Name = "03-AlterBox"
  65. _03AlterBox.Parent = Frame
  66. _03AlterBox.BackgroundColor3 = Color3.fromRGB(162, 162, 162)
  67. _03AlterBox.BorderColor3 = Color3.fromRGB(0, 0, 0)
  68. _03AlterBox.BorderSizePixel = 0
  69. _03AlterBox.Position = UDim2.new(0, 0, .5810287, 0)
  70. _03AlterBox.Size = UDim2.new(1, 0, .202304721, 0)
  71. _03AlterBox.TextScaled = true
  72. _03AlterBox.Font = Enum.Font.SourceSans
  73. _03AlterBox.PlaceholderColor3 = Color3.fromRGB(68, 68, 68)
  74. _03AlterBox.PlaceholderText = "New display (refreshes with change)"
  75. _03AlterBox.Text = ""
  76. _03AlterBox.TextColor3 = Color3.fromRGB(0, 0, 0)
  77. _03AlterBox.TextSize = 14
  78. _03AlterBox.TextXAlignment = Enum.TextXAlignment.Left
  79.  
  80. _02TargetBox.Name = "02-TargetBox"
  81. _02TargetBox.ClearTextOnFocus = false
  82. _02TargetBox.Parent = Frame
  83. _02TargetBox.BackgroundColor3 = Color3.fromRGB(162, 162, 162)
  84. _02TargetBox.BorderColor3 = Color3.fromRGB(0, 0, 0)
  85. _02TargetBox.BorderSizePixel = 0
  86. _02TargetBox.Position = UDim2.new(0, 0, .299338549, 0)
  87. _02TargetBox.Size = UDim2.new(1, 0, .202304721, 0)
  88. _02TargetBox.TextScaled = true
  89. _02TargetBox.Font = Enum.Font.SourceSans
  90. _02TargetBox.Text = ""
  91. _02TargetBox.PlaceholderColor3 = Color3.fromRGB(68, 68, 68)
  92. _02TargetBox.PlaceholderText = "Username (press $ to auto fill)"
  93. _02TargetBox.TextColor3 = Color3.fromRGB(0, 0, 0)
  94. _02TargetBox.TextSize = 14
  95. _02TargetBox.TextXAlignment = Enum.TextXAlignment.Left
  96.  
  97. Display.Name = "Display"
  98. Display.Parent = _02TargetBox
  99. Display.BackgroundTransparency = 1
  100. Display.BorderColor3 = Color3.fromRGB(0, 0, 0)
  101. Display.BorderSizePixel = 0
  102. Display.Size = UDim2.new(1, 0, 1, 0)
  103. Display.TextScaled = true
  104. Display.Font = Enum.Font.SourceSans
  105. Display.Text = ""
  106. Display.TextColor3 = Color3.fromRGB(68, 68, 68)
  107. Display.TextSize = 14
  108. Display.TextTransparency = .7
  109. Display.TextXAlignment = Enum.TextXAlignment.Left
  110.  
  111. _00Mark.Name = "00-Mark"
  112. _00Mark.Parent = Frame
  113. _00Mark.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  114. _00Mark.BorderColor3 = Color3.fromRGB(0, 0, 0)
  115. _00Mark.BorderSizePixel = 0
  116. _00Mark.Position = UDim2.new(.0294117648, 0, .0422535203, 0)
  117. _00Mark.Size = UDim2.new(0,13,0,13)
  118. _00Mark.Font = Enum.Font.SourceSans
  119. _00Mark.Text = ""
  120. _00Mark.TextColor3 = Color3.fromRGB(0, 0, 0)
  121. _00Mark.TextSize = 14
  122.  
  123. UICorner_2.CornerRadius = UDim.new(1, 0)
  124. UICorner_2.Parent = _00Mark
  125.  
  126. Info.Name = "Info"
  127. Info.Parent = _00Mark
  128. Info.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  129. Info.BackgroundTransparency = 1
  130. Info.BorderColor3 = Color3.fromRGB(0, 0, 0)
  131. Info.BorderSizePixel = 0
  132. Info.Position = UDim2.new(1, 0, 0, 0)
  133. Info.Size = UDim2.new(16, 0, 1, 0)
  134. Info.Font = Enum.Font.SourceSans
  135. Info.Text = " Close gui"
  136. Info.TextXAlignment = Enum.TextXAlignment.Left
  137. Info.TextColor3 = Color3.fromRGB(0, 0, 0)
  138. Info.TextScaled = true
  139. Info.TextSize = 14
  140. Info.TextWrapped = true
  141.  
  142. UIListLayout.Parent = Frame
  143. UIListLayout.VerticalAlignment = Enum.VerticalAlignment.Center
  144. UIListLayout.VerticalFlex = Enum.UIFlexAlignment.SpaceAround
  145.  
  146. _01Mark.Name = "01-Mark"
  147. _01Mark.Parent = Frame
  148. _01Mark.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  149. _01Mark.BorderColor3 = Color3.fromRGB(0, 0, 0)
  150. _01Mark.BorderSizePixel = 0
  151. _01Mark.Position = UDim2.new(.0294117648, 0, .0422535203, 0)
  152. _01Mark.Size = UDim2.new(0,13,0,13)
  153. _01Mark.Font = Enum.Font.SourceSans
  154. _01Mark.Text = ""
  155. _01Mark.TextColor3 = Color3.fromRGB(0, 0, 0)
  156. _01Mark.TextSize = 14
  157.  
  158. UICorner_3.CornerRadius = UDim.new(1, 0)
  159. UICorner_3.Parent = _01Mark
  160.  
  161. Info_2.Name = "Info"
  162. Info_2.Parent = _01Mark
  163. Info_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  164. Info_2.BackgroundTransparency = 1
  165. Info_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
  166. Info_2.BorderSizePixel = 0
  167. Info_2.TextXAlignment = Enum.TextXAlignment.Left
  168. Info_2.Position = UDim2.new(1, 0, 0, 0)
  169. Info_2.Size = UDim2.new(16, 0, 1, 0)
  170. Info_2.Font = Enum.Font.SourceSans
  171. Info_2.Text = " Keep changes on reset"
  172. Info_2.TextColor3 = Color3.fromRGB(0, 0, 0)
  173. Info_2.TextScaled = true
  174. Info_2.TextSize = 14
  175. Info_2.TextWrapped = true
  176.  
  177. _02TargetBox.PlaceholderText = _02TargetBox.PlaceholderText:gsub("%$", Key3.Name)
  178. _04Info.Text = _04Info.Text:gsub("%$", Key1.Name .. "+" .. Key2.Name)
  179.  
  180.  
  181. local Recurrent = false
  182. local Cons = {}
  183.  
  184. local p = game:GetService("Players")
  185. local UIS = game:GetService("UserInputService")
  186.  
  187. local function RemCons()
  188.     for _, Con in Cons do
  189.         Con:Disconnect()
  190.     end
  191.     Cons = {}
  192. end
  193.  
  194. UIS.InputBegan:Connect(function(obj, bs)
  195.     if bs then
  196.         if obj.KeyCode == Key3 then
  197.             if Display.Text then
  198.                 _02TargetBox.Text = Display.Text
  199.             end
  200.         end
  201.     else
  202.         if obj.KeyCode == Key2 and UIS:IsKeyDown(Key1) then
  203.             Frame.Visible = not Frame.Visible
  204.         end
  205.     end
  206. end)
  207.  
  208. _00Mark.MouseButton1Click:Connect(function()
  209.     RemCons()
  210.     Frame:Destroy()
  211. end)
  212.  
  213. _01Mark.MouseButton1Click:Connect(function()
  214.     Recurrent = not Recurrent
  215.     _01Mark.BackgroundColor3 = (Recurrent and Color3.new(1,1,1)) or Color3.new(0,0,0)
  216.     if not Recurrent then
  217.         RemCons()
  218.     end
  219. end)
  220.  
  221. _02TargetBox:GetPropertyChangedSignal("Text"):Connect(function()
  222.     Display.Text = ""
  223.     if _02TargetBox.Text:len() == 0 then return end
  224.     if _02TargetBox.Text:len() > 20 then
  225.         _02TargetBox.Text = _02TargetBox.Text:sub(1,20)
  226.     end
  227.     for _, plr in p:GetPlayers() do
  228.         if ExclFillPlr and plr == Lp then
  229.             continue
  230.         end
  231.         if string.sub(plr.Name:lower(), 1, _02TargetBox.Text:len()) == _02TargetBox.Text:lower() then
  232.             Display.Text = plr.Name
  233.             break
  234.         end
  235.     end
  236. end)
  237.  
  238. local function CharAlter(Plr:Player)
  239.     for _ = 1, 40 do
  240.         if Plr.Character then
  241.             break
  242.         end
  243.         task.wait(.01)
  244.     end
  245.     local Char = Plr.Character
  246.     if not Char then return end
  247.     for _ = 1, 40 do
  248.         if Char:FindFirstChildOfClass("Humanoid") then
  249.             break
  250.         end
  251.         task.wait(.01)
  252.     end
  253.     local Hum:Humanoid = Char:FindFirstChildOfClass("Humanoid")
  254.     if not Hum then return end
  255.     Hum.DisplayName = _03AlterBox.Text
  256. end
  257.  
  258. _03AlterBox:GetPropertyChangedSignal("Text"):Connect(function()
  259.     local Player = p:FindFirstChild(_02TargetBox.Text)
  260.     if Player then
  261.         CharAlter(Player)
  262.         if Recurrent then
  263.             table.insert(Cons, Player.CharacterAdded:Connect(function()
  264.                 CharAlter(Player)
  265.             end))
  266.         end
  267.     end
  268. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement