rrixh

streamermode

Oct 10th, 2023
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.36 KB | None | 0 0
  1. plr = game:GetService("Players").LocalPlayer
  2. local name = plr.Name
  3. local display = plr.DisplayName
  4. function IsA(...)
  5. local Args = {...}
  6. if table.find(Args, Args[1].ClassName) then
  7. return true
  8. end
  9. end
  10. function e()
  11. for i, v in next, workspace:GetDescendants() do
  12. if v:IsA("Model") and game:GetService("Players"):GetPlayerFromCharacter(v) == plr then
  13. return v
  14. end
  15. end
  16. end
  17. local cha = e()
  18.  
  19. function changeText(n)
  20.    plr.Name, plr.DisplayName = "???", "???"
  21.     if n:IsA("TextLabel") or n:IsA("TextButton") or n:IsA("TextBox") then
  22.         if n.Text:lower():find(display:lower()) and not n.Text:find("???") then
  23.             n.Text = n.Text:lower():gsub(display:lower(), "???")
  24.         end
  25.         if n.Text:lower():find(name:lower()) and not n.Text:find("???") then
  26.             n.Text = n.Text:gsub(name:lower(), "???")
  27.         end
  28.     end
  29. end
  30. task.spawn(function()
  31.             plr.Name, plr.DisplayName = "???", "???"
  32.             while task.wait(5) do
  33.             for i, v in next, game:GetDescendants() do
  34.                 changeText(v)
  35.             end end
  36. end)
  37. game.DescendantAdded:Connect(changeText)
  38.  
  39. for _, part in next, cha:GetDescendants() do
  40. if part:IsA("Part") then
  41. part.Color = Color3.fromRGB(math.random(1, 255), math.random(1, 255), math.random(1, 255))
  42. end
  43. if IsA(part, "Shirt", "Pants", "ShirtGraphic", "Accessory") then
  44. part:Destroy()
  45. end
  46. end
Add Comment
Please, Sign In to add comment