Advertisement
Liu-2

Random script - [ Roblox ]

Dec 23rd, 2018
4,082
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.46 KB | None | 0 0
  1. --- [[ Random shito
  2.     --- by fo43123 ]] ---
  3. local me = game:GetService('Players').LocalPlayer
  4. local char = me.Character
  5. local hum = char['Humanoid']
  6. local root = char['HumanoidRootPart']
  7. local ss = false
  8. local c = false
  9. local bp = workspace:FindFirstChild('Base') or workspace:FindFirstChild('Baseplate') -- or nvm
  10. local theme = Instance.new('Sound')
  11. theme.Volume = 2.5
  12. theme.SoundId = 'rbxassetid://1369263130'
  13. local mse = me:GetMouse()
  14. hum.WalkSpeed = hum.WalkSpeed + math.random(10, 20)
  15. hum.JumpPower = hum.JumpPower + math.random(10, 20)
  16. hum.MaxHealth = 'inf'
  17. hum.Health = 'inf'
  18. hum.HealthChanged:connect(function()
  19.     hum.MaxHealth = 'inf'
  20.     hum.Health = 'inf'
  21. end)
  22. local limbs = {
  23.      char['Right Arm'],
  24.      char['Left Arm'],
  25.      char['Torso'],
  26.      char['Head'],
  27.      char['Right Leg'],
  28.      char['Left Leg']
  29. }
  30. local materials = {
  31.      'DiamondPlate',
  32.      'Neon',
  33. }
  34.  
  35. for i,v in pairs(char:GetChildren()) do
  36.     if v:IsA('Shirt') then
  37.         v.Parent = nil
  38.     end
  39. end
  40. for i,v in pairs(char:GetChildren()) do
  41.     if v:IsA('Pants') then
  42.         v.Parent = nil
  43.     end
  44. end
  45. for i,v in pairs(char:GetChildren()) do
  46.     if v:IsA('Accessory') then
  47.         v.Parent = nil
  48.     end
  49. end
  50. theme.Parent = limbs[4]
  51. theme:Resume()
  52. theme.Ended:connect(function()
  53.     theme:Play()
  54. end)
  55.  
  56. coroutine.wrap(function()
  57. while true do
  58.     limbs[1].BrickColor = BrickColor.Random()
  59.     limbs[1].Material = materials[math.random(1, #materials)]
  60.     limbs[2].BrickColor = BrickColor.Random()
  61.     limbs[2].Material = materials[math.random(1, #materials)]
  62.     limbs[3].BrickColor = BrickColor.Random()
  63.     limbs[3].Material = materials[math.random(1, #materials)]
  64.     limbs[4].BrickColor = BrickColor.Random()
  65.     limbs[4].Material = materials[math.random(1, #materials)]
  66.     limbs[5].BrickColor = BrickColor.Random()
  67.     limbs[5].Material = materials[math.random(1, #materials)]
  68.     limbs[6].BrickColor = BrickColor.Random()
  69.     limbs[6].Material = materials[math.random(1, #materials)]
  70.     coroutine.wrap(function()
  71.         b = Instance.new('Part', char)
  72.     for i = 1, 10 do
  73.         b.Anchored = true
  74.         b.CanCollide = false
  75.         b.Size = b.Size:lerp(Vector3.new(6.85, 0.05, 7.09), .5)
  76.         b.Transparency = math.random(0, 0.55)
  77.         b.BrickColor = BrickColor.Random()
  78.         b.Material = materials[math.random(1, #materials)]
  79.         b.CFrame = limbs[3].CFrame * CFrame.new(0, -2.99, 0) * CFrame.fromEulerAnglesXYZ(0, math.random(0, 360), 0)
  80.         wait()
  81.     end
  82.     b.Touched:connect(function(a)
  83.         if a:IsA('Part') and a ~= bp then
  84.             if a.Parent.Name ~= me.Name then
  85.             game.Debris:AddItem(a, .5)
  86.         for i = 1, 10 do
  87.             a.BrickColor = BrickColor.Random()
  88.             a.Anchored = true
  89.             a.CanCollide = false
  90.             a.Transparency = i/10
  91.             a.Material = materials[math.random(1, #materials)]
  92.             wait()
  93.             end
  94.         end
  95.         end
  96.     end)
  97.     end)()
  98.     wait(.2)
  99.     b:Destroy()
  100.     wait()
  101. end
  102. end)()
  103.  
  104. mse.KeyDown:connect(function(ke)
  105.     if ke == 'r' then
  106.         if c == false then
  107.             c = true
  108.             root.CFrame = CFrame.new(mse.Hit.p + Vector3.new(0, 3, 0)) * CFrame.Angles(0, math.rad(root.Orientation.Y), 0)
  109.             local ef1 = Instance.new('Part', char)
  110.             ef1.Touched:connect(function(a)
  111.                 if a:IsA('Part') and a ~= bp then
  112.                     if a.Parent.Name ~= me.Name then
  113.                         if a ~= b then
  114.                             game.Debris:AddItem(a, .5)
  115.                             for i = 1, 10 do
  116.                                 a.BrickColor = BrickColor.Random()
  117.                                 a.Anchored = true
  118.                                 a.Transparency = i/10
  119.                                 a.CanCollide = false
  120.                                 a.Material = materials[math.random(1, #materials)]
  121.                                 wait()
  122.                             end
  123.                         end
  124.                     end
  125.                 end
  126.             end)
  127.             for i = 1, 10 do
  128.                 ef1.BrickColor = BrickColor.Random()
  129.                 ef1.Material = materials[math.random(1, #materials)]
  130.                 ef1.Size = ef1.Size:lerp(Vector3.new(10, 10, 10), .6)
  131.                 ef1.Transparency = i/10
  132.                 ef1.Anchored = true
  133.                 ef1.CanCollide = false
  134.                 ef1.CFrame = limbs[3].CFrame * CFrame.fromEulerAnglesXYZ(math.random(0, 360), math.random(0, 360), math.random(0, 360))
  135.                 wait()
  136.             end
  137.             ef1:Destroy()
  138.             wait(.5)
  139.             c = false
  140.         end
  141.     end
  142. end)
  143.  
  144. limbs[1].Touched:connect(function(a)
  145.     if a:IsA('Part') and a ~= bp then
  146.     if ss == false then
  147.         ss = true
  148.         for i = 1, 10 do
  149.             a.Transparency = i/10
  150.             a.BrickColor = BrickColor.Random()
  151.             a.Anchored = true
  152.             a.CanCollide = false
  153.             a.Material = materials[math.random(1, #materials)]
  154.             wait()
  155.         end
  156.     a.Parent = nil
  157.     wait(.5)
  158.     ss = false
  159.     end
  160.     end
  161. end)
  162.  
  163.  
  164. limbs[2].Touched:connect(function(a)
  165.     if a:IsA('Part') and a ~= bp then
  166.     if ss == false then
  167.         ss = true
  168.         for i = 1, 10 do
  169.             a.Transparency = i/10
  170.             a.BrickColor = BrickColor.Random()
  171.             a.Anchored = true
  172.             a.CanCollide = false
  173.             a.Material = materials[math.random(1, #materials)]
  174.             wait()
  175.         end
  176.     a.Parent = nil
  177.     wait(.5)
  178.     ss = false
  179.     end
  180.     end
  181. end)
  182.  
  183.  
  184. limbs[3].Touched:connect(function(a)
  185.     if a:IsA('Part') and a ~= bp then
  186.     if ss == false then
  187.         ss = true
  188.         for i = 1, 10 do
  189.             a.Transparency = i/10
  190.             a.BrickColor = BrickColor.Random()
  191.             a.Anchored = true
  192.             a.CanCollide = false
  193.             a.Material = materials[math.random(1, #materials)]
  194.             wait()
  195.         end
  196.     a.Parent = nil
  197.     wait(.5)
  198.     ss = false
  199.     end
  200.     end
  201. end)
  202.  
  203.  
  204. limbs[4].Touched:connect(function(a)
  205.     if a:IsA('Part') and a ~= bp then
  206.     if ss == false then
  207.         ss = true
  208.         for i = 1, 10 do
  209.             a.Transparency = i/10
  210.             a.BrickColor = BrickColor.Random()
  211.             a.Anchored = true
  212.             a.CanCollide = false
  213.             a.Material = materials[math.random(1, #materials)]
  214.             wait()
  215.         end
  216.     a.Parent = nil
  217.     wait(.5)
  218.     ss = false
  219.     end
  220.     end
  221. end)
  222.  
  223.  
  224. limbs[5].Touched:connect(function(a)
  225.     if a:IsA('Part') and a ~= bp then
  226.     if ss == false then
  227.         ss = true
  228.         for i = 1, 10 do
  229.             a.Transparency = i/10
  230.             a.BrickColor = BrickColor.Random()
  231.             a.Anchored = true
  232.             a.CanCollide = false
  233.             a.Material = materials[math.random(1, #materials)]
  234.             wait()
  235.         end
  236.     a.Parent = nil
  237.     wait(.5)
  238.     ss = false
  239.     end
  240.     end
  241. end)
  242.  
  243.  
  244. limbs[6].Touched:connect(function(a)
  245.     if a:IsA('Part') and a ~= bp then
  246.     if ss == false then
  247.         ss = true
  248.         for i = 1, 10 do
  249.             a.Transparency = i/10
  250.             a.BrickColor = BrickColor.Random()
  251.             a.Anchored = true
  252.             a.CanCollide = false
  253.             a.Material = materials[math.random(1, #materials)]
  254.             wait()
  255.         end
  256.     a.Parent = nil
  257.     wait(.5)
  258.     ss = false
  259.     end
  260.     end
  261. end)
  262.  
  263. while wait() do
  264.     limbs[4].face.Transparency = math.random(0, .55)
  265.     limbs[1].Transparency = math.random(0, .55)
  266.     limbs[2].Transparency = math.random(0, .55)
  267.     limbs[3].Transparency = math.random(0, .55)
  268.     limbs[4].Transparency = math.random(0, .55)
  269.     limbs[5].Transparency = math.random(0, .55)
  270.     limbs[6].Transparency = math.random(0, .55)
  271. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement