vlatkovski

MeltTheWorld

Jan 27th, 2015
372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.28 KB | None | 0 0
  1.     function TextLabel(t)
  2.         if(math.random(1,3) == 1) then
  3.             t.BackgroundTransparency = math.random(1,10)/10
  4.         end
  5.         if(math.random(1,3) == 1) then
  6.             t.TextColor3 = Color3.new(math.random(1,255)/255,math.random(1,255)/255,math.random(1,255)/255)
  7.         end
  8.         if(math.random(1,5) == 5) then
  9.             t.Text = string.sub(t.Text,math.random(1,30),math.random(30,100))
  10.         end
  11.         if(math.random(1,4) == 4) then
  12.             t.Rotation = math.random(1,180)/t.Rotation
  13.         end
  14.         wait()
  15.     end
  16.  
  17.  
  18.     function hat (h)
  19.         if(math.random(1,5) == 5) then
  20.         h.AttachmentPos = Vector3.new(math.random(-5,5)*math.random(-5,5),math.random(-5,5)*math.random(-5,5),math.random(-5,5)*math.random(-5,5))
  21.         end
  22.     end
  23.  
  24.  
  25.     function mesh (m)
  26.         if(math.random(1,6) == 6) then
  27.             m.Scale = Vector3.new(math.random(-5,5)*math.random(-5,5),math.random(-5,5)*math.random(-5,5),math.random(-5,5)*math.random(-5,5))
  28.         end
  29.         if(math.random(1,6) == 6) then
  30.             m.TextureId = "http://www.roblox.com/asset/?id=" .. math.random(10000,10000000)
  31.         end
  32.     end
  33.  
  34.  
  35.     function magma(part)
  36.         if(math.random(1,5) == 5) then
  37.             part.BrickColor = BrickColor.Random()
  38.         end
  39.         for i = 1,math.random(-1,2) do
  40.             q = part:clone()
  41.             q.Name = "corruptedclonepart"
  42.             q.Parent = script.Parent
  43.             q.CFrame = part.CFrame
  44.             if(math.random(1,5) == 5) then
  45.                 q.Anchored = false
  46.             end
  47.             if(math.random(1,5) == 5) then
  48.                 q.CanCollide = false
  49.             end
  50.         end
  51.         if(math.random(1,8) == 2) then
  52.             part.Transparency = math.random(1,10)/10
  53.         end
  54.         if(math.random(1,12) == 9) then
  55.             part.Size = Vector3.new(part.Size.X / math.random(1,10),part.Size.Y * math.random(1,10),part.Size.Z * math.random(1,10))
  56.         end
  57.         if(math.random(1,10) == 9) then
  58.             Materials = {"Plastic","DiamondPlate","Fabric","Foil","Granite","Grass","Ice","Marble","Metal","Pebble","Sand","Slate","SmoothPlastic","WoodPlanks","Wood"}
  59.             part.Material = Materials[math.random(1,#Materials)]
  60.         end
  61.         if(math.random(1,20) == 18) then
  62.             part.Reflectance = math.random(1,20)/10
  63.         end
  64.         if(math.random(1,15) == 15) then
  65.             shapes = {"Ball","Block","Cylinder"}
  66.             part.Shape = shapes[math.random(1,#shapes)]
  67.         end
  68.         wait()
  69.     end
  70.  
  71.  
  72.     function sound(soundd)
  73.         soundd.Pitch = math.random(-50,50)/10
  74.         soundd.Volume = math.random(1,10)/10
  75.     end
  76.  
  77.  
  78.     function Motor (m)
  79.         m.CurrentAngle = math.random(-100,100)/math.random(1,5)
  80.         m.DesiredAngle = math.random(-100,100)/math.random(1,5)
  81.         m.MaxVelocity = math.random(-100,100)/math.random(1,5)
  82.     end
  83.  
  84.     function MeltTheWorld(part)
  85.         for _,part in next, part:GetChildren() do
  86.             if part.Name ~= 'Camera' and part.Name ~= 'Terrain' and part ~= script then
  87.                 print("killing " .. part.Name)
  88.                 if(part.Name == "Animate" and part.Parent:FindFirstChild("Humanoid") ~= nil and math.random(1,11) == 11) then  part.Disabled = true  end
  89.                 if part.ClassName == "Part" and part.Name ~= "corruptedclonepart" then magma(part)  end
  90.                 if part.ClassName == "Sound" then sound(part)  end
  91.                 if part.ClassName == "Hat" then hat(part)  end
  92.                 if part.ClassName == "SpecialMesh" then mesh(part)  end
  93.                 if part.ClassName == "Motor6D" then Motor(part)  end
  94.                 if part.ClassName == "TextLabel" or part.ClassName == "TextButton" or part.ClassName == "TextBox" then TextLabel(part)  end
  95.                 MeltTheWorld(part) MeltTheWorld(part)
  96.             end
  97.         end
  98.     end
  99.  
  100. MeltTheWorld(game.Workspace)
Advertisement
Add Comment
Please, Sign In to add comment