Advertisement
pz_java

Time Erase

Sep 16th, 2017
360
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.22 KB | None | 0 0
  1. color = Instance.new("ColorCorrectionEffect") color.Saturation = -1 color.Contrast = 5
  2. parts = {}
  3. cooldown = false
  4. game:GetService("UserInputService").InputBegan:connect(function(key)
  5. if key.KeyCode == Enum.KeyCode.E then
  6. if cooldown == false then
  7. cooldown = true
  8. local colorClon = color:Clone()
  9. colorClon.Parent = game.Lighting
  10. game:GetService("Debris"):AddItem(colorClon,5)
  11. for _,part in pairs(game.Workspace:GetChildren()) do
  12. if part ~= game.Players.LocalPlayer.Character then
  13. if part:IsA("BasePart") then
  14. if part.Anchored == false then
  15.  
  16. part.Anchored = true
  17. table.insert(parts,part)
  18. end
  19.  
  20. end
  21. for _,Inpart in pairs(part:GetChildren()) do
  22. if Inpart:IsA("BasePart") then
  23. if Inpart.Anchored == false then
  24.  
  25. Inpart.Anchored = true
  26. table.insert(parts,Inpart)
  27. end
  28. end
  29. end
  30. end
  31. end
  32.  
  33. for i,part in pairs(parts) do
  34. for i=1,5 do
  35. local parto = part:Clone()
  36. parto.CanCollide = false
  37. parto.Parent = game.Workspace
  38. parto.Transparency = parto.Transparency*2
  39. if parto.Transparency < 0.5 then
  40. parto.Transparency = 0.5
  41. end
  42. if part.Transparency <= 0.9 then
  43. if parto.Transparency > 0.9 then
  44. parto.Transparency = 0.9
  45. end
  46. end
  47. for _,child in pairs(parto:GetChildren()) do
  48. if child.ClassName == "LocalScript" or child.ClassName == "Weld" or child.ClassName == "Motor6D" then
  49. child:remove()
  50. end
  51. end
  52. parto.CFrame = parto.CFrame+part.Velocity/10
  53. for _=1,i do
  54. parto.CFrame = parto.CFrame+part.Velocity/10
  55.  
  56. end
  57. game:GetService("Debris"):AddItem(parto,i)
  58. end
  59. end
  60.  
  61.  
  62. for i=1,5 do
  63. for i,part in pairs(parts) do
  64. part.CFrame = part.CFrame+part.Velocity/10
  65. if part.Name == "Torso" then
  66. if part.Parent then
  67. if part.Parent:FindFirstChild("HumanoidRootPart") then
  68. part.Parent.HumanoidRootPart.CFrame = part.CFrame
  69. end
  70. end
  71. end
  72. end
  73.  
  74.  
  75.  
  76.  
  77. wait(1)
  78. end
  79. for i,part in pairs(parts) do
  80.  
  81. part.Anchored = false
  82. if part.Name == "Torso" then
  83. if part.Parent then
  84. if part.Parent:FindFirstChild("HumanoidRootPart") then
  85. part.Parent.HumanoidRootPart.CFrame = part.CFrame
  86. end
  87. end
  88. end
  89. end
  90. parts = {}
  91. cooldown = false
  92. end
  93. end
  94. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement