Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game:GetService("Players").LocalPlayer
- local char = player.Character
- local hrp = char.HumanoidRootPart
- -- Kill Player --
- char.Humanoid.Health = 0
- char.Humanoid:RemoveAccessories()
- char:BreakJoints() -- Extra, just incase if the game is fucking stupid and wont let you explode.
- char.Humanoid:Destroy()
- -- Create Explosion Effect --
- local explosion = Instance.new("Explosion", hrp)
- explosion.BlastPressure=5000
- explosion.BlastRadius=400
- explosion.DestroyJointRadiusPercent=0
- if char:FindFirstChild("UpperTorso") then
- explosion.Position=char.UpperTorso.Position
- else
- explosion.Position=char.Torso.Position
- end
- -- Sounds --
- local explodesnd = Instance.new("Sound", hrp)
- explodesnd.Volume = 1.3
- explodesnd.SoundId = "rbxassetid://157878578"
- explodesnd.Name = "Boom"
- explodesnd:Play()
- local splatter = Instance.new("Sound", hrp)
- splatter.Volume = 2
- splatter.SoundId = "rbxassetid://429400881"
- splatter.Name = "Die"
- splatter:Play()
- -- Particles --
- local blood1 = Instance.new("ParticleEmitter")
- blood1.Texture = "rbxassetid://73547327"
- local colorKeypoints = {
- -- API: ColorSequenceKeypoint.new(time, color)
- ColorSequenceKeypoint.new( 0, Color3.new(0.666667, 0, 0)), -- At t=0, White
- ColorSequenceKeypoint.new( 1, Color3.new(0.423529, 0, 0)) -- At t=1, Red
- }
- blood1.Color = ColorSequence.new(colorKeypoints)
- blood1.LightEmission = 0.4
- blood1.LightInfluence = 1
- local numberKeypoints = {
- -- API: NumberSequenceKeypoint.new(time, size, envelop)
- NumberSequenceKeypoint.new(0, 0.1); -- At t=0, fully transparent
- NumberSequenceKeypoint.new(0.397, 0.144); -- At t=.1, fully opaque
- NumberSequenceKeypoint.new(0.503, 0.494); -- At t=.5, mostly opaque
- NumberSequenceKeypoint.new(1, 1); -- At t=1, fully transparent
- }
- blood1.Transparency = NumberSequence.new(numberKeypoints)
- local numberKeypoints2 = {
- NumberSequenceKeypoint.new(0, 0); -- At t=0, size of 0
- NumberSequenceKeypoint.new(1, 2.87); -- At t=1, size of 10
- }
- blood1.Size = NumberSequence.new(numberKeypoints2)
- blood1.ZOffset = 0
- blood1.EmissionDirection = Enum.NormalId.Front
- blood1.Speed = NumberRange.new(5,10)
- blood1.Lifetime = NumberRange.new(0.3,0.5)
- blood1.Rate = 10000000
- blood1.Rotation = NumberRange.new(-360,360)
- blood1.RotSpeed = NumberRange.new(-40, 270)
- blood1.SpreadAngle = Vector2.new(360, 360)
- blood1.Acceleration = Vector3.new(0, -5, 0)
- blood1.LockedToPart = false
- blood1.TimeScale = 1
- blood1.Name = "Blood"
- local blood2 = Instance.new("ParticleEmitter")
- blood2.Texture = "rbxassetid://134531274"
- local colorKeypoints = {
- -- API: ColorSequenceKeypoint.new(time, color)
- ColorSequenceKeypoint.new( 0, Color3.new(0.45098, 0, 0)), -- At t=0, White
- ColorSequenceKeypoint.new( 1, Color3.new(0.45098, 0, 0)) -- At t=1, Red
- }
- blood2.Color = ColorSequence.new(colorKeypoints)
- blood2.LightEmission = 0.4
- blood2.LightInfluence = 1
- local numberKeypoints = {
- -- API: NumberSequenceKeypoint.new(time, size, envelop)
- NumberSequenceKeypoint.new(0, 0.3); -- At t=0, fully transparent
- NumberSequenceKeypoint.new(1, 0.3); -- At t=1, fully transparent
- }
- blood2.Transparency = NumberSequence.new(numberKeypoints)
- local numberKeypoints2 = {
- NumberSequenceKeypoint.new(0, 0.125, 0.125); -- At t=0, size of 0
- NumberSequenceKeypoint.new(1, 0, 0); -- At t=1, size of 10
- }
- blood2.Size = NumberSequence.new(numberKeypoints2)
- blood2.ZOffset = 1
- blood2.EmissionDirection = Enum.NormalId.Front
- blood2.Speed = NumberRange.new(5, 14)
- blood2.Lifetime = NumberRange.new(0.5, 1.5)
- blood2.Rate = 100000
- blood2.Rotation = NumberRange.new(0, 0)
- blood2.RotSpeed = NumberRange.new(0, 0)
- blood2.SpreadAngle = Vector2.new(360, 360)
- blood2.Acceleration = Vector3.new(0, -20, 0)
- blood2.LockedToPart = false
- blood2.TimeScale = 1
- blood2.Name = "Blood2"
- local blood3 = Instance.new("ParticleEmitter")
- blood3.Texture = "rbxassetid://241779220"
- local colorKeypoints = {
- -- API: ColorSequenceKeypoint.new(time, color)
- ColorSequenceKeypoint.new( 0, Color3.new(0.486275, 0, 0)), -- At t=0, White
- ColorSequenceKeypoint.new( 1, Color3.new(0.258824, 0, 0)) -- At t=1, Red
- }
- blood3.Color = ColorSequence.new(colorKeypoints)
- blood3.LightEmission = 0.4
- blood3.LightInfluence = 1
- local numberKeypoints = {
- -- API: NumberSequenceKeypoint.new(time, size, envelop)
- NumberSequenceKeypoint.new(0, 1);
- NumberSequenceKeypoint.new(0.0976, 0.488);
- NumberSequenceKeypoint.new(0.402, 0.756);
- NumberSequenceKeypoint.new(1, 1);
- }
- blood3.Transparency = NumberSequence.new(numberKeypoints)
- local numberKeypoints2 = {
- NumberSequenceKeypoint.new(0, 0); -- At t=0, size of 0
- NumberSequenceKeypoint.new(1, 2.87); -- At t=1, size of 10
- }
- blood3.Size = NumberSequence.new(numberKeypoints2)
- blood3.ZOffset = 0.5
- blood3.EmissionDirection = Enum.NormalId.Front
- blood3.Speed = NumberRange.new(3, 7)
- blood3.Lifetime = NumberRange.new(0.4, 1)
- blood3.Rate = 3000
- blood3.Rotation = NumberRange.new(-360, 360)
- blood3.RotSpeed = NumberRange.new(-40, 270)
- blood3.SpreadAngle = Vector2.new(360, 360)
- blood3.Acceleration = Vector3.new(0, -20, 0)
- blood3.LockedToPart = false
- blood3.TimeScale = 1
- blood3.Name = "Blood3"
- workspace.CurrentCamera.CameraSubject = char.Head
- -- Velocity & Coloring --
- local child = char:GetChildren()
- for i, v in pairs(child) do
- if v:IsA("BasePart") then
- local VelocityX = math.random(15, 30)
- local VelocityY = math.random(15, 60)
- local VelocityZ = math.random(15, 30)
- v.Velocity = Vector3.new(VelocityX, VelocityY, VelocityZ)
- v.Color = Color3.new(0.458824, 0, 0)
- v.Material = Enum.Material.Pebble
- v.CanCollide = true
- end
- end
- -- Blood --
- local child = char:GetChildren()
- for i, v in pairs(child) do
- if v:IsA("BasePart") then
- local blood1 = blood1:Clone()
- blood1.Parent = v
- local blood2 = blood2:Clone()
- blood2.Parent = v
- local blood3 = blood3:Clone()
- blood3.Parent = v
- end
- end
- wait(0.3)
- -- Disable Blood After 0.3 Seconds. --
- local child = char:GetChildren()
- for i, v in pairs(child) do
- if v:IsA("BasePart") then
- v.Blood.Enabled=false
- v.Blood2.Enabled=false
- v.Blood3.Enabled=false
- end
- end
Add Comment
Please, Sign In to add comment