Advertisement
TheUnknownDiscord

bric

Feb 28th, 2022 (edited)
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.70 KB | None | 0 0
  1. toolout = false
  2. hitsomething = Instance.new("Sound", script)
  3. hitsomething.PlayOnRemove = true
  4. hitsomething.SoundId = "rbxassetid://4412016490"
  5. hitsomething.Volume = 2
  6. tool = Instance.new("Tool",owner.Backpack)
  7. Instance.new("RemoteEvent",tool)
  8. tool.Equipped:Connect(function() toolout = true end)
  9. tool.Unequipped:Connect(function() toolout = false end)
  10. part = Instance.new("Part",tool)
  11. part.Name = "Handle"
  12. part.Color = Color3.fromRGB(240, 40, 5)
  13. part.Material = "Slate"
  14. part.Size = Vector3.new(0.85,0.35,0.5)
  15. part2 = Instance.new("Part",part)
  16. part2.Size = Vector3.new(3,1,2)
  17. part2.CanCollide = false
  18. part2.Transparency = 1
  19. part2.Name = "the"
  20. local wel = Instance.new("Weld",part)
  21. wel.Part0 = part2
  22. wel.Part1 = part
  23. e = Instance.new("RemoteEvent",owner.Character)
  24. e.Name = "The"
  25. t = 0.25
  26. function bones(limb)
  27. coroutine.wrap(function()
  28. local bone = Instance.new("Part", limb)
  29. bone:BreakJoints()
  30. bone.Massless = true
  31. pcall(function()
  32. bone:SetNetworkOwner(limb.Parent.Parent)
  33. end)
  34. local bonew = Instance.new("Weld", bone)
  35. bonew.Part0 = limb
  36. bonew.Part1 = bone
  37. bonew.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-limb.Size.y/4.5,0,0)
  38. if limb.Parent:FindFirstChildOfClass("Humanoid").RigType == Enum.HumanoidRigType.R6 then
  39. bone.Size = Vector3.new(limb.Size.y/1.8,limb.Size.z,limb.Size.x)
  40. else
  41. bone.Size = Vector3.new(limb.Size.y/3,limb.Size.z,limb.Size.x)
  42. end
  43. bone.Transparency = 1
  44. bone.Shape = "Cylinder"
  45. game:GetService("Debris"):AddItem(bone,1)
  46. end)()
  47. end
  48. function kill(Character)
  49. coroutine.wrap(function()
  50. pcall(function()
  51. local nek = Character.Humanoid.RequiresNeck
  52. Character.Humanoid.RequiresNeck = false
  53. Character.Humanoid.PlatformStand = true
  54. if not Character:findFirstChild("UpperTorso") then
  55. for i,v in pairs(Character:GetDescendants()) do
  56. if v:IsA("Motor6D") then
  57. coroutine.wrap(function()
  58. v.Enabled = false
  59. wait(1)
  60. v.Enabled = true
  61. end)()
  62. end
  63. end
  64. coroutine.wrap(function()
  65. local Socket = Instance.new("BallSocketConstraint")
  66. local a1 = Instance.new("Attachment")
  67. local a2 = Instance.new("Attachment")
  68. a1.Parent = Character["Left Arm"]
  69. a2.Parent = Character.Torso
  70. Socket.Parent = Character["Left Arm"]
  71. Socket.Attachment0 = a1
  72. Socket.Attachment1 = a2
  73. a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(0,0.5,0)
  74. a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(-1.5,0.5,0)
  75. Socket.LimitsEnabled = true
  76. game:GetService("Debris"):AddItem(Socket,1)
  77. local Socket = Instance.new("BallSocketConstraint")
  78. local a1 = Instance.new("Attachment")
  79. local a2 = Instance.new("Attachment")
  80. a1.Parent = Character["Left Leg"]
  81. a2.Parent = Character.Torso
  82. Socket.Parent = Character["Left Leg"]
  83. Socket.Attachment0 = a1
  84. Socket.Attachment1 = a2
  85. a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(0,0.5,0)
  86. a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(-0.5,-1.5,0)
  87. Socket.LimitsEnabled = true
  88. game:GetService("Debris"):AddItem(Socket,1)
  89. local Socket = Instance.new("BallSocketConstraint")
  90. local a1 = Instance.new("Attachment")
  91. local a2 = Instance.new("Attachment")
  92. a1.Parent = Character["Right Leg"]
  93. a2.Parent = Character.Torso
  94. Socket.Parent = Character["Right Leg"]
  95. Socket.Attachment0 = a1
  96. Socket.Attachment1 = a2
  97. Socket.LimitsEnabled = true
  98. game:GetService("Debris"):AddItem(Socket,1)
  99. a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(0,0.5,0)
  100. a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(0.5,-1.5,0)
  101. local Socket = Instance.new("BallSocketConstraint")
  102. local a1 = Instance.new("Attachment")
  103. local a2 = Instance.new("Attachment")
  104. a1.Parent = Character.HumanoidRootPart
  105. a2.Parent = Character.Torso
  106. Socket.Parent = Character.HumanoidRootPart
  107. Socket.Attachment0 = a1
  108. Socket.Attachment1 = a2
  109. a1.WorldCFrame = a1.Parent.CFrame
  110. a2.WorldCFrame = a1.Parent.CFrame
  111. Socket.LimitsEnabled = true
  112. game:GetService("Debris"):AddItem(Socket,1)
  113. local Socket = Instance.new("BallSocketConstraint")
  114. local a1 = Instance.new("Attachment")
  115. local a2 = Instance.new("Attachment")
  116. a1.Parent = Character.Head
  117. a2.Parent = Character.Torso
  118. Socket.Parent = Character.Head
  119. Socket.Attachment0 = a1
  120. Socket.Attachment1 = a2
  121. a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(0,-0.5,0)
  122. a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(0,1.0625,0)
  123. Socket.TwistLimitsEnabled = true
  124. Socket.LimitsEnabled = true
  125. game:GetService("Debris"):AddItem(Socket,1)
  126. local Socket = Instance.new("BallSocketConstraint")
  127. local a1 = Instance.new("Attachment")
  128. local a2 = Instance.new("Attachment")
  129. a1.Parent = Character["Right Arm"]
  130. a2.Parent = Character.Torso
  131. Socket.Parent = Character["Right Arm"]
  132. Socket.Attachment0 = a1
  133. Socket.Attachment1 = a2
  134. a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(0,0.5,0)
  135. a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(1.5,0.5,0)
  136. Socket.LimitsEnabled = true
  137. game:GetService("Debris"):AddItem(Socket,1)
  138. end)()
  139. coroutine.wrap(function()
  140. local ch = Character
  141. bones(ch["Left Arm"])
  142. bones(ch["Right Arm"])
  143. bones(ch["Left Leg"])
  144. bones(ch["Right Leg"])
  145. bones(ch.Head)
  146. end)()
  147. else
  148. coroutine.wrap(function()
  149. local ch = Character
  150. bones(ch.LeftUpperArm)
  151. bones(ch.LeftLowerArm)
  152. bones(ch.RightUpperArm)
  153. bones(ch.RightLowerArm)
  154. bones(ch.LeftUpperLeg)
  155. bones(ch.LeftLowerLeg)
  156. bones(ch.RightUpperLeg)
  157. bones(ch.RightLowerLeg)
  158. bones(ch.Head)
  159. end)()
  160. for i,v in pairs(Character:GetDescendants()) do
  161. if v:IsA("Motor6D") and v.Parent.Name ~= "HumanoidRootPart" then
  162. local Socket = Instance.new("BallSocketConstraint")
  163. local a1 = Instance.new("Attachment")
  164. local a2 = Instance.new("Attachment")
  165. a1.Parent = v.Part0
  166. a2.Parent = v.Part1
  167. Socket.Parent = v.Parent
  168. Socket.Attachment0 = a1
  169. Socket.Attachment1 = a2
  170. a1.CFrame = v.C0
  171. a2.CFrame = v.C1
  172. Socket.LimitsEnabled = true
  173. Socket.TwistLimitsEnabled = true
  174. game:GetService("Debris"):AddItem(Socket,1)
  175. coroutine.wrap(function()
  176. v.Enabled = false
  177. wait(1)
  178. v.Enabled = true
  179. end)()
  180. end
  181. end
  182. end
  183. coroutine.wrap(function()
  184. wait(1)
  185. Character.Humanoid.PlatformStand = false
  186. wait(0.1)
  187. Character.Humanoid.RequiresNeck = nek
  188. end)()
  189. end)
  190. end)()
  191. end
  192. e.OnServerEvent:Connect(function(_,hit)
  193. if toolout then
  194. local g = Vector3.new(0, -game.Workspace.Gravity, 0);
  195. local x0 = owner.Character.HumanoidRootPart.CFrame * Vector3.new(0, 2, -4)
  196. local v0 = (hit - x0 - 0.5*g*t*t)/t;
  197. local p = part:Clone()
  198. p.Parent = script;
  199. p.CanCollide = true;
  200. p.CFrame = CFrame.new(x0) * CFrame.Angles(CFrame.new(part.Position,part.Position + v0):ToEulerAnglesXYZ())
  201. p.Velocity = v0
  202. task.wait()
  203. local db = false
  204. p.the.Touched:Connect(function(hitp)
  205. local hum = hitp.Parent:FindFirstChildWhichIsA("Humanoid") or hitp.Parent.Parent:FindFirstChildWhichIsA("Humanoid")
  206. if hum then
  207. if not db then
  208. db = true
  209. hum.Health -= 5
  210. if hitp.Parent:FindFirstChildWhichIsA("Humanoid") then
  211. local bf2 = Instance.new("BodyVelocity",hitp.Parent:FindFirstChildWhichIsA("Part"))
  212. bf2.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  213. bf2.Velocity = CFrame.new(part.Position,hitp.Position).lookVector * 40
  214. game:GetService("Debris"):AddItem(bf2,0.1)
  215. local bon = Instance.new("Part",script)
  216. bon.CanCollide = false
  217. bon.Transparency = 1
  218. bon.Anchored = true
  219. bon.CFrame = hitp.Parent:FindFirstChildWhichIsA("Part").CFrame
  220. local billboard = Instance.new("BillboardGui", bon)
  221. billboard.Size = UDim2.new(2,0,2,0)
  222. local frame = Instance.new("ImageLabel", billboard)
  223. local tweenService = game:GetService("TweenService")
  224. local timeToFade = 0.125
  225. local object = bon
  226. local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Linear)
  227. local goal = {}
  228. goal.CFrame = bon.CFrame * CFrame.new(0,3,0)
  229. local tween = tweenService:Create(object, tweenInfo, goal)
  230. tween:Play()
  231. frame.BackgroundTransparency = 1
  232. frame.ImageTransparency = 1
  233. frame.Image = "http://www.roblox.com/asset/?id=4866749889"
  234. frame.Size = UDim2.new(1,0,1,0)
  235. local tweenService = game:GetService("TweenService")
  236. local timeToFade = 0.125
  237. local object = frame
  238. local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Linear)
  239. local goal = {}
  240. goal.ImageTransparency = 0
  241. local tween = tweenService:Create(object, tweenInfo, goal)
  242. tween:Play()
  243. game:GetService("Debris"):AddItem(bon,2)
  244. else
  245. local bf2 = Instance.new("BodyVelocity",hitp.Parent.Parent:FindFirstChildWhichIsA("Part"))
  246. bf2.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  247. bf2.Velocity = CFrame.new(part.Position,hitp.Position).lookVector * 40
  248. game:GetService("Debris"):AddItem(bf2,0.1)
  249. local bon = Instance.new("Part",script)
  250. bon.CanCollide = false
  251. bon.Transparency = 1
  252. bon.Anchored = true
  253. bon.CFrame = hitp.Parent.Parent:FindFirstChildWhichIsA("Part").CFrame
  254. local billboard = Instance.new("BillboardGui", bon)
  255. billboard.Size = UDim2.new(2,0,2,0)
  256. local frame = Instance.new("ImageLabel", billboard)
  257. local tweenService = game:GetService("TweenService")
  258. local timeToFade = 0.125
  259. local object = bon
  260. local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Linear)
  261. local goal = {}
  262. goal.CFrame = bon.CFrame * CFrame.new(0,3,0)
  263. local tween = tweenService:Create(object, tweenInfo, goal)
  264. tween:Play()
  265. frame.BackgroundTransparency = 1
  266. frame.ImageTransparency = 1
  267. frame.Image = "http://www.roblox.com/asset/?id=4866749889"
  268. frame.Size = UDim2.new(1,0,1,0)
  269. local tweenService = game:GetService("TweenService")
  270. local timeToFade = 0.125
  271. local object = frame
  272. local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Linear)
  273. local goal = {}
  274. goal.ImageTransparency = 0
  275. local tween = tweenService:Create(object, tweenInfo, goal)
  276. tween:Play()
  277. game:GetService("Debris"):AddItem(bon,2)
  278. end
  279. hitsomething.Parent = hitp
  280. hitsomething.Parent = nil
  281. coroutine.wrap(function()
  282. if hitp.Parent:FindFirstChildWhichIsA("Humanoid") then
  283. kill(hitp.Parent)
  284. par = hitp.Parent
  285. else
  286. kill(hitp.Parent.Parent)
  287. par = hitp.Parent.Parent
  288. end
  289. end)()
  290. end
  291. end
  292. end)
  293. game:GetService("Debris"):AddItem(p,10)
  294. end
  295. end)
  296. NLS([[
  297. e = owner.Character:WaitForChild("The")
  298. mouse = owner:GetMouse()
  299. owner:GetMouse().Button1Down:Connect(function()
  300. e:FireServer(mouse.Hit.p)
  301. end)
  302. ]],owner.PlayerGui)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement