Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- color = Instance.new("ColorCorrectionEffect") color.Saturation = -1 color.Contrast = 5
- parts = {}
- cooldown = false
- game:GetService("UserInputService").InputBegan:connect(function(key)
- if key.KeyCode == Enum.KeyCode.E then
- if cooldown == false then
- cooldown = true
- local colorClon = color:Clone()
- colorClon.Parent = game.Lighting
- game:GetService("Debris"):AddItem(colorClon,5)
- for _,part in pairs(game.Workspace:GetChildren()) do
- if part ~= game.Players.LocalPlayer.Character then
- if part:IsA("BasePart") then
- if part.Anchored == false then
- part.Anchored = true
- table.insert(parts,part)
- end
- end
- for _,Inpart in pairs(part:GetChildren()) do
- if Inpart:IsA("BasePart") then
- if Inpart.Anchored == false then
- Inpart.Anchored = true
- table.insert(parts,Inpart)
- end
- end
- end
- end
- end
- for i,part in pairs(parts) do
- for i=1,5 do
- local parto = part:Clone()
- parto.CanCollide = false
- parto.Parent = game.Workspace
- parto.Transparency = parto.Transparency*2
- if parto.Transparency < 0.5 then
- parto.Transparency = 0.5
- end
- if part.Transparency <= 0.9 then
- if parto.Transparency > 0.9 then
- parto.Transparency = 0.9
- end
- end
- for _,child in pairs(parto:GetChildren()) do
- if child.ClassName == "LocalScript" or child.ClassName == "Weld" or child.ClassName == "Motor6D" then
- child:remove()
- end
- end
- parto.CFrame = parto.CFrame+part.Velocity/10
- for _=1,i do
- parto.CFrame = parto.CFrame+part.Velocity/10
- end
- game:GetService("Debris"):AddItem(parto,i)
- end
- end
- for i=1,5 do
- for i,part in pairs(parts) do
- part.CFrame = part.CFrame+part.Velocity/10
- if part.Name == "Torso" then
- if part.Parent then
- if part.Parent:FindFirstChild("HumanoidRootPart") then
- part.Parent.HumanoidRootPart.CFrame = part.CFrame
- end
- end
- end
- end
- wait(1)
- end
- for i,part in pairs(parts) do
- part.Anchored = false
- if part.Name == "Torso" then
- if part.Parent then
- if part.Parent:FindFirstChild("HumanoidRootPart") then
- part.Parent.HumanoidRootPart.CFrame = part.CFrame
- end
- end
- end
- end
- parts = {}
- cooldown = false
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement