Advertisement
ERROR_CODE

Untitled

Oct 28th, 2023 (edited)
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.03 KB | None | 0 0
  1. function GetRecursiveChildren(Part, Children)
  2. for _, Part in pairs(Part:GetChildren()) do
  3. pcall(function()
  4. table.insert(Children, Part)
  5. GetRecursiveChildren(Part, Children)
  6. end)
  7. end
  8. return Children
  9. end
  10.  
  11.  
  12.  
  13.  
  14. Textures = {
  15. "http://www.roblox.com/Asset/?id=59515602",
  16. "http://www.roblox.com/Asset/?id=48308661",
  17. "http://www.roblox.com/Asset/?id=42198984",
  18. "http://www.roblox.com/Asset/?id=59421095",
  19. "http://www.roblox.com/Asset/?id=59454680",
  20. "http://www.roblox.com/Asset/?id=59784967",
  21. "http://www.roblox.com/Asset/?id=45791014",
  22. "http://www.roblox.com/Asset/?id=58492970",
  23. "http://www.roblox.com/Asset/?id=59278856"
  24. }
  25.  
  26.  
  27. Instance.new("Sky", game:GetService("Lighting")).CelestialBodiesShown = false
  28. Instance.new("Message", Workspace)
  29. Instance.new("Hint", Workspace)
  30.  
  31.  
  32. while true do
  33. for _, Part in pairs(GetRecursiveChildren(game, {})) do
  34. pcall(function()
  35. if not Part:IsA("Player")then
  36. pcall(function() Part.Name = Phrases[math.random(1, #Phrases)] end)
  37. pcall(function() Part.Text = Phrases[math.random(1, #Phrases)] end)
  38. pcall(function() Part.Image = Textures[math.random(1, #Textures)] end)
  39. pcall(function() Part.TextureId = Textures[math.random(1, #Textures)] end)
  40. pcall(function() Part.Texture = Textures[math.random(1, #Textures)] end)
  41. pcall(function() Part.ShirtTemplate = Textures[math.random(1, #Textures)] end)
  42. pcall(function() Part.PantsTemplate = Textures[math.random(1, #Textures)] end)
  43. pcall(function() Part.Graphic = Textures[math.random(1, #Textures)] end)
  44.  
  45. end)
  46. pcall(function()
  47. Part.TextColor3 = Color3.new(math.random(), math.random(), math.random())
  48. Part.BackgroundColor3 = Color3.new(math.random(), math.random(), math.random())
  49. Part.BorderColor3 = Color3.new(math.random(), math.random(), math.random())
  50. end)
  51. pcall(function()
  52. Part.Pitch = math.random() * 5
  53. Part.Volume = 1
  54. Part.Looped = true
  55. Part:Play()
  56. end)
  57. pcall(function()
  58. if math.random(1, 5) == 1 then Part.Anchored = false end
  59. if Part.Anchored == false then
  60. Part.Velocity = Vector3.new(math.random(-10, 10), math.random(0, 50), math.random(-10, 10))
  61. Part.RotVelocity = Vector3.new(math.random(-100, 100), math.random(-100, 100), math.random(-100, 100))
  62. end
  63. Part.Locked = false
  64. Part.BrickColor = BrickColor.random()
  65. Part.TopSurface = "Weld"
  66. Part.BottomSurface = "Weld"
  67. Part.FrontSurface = "Weld"
  68. Part.BackSurface = "Weld"
  69. Part.LeftSurface = "Weld"
  70. Part.RightSurface = "Weld"
  71. Part:BreakJoints()
  72. end)
  73. end
  74. end)
  75. if math.random(1, 50) == 1 then wait() end
  76. end
  77. end
  78. s.Parent = game.workspace
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement