IMAKESCRIPTSATSCHOOL

Untitled

Jun 3rd, 2022 (edited)
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.86 KB | None | 0 0
  1. -- game destroyer (no name yet)
  2.  
  3. local aoWorkspace = workspace:GetDescendants()
  4. local prng
  5. for i,v in pairs(aoWorkspace) do
  6.     if v.ClassName == "Part" then
  7.         v.Name = math.random(1,534000)
  8.         prng = math.random(1,5)
  9.         if prng == 1 then
  10.             v.Orientation = Vector3.new(math.random(-100,100),math.random(-100,100),math.random(-100,100))
  11.         end
  12.         if prng == 2 then
  13.             v.Transparency = math.random(0.01,0.9)
  14.             v.Name = "Ghosted"
  15.         end
  16.         if prng == 3 then
  17.             v.Size = v.Size + Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  18.         end
  19.         if prng == 4 then
  20.             v.BrickColor = BrickColor.Red()
  21.         end
  22.     end
  23.     if v.ClassName == "Script" then
  24.         local mtr = math.random(1,5)
  25.         if mtr == 5 then
  26.             v:Destroy()
  27.         end
  28.     end
  29.     if v.ClassName == "LocalScript" then
  30.         local mtrl = math.random(1,5)
  31.         if mtrl == 5 then
  32.             v:Destroy()
  33.         end
  34.     end
  35. end
Add Comment
Please, Sign In to add comment