Advertisement
Qamyz

Untitled

Apr 20th, 2019
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.74 KB | None | 0 0
  1. --]
  2. --____ ____ _
  3. -- | _ \ ___ __ _ __ _ ___ | _ \ ___ __ __ | | ___ _ __ ___ _ __
  4. -- | | | | / _ \ / _` | / _` | / _ \ | | | | / _ \ \ \ / / | | / _ \ | '_ \ / _ \ | '__|
  5. -- | |_| | | (_) | | (_| | | (_| | | (_) | | |_| | | __/ \ V / | | | (_) | | |_) | | __/ | |
  6. --|____/ \___/ \__, | \__, | \___/ |____/ \___| \_/ |_| \___/ | .__/ \___| |_|
  7. -- |___/ |___/ |_|
  8. --]
  9.  
  10. -- Hidename Made By : 3dsboy08 --
  11. --|+ HideName By : 3dsboy08 |+| Edit By : DoggoDevloper |+|
  12. local Config =
  13. {
  14. ProtectedName = " <._.> ERROR <._.> ",
  15. OtherPlayers = false,
  16. OtherPlayersTemplate = "NameProtect",
  17. RenameTextBoxes = true,
  18. UseFilterPadding = true,
  19. FilterPad = " ",
  20. UseMetatableHook = true,
  21. UseAggressiveFiltering = true
  22. }
  23.  
  24. local ProtectedNames = {}
  25. local Counter = 1
  26. if Config.OtherPlayers then
  27. for I, V in pairs(game:GetService("Players"):GetPlayers()) do
  28. local Filter = Config.OtherPlayersTemplate .. tostring(Counter)
  29. if Config.UseFilterPadding then
  30. if string.len(Filter) > string.len(V.Name) then
  31. Filter = string.sub(Filter, 1, string.len(V.Name))
  32. elseif string.len(Filter) < string.len(V.Name) then
  33. local Add = string.len(V.Name) - string.len(Filter)
  34. for I=1,Add do
  35. Filter = Filter .. Config.FilterPad
  36. end
  37. end
  38. end
  39. ProtectedNames[V.Name] = Filter
  40. Counter = Counter + 1
  41. end
  42.  
  43. game:GetService("Players").PlayerAdded:connect(function(Player)
  44. local Filter = Config.OtherPlayersTemplate .. tostring(Counter)
  45. if Config.UseFilterPadding then
  46. if string.len(Filter) > string.len(V.Name) then
  47. Filter = string.sub(Filter, 1, string.len(V.Name))
  48. elseif string.len(Filter) < string.len(V.Name) then
  49. local Add = string.len(V.Name) - string.len(Filter)
  50. for I=1,Add do
  51. Filter = Filter .. Config.FilterPad
  52. end
  53. end
  54. end
  55. ProtectedNames[Player.Name] = Filter
  56. Counter = Counter + 1
  57. end)
  58. end
  59.  
  60. local LPName = game:GetService("Players").LocalPlayer.Name
  61. local IsA = game.IsA
  62.  
  63. if Config.UseFilterPadding then
  64. if string.len(Config.ProtectedName) > string.len(LPName) then
  65. Config.ProtectedName = string.sub(Config.ProtectedName, 1, string.len(LPName))
  66. elseif string.len(Config.ProtectedName) < string.len(LPName) then
  67. local Add = string.len(LPName) - string.len(Config.ProtectedName)
  68. for I=1,Add do
  69. Config.ProtectedName = Config.ProtectedName .. Config.FilterPad
  70. end
  71. end
  72. end
  73.  
  74. local function FilterString(S)
  75. local RS = S
  76. if Config.OtherPlayers then
  77. for I, V in pairs(ProtectedNames) do
  78. RS = string.gsub(RS, I, V)
  79. end
  80. end
  81. RS = string.gsub(RS, LPName, Config.ProtectedName)
  82. return RS
  83. end
  84.  
  85. for I, V in pairs(game:GetDescendants()) do
  86. if Config.RenameTextBoxes then
  87. if IsA(V, "TextLabel") or IsA(V, "TextButton") or IsA(V, "TextBox") then
  88. V.Text = FilterString(V.Text)
  89.  
  90. if Config.UseAggressiveFiltering then
  91. V:GetPropertyChangedSignal("Text"):connect(function()
  92. V.Text = FilterString(V.Text)
  93. end)
  94. end
  95. end
  96. else
  97. if IsA(V, "TextLabel") or IsA(V, "TextButton") then
  98. V.Text = FilterString(V.Text)
  99.  
  100. if Config.UseAggressiveFiltering then
  101. V:GetPropertyChangedSignal("Text"):connect(function()
  102. V.Text = FilterString(V.Text)
  103. end)
  104. end
  105. end
  106. end
  107. end
  108.  
  109. if Config.UseAggressiveFiltering then
  110. game.DescendantAdded:connect(function(V)
  111. if Config.RenameTextBoxes then
  112. if IsA(V, "TextLabel") or IsA(V, "TextButton") or IsA(V, "TextBox") then
  113. V:GetPropertyChangedSignal("Text"):connect(function()
  114. V.Text = FilterString(V.Text)
  115. end)
  116. end
  117. else
  118. if IsA(V, "TextLabel") or IsA(V, "TextButton") then
  119. V:GetPropertyChangedSignal("Text"):connect(function()
  120. V.Text = FilterString(V.Text)
  121. end)
  122. end
  123. end
  124. end)
  125. end
  126.  
  127. if Config.UseMetatableHook then
  128. if not getrawmetatable then
  129. error("GetRawMetaTable not found")
  130. end
  131. -- Hide name --
  132. local NewCC = function(F)
  133. if newcclosure then return newcclosure(F) end
  134. return F
  135. end
  136.  
  137. local SetRO = function(MT, V)
  138. if setreadonly then return setreadonly(MT, V) end
  139. if not V and make_writeable then return make_writeable(MT) end
  140. if V and make_readonly then return make_readonly(MT) end
  141. error("No setreadonly found")
  142. end
  143.  
  144. local MT = getrawmetatable(game)
  145. local OldNewIndex = MT.__newindex
  146. SetRO(MT, false)
  147.  
  148. MT.__newindex = NewCC(function(T, K, V)
  149. if Config.RenameTextBoxes then
  150. if (IsA(T, "TextLabel") or IsA(T, "TextButton") or IsA(T, "TextBox")) and K == "Text" and type(V) == "string" then
  151. return OldNewIndex(T, K, FilterString(V))
  152. end
  153. else
  154. if (IsA(T, "TextLabel") or IsA(T, "TextButton")) and K == "Text" and type(V) == "string" then
  155. return OldNewIndex(T, K, FilterString(V))
  156. end
  157. end
  158.  
  159. return OldNewIndex(T, K, V)
  160. end)
  161.  
  162. SetRO(MT, true)
  163. end
  164. -- Hitbox --
  165. _G.HeadSize = 13
  166. _G.Disabled = true
  167.  
  168. game:GetService('RunService').RenderStepped:connect(function()
  169. if _G.Disabled then
  170. for i,v in next, game:GetService('Players'):GetPlayers() do
  171. if v.Name ~= game:GetService('Players').LocalPlayer.Name then
  172. pcall(function()
  173. v.Character.HumanoidRootPart.Size = Vector3.new(_G.HeadSize,_G.HeadSize,_G.HeadSize)
  174. v.Character.HumanoidRootPart.Transparency = 10 -- Change the 10 to 0 to see teh hit box
  175. v.Character.HumanoidRootPart.BrickColor = BrickColor.new("White")
  176. v.Character.HumanoidRootPart.Material = "plastic"
  177. v.Character.HumanoidRootPart.CanCollide = true
  178. end)
  179. end
  180. end
  181. end
  182. end)
  183. wait(0.1)
  184. local bindableFunction= Instance.new("BindableFunction")
  185.  
  186. game.StarterGui:SetCore("SendNotification", {
  187. Title = "Done! | Hitbox & HideName";
  188. Text = "Credit | Hidename By : 3dsboy08 / Edit By : DoggoDevloper / hitbox : Unknow ?";
  189. Duration = 15;
  190. callback = "20";
  191. Button1 = " ";
  192. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement