Untitled

Run Settings
LanguageLua
Language Version
Run Command
local BASE_PARENT = script --Converted using Scandalous' model to lua plugin. --Powered by Elttob's reclass plugin. Limbgib219 = Instance.new("Sound") limbs46 = Instance.new("Folder") H162 = Instance.new("MeshPart") Middle64 = Instance.new("Part") WeldConstraint57 = Instance.new("WeldConstraint") Headgib610 = Instance.new("Sound") Bleeding27 = Instance.new("ParticleEmitter") Limbgib421 = Instance.new("Sound") EmitCount29 = Instance.new("IntValue") FullBodyGib213 = Instance.new("Sound") Drip122 = Instance.new("Sound") Limbgib320 = Instance.new("Sound") particle44 = Instance.new("Part") Headgib59 = Instance.new("Sound") LimbChop517 = Instance.new("Sound") SurfaceAppearance41 = Instance.new("SurfaceAppearance") FullBodyGib32 = Instance.new("Sound") gib138 = Instance.new("MeshPart") Shirt53 = Instance.new("Decal") Bloodbits28 = Instance.new("ParticleEmitter") Limbgib118 = Instance.new("Sound") L158 = Instance.new("MeshPart") Headgib26 = Instance.new("Sound") Decal51 = Instance.new("Decal") Middle49 = Instance.new("Part") Blooddrops30 = Instance.new("ParticleEmitter") WeldConstraint61 = Instance.new("WeldConstraint") WeldConstraint52 = Instance.new("WeldConstraint") LimbChop416 = Instance.new("Sound") Smoke32 = Instance.new("ParticleEmitter") Headgib14 = Instance.new("Sound") T147 = Instance.new("MeshPart") water34 = Instance.new("ParticleEmitter") R154 = Instance.new("MeshPart") FullBodyGib112 = Instance.new("Sound") Middle60 = Instance.new("Part") Headgib48 = Instance.new("Sound") SurfaceAppearance39 = Instance.new("SurfaceAppearance") gib342 = Instance.new("MeshPart") Mesh50 = Instance.new("SpecialMesh") SurfaceAppearance63 = Instance.new("SurfaceAppearance") SurfaceAppearance55 = Instance.new("SurfaceAppearance") SurfaceAppearance43 = Instance.new("SurfaceAppearance") Drip425 = Instance.new("Sound") particle26 = Instance.new("Folder") sfx1 = Instance.new("Folder") MainModule = Instance.new("ModuleScript") EmitCount35 = Instance.new("IntValue") Drip324 = Instance.new("Sound") Limbgib511 = Instance.new("Sound") Headgib105 = Instance.new("Sound") WeldConstraint65 = Instance.new("WeldConstraint") LimbChop214 = Instance.new("Sound") Drip223 = Instance.new("Sound") Headgib37 = Instance.new("Sound") particles37 = Instance.new("Folder") Mesh45 = Instance.new("SpecialMesh") gib240 = Instance.new("MeshPart") SurfaceAppearance59 = Instance.new("SurfaceAppearance") a48 = Instance.new("SurfaceAppearance") EmitCount31 = Instance.new("IntValue") EmitCount33 = Instance.new("IntValue") LimbChop315 = Instance.new("Sound") Middle56 = Instance.new("Part") Limbgib63 = Instance.new("Sound") physics66 = Instance.new("ModuleScript") gibs36 = Instance.new("Folder") Limbgib219.Name = "Limbgib-2" Limbgib219.Parent = sfx1 Limbgib219.SoundId = "rbxassetid://8535266584" Limbgib219.RollOffMaxDistance = 45 Limbgib219.RollOffMinDistance = 5 limbs46.Parent = gibs36 limbs46.Name = "limbs" H162.RenderFidelity = Enum.RenderFidelity.Automatic H162.Parent = limbs46 H162.CFrame = CFrame.new(-6963.042, 143.563, -257.946) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) H162.MeshId = "rbxassetid://11596356205" H162.CollisionFidelity = Enum.CollisionFidelity.Default H162.Size = Vector3.new(1.206, 1.253, 1.108) H162.Name = "H1" H162.Position = Vector3.new(-6963.042, 143.563, -257.946) H162.BrickColor = BrickColor.new("Cashmere") H162.Massless = true H162.Color = Color3.fromRGB(211, 190, 150) H162.PivotOffset = CFrame.new(-0.06, -0.008, 0.013) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) Middle64.BottomSurface = Enum.SurfaceType.Smooth Middle64.Parent = H162 Middle64.CFrame = CFrame.new(-6963.061, 143.563, -257.946) * CFrame.Angles(math.rad(-180), math.rad(0), math.rad(-180)) Middle64.TopSurface = Enum.SurfaceType.Smooth Middle64.Rotation = Vector3.new(-180, 0, -180) Middle64.Transparency = 1 Middle64.Name = "Middle" Middle64.Position = Vector3.new(-6963.061, 143.563, -257.946) Middle64.Orientation = Vector3.new(0, -180, 0) Middle64.Massless = true Middle64.Size = Vector3.new(2, 1, 1) WeldConstraint57.Parent = Middle56 WeldConstraint57.Parent = R154 WeldConstraint57.Parent = Middle56 Headgib610.Name = "Headgib-6" Headgib610.Volume = 0.699999988079071 Headgib610.Parent = sfx1 Headgib610.SoundId = "rbxassetid://8353373157" Headgib610.RollOffMaxDistance = 35 Headgib610.RollOffMinDistance = 3 Bleeding27.Color = ColorSequence.new{ ColorSequenceKeypoint.new(0, Color3.fromRGB(40, 0, 0)), ColorSequenceKeypoint.new(1, Color3.fromRGB(40, 0, 0)),} Bleeding27.Drag = 15 Bleeding27.LightInfluence = 1 Bleeding27.Lifetime = NumberRange.new(0.25, 0.5) Bleeding27.Speed = NumberRange.new(5, 15) Bleeding27.Size = NumberSequence.new{ NumberSequenceKeypoint.new(0, 0, 0), NumberSequenceKeypoint.new(0.2, 0.6, 0), NumberSequenceKeypoint.new(0.35, 1, 0), NumberSequenceKeypoint.new(0.65, 1, 0), NumberSequenceKeypoint.new(1, 0.7, 0),} Bleeding27.Acceleration = Vector3.new(0, -15, 0) Bleeding27.RotSpeed = NumberRange.new(-35, 35) Bleeding27.Rate = 15 Bleeding27.Rotation = NumberRange.new(0, 360) Bleeding27.Transparency = NumberSequence.new{ NumberSequenceKeypoint.new(0, 0.512, 0), NumberSequenceKeypoint.new(0.6, 0.9, 0), NumberSequenceKeypoint.new(1, 1, 0),} Bleeding27.Name = "Bleeding" Bleeding27.LightEmission = 0.20000000298023224 Bleeding27.Texture = "http://www.roblox.com/asset/?id=5307474191" Bleeding27.Parent = particle26 Bleeding27.SpreadAngle = Vector2.new(35, 35) Limbgib421.Name = "Limbgib-4" Limbgib421.Parent = sfx1 Limbgib421.SoundId = "rbxassetid://8535265765" Limbgib421.RollOffMaxDistance = 45 Limbgib421.RollOffMinDistance = 5 EmitCount29.Parent = Bloodbits28 EmitCount29.Value = 10 EmitCount29.Name = "EmitCount" FullBodyGib213.Name = "FullBodyGib-2" FullBodyGib213.Parent = sfx1 FullBodyGib213.SoundId = "rbxassetid://8535292656" FullBodyGib213.RollOffMaxDistance = 35 FullBodyGib213.RollOffMinDistance = 5 Drip122.Parent = sfx1 Drip122.SoundId = "rbxassetid://9113463638" Drip122.Name = "Drip-1" Limbgib320.Name = "Limbgib-3" Limbgib320.Parent = sfx1 Limbgib320.SoundId = "rbxassetid://8535267070" Limbgib320.RollOffMaxDistance = 45 Limbgib320.RollOffMinDistance = 5 particle44.Color = Color3.fromRGB(77, 0, 0) particle44.CFrame = CFrame.new(276.121, -166.591, -193.764) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) particle44.Material = Enum.Material.Glass particle44.Size = Vector3.new(0.001, 0.001, 0.001) particle44.BottomSurface = Enum.SurfaceType.Smooth particle44.Massless = true particle44.Transparency = 0.5 particle44.Name = "particle" particle44.Position = Vector3.new(276.121, -166.591, -193.764) particle44.Parent = particles37 particle44.Anchored = true particle44.BrickColor = BrickColor.new("Maroon") particle44.TopSurface = Enum.SurfaceType.Smooth Headgib59.Name = "Headgib-5" Headgib59.Volume = 0.699999988079071 Headgib59.Parent = sfx1 Headgib59.SoundId = "rbxassetid://8353373328" Headgib59.RollOffMaxDistance = 35 Headgib59.RollOffMinDistance = 3 LimbChop517.Name = "LimbChop-5" LimbChop517.Parent = sfx1 LimbChop517.SoundId = "rbxassetid://8238481132" LimbChop517.RollOffMaxDistance = 50 LimbChop517.RollOffMinDistance = 5 SurfaceAppearance41.MetalnessMap = "rbxassetid://10390625822" SurfaceAppearance41.NormalMap = "rbxassetid://10390666942" SurfaceAppearance41.RoughnessMap = "rbxassetid://10390625020" SurfaceAppearance41.Parent = gib240 SurfaceAppearance41.ColorMap = "rbxassetid://10390626220" FullBodyGib32.Name = "FullBodyGib-3" FullBodyGib32.Parent = sfx1 FullBodyGib32.SoundId = "rbxassetid://8535292514" FullBodyGib32.RollOffMaxDistance = 35 FullBodyGib32.RollOffMinDistance = 5 gib138.Parent = particles37 gib138.CFrame = CFrame.new(159.928, -166.418, -145.055) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) gib138.Name = "gib1" gib138.Position = Vector3.new(159.928, -166.418, -145.055) gib138.MeshId = "rbxassetid://10390526152" gib138.CollisionFidelity = Enum.CollisionFidelity.Default gib138.Anchored = true gib138.Size = Vector3.new(0.4, 0.446, 0.365) Shirt53.Parent = Middle49 Shirt53.Name = "Shirt" Shirt53.Texture = "rbxassetid://5614184106" Bloodbits28.Color = ColorSequence.new{ ColorSequenceKeypoint.new(0, Color3.fromRGB(63, 0, 0)), ColorSequenceKeypoint.new(1, Color3.fromRGB(63, 0, 0)),} Bloodbits28.Drag = 5 Bloodbits28.ZOffset = 0.20000000298023224 Bloodbits28.LightInfluence = 1 Bloodbits28.Lifetime = NumberRange.new(0.5, 1) Bloodbits28.Speed = NumberRange.new(20, 100) Bloodbits28.Size = NumberSequence.new{ NumberSequenceKeypoint.new(0, 0, 0), NumberSequenceKeypoint.new(0.038, 0.1, 0.052), NumberSequenceKeypoint.new(0.35, 0.2, 0.052), NumberSequenceKeypoint.new(0.966, 0.1, 0.052), NumberSequenceKeypoint.new(1, 0, 0),} Bloodbits28.Acceleration = Vector3.new(0, -100, 0) Bloodbits28.RotSpeed = NumberRange.new(-1000, 1000) Bloodbits28.Rate = 0 Bloodbits28.Rotation = NumberRange.new(-360, 360) Bloodbits28.Transparency = NumberSequence.new{ NumberSequenceKeypoint.new(0, 0.3, 0), NumberSequenceKeypoint.new(1, 0.3, 0),} Bloodbits28.Name = "Blood bits" Bloodbits28.LightEmission = 0.20000000298023224 Bloodbits28.Texture = "rbxassetid://7016729122" Bloodbits28.Parent = particle26 Bloodbits28.SpreadAngle = Vector2.new(40, 40) Limbgib118.Name = "Limbgib-1" Limbgib118.Parent = sfx1 Limbgib118.SoundId = "rbxassetid://8535266847" Limbgib118.RollOffMaxDistance = 45 Limbgib118.RollOffMinDistance = 5 L158.Parent = limbs46 L158.CFrame = CFrame.new(-6961.594, 142.363, -257.946) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) L158.MeshId = "rbxassetid://11623972281" L158.CollisionFidelity = Enum.CollisionFidelity.Default L158.Name = "L1" L158.Position = Vector3.new(-6961.594, 142.363, -257.946) L158.BrickColor = BrickColor.new("Black") L158.Massless = true L158.Color = Color3.fromRGB(27, 42, 53) L158.Size = Vector3.new(1.4, 1.428, 1.388) Headgib26.Name = "Headgib-2" Headgib26.Volume = 0.699999988079071 Headgib26.Parent = sfx1 Headgib26.SoundId = "rbxassetid://8353373547" Headgib26.RollOffMaxDistance = 35 Headgib26.RollOffMinDistance = 3 Decal51.Parent = Middle49 Decal51.Texture = "rbxassetid://11621001289" Middle49.TopSurface = Enum.SurfaceType.Smooth Middle49.BottomSurface = Enum.SurfaceType.Smooth Middle49.Parent = T147 Middle49.CFrame = CFrame.new(-6963.042, 142.063, -257.946) * CFrame.Angles(math.rad(-180), math.rad(0), math.rad(-180)) Middle49.Rotation = Vector3.new(-180, 0, -180) Middle49.Massless = true Middle49.Name = "Middle" Middle49.Position = Vector3.new(-6963.042, 142.063, -257.946) Middle49.Orientation = Vector3.new(0, -180, 0) Middle49.Color = Color3.fromRGB(226, 220, 188) Middle49.BrickColor = BrickColor.new("Khaki") Middle49.Size = Vector3.new(2, 2, 1) Blooddrops30.Color = ColorSequence.new{ ColorSequenceKeypoint.new(0, Color3.fromRGB(53, 3, 3)), ColorSequenceKeypoint.new(1, Color3.fromRGB(53, 3, 3)),} Blooddrops30.ZOffset = -1 Blooddrops30.LightInfluence = 1 Blooddrops30.Lifetime = NumberRange.new(0.7, 0.9) Blooddrops30.Speed = NumberRange.new(5, 40) Blooddrops30.Size = NumberSequence.new{ NumberSequenceKeypoint.new(0, 0.875, 0.875), NumberSequenceKeypoint.new(0.487, 0.813, 0.255), NumberSequenceKeypoint.new(1, 0.125, 0),} Blooddrops30.Acceleration = Vector3.new(0, -60, 0) Blooddrops30.RotSpeed = NumberRange.new(-5, 5) Blooddrops30.Squash = NumberSequence.new{ NumberSequenceKeypoint.new(0, -0.25, 0), NumberSequenceKeypoint.new(0.821, -0.788, 0), NumberSequenceKeypoint.new(1, -2.175, 0),} Blooddrops30.VelocityInheritance = 0.15000000596046448 Blooddrops30.Rate = 73 Blooddrops30.Texture = "rbxassetid://7216848307" Blooddrops30.Rotation = NumberRange.new(90, 90) Blooddrops30.Transparency = NumberSequence.new{ NumberSequenceKeypoint.new(0, 0.025, 0), NumberSequenceKeypoint.new(0.615, 0, 0), NumberSequenceKeypoint.new(1, 1, 0),} Blooddrops30.Name = "Blooddrops" Blooddrops30.Orientation = Enum.ParticleOrientation.VelocityParallel Blooddrops30.Parent = particle26 Blooddrops30.SpreadAngle = Vector2.new(7, 7) Blooddrops30.LightEmission = 0.20000000298023224 WeldConstraint61.Parent = Middle60 WeldConstraint61.Parent = L158 WeldConstraint61.Parent = Middle60 WeldConstraint52.Parent = Middle49 WeldConstraint52.Parent = T147 WeldConstraint52.Parent = Middle49 LimbChop416.Name = "LimbChop-4" LimbChop416.Parent = sfx1 LimbChop416.SoundId = "rbxassetid://8238480935" LimbChop416.RollOffMaxDistance = 50 LimbChop416.RollOffMinDistance = 5 Smoke32.Color = ColorSequence.new{ ColorSequenceKeypoint.new(0, Color3.fromRGB(74, 0, 0)), ColorSequenceKeypoint.new(1, Color3.fromRGB(74, 0, 0)),} Smoke32.Drag = 5 Smoke32.LightInfluence = 1 Smoke32.Lifetime = NumberRange.new(0.3, 0.8) Smoke32.Speed = NumberRange.new(5, 40) Smoke32.Size = NumberSequence.new{ NumberSequenceKeypoint.new(0, 0.552, 0), NumberSequenceKeypoint.new(0.249, 0.92, 0.586), NumberSequenceKeypoint.new(0.751, 1.411, 0.675), NumberSequenceKeypoint.new(1, 2.331, 1.411),} Smoke32.Acceleration = Vector3.new(5, -5, 0) Smoke32.RotSpeed = NumberRange.new(-20, 20) Smoke32.Rate = 100 Smoke32.Rotation = NumberRange.new(-180, 180) Smoke32.Transparency = NumberSequence.new{ NumberSequenceKeypoint.new(0, 0.694, 0), NumberSequenceKeypoint.new(0.716, 0.488, 0), NumberSequenceKeypoint.new(1, 1, 0),} Smoke32.Name = "Smoke" Smoke32.SpreadAngle = Vector2.new(10, -10) Smoke32.Parent = particle26 Smoke32.Texture = "http://www.roblox.com/asset/?id=5307474191" Headgib14.Name = "Headgib-1" Headgib14.Volume = 0.699999988079071 Headgib14.Parent = sfx1 Headgib14.SoundId = "rbxassetid://8353373964" Headgib14.RollOffMaxDistance = 35 Headgib14.RollOffMinDistance = 3 T147.Color = Color3.fromRGB(27, 42, 53) T147.Massless = true T147.CollisionFidelity = Enum.CollisionFidelity.Default T147.Size = Vector3.new(2.062, 2.067, 1.208) T147.MeshId = "rbxassetid://11620983566" T147.TextureID = "rbxassetid://11620952706" T147.Rotation = Vector3.new(-180, 0, -180) T147.Transparency = 0.029999999329447746 T147.Name = "T1" T147.Position = Vector3.new(-6963.042, 142.063, -257.942) T147.Orientation = Vector3.new(0, -180, 0) T147.Parent = limbs46 T147.CFrame = CFrame.new(-6963.042, 142.063, -257.942) * CFrame.Angles(math.rad(-180), math.rad(0), math.rad(-180)) T147.BrickColor = BrickColor.new("Black") water34.Color = ColorSequence.new{ ColorSequenceKeypoint.new(0, Color3.fromRGB(53, 3, 3)), ColorSequenceKeypoint.new(1, Color3.fromRGB(53, 3, 3)),} water34.ZOffset = -1 water34.LightInfluence = 1 water34.Lifetime = NumberRange.new(0.7, 0.9) water34.Speed = NumberRange.new(5, 40) water34.Size = NumberSequence.new{ NumberSequenceKeypoint.new(0, 3, 0), NumberSequenceKeypoint.new(1, 3, 0),} water34.Acceleration = Vector3.new(0, -60, 0) water34.RotSpeed = NumberRange.new(2, 2) water34.Texture = "http://www.roblox.com/asset/?id=5307474191" water34.Rate = 73 water34.VelocityInheritance = 0.15000000596046448 water34.Rotation = NumberRange.new(-360, 360) water34.Transparency = NumberSequence.new{ NumberSequenceKeypoint.new(0, 0.95, 0.05), NumberSequenceKeypoint.new(1, 1, 0),} water34.Name = "water" water34.Orientation = Enum.ParticleOrientation.VelocityParallel water34.Parent = particle26 water34.SpreadAngle = Vector2.new(20, 20) water34.LightEmission = 0.20000000298023224 R154.RenderFidelity = Enum.RenderFidelity.Automatic R154.Parent = limbs46 R154.CFrame = CFrame.new(-6964.542, 142.311, -257.943) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) R154.MeshId = "rbxassetid://11623933552" R154.CollisionFidelity = Enum.CollisionFidelity.Default R154.Size = Vector3.new(1.369, 1.523, 1.367) R154.Name = "R1" R154.Position = Vector3.new(-6964.542, 142.311, -257.943) R154.BrickColor = BrickColor.new("Black") R154.Massless = true R154.Color = Color3.fromRGB(27, 42, 53) R154.PivotOffset = CFrame.new(-0.041, 0.122, -0.029) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) FullBodyGib112.Name = "FullBodyGib-1" FullBodyGib112.Parent = sfx1 FullBodyGib112.SoundId = "rbxassetid://8535292823" FullBodyGib112.RollOffMaxDistance = 35 FullBodyGib112.RollOffMinDistance = 5 Middle60.BottomSurface = Enum.SurfaceType.Smooth Middle60.Parent = L158 Middle60.CFrame = CFrame.new(-6961.561, 142.063, -257.946) * CFrame.Angles(math.rad(-180), math.rad(0), math.rad(-180)) Middle60.TopSurface = Enum.SurfaceType.Smooth Middle60.Rotation = Vector3.new(-180, 0, -180) Middle60.Transparency = 1 Middle60.Name = "Middle" Middle60.Position = Vector3.new(-6961.561, 142.063, -257.946) Middle60.Orientation = Vector3.new(0, -180, 0) Middle60.Massless = true Middle60.Size = Vector3.new(1, 2, 1) Headgib48.Name = "Headgib-4" Headgib48.Volume = 0.699999988079071 Headgib48.Parent = sfx1 Headgib48.SoundId = "rbxassetid://8353374220" Headgib48.RollOffMaxDistance = 35 Headgib48.RollOffMinDistance = 3 SurfaceAppearance39.MetalnessMap = "rbxassetid://10390531532" SurfaceAppearance39.NormalMap = "rbxassetid://10390531264" SurfaceAppearance39.RoughnessMap = "rbxassetid://10390530564" SurfaceAppearance39.Parent = gib138 SurfaceAppearance39.ColorMap = "rbxassetid://10390532089" gib342.Parent = particles37 gib342.CFrame = CFrame.new(160.255, -166.157, -144.93) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) gib342.Name = "gib3" gib342.Position = Vector3.new(160.255, -166.157, -144.93) gib342.MeshId = "rbxassetid://10390797709" gib342.CollisionFidelity = Enum.CollisionFidelity.Default gib342.Anchored = true gib342.Size = Vector3.new(0.274, 0.304, 0.329) Mesh50.MeshType = Enum.MeshType.FileMesh Mesh50.Parent = Middle49 Mesh50.MeshId = "rbxassetid://11621162440" Mesh50.Scale = Vector3.new(0.99, 0.99, 0.99) SurfaceAppearance63.MetalnessMap = "rbxassetid://11596386739" SurfaceAppearance63.NormalMap = "rbxassetid://11596386066" SurfaceAppearance63.RoughnessMap = "rbxassetid://11598933794" SurfaceAppearance63.Parent = H162 SurfaceAppearance63.ColorMap = "rbxassetid://11596387524" SurfaceAppearance55.MetalnessMap = "rbxassetid://11623937157" SurfaceAppearance55.NormalMap = "rbxassetid://11623936875" SurfaceAppearance55.RoughnessMap = "rbxassetid://11623936646" SurfaceAppearance55.Parent = R154 SurfaceAppearance55.ColorMap = "rbxassetid://11623937462" SurfaceAppearance43.MetalnessMap = "rbxassetid://10390773097" SurfaceAppearance43.NormalMap = "rbxassetid://10390772794" SurfaceAppearance43.RoughnessMap = "rbxassetid://10390772316" SurfaceAppearance43.Parent = gib342 SurfaceAppearance43.ColorMap = "rbxassetid://10390773585" Drip425.Parent = sfx1 Drip425.SoundId = "rbxassetid://9113463757" Drip425.Name = "Drip-4" particle26.Parent = MainModule particle26.Name = "particle" sfx1.Parent = MainModule sfx1.Name = "sfx" MainModule.Name = "MainModule" local ph function main() local script = MainModule --scandalous#9015 local bloodTextures = { "rbxassetid://10049960383", "rbxassetid://10049912900", } local vec, cfr, ang, rad = Vector3.new, CFrame.new, CFrame.Angles, math.rad local rnd = Random.new(tick()) local gibs = script:WaitForChild("gibs") local particle = script:WaitForChild("particle") local sfx = script:WaitForChild("sfx") local physics = ph() local physicsRender local runService = game:GetService("RunService") local debris = game:GetService("Debris") local tws = game:GetService("TweenService") local isServer = true local info = TweenInfo.new(0.3) -- if not isServer then physicsRender = physics.new(vec(0, -workspace.Gravity / 2, 0)) physicsRender.ignoreList = {workspace.Terrain} --end local LIMB_HP = 100 local LEVELS = { [1] = 46, --[1] = 65, --[2] = 45, --[3] = 20, } local LIMBS = { ["Right Arm"] = "R", ["Right Leg"] = "R", ["Left Arm"] = "L", ["Left Leg"] = "L", ["Head"] = "H", ["Torso"] = "T" } local g = {} local function onhit(char, decal, drip, result, s) local charpos = char:GetPivot() physicsRender:removeFromRender(drip) local size = rnd:NextNumber(0.09,0.22) - ((result.Position - charpos.Position).Magnitude / 100) if decal then size *= 20 local decal = Instance.new("Decal") decal.Texture = bloodTextures[rnd:NextInteger(1, #bloodTextures)] decal.Face = Enum.NormalId.Right decal.Parent = drip drip.Transparency = 1 drip.Mesh:Destroy() drip.CFrame = cfr(result.Position, result.Position + result.Normal) * ang(0, rad(90), 0) * ang(rad(rnd:NextNumber(-360, 360)),0,0) else drip.Mesh.MeshType = Enum.MeshType.Cylinder drip.CFrame = cfr(result.Position, result.Position + result.Normal) * ang(0, rad(90), 0) end drip.Size = vec(0.04, size, size) tws:Create(drip, info, {Size = vec(0.04 + rnd:NextNumber(-0.02,0.02), size * 1.2, size * 1.2)}):Play() debris:AddItem(drip, 8) if rnd:NextNumber() <= 0.25 then local dripsfx = sfx["Drip-"..rnd:NextInteger(1,4)]:Clone() dripsfx.PlayOnRemove = true dripsfx.Volume = 1.2 dripsfx.Parent = drip dripsfx:Destroy() end end local function onstep(drip, s) drip.Size = vec(0.03, 0.03, (s.l - drip.Position).Magnitude * 1.25) end local function getLimbHealth(limb:BasePart) local attribute = limb:GetAttribute("HP") if not attribute then limb:SetAttribute("HP", LIMB_HP) attribute = LIMB_HP end return attribute end local function damageLimbHealth(limb:BasePart, damage:number) local old = getLimbHealth(limb) local health = old - damage limb:SetAttribute("HP", health) return health, old end function g:bleed(decal:boolean, char:Model, position:Vector3, velocity:Vector3) local mag = (position - workspace.CurrentCamera.CFrame.Position).Magnitude if mag < 150 then local drip = gibs.particles.particle:Clone() drip.Position = position drip.Parent = workspace.Terrain local d = { v0 = velocity, ignore = {char}, step = function(...) onstep(drip, ...) end, hit = function(...) onhit(char, decal, drip, ...) end } physicsRender:addToRender(drip, d) end end function g:dmg(character, limb:BasePart, damage:number, direction:Vector3, velocity:number) if limb.Name == "HumanoidRootPart" then limb = character:FindFirstChild("Torso") end --if not isServer then for i = 1, rnd:NextNumber(3, 5) * 2 do local dir = (cfr(limb.Position, limb.Position + (direction or vec())) * ang(rad(rnd:NextNumber(-15,15)),rad(rnd:NextNumber(-15,15)),rad(rnd:NextNumber(-15,15)))).LookVector self:bleed(false, character, limb.Position, -dir * velocity * 0.42 + vec(rnd:NextNumber(-3,3), 0, rnd:NextNumber(-3,3))) end --if not limb:GetAttribute("bleed2") then --limb:SetAttribute("bleed2", true) task.defer(function() local s = tick() while (tick() - s) < 3 do local dt = task.wait(0.3) local dir = (cfr(limb.Position, limb.Position + (direction or vec())) * ang(rad(rnd:NextNumber(-15,15)),rad(rnd:NextNumber(-15,15)),rad(rnd:NextNumber(-15,15)))).LookVector self:bleed(false, character, limb.Position, -dir * velocity * 0.35) end --limb:SetAttribute("bleed2", false) end) --end --end if limb then local hp, old = damageLimbHealth(limb, damage) --if not isServer then if rnd:NextNumber() <= 0.8 then local dir = (cfr(limb.Position, limb.Position + (direction or vec())) * ang(rad(rnd:NextNumber(-45,45)),rad(rnd:NextNumber(-45,45)),rad(rnd:NextNumber(-45,45)))).LookVector self:bleed(true, character, limb.Position, (dir * velocity + vec(rnd:NextNumber(-3,3), 15 + rnd:NextNumber(-3,3), rnd:NextNumber(-3,3))) * 0.3) end --end local sfxName = limb.Name == "Head" and "Headgib" or "Limbgib" for level, value in next, LEVELS do local n = LEVELS[level + 1] if hp < value then if n and value < n then continue end local name = LIMBS[limb.Name] if name then if level > 2 and name ~= "H" then level = 2 end local gibname = name..level print("GORED") if limb:GetAttribute("gib") ~= gibname then limb:SetAttribute("gib", gibname) limb.Transparency = 1 for i,v in next, limb:GetDescendants() do if v:IsA("BasePart") or v:IsA("Decal") then v.Transparency = 1 end end --if not isServer then for i = 1, rnd:NextNumber(7, 13) * 2 do local dir = (cfr(limb.Position, limb.Position + (direction or vec())) * ang(rad(rnd:NextNumber(-45,45)),rad(rnd:NextNumber(-45,45)),rad(rnd:NextNumber(-45,45)))).LookVector self:bleed(false, character, limb.Position, dir * velocity + vec(rnd:NextNumber(-3,3), 15 + rnd:NextNumber(-3,3), rnd:NextNumber(-3,3))) end --else local newSFX = sfx[sfxName.."-"..rnd:NextInteger(1,6)]:Clone() newSFX.Parent = limb newSFX:Play() debris:AddItem(newSFX, 4) local old = limb:FindFirstChild("gib") if old then old:Destroy() end local model = gibs.limbs[gibname]:Clone() local middle = model:FindFirstChild("Middle") local weld = Instance.new("Weld") weld.Part0 = limb weld.Part1 = middle or model weld.Parent = model if middle then local offset = middle.CFrame:ToObjectSpace(model.CFrame) local w = Instance.new("Weld", middle) w.Part0 = middle w.Part1 = model w.C0 = offset middle.CFrame = limb.CFrame else model.CFrame = limb.CFrame end model.Name = "gib" model.Parent = limb limb.Transparency = 1 local face = limb:FindFirstChild("face") if face then face.Transparency = 1 end --end if not limb:GetAttribute("bleed") then limb:SetAttribute("bleed", true) task.defer(function() local s = tick() while (tick() - s) < 6 do local dt = task.wait(0.6) --if isServer then --else for i = 1, 6 do self:bleed(false, character,limb.Position,limb.CFrame.UpVector * 6 + vec(rnd:NextNumber(-3,3),rnd:NextNumber(-3,3),rnd:NextNumber(-3,3))) end -- end end limb:SetAttribute("bleed", false) end) end end end end end end end return g end EmitCount35.Parent = water34 EmitCount35.Value = 10 EmitCount35.Name = "EmitCount" Drip324.Parent = sfx1 Drip324.SoundId = "rbxassetid://9113464028" Drip324.Name = "Drip-3" Limbgib511.Name = "Limbgib-5" Limbgib511.Parent = sfx1 Limbgib511.SoundId = "rbxassetid://8535266190" Limbgib511.RollOffMaxDistance = 45 Limbgib511.RollOffMinDistance = 5 Headgib105.Name = "Headgib-10" Headgib105.Volume = 0.699999988079071 Headgib105.Parent = sfx1 Headgib105.SoundId = "rbxassetid://8353372061" Headgib105.RollOffMaxDistance = 35 Headgib105.RollOffMinDistance = 3 WeldConstraint65.Parent = Middle64 WeldConstraint65.Parent = H162 WeldConstraint65.Parent = Middle64 LimbChop214.Name = "LimbChop-2" LimbChop214.Parent = sfx1 LimbChop214.SoundId = "rbxassetid://8238481799" LimbChop214.RollOffMaxDistance = 50 LimbChop214.RollOffMinDistance = 5 Drip223.Parent = sfx1 Drip223.SoundId = "rbxassetid://9113463629" Drip223.Name = "Drip-2" Headgib37.Name = "Headgib-3" Headgib37.Volume = 0.699999988079071 Headgib37.Parent = sfx1 Headgib37.SoundId = "rbxassetid://8353373765" Headgib37.RollOffMaxDistance = 35 Headgib37.RollOffMinDistance = 3 particles37.Parent = gibs36 particles37.Name = "particles" Mesh45.Parent = particle44 Mesh45.MeshType = Enum.MeshType.Sphere gib240.Parent = particles37 gib240.CFrame = CFrame.new(160.268, -166.463, -145.143) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) gib240.Name = "gib2" gib240.Position = Vector3.new(160.268, -166.463, -145.143) gib240.MeshId = "rbxassetid://10390686401" gib240.CollisionFidelity = Enum.CollisionFidelity.Default gib240.Anchored = true gib240.Size = Vector3.new(0.296, 0.31, 0.304) SurfaceAppearance59.MetalnessMap = "rbxassetid://11623974782" SurfaceAppearance59.NormalMap = "rbxassetid://11623974585" SurfaceAppearance59.RoughnessMap = "rbxassetid://11623974433" SurfaceAppearance59.Parent = L158 SurfaceAppearance59.ColorMap = "rbxassetid://11623974998" a48.ColorMap = "rbxassetid://11621001289" a48.NormalMap = "rbxassetid://11620999782" a48.AlphaMode = Enum.AlphaMode.Transparency a48.Parent = T147 a48.RoughnessMap = "rbxassetid://11620998509" a48.MetalnessMap = "rbxassetid://11621000471" a48.Name = "a" EmitCount31.Parent = Blooddrops30 EmitCount31.Value = 20 EmitCount31.Name = "EmitCount" EmitCount33.Parent = Smoke32 EmitCount33.Value = 8 EmitCount33.Name = "EmitCount" LimbChop315.Name = "LimbChop-3" LimbChop315.Parent = sfx1 LimbChop315.SoundId = "rbxassetid://8238481384" LimbChop315.RollOffMaxDistance = 50 LimbChop315.RollOffMinDistance = 5 Middle56.BottomSurface = Enum.SurfaceType.Smooth Middle56.Parent = R154 Middle56.CFrame = CFrame.new(-6964.561, 142.063, -257.946) * CFrame.Angles(math.rad(-180), math.rad(0), math.rad(-180)) Middle56.TopSurface = Enum.SurfaceType.Smooth Middle56.Rotation = Vector3.new(-180, 0, -180) Middle56.Transparency = 1 Middle56.Name = "Middle" Middle56.Position = Vector3.new(-6964.561, 142.063, -257.946) Middle56.Orientation = Vector3.new(0, 180, 0) Middle56.Massless = true Middle56.Size = Vector3.new(1, 2, 1) Limbgib63.Name = "Limbgib-6" Limbgib63.Parent = sfx1 Limbgib63.SoundId = "rbxassetid://8535265949" Limbgib63.RollOffMaxDistance = 45 Limbgib63.RollOffMinDistance = 5 physics66.Parent = MainModule physics66.Name = "physics" function ph() local script = physics66 local p = {} p.__index = p local rs = game:GetService("RunService") local timescale = 1.3 function p.new(gravity : Vector3) local self = setmetatable({ gravity = gravity, render = {}, ignoreList = {} }, p) self.step = rs.Heartbeat:Connect(function() local t = time() for part, data in next, self.render do local dt = (t - data.s) * timescale if dt > data.lt and not data.isHit then self:removeFromRender(part) part:Destroy() continue end local pos = self:getPosition(data.p0, data.v0, dt) part.CFrame = CFrame.lookAt(pos, data.l) * CFrame.Angles(0, math.pi, 0) data.normal = part.CFrame.LookVector if data.step then data.step(data) end if data.hit then local touch = workspace:Raycast(data.l, (part.Position - data.l), data.par) if touch then data.isHit = true data.hit(touch, data) end end data.l = pos end end) return self end function p:getPosition(p0,v0,dt) return p0 + v0 * dt + 0.5 * self.gravity * (dt ^ 2) end function p:getVelocity(v0,dt) return v0 + self.gravity * dt end function p:addToRender(part, data) local par = RaycastParams.new() par.FilterDescendantsInstances = {part, unpack(data.ignore), unpack(self.ignoreList)} local d = { s = time(), l = part.Position, p0 = part.Position, isHit = false, v0 = Vector3.new(), par = par, lt = 3, } for name, value in next, data do d[name] = value end self.render[part] = d return self.render[part] end function p:removeFromRender(part) self.render[part] = nil end function p:stop() self.step:Disconnect() self.step = nil self.render = {} end local p0, v0, t0 return p end gibs36.Parent = MainModule gibs36.Name = "gibs" return main
Editor Settings
Theme
Key bindings
Full width
Lines