Rufus14

DUSK Soap

Sep 7th, 2020
1,286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.08 KB | None | 0 0
  1. --By Rufus14
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4.     local env = getfenv(func)
  5.     local newenv = setmetatable({},{
  6.         __index = function(self,k)
  7.             if k=="script" then
  8.                 return var
  9.             else
  10.                 return env[k]
  11.             end
  12.         end,
  13.     })
  14.     setfenv(func,newenv)
  15.     return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Tool0 = Instance.new("Tool")
  20. Part1 = Instance.new("Part")
  21. SpecialMesh2 = Instance.new("SpecialMesh")
  22. ParticleEmitter3 = Instance.new("ParticleEmitter")
  23. Weld4 = Instance.new("Weld")
  24. Script5 = Instance.new("Script")
  25. Part6 = Instance.new("Part")
  26. Tool0.Name = "Soap"
  27. Tool0.Parent = mas
  28. Tool0.ToolTip = "the soap does 100 million damage now because it's funny."
  29. Part1.Name = "Handle"
  30. Part1.Parent = Tool0
  31. Part1.CFrame = CFrame.new(0.500000358, 1.5, -2.50001812, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  32. Part1.Position = Vector3.new(0.500000358, 1.5, -2.50001812)
  33. Part1.Color = Color3.new(1, 0.596078, 0.894118)
  34. Part1.Size = Vector3.new(0.999999344, 0.200000003, 0.599999964)
  35. Part1.BottomSurface = Enum.SurfaceType.Smooth
  36. Part1.BrickColor = BrickColor.new("Carnation pink")
  37. Part1.TopSurface = Enum.SurfaceType.Smooth
  38. Part1.brickColor = BrickColor.new("Carnation pink")
  39. SpecialMesh2.Parent = Part1
  40. SpecialMesh2.MeshId = "rbxasset://fonts//torso.mesh"
  41. SpecialMesh2.Scale = Vector3.new(0.5, 0.100000001, 0.600000024)
  42. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  43. ParticleEmitter3.Parent = Part1
  44. ParticleEmitter3.Speed = NumberRange.new(0.5, 0.5)
  45. ParticleEmitter3.LightEmission = 1
  46. ParticleEmitter3.LightInfluence = 1
  47. ParticleEmitter3.Texture = "http://www.roblox.com/asset/?id=838062436"
  48. ParticleEmitter3.Transparency = NumberSequence.new(0,1)
  49. ParticleEmitter3.Size = NumberSequence.new(0.20000000298023,0.20000000298023)
  50. ParticleEmitter3.Drag = 1
  51. ParticleEmitter3.Lifetime = NumberRange.new(3, 3)
  52. ParticleEmitter3.Rate = 1.5
  53. ParticleEmitter3.SpreadAngle = Vector2.new(0, 360)
  54. Weld4.Parent = Part1
  55. Weld4.Part0 = Part1
  56. Weld4.Part1 = Part6
  57. Weld4.part1 = Part6
  58. Script5.Parent = Tool0
  59. table.insert(cors,sandbox(Script5,function()
  60. --By Rufus14
  61. damage = 1e+09
  62. --
  63. tool = script.Parent
  64. handle = tool.Handle
  65. hitbox = tool.hitbox
  66. players = game:GetService("Players")
  67. runservice = game:GetService("RunService")
  68.  
  69. owner = nil
  70. character = nil
  71. playerhum = nil
  72.  
  73. equipped = false
  74. candamage = false
  75.  
  76. function swait(HOWMANY)
  77.     for i = 1,HOWMANY do
  78.         runservice.Stepped:wait()
  79.     end
  80. end
  81.  
  82. function gibbie(where, howlong)
  83.     local gibbieeeee = Instance.new("SpawnLocation", workspace)
  84.     gibbieeeee.Neutral = false
  85.     gibbieeeee:BreakJoints()
  86.     gibbieeeee.Size = Vector3.new(1.4, 1.6, 3.2)
  87.     gibbieeeee.CFrame = where
  88.     local gibyyyyyy = Instance.new("SpecialMesh", gibbieeeee)
  89.     gibyyyyyy.Scale = Vector3.new(0.75+math.random(-10,10)/30, 0.75+math.random(-10,10)/30, 1.5+math.random(-10,10)/30)
  90.     gibyyyyyy.MeshId = "http://www.roblox.com/asset/?id=1290033"
  91.     gibyyyyyy.TextureId = "http://www.roblox.com/asset/?id=1290030"
  92.     gibyyyyyy.VertexColor = Vector3.new(1,0,0)
  93.     game.Debris:AddItem(gibbieeeee, howlong)
  94. end
  95.  
  96. tool.Unequipped:connect(function()
  97.     equipped = false
  98. end)
  99.  
  100. tool.Equipped:connect(function()
  101.     equipped = true
  102.     owner = players:GetPlayerFromCharacter(tool.Parent)
  103.     character = owner.Character
  104.     playerhum = character:findFirstChildOfClass("Humanoid")
  105.     local rightgrip
  106.     if playerhum.RigType == Enum.HumanoidRigType.R6 then
  107.         rightgrip = character["Right Arm"]:WaitForChild("RightGrip")
  108.     elseif playerhum.RigType == Enum.HumanoidRigType.R15 then
  109.         rightgrip = character["RightHand"]:WaitForChild("RightGrip")
  110.     end
  111.     coroutine.wrap(function()
  112.         while equipped and runservice.Stepped:wait() do
  113.             if playerhum.RigType == Enum.HumanoidRigType.R15 then
  114.                 rightgrip.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(math.sin(tick()*1.5)/6,math.cos(tick()*1.5),0)
  115.             elseif playerhum.RigType == Enum.HumanoidRigType.R6 then
  116.                 rightgrip.C0 = CFrame.new(0,-1.1,0) * CFrame.fromEulerAnglesXYZ(math.sin(tick()*1.5)/6,math.cos(tick()*1.5),0)
  117.             end
  118.         end
  119.     end)()
  120. end)
  121.  
  122. tool.Activated:connect(function()
  123.     tool.Parent = workspace
  124.     handle.CFrame = character.Head.CFrame * CFrame.new(0,-1,-3.5)
  125.     candamage = true
  126.     local velocity = Instance.new("BodyVelocity", handle)
  127.     velocity.Velocity = character.Head.CFrame.lookVector * 50
  128.     velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  129.     coroutine.wrap(function()
  130.         wait(0.25)
  131.         velocity:destroy()
  132.         wait(0.75)
  133.         candamage = false
  134.     end)()
  135. end)
  136.  
  137. function killfunction(WHAT)
  138.     if WHAT.Parent == nil then return end
  139.     local humanoid = WHAT.Parent:findFirstChildOfClass("Humanoid")
  140.     if humanoid and candamage then
  141.         if humanoid.MaxHealth == math.huge then
  142.             humanoid.MaxHealth = damage
  143.         end
  144.         humanoid.Health = humanoid.Health - damage
  145.         if humanoid.Health <= 0 then
  146.             local mainpart = Instance.new("UnionOperation", workspace)
  147.             mainpart.Anchored = true
  148.             mainpart.Transparency = 1
  149.             mainpart.CFrame = WHAT.CFrame
  150.             mainpart.Size = Vector3.new(0.1,0.1,0.1)
  151.             if humanoid.Parent:findFirstChild(tool) then
  152.                 humanoid.Parent:findFirstChild(tool).Parent = workspace
  153.             end
  154.             for i,v in pairs(humanoid.Parent:GetDescendants()) do
  155.                 if v.ClassName == "Part" or v.ClassName == "MeshPart" then
  156.                     v:destroy()
  157.                 end
  158.             end
  159.             --gibby
  160.             for i = 1,3 do
  161.                 gibbie(mainpart.CFrame * CFrame.new(math.random(-4,4),0,math.random(-4,4)) * CFrame.fromEulerAnglesXYZ(0,math.random(-10,10)/5,0), 30)
  162.             end
  163.             local splatter = Instance.new("ParticleEmitter", mainpart)
  164.             splatter.Speed = NumberRange.new(100, 100)
  165.             splatter.Color = ColorSequence.new(Color3.new(0.709804, 0, 0.0117647),Color3.new(0.709804, 0, 0.0117647))
  166.             splatter.LightInfluence = 1
  167.             splatter.Texture = "http://www.roblox.com/asset/?id=242201991"
  168.             splatter.Transparency = NumberSequence.new(0.75,1)
  169.             splatter.Size = NumberSequence.new(5,5)
  170.             splatter.Acceleration = Vector3.new(0, -5, 0)
  171.             splatter.Drag = 50
  172.             splatter.Lifetime = NumberRange.new(4, 5)
  173.             splatter.Rate = 700
  174.             splatter.RotSpeed = NumberRange.new(3, 3)
  175.             splatter.SpreadAngle = Vector2.new(0, 360)
  176.             local ouch = Instance.new("Sound", mainpart)
  177.             ouch.SoundId = "rbxassetid://4459572527"
  178.             ouch.Volume = 2
  179.             ouch.PlaybackSpeed = 1+(math.random(-10,10)/50)
  180.             ouch:Play()
  181.             game.Debris:AddItem(mainpart, 10)
  182.             swait(5)
  183.             splatter.Enabled = false
  184.         end
  185.     end
  186. end
  187. hitbox.Touched:connect(killfunction)
  188. end))
  189. Part6.Name = "hitbox"
  190. Part6.Parent = Tool0
  191. Part6.CFrame = CFrame.new(0.500000358, 1.5, -2.50001812, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  192. Part6.Position = Vector3.new(0.500000358, 1.5, -2.50001812)
  193. Part6.Color = Color3.new(1, 0.596078, 0.894118)
  194. Part6.Transparency = 1
  195. Part6.Size = Vector3.new(1.79999936, 1, 1.39999998)
  196. Part6.BottomSurface = Enum.SurfaceType.Smooth
  197. Part6.BrickColor = BrickColor.new("Carnation pink")
  198. Part6.CanCollide = false
  199. Part6.TopSurface = Enum.SurfaceType.Smooth
  200. Part6.brickColor = BrickColor.new("Carnation pink")
  201. for i,v in pairs(mas:GetChildren()) do
  202.     v.Parent = owner.Character
  203.     pcall(function() v:MakeJoints() end)
  204. end
  205. mas:Destroy()
  206. for i,v in pairs(cors) do
  207.     spawn(function()
  208.         pcall(v)
  209.     end)
  210. end
Add Comment
Please, Sign In to add comment