TheUnknownDiscord

purple guy!1!1

Feb 7th, 2022 (edited)
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.54 KB | None | 0 0
  1. tool = Instance.new("Tool",owner.Backpack)
  2. part = Instance.new("Part",tool)
  3. part.Name = "Handle"
  4. part.Color = Color3.fromRGB(120,4,164)
  5. tool.Name = "man behind the slaughter"
  6. a = Instance.new("Sound",part)
  7. a.SoundId = "http://www.roblox.com/asset/?id=4879614820"
  8. a.Looped = true
  9. a.Volume = 0.5
  10. part.Size = Vector3.new(1.5,1.5,1.5)
  11. tool.Grip = CFrame.new(0,0,0.75)
  12. part.Material = "Neon"
  13. local billboard = Instance.new("BillboardGui", part)
  14. billboard.Size = UDim2.new(1.5,0,1.5,0)
  15. local frame = Instance.new("ImageLabel", billboard)
  16. frame.BackgroundTransparency = 1
  17. frame.Image = "http://www.roblox.com/asset/?id=7871416092"
  18. frame.Size = UDim2.new(1,0,1,0)
  19. frame.ResampleMode = Enum.ResamplerMode.Pixelated
  20. part.Transparency = 1
  21. tool.Equipped:Connect(function()
  22. a:Resume()
  23. end)
  24. tool.Unequipped:Connect(function()
  25. a:Pause()
  26. end)
  27. stopped = true
  28. force = 200
  29. tool.Activated:Connect(function()
  30. frame.Image = "http://www.roblox.com/asset/?id=215826391"
  31. end)
  32. local knives = {}
  33. local toolout = false
  34. tool.Equipped:Connect(function()
  35. toolout = true
  36. end)
  37. tool.Unequipped:Connect(function()
  38. toolout = false
  39. end)
  40. hit = Instance.new("Sound",script)
  41. hit.SoundId = "http://www.roblox.com/asset/?id=5924183835"
  42. hit.PlayOnRemove = true
  43. hit.Volume = 1
  44. e = Instance.new("RemoteEvent",tool)
  45. e.OnServerEvent:Connect(function(plr,speed)
  46. if toolout then
  47. pcall(function()
  48. coroutine.wrap(function()
  49. wait(0.25)
  50. frame.Image = "http://www.roblox.com/asset/?id=7871416092"
  51. end)()
  52. local knife = Instance.new("SpawnLocation",script)
  53. knife.Enabled = false
  54. knife.Size = Vector3.new(0.4, 3, 0.7)
  55. knife.CFrame = part.CFrame
  56. knife:ApplyImpulse(speed)
  57. knife:ApplyAngularImpulse(knife.CFrame.rightVector * -5)
  58. flying = Instance.new("Sound",knife)
  59. flying.SoundId = "http://www.roblox.com/asset/?id=608509471"
  60. flying.Looped = true
  61. flying.Volume = 4
  62. flying:Play()
  63. game:GetService("Debris"):AddItem(knife,45)
  64. table.insert(knives,knife)
  65. local Mesh = Instance.new("SpecialMesh")
  66. Mesh.Parent = knife
  67. Mesh.MeshId = "http://www.roblox.com/asset/?id=121944778"
  68. Mesh.TextureId = "http://www.roblox.com/asset/?id=121944805"
  69. yeet = Instance.new("Trail",knife)
  70. local attach1 = Instance.new("Attachment", knife)
  71. local attach2 = Instance.new("Attachment", knife)
  72. attach1.CFrame = CFrame.new(0, -0.2, 0.15)
  73. attach2.CFrame = CFrame.new(0, 0.7, 0.15)
  74. yeet.Attachment0 = attach1
  75. yeet.Attachment1 = attach2
  76. yeet.LightInfluence = 1
  77. yeet.Transparency = NumberSequence.new(0.8125,1)
  78. yeet.Lifetime = 0.15000000596046
  79. force = 200
  80. local rayhit = false
  81. wait()
  82. while task.wait() and not rayhit do
  83. local params = RaycastParams.new()
  84. params.FilterDescendantsInstances = {knifes, owner.Character}
  85. params.FilterType = Enum.RaycastFilterType.Blacklist
  86. local result = game.Workspace:Raycast(knife.Position, knife.CFrame.lookVector * 1.75,params)
  87. local result2 = game.Workspace:Raycast(knife.Position, knife.CFrame.lookVector * -1.75,params)
  88. local result3 = game.Workspace:Raycast(knife.Position, knife.CFrame.upVector * 2.5,params)
  89. local result4 = game.Workspace:Raycast(knife.Position, knife.CFrame.upVector * -2.5,params)
  90. local result5 = game.Workspace:Raycast(knife.Position, knife.CFrame.upVector * -2.5 + knife.CFrame.lookVector * 1.75,params)
  91. local result6 = game.Workspace:Raycast(knife.Position, knife.CFrame.upVector * -2.5 + knife.CFrame.lookVector * -1.75,params)
  92. local result7 = game.Workspace:Raycast(knife.Position, knife.CFrame.upVector * 2.5 + knife.CFrame.lookVector * 1.75,params)
  93. local result8 = game.Workspace:Raycast(knife.Position, knife.CFrame.upVector * 2.5 + knife.CFrame.lookVector * -1.75,params)
  94. if result or result2 or result3 or result4 or result5 or result6 or result7 or result8 then
  95. flying:Stop()
  96. flying:Destroy()
  97. hit.Parent = knife
  98. hit.Parent = nil
  99. end
  100. if result then
  101. rayhit = true
  102. yeet.Enabled = false
  103. game:GetService("Debris"):AddItem(yeet,2)
  104. local whathit = result.Instance
  105. local currentRightVector = whathit.CFrame.RightVector
  106. local upVector = result.Normal
  107. local newFacialVector = currentRightVector:Cross(upVector)
  108. knife.Position = result.Position
  109. local x, y, z = CFrame.new(part.Position,knife.Position):ToEulerAnglesXYZ()
  110. knife.CFrame = CFrame.fromMatrix(knife.Position, currentRightVector, upVector, newFacialVector)
  111. * CFrame.Angles(0,y,0) * CFrame.Angles(math.rad(180),0,0)
  112. weld = Instance.new("WeldConstraint",knife)
  113. weld.Part0 = knife
  114. weld.Part1 = whathit
  115. if whathit.Parent:FindFirstChildWhichIsA("Humanoid") and whathit.Parent:FindFirstChildWhichIsA("Humanoid") ~= owner.Character.Humanoid then
  116. whathit.Parent:FindFirstChildWhichIsA("Humanoid").BreakJointsOnDeath = false
  117. whathit.Parent:FindFirstChildWhichIsA("Humanoid").Health = 0
  118. elseif whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid") and whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid") ~= owner.Character.Humanoid then
  119. whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid").BreakJointsOnDeath = false
  120. whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid").Health = 0
  121. end
  122. elseif result2 then
  123. rayhit = true
  124. yeet.Enabled = false
  125. game:GetService("Debris"):AddItem(yeet,2)
  126. local whathit = result2.Instance
  127. local currentRightVector = whathit.CFrame.RightVector
  128. local upVector = result2.Normal
  129. local newFacialVector = currentRightVector:Cross(upVector)
  130. knife.Position = result2.Position
  131. local x, y, z = CFrame.new(part.Position,knife.Position):ToEulerAnglesXYZ()
  132. knife.CFrame = CFrame.fromMatrix(knife.Position, currentRightVector, upVector, newFacialVector)
  133. * CFrame.Angles(0,y,0) * CFrame.Angles(math.rad(180),0,0)
  134. weld = Instance.new("WeldConstraint",knife)
  135. weld.Part0 = knife
  136. weld.Part1 = whathit
  137. if whathit.Parent:FindFirstChildWhichIsA("Humanoid") and whathit.Parent:FindFirstChildWhichIsA("Humanoid") ~= owner.Character.Humanoid then
  138. whathit.Parent:FindFirstChildWhichIsA("Humanoid").BreakJointsOnDeath = false
  139. whathit.Parent:FindFirstChildWhichIsA("Humanoid").Health = 0
  140. elseif whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid") and whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid") ~= owner.Character.Humanoid then
  141. whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid").BreakJointsOnDeath = false
  142. whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid").Health = 0
  143. end
  144. elseif result3 then
  145. rayhit = true
  146. yeet.Enabled = false
  147. game:GetService("Debris"):AddItem(yeet,2)
  148. local whathit = result3.Instance
  149. local currentRightVector = whathit.CFrame.RightVector
  150. local upVector = result3.Normal
  151. local newFacialVector = currentRightVector:Cross(upVector)
  152. knife.Position = result3.Position
  153. local x, y, z = CFrame.new(part.Position,knife.Position):ToEulerAnglesXYZ()
  154. knife.CFrame = CFrame.fromMatrix(knife.Position, currentRightVector, upVector, newFacialVector)
  155. * CFrame.Angles(0,y,0) * CFrame.Angles(math.rad(180),0,0)
  156. weld = Instance.new("WeldConstraint",knife)
  157. weld.Part0 = knife
  158. weld.Part1 = whathit
  159. if whathit.Parent:FindFirstChildWhichIsA("Humanoid") and whathit.Parent:FindFirstChildWhichIsA("Humanoid") ~= owner.Character.Humanoid then
  160. whathit.Parent:FindFirstChildWhichIsA("Humanoid").BreakJointsOnDeath = false
  161. whathit.Parent:FindFirstChildWhichIsA("Humanoid").Health = 0
  162. elseif whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid") and whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid") ~= owner.Character.Humanoid then
  163. whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid").BreakJointsOnDeath = false
  164. whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid").Health = 0
  165. end
  166. elseif result4 then
  167. rayhit = true
  168. yeet.Enabled = false
  169. game:GetService("Debris"):AddItem(yeet,2)
  170. local whathit = result4.Instance
  171. local currentRightVector = whathit.CFrame.RightVector
  172. local upVector = result4.Normal
  173. local newFacialVector = currentRightVector:Cross(upVector)
  174. knife.Position = result4.Position
  175. local x, y, z = CFrame.new(part.Position,knife.Position):ToEulerAnglesXYZ()
  176. knife.CFrame = CFrame.fromMatrix(knife.Position, currentRightVector, upVector, newFacialVector)
  177. * CFrame.Angles(0,y,0) * CFrame.Angles(math.rad(180),0,0)
  178. weld = Instance.new("WeldConstraint",knife)
  179. weld.Part0 = knife
  180. weld.Part1 = whathit
  181. if whathit.Parent:FindFirstChildWhichIsA("Humanoid") and whathit.Parent:FindFirstChildWhichIsA("Humanoid") ~= owner.Character.Humanoid then
  182. whathit.Parent:FindFirstChildWhichIsA("Humanoid").BreakJointsOnDeath = false
  183. whathit.Parent:FindFirstChildWhichIsA("Humanoid").Health = 0
  184. elseif whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid") and whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid") ~= owner.Character.Humanoid then
  185. whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid").BreakJointsOnDeath = false
  186. whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid").Health = 0
  187. end
  188. elseif result5 then
  189. rayhit = true
  190. yeet.Enabled = false
  191. game:GetService("Debris"):AddItem(yeet,2)
  192. local res = result5
  193. local whathit = res.Instance
  194. local currentRightVector = whathit.CFrame.RightVector
  195. local upVector = res.Normal
  196. local newFacialVector = currentRightVector:Cross(upVector)
  197. knife.Position = res.Position
  198. local x, y, z = CFrame.new(part.Position,knife.Position):ToEulerAnglesXYZ()
  199. knife.CFrame = CFrame.fromMatrix(knife.Position, currentRightVector, upVector, newFacialVector)
  200. * CFrame.Angles(0,y,0) * CFrame.Angles(math.rad(180),0,0)
  201. weld = Instance.new("WeldConstraint",knife)
  202. weld.Part0 = knife
  203. weld.Part1 = whathit
  204. if whathit.Parent:FindFirstChildWhichIsA("Humanoid") and whathit.Parent:FindFirstChildWhichIsA("Humanoid") ~= owner.Character.Humanoid then
  205. whathit.Parent:FindFirstChildWhichIsA("Humanoid").BreakJointsOnDeath = false
  206. whathit.Parent:FindFirstChildWhichIsA("Humanoid").Health = 0
  207. elseif whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid") and whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid") ~= owner.Character.Humanoid then
  208. whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid").BreakJointsOnDeath = false
  209. whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid").Health = 0
  210. end
  211. elseif result6 then
  212. rayhit = true
  213. yeet.Enabled = false
  214. game:GetService("Debris"):AddItem(yeet,2)
  215. local res = result6
  216. local whathit = res.Instance
  217. local currentRightVector = whathit.CFrame.RightVector
  218. local upVector = res.Normal
  219. local newFacialVector = currentRightVector:Cross(upVector)
  220. knife.Position = res.Position
  221. local x, y, z = CFrame.new(part.Position,knife.Position):ToEulerAnglesXYZ()
  222. knife.CFrame = CFrame.fromMatrix(knife.Position, currentRightVector, upVector, newFacialVector)
  223. * CFrame.Angles(0,y,0) * CFrame.Angles(math.rad(180),0,0)
  224. weld = Instance.new("WeldConstraint",knife)
  225. weld.Part0 = knife
  226. weld.Part1 = whathit
  227. if whathit.Parent:FindFirstChildWhichIsA("Humanoid") and whathit.Parent:FindFirstChildWhichIsA("Humanoid") ~= owner.Character.Humanoid then
  228. whathit.Parent:FindFirstChildWhichIsA("Humanoid").BreakJointsOnDeath = false
  229. whathit.Parent:FindFirstChildWhichIsA("Humanoid").Health = 0
  230. elseif whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid") and whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid") ~= owner.Character.Humanoid then
  231. whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid").BreakJointsOnDeath = false
  232. whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid").Health = 0
  233. end
  234. elseif result7 then
  235. rayhit = true
  236. yeet.Enabled = false
  237. game:GetService("Debris"):AddItem(yeet,2)
  238. local res = result7
  239. local whathit = res.Instance
  240. local currentRightVector = whathit.CFrame.RightVector
  241. local upVector = res.Normal
  242. local newFacialVector = currentRightVector:Cross(upVector)
  243. knife.Position = res.Position
  244. local x, y, z = CFrame.new(part.Position,knife.Position):ToEulerAnglesXYZ()
  245. knife.CFrame = CFrame.fromMatrix(knife.Position, currentRightVector, upVector, newFacialVector)
  246. * CFrame.Angles(0,y,0) * CFrame.Angles(math.rad(180),0,0)
  247. weld = Instance.new("WeldConstraint",knife)
  248. weld.Part0 = knife
  249. weld.Part1 = whathit
  250. if whathit.Parent:FindFirstChildWhichIsA("Humanoid") and whathit.Parent:FindFirstChildWhichIsA("Humanoid") ~= owner.Character.Humanoid then
  251. whathit.Parent:FindFirstChildWhichIsA("Humanoid").BreakJointsOnDeath = false
  252. whathit.Parent:FindFirstChildWhichIsA("Humanoid").Health = 0
  253. elseif whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid") and whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid") ~= owner.Character.Humanoid then
  254. whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid").BreakJointsOnDeath = false
  255. whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid").Health = 0
  256. end
  257. elseif result8 then
  258. rayhit = true
  259. yeet.Enabled = false
  260. game:GetService("Debris"):AddItem(yeet,2)
  261. local res = result8
  262. local whathit = res.Instance
  263. local currentRightVector = whathit.CFrame.RightVector
  264. local upVector = res.Normal
  265. local newFacialVector = currentRightVector:Cross(upVector)
  266. knife.Position = res.Position
  267. local x, y, z = CFrame.new(part.Position,knife.Position):ToEulerAnglesXYZ()
  268. knife.CFrame = CFrame.fromMatrix(knife.Position, currentRightVector, upVector, newFacialVector)
  269. * CFrame.Angles(0,y,0) * CFrame.Angles(math.rad(180),0,0)
  270. weld = Instance.new("WeldConstraint",knife)
  271. weld.Part0 = knife
  272. weld.Part1 = whathit
  273. if whathit.Parent:FindFirstChildWhichIsA("Humanoid") and whathit.Parent:FindFirstChildWhichIsA("Humanoid") ~= owner.Character.Humanoid then
  274. whathit.Parent:FindFirstChildWhichIsA("Humanoid").BreakJointsOnDeath = false
  275. whathit.Parent:FindFirstChildWhichIsA("Humanoid").Health = 0
  276. elseif whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid") and whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid") ~= owner.Character.Humanoid then
  277. whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid").BreakJointsOnDeath = false
  278. whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid").Health = 0
  279. end
  280. end
  281. end
  282. end)
  283. end
  284. end)
  285. local object = Instance.new("ObjectValue", owner.PlayerGui)
  286. object.Value = e
  287. object.Name = "Remote"
  288. local object2 = Instance.new("ObjectValue", owner.PlayerGui)
  289. object2.Value = part
  290. object2.Name = "handle"
  291. NLS([[
  292. local e = owner.PlayerGui.Remote.Value
  293. local handle = owner.PlayerGui.handle.Value
  294. mouse = owner:GetMouse()
  295. mouse.Button1Up:Connect(function()
  296. local t = 0.6
  297. local g = Vector3.new(0, -game.Workspace.Gravity, 0)
  298. if (mouse.Hit.p - handle.Position).magnitude < 150 then
  299. local v0 = (mouse.Hit.p - handle.CFrame * Vector3.new(0,0,0) - 0.25*g*t*t)/t -- thank ego moose for calculations
  300. e:FireServer(v0)
  301. else
  302. local v0 = (Vector3.new(150,150,150) * (mouse.Hit.p - handle.Position).Unit - 0.5*g*t*t)/t -- thank ego moose for calculations
  303. e:FireServer(v0)
  304. end
  305. end)
  306. ]],owner.PlayerGui)
Add Comment
Please, Sign In to add comment