Advertisement
DylanD2003

Untitled

Sep 15th, 2017
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.03 KB | None | 0 0
  1. script.Parent = workspace.CurrentCamera
  2. local plr = game:GetService("Players").LocalPlayer
  3.  
  4. local tool = Instance.new("Tool",plr:WaitForChild("Backpack"))
  5. tool.Grip = CFrame.new(0,-1,0) * CFrame.Angles(math.rad(0),math.rad(180),math.rad(0))
  6. tool.Name = "Fucking Axe"
  7.  
  8. local part = Instance.new("Part",tool)
  9. part.Name = "Handle"
  10. part.Size = Vector3.new(4,6,4)
  11. part.TopSurface = "Smooth"
  12. part.BottomSurface = "Smooth"
  13. part.CanCollide = false
  14. part:BreakJoints()
  15.  
  16. local mesh = Instance.new("SpecialMesh",part)
  17. mesh.MeshId = "rbxassetid://433396052" --mesh.MeshId = "rbxassetid://132920499"
  18. mesh.TextureId = "rbxassetid://433396064" --"http://www.roblox.com/asset/?id=134479421"
  19. mesh.Scale = Vector3.new(.5,.5,.5)
  20.  
  21. local sound = Instance.new("Sound",part)
  22. sound.SoundId = "rbxassetid://511340819"
  23. sound.Volume = 3
  24.  
  25. local sound2 = Instance.new("Sound",part)
  26. sound2.SoundId = "rbxassetid://280667448"
  27. sound2.Volume = 5
  28.  
  29. local sound3 = Instance.new("Sound",part)
  30. sound3.SoundId = "rbxassetid://243501843"
  31. sound3.Volume = 10
  32.  
  33. local sound4 = Instance.new("Sound",part)
  34. sound4.SoundId = "rbxassetid://258057783"
  35. sound4.Volume = 10
  36.  
  37. local sound5 = Instance.new("Sound",part)
  38. sound5.SoundId = "rbxassetid://535528169"
  39. sound5.Volume = 1
  40. sound5.TimePosition = 1
  41.  
  42. local sound6 = Instance.new("Sound",part)
  43. sound6.SoundId = "rbxassetid://609854827"
  44. sound6.Volume = 10
  45. sound6.TimePosition = 4.5
  46.  
  47. function firstHum(target)
  48. for i,v in pairs(target:GetChildren()) do
  49. if v:IsA("Humanoid") then
  50. return v
  51. end
  52. end
  53. return nil
  54. end
  55.  
  56. local slap = false
  57. local cd = false
  58.  
  59. plr:GetMouse().Button1Down:connect(function()
  60. if tool.Parent == plr.Character then
  61. if slap == false then
  62. slap = true
  63. sound2:Play()
  64. local str = Instance.new("StringValue")
  65. str.Name = "toolanim"
  66. str.Value = "Slash"
  67. str.Parent = tool
  68. wait(1)
  69. slap = false
  70. end
  71. end
  72. end)
  73.  
  74. part.Touched:connect(function(hit)
  75. if slap == true then
  76. if cd == false then
  77. if not hit:IsDescendantOf(plr.Character) then
  78. if hit.Parent:IsA("Model") then
  79. local fhum = firstHum(hit.Parent)
  80. if fhum then
  81. cd = true
  82. fhum.PlatformStand = true
  83. sound:Play()
  84. local con1
  85. con1 = game:GetService("RunService").Heartbeat:connect(function()
  86. fhum.PlatformStand = true
  87. end)
  88. wait(0.1)
  89. local vel = Instance.new("BodyVelocity",hit)
  90. vel.Velocity = ((hit.Position - plr.Character:WaitForChild("HumanoidRootPart").Position).unit + Vector3.new(0,0.5,0))*50
  91. vel.MaxForce = Vector3.new(10000000,10000000,10000000)
  92. wait(1)
  93. cd = false
  94. vel:Destroy()
  95. local vel2 = Instance.new("BodyVelocity",hit)
  96. vel2.Velocity = Vector3.new(0,12.5,0)
  97. vel2.MaxForce = Vector3.new(10000000,10000000,10000000)
  98. local p2 = Instance.new("Part",hit)
  99. p2.Anchored = true
  100. p2.Transparency = 0.6
  101. p2.CanCollide = false
  102. p2.Size = Vector3.new(0.2,0.2,0.2)
  103. p2.CFrame = CFrame.new(hit.CFrame.p) * CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
  104. p2.BrickColor = BrickColor.new("New Yeller")
  105. p2.Material = "Neon"
  106. local m2 = Instance.new("CylinderMesh",p2)
  107. m2.Scale = Vector3.new(60,10000,60)
  108. local scln = sound3:Clone()
  109. scln.Parent = hit
  110. scln:Play()
  111. local con2
  112. con2 = game:GetService("RunService").Heartbeat:connect(function()
  113. p2.CFrame = CFrame.new(hit.CFrame.p) * CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
  114. end)
  115. wait(7)
  116. vel2.Velocity = Vector3.new(0,0,0)
  117. wait(0.5)
  118. scln:Stop()
  119. local scln3 = sound5:Clone()
  120. scln3.Parent = hit
  121. scln3:Play()
  122. wait(1)
  123. local bav = Instance.new("BodyAngularVelocity",hit)
  124. bav.AngularVelocity = Vector3.new(math.random(0,360),math.random(0,360),math.random(0,360))
  125. vel2.Velocity = Vector3.new(0,-250,0)
  126. p2.BrickColor = BrickColor.new("Really red")
  127. local scln6 = sound6:Clone()
  128. scln6.Parent = hit
  129. scln6:Play()
  130. local continue = false
  131. local htc
  132. htc = hit.Touched:connect(function(hitp)
  133. if not hitp:IsDescendantOf(hit.Parent) then
  134. continue = true
  135. scln6:Stop()
  136. vel2:Destroy()
  137. con2:Disconnect()
  138. con1:Disconnect()
  139. htc:Disconnect()
  140. p2:Destroy()
  141. end
  142. end)
  143. repeat wait() until continue == true
  144. local ctab = {}
  145. for i=1,4 do
  146. local p = Instance.new("Part",hit)
  147. p.Size = Vector3.new(30,30,30)
  148. p.Anchored = true
  149. p.CanCollide = false
  150. p.TopSurface = "Smooth"
  151. p.BottomSurface = "Smooth"
  152. p.Color = Color3.fromRGB(255,math.random(0,255),0)
  153. p.CFrame = hit.CFrame
  154. local con
  155. con = game:GetService("RunService").Heartbeat:connect(function()
  156. p.CFrame = p.CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  157. p.Transparency = p.Transparency + 0.01
  158. if p.Transparency >= 1 then
  159. con:Disconnect()
  160. end
  161. end)
  162. table.insert(ctab,con)
  163. end
  164. Instance.new("Explosion",workspace).Position = hit.Position
  165. local scln2 = sound4:Clone()
  166. scln2.Parent = hit
  167. scln2:Play()
  168. vel2:Destroy()
  169. hit.Parent:BreakJoints()
  170. repeat wait() until not hit:IsDescendantOf(workspace)
  171. con2:Disconnect()
  172. end
  173. end
  174. end
  175. end
  176. end
  177. end)
  178. --[[
  179. local vel = Instance.new("BodyVelocity", game.Players.LocalPlayer.Character.Torso)
  180. vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * -5
  181. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  182. --]]
  183. --By Rufus14 (FINALLY I KNOW HOW TO MAKE A RAGDOLL :D)
  184. --die plz
  185. mouse = game.Players.LocalPlayer:GetMouse()
  186. function ragdoll()
  187. game.Players.LocalPlayer.Character.Archivable = true
  188. clone = game.Players.LocalPlayer.Character:Clone()
  189. clone.Parent = workspace
  190. for i,v in pairs(clone:GetChildren()) do
  191. if v.ClassName == "Script" or v.ClassName == "LocalScript" then
  192. v:destroy()
  193. end
  194. for i,p in pairs(v:GetChildren()) do
  195. if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
  196. p:destroy()
  197. end
  198. end
  199. end
  200. for i,t in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  201. if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
  202. t:destroy()
  203. end
  204. end
  205. vel = Instance.new("BodyVelocity", clone.Torso)
  206. vel.Velocity = clone.Torso.CFrame.lookVector * -5
  207. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  208. clone.Head.face.Texture = "http://www.roblox.com/asset/?id=141795257"
  209. using = false
  210. hit = Instance.new("Sound", clone.Torso)
  211. hit.SoundId = "rbxassetid://546029423"
  212. hit.Volume = 5
  213. hit1 = Instance.new("Sound", clone.Torso)
  214. hit1.SoundId = "rbxassetid://138087186"
  215. hit1.Volume = 5
  216. hit2 = Instance.new("Sound", clone.Torso)
  217. hit2.SoundId = "rbxassetid://131237241"
  218. hit2.Volume = 5
  219. hit3 = Instance.new("Sound", clone.Torso)
  220. hit3.SoundId = "rbxassetid://278062209"
  221. hit3.Volume = 5
  222. hit3.TimePosition = 0.33
  223. ded = Instance.new("Sound", clone.Torso)
  224. ded.SoundId = "rbxassetid://906084456"
  225. ded.Volume = 10
  226. ded.TimePosition = 5
  227. local leftarm = clone:findFirstChild("Left Arm")
  228. local rightrm = clone:findFirstChild("Right Arm")
  229. local leftleg = clone:findFirstChild("Left Leg")
  230. local rightleg = clone:findFirstChild("Right Leg")
  231. local head = clone:findFirstChild("Head")
  232. local welding = Instance.new("Weld", clone.Torso)
  233. welding.Part0 = clone.Torso
  234. welding.Part1 = head
  235. welding.C0 = welding.C0 * CFrame.new(0,1.5,0)
  236. for i, g in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  237. if g.ClassName == "Part" then
  238. g:destroy()
  239. end
  240. end
  241. for i, h in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  242. if h.ClassName == "Accesory" then
  243. h:destroy()
  244. end
  245. end
  246. game.Workspace.CurrentCamera.CameraSubject = head
  247. if leftleg ~= nil then
  248. local glue = Instance.new("Glue", clone.Torso)
  249. glue.Part0 = clone.Torso
  250. glue.Part1 = leftleg
  251. glue.Name = "Left leg"
  252. local collider = Instance.new("Part", leftleg)
  253. collider.Position = Vector3.new(0,999,0)
  254. collider.Size = Vector3.new(1.7, 1, 1)
  255. collider.Shape = "Cylinder"
  256. local weld = Instance.new("Weld", collider)
  257. weld.Part0 = leftleg
  258. weld.Part1 = collider
  259. weld.C0 = CFrame.Angles(0, 0, 80)
  260. collider.TopSurface = "Smooth"
  261. collider.BottomSurface = "Smooth"
  262. collider.formFactor = "Symmetric"
  263. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  264. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  265. collider.Transparency = 1
  266. end
  267. ------------
  268. if rightleg ~= nil then
  269. local glue1 = Instance.new("Glue", clone.Torso)
  270. glue1.Part0 = clone.Torso
  271. glue1.Part1 = rightleg
  272. glue1.Name = "Right leg"
  273. local collider1 = Instance.new("Part", rightleg)
  274. collider1.Position = Vector3.new(0,999,0)
  275. collider1.Size = Vector3.new(1.7, 1, 1)
  276. collider1.Shape = "Cylinder"
  277. local weld1 = Instance.new("Weld", collider1)
  278. weld1.Part0 = rightleg
  279. weld1.Part1 = collider1
  280. weld1.C0 = CFrame.Angles(0, 0, 80)
  281. collider1.TopSurface = "Smooth"
  282. collider1.BottomSurface = "Smooth"
  283. collider1.formFactor = "Symmetric"
  284. glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  285. glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  286. collider1.Transparency = 1
  287. end
  288. ------------
  289. if rightrm ~= nil then
  290. local glue11 = Instance.new("Glue", clone.Torso)
  291. glue11.Part0 = clone.Torso
  292. glue11.Part1 = rightrm
  293. glue11.Name = "Right shoulder"
  294. local collider11 = Instance.new("Part", rightrm)
  295. collider11.Position = Vector3.new(0,9999,0)
  296. collider11.Size = Vector3.new(1.8,1,1)
  297. collider11.Shape = "Cylinder"
  298. local weld11 = Instance.new("Weld", collider11)
  299. weld11.Part0 = rightrm
  300. weld11.Part1 = collider11
  301. weld11.C0 = CFrame.Angles(0, 0, 80)
  302. collider11.TopSurface = "Smooth"
  303. collider11.BottomSurface = "Smooth"
  304. collider11.formFactor = "Symmetric"
  305. glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  306. glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  307. collider11.Transparency = 1
  308. end
  309. ------------
  310. if leftarm ~= nil then
  311. local glue111 = Instance.new("Glue", clone.Torso)
  312. glue111.Part0 = clone.Torso
  313. glue111.Part1 = leftarm
  314. glue111.Name = "Left shoulder"
  315. local collider111 = Instance.new("Part", leftarm)
  316. collider111.Position = Vector3.new(0,9999,0)
  317. collider111.Size = Vector3.new(1.8,1,1)
  318. collider111.Shape = "Cylinder"
  319. local weld111 = Instance.new("Weld", collider111)
  320. weld111.Part0 = leftarm
  321. weld111.Part1 = collider111
  322. weld111.C0 = CFrame.Angles(0, 0, 80)
  323. collider111.TopSurface = "Smooth"
  324. collider111.BottomSurface = "Smooth"
  325. collider111.formFactor = "Symmetric"
  326. glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  327. glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  328. collider111.Transparency = 1
  329. ----------------
  330. sensoring = Instance.new("Part", clone.Torso)
  331. sensoring.Size = Vector3.new(1.2,1.1,0.8)
  332. sensoring.CanCollide = false
  333. sensoring.Position = clone.Torso.Position
  334. local welder = Instance.new("Weld", sensoring)
  335. welder.Part0 = clone.Torso
  336. welder.Part1 = sensoring
  337. welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
  338. sensoring.Transparency = 1
  339. -----------------
  340. sensoring1 = Instance.new("Part", clone.Torso)
  341. sensoring1.Size = Vector3.new(1.2,1.1,0.8)
  342. sensoring1.CanCollide = false
  343. sensoring1.Position = clone.Torso.Position
  344. local welder1 = Instance.new("Weld", sensoring)
  345. welder1.Part0 = clone.Torso
  346. welder1.Part1 = sensoring1
  347. welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
  348. sensoring1.Transparency = 1
  349. end
  350. clone.Name = game.Players.LocalPlayer.Character.Name.." (Got fucked in the ass)"
  351. ded:Play()
  352. vel:destroy()
  353. wait(0.5)
  354. local function touch()
  355. if not using then
  356. using = true
  357. local Math = math.random(1,4)
  358. if Math == 1 then
  359. hit:Play()
  360. end
  361. if Math == 2 then
  362. hit1:Play()
  363. end
  364. if Math == 3 then
  365. hit2:Play()
  366. end
  367. if Math == 4 then
  368. hit3:Play()
  369. end
  370. wait(0.1)
  371. using = false
  372. end
  373. end
  374. sensoring.Touched:connect(touch)
  375. sensoring1.Touched:connect(touch)
  376. wait(4.47)
  377. hit1.Volume = 0
  378. hit2.Volume = 0
  379. hit3.Volume = 0
  380. hit.Volume = 0
  381. end
  382.  
  383. game.Players.LocalPlayer.Character.Humanoid.Died:connect(ragdoll)
  384.  
  385. --di ent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement