Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 37.28 KB | None | 0 0
  1. --By Ruffles14
  2. mouse = game.Players.LocalPlayer:GetMouse()
  3. local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  4. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  5. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  6. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  7. rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  8. local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  9. local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  10. lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  11. lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  12. lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  13. local rootjointclone = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
  14. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Remove()
  15. local humanoidrootpart = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  16. humanoidrootpart.Part0 = game.Players.LocalPlayer.Character.HumanoidRootPart
  17. humanoidrootpart.Part1 = game.Players.LocalPlayer.Character.Torso
  18. local heed = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
  19. local headweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  20. headweld.Part0 = game.Players.LocalPlayer.Character.Torso
  21. headweld.Part1 = game.Players.LocalPlayer.Character.Head
  22. headweld.C0 = headweld.C0 * CFrame.new(0,1.5,0)
  23. game.Players.LocalPlayer.Character.Torso.Neck:Remove()
  24. using = false
  25. --Converted with ttyyuu12345's model to script plugin v4
  26. function sandbox(var,func)
  27. local env = getfenv(func)
  28. local newenv = setmetatable({},{
  29. __index = function(self,k)
  30. if k=="script" then
  31. return var
  32. else
  33. return env[k]
  34. end
  35. end,
  36. })
  37. setfenv(func,newenv)
  38. return func
  39. end
  40. cors = {}
  41. mas = Instance.new("Model",game:GetService("Lighting"))
  42. Part0 = Instance.new("Part")
  43. SpecialMesh1 = Instance.new("SpecialMesh")
  44. Part0.Parent = mas
  45. Part0.Rotation = Vector3.new(-17.039999, 72.0800018, -73.7399979)
  46. Part0.Size = Vector3.new(0.48999998, 2.96999931, 1.94999981)
  47. Part0.CFrame = CFrame.new(1.99671245, 4.08856773, -0.616976917, 0.0861581191, 0.29545939, 0.95146209, -0.99592489, 0, 0.090184398, 0.0266458243, -0.955355108, 0.294255406)
  48. Part0.BottomSurface = Enum.SurfaceType.Smooth
  49. Part0.TopSurface = Enum.SurfaceType.Smooth
  50. Part0.Position = Vector3.new(1.99671245, 4.08856773, -0.616976917)
  51. Part0.Orientation = Vector3.new(-5.17000008, 72.8099976, -90)
  52. Part0.CanCollide = false
  53. SpecialMesh1.Parent = Part0
  54. SpecialMesh1.MeshId = "rbxassetid://441572308"
  55. SpecialMesh1.Scale = Vector3.new(0.0209999997, 0.0209999997, 0.0209999997)
  56. SpecialMesh1.TextureId = "rbxassetid://441572332"
  57. SpecialMesh1.MeshType = Enum.MeshType.FileMesh
  58. SpecialMesh1.Scale = Vector3.new(0.0209999997, 0.0209999997, 0.0209999997)
  59. for i,v in pairs(mas:GetChildren()) do
  60. v.Parent = game:GetService("Players").LocalPlayer.Character
  61. pcall(function() v:MakeJoints() end)
  62. end
  63. mas:Destroy()
  64. for i,v in pairs(cors) do
  65. spawn(function()
  66. pcall(v)
  67. end)
  68. end
  69. Part0:BreakJoints()
  70. cananimate = true
  71. canhit = false
  72. local weld = Instance.new("Weld", game.Players.LocalPlayer.Character["Right Arm"])
  73. weld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  74. weld.Part1 = Part0
  75. weld.C0 = CFrame.new(0.0769970417, -1.17027426, -1.17937994, 0, 0, 1, -0.999999881, 0, 0, 0, -1, 0)
  76. for i = 0,1 , 0.03 do
  77. headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 0.962374032, 0, 0.271727562, 0, 1, 0, -0.271727562, 0, 0.962374032),i)
  78. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.955355227, 0, -0.295459419, 0, 1, 0, 0.295459419, 0, 0.955355227),i)
  79. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.53559077, 0.0383267403, 0, 0.997264206, 0.0739177391, 0, -0.0739177391, 0.997264266, 0, 2.98023224e-08, 1.86264515e-09, 0.999999881),i)
  80. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.54305458, 0.047129631, 2.98023224e-08, 0.99592495, -0.0901843905, 0, 0.090184398, 0.995925009, 0, 0, 0, 0.999999881),i)
  81. game:GetService("RunService").RenderStepped:wait()
  82. end
  83. function swing()
  84. if not using then
  85. using = true
  86. cananimate = false
  87. for i = 0,1 , 0.045 do
  88. weld.C0 = weld.C0:lerp(CFrame.new(0.958130836, -0.815908253, -0.0419664383, 0.379335552, 0.92491132, -0.0253674984, -0.913223445, 0.378668189, 0.150445476, 0.148754537, -0.0339030921, 0.988292694),i)
  89. headweld.C0 = headweld.C0:lerp(CFrame.new(-4.65661287e-10, 1.49999952, 0, 0.601507425, -2.32830644e-10, 0.798867226, 3.0559022e-10, 1, 0, -0.798867226, -4.65661287e-10, 0.601507425),i)
  90. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.63088727, -0.00573391188, -0.775853336, 0, 0.999972701, -0.00739025697, 0.775874496, 0.00466241874, 0.630870044),i)
  91. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(0.0363237262, 0.350219727, -1.1563791, 0.495106995, -0.857149601, 0.1419992, 0.110766649, -0.0998312235, -0.988819599, 0.861742377, 0.505300522, 0.0455164276),i)
  92. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.50056481, 0.516354084, -0.499166548, 0.995925009, -0.00520473719, 0.09003409, 0.0901844054, 0.0574772507, -0.994265079, -2.98023224e-08, 0.998333335, 0.057712432),i)
  93. game:GetService("RunService").RenderStepped:wait()
  94. end
  95. canhit = true
  96. for i = 0,1 , 0.08 do
  97. weld.C0 = weld.C0:lerp(CFrame.new(0.968596578, -1.15575922, 0.178524971, 0.0531506836, 0.988890588, -0.13881819, -0.988834679, 0.0327400565, -0.145376131, -0.13921617, 0.144995078, 0.979589343),i)
  98. headweld.C0 = headweld.C0:lerp(CFrame.new(-0.0249017328, 1.48724031, 2.04332173e-06, 0.499998868, 0, -0.866026163, 0, 1, 0, 0.866026163, 0, 0.499998868),i)
  99. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.305942208, 0, -0.952050149, 0, 1, 0, 0.952050149, 0, 0.305942208):inverse(),i)
  100. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.07653618, 0.305679321, -0.818206966, 0.707105398, -0.707108259, 4.32133675e-07, 0.122787982, 0.122786887, -0.984807909, 0.696365714, 0.696363032, 0.173647687),i)
  101. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.74788636, 0.363031864, -0.7663396, 0.70710665, 0.707106948, -2.23517418e-08, -0.0616280138, 0.061627958, -0.99619478, -0.704416275, 0.704416037, 0.0871551335),i)
  102. game:GetService("RunService").RenderStepped:wait()
  103. end
  104. canhit = false
  105. using = false
  106. cananimate = true
  107. end
  108. end
  109. mouse.Button1Down:connect(swing)
  110. function hittie(part)
  111. if canhit then
  112. local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
  113. if humanoid then
  114. canhit = false
  115. using = false
  116. local uptor = humanoid.Parent:findFirstChild("UpperTorso")
  117. if uptor and uptor.Parent.Name ~= game.Players.LocalPlayer.Name then
  118. humanoid.Parent:BreakJoints()
  119. while humanoid.Health >= 0.001 do
  120. game:GetService("RunService").RenderStepped:wait()
  121. end
  122. if humanoid.Parent:findFirstChild("HumanoidRootPart") then
  123. humanoid.Parent.HumanoidRootPart.CanCollide = false
  124. end
  125. local function makeballlimb(attachone, attachtwo, upperang, lowang, twist)
  126. local constraint = Instance.new("BallSocketConstraint", humanoid.Parent)
  127. constraint.Attachment0 = attachone
  128. constraint.Attachment1 = attachtwo
  129. constraint.LimitsEnabled = true
  130. constraint.TwistLimitsEnabled = true
  131. constraint.TwistLowerAngle = lowang
  132. constraint.TwistUpperAngle = upperang
  133. constraint.UpperAngle = twist
  134. end
  135. local function makehingelimb(attachone, attachtwo, upperang, lowang)
  136. local constraint = Instance.new("HingeConstraint", humanoid.Parent)
  137. constraint.Attachment0 = attachone
  138. constraint.Attachment1 = attachtwo
  139. constraint.LimitsEnabled = true
  140. constraint.LowerAngle = lowang
  141. constraint.UpperAngle = upperang
  142. end
  143. for i,v in pairs(humanoid.Parent:GetChildren()) do --scan player
  144. if v.ClassName == "Accessory" then
  145. local findhandle = v:findFirstChild("Handle") --finding handle in accesorry
  146. if findhandle then
  147. local attach = findhandle:findFirstChildOfClass("Attachment")
  148. for q,w in pairs(humanoid.Parent:GetChildren()) do --scan player
  149. if w.Name == "UpperTorso" or w.Name == "Head" then
  150. attach1 = w:findFirstChild(attach.Name) --finding attachment in head/uppertorso
  151. end
  152. end
  153. if attach and attach1 then
  154. local constraint = Instance.new("HingeConstraint", humanoid.Parent) --making fake weld
  155. constraint.Attachment0 = attach
  156. constraint.Attachment1 = attach1
  157. constraint.LimitsEnabled = true
  158. constraint.LowerAngle = 0
  159. constraint.UpperAngle = 0
  160. end
  161. end
  162. end
  163. end
  164. if humanoid.Parent:findFirstChild("Head") and humanoid.Parent:findFirstChild("UpperTorso") then
  165. local attachment = Instance.new("Attachment", humanoid.Parent.Head)
  166. attachment.Position = Vector3.new(0, -0.5, 0)
  167. attachment.Name = "lol"
  168. attachment.Visible = false
  169. humanoid.Parent.UpperTorso.NeckAttachment.Visible = false
  170. humanoid.Parent.UpperTorso.NeckAttachment.Position = humanoid.Parent.UpperTorso.NeckAttachment.Position + Vector3.new(0,0,0)
  171. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  172. ball.Attachment0 = humanoid.Parent.UpperTorso.NeckAttachment
  173. ball.Attachment1 = attachment
  174. ball.LimitsEnabled = true
  175. ball.TwistLimitsEnabled = true
  176. ball.UpperAngle = 40
  177. ball.Restitution = 0.5
  178. ball.TwistUpperAngle = 40
  179. ball.TwistLowerAngle = -40
  180. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.UpperTorso)
  181. collidepartofleftleg.Name = "Bone"
  182. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  183. collidepartofleftleg.Transparency = 1
  184. collidepartofleftleg:BreakJoints()
  185. local weeld = Instance.new("Weld", collidepartofleftleg)
  186. weeld.Part0 = collidepartofleftleg
  187. weeld.Part1 = humanoid.Parent["Head"]
  188. if humanoid.Parent.Head:findFirstChild("Neck") then
  189. humanoid.Parent.Head.Neck:destroy()
  190. end
  191. if humanoid.Parent.Head:findFirstChild("face") then
  192. humanoid.Parent.Head.face.Texture = "http://www.roblox.com/asset/?id=810245460"
  193. end
  194. end
  195. script.Setup:Destroy()
  196.  
  197. game.Players.PlayerAdded:connect(function(pla)
  198. pla.CharacterAdded:connect(function(cha)
  199. cha.Humanoid.Died:connect(function()
  200. local n0b = game.ServerStorage.n0b:Clone()
  201. n0b.Name = cha.Name
  202. for _, obj in pairs(cha:GetChildren()) do
  203. if obj:IsA("Accessory") or obj:IsA("CharacterMesh") or obj:IsA("BodyColors") or obj:IsA("Shirt") or obj:IsA("Pants") then
  204. obj:Clone().Parent = n0b
  205. end
  206. end
  207. n0b.Torso.roblox.Texture = cha.Torso.roblox.Texture
  208. n0b.Head.face.Texture = cha.Head.face.Texture
  209. n0b.Parent = workspace
  210. wait()
  211. pla.Character = n0b
  212. wait()
  213. n0b:SetPrimaryPartCFrame(cha.Head.CFrame)
  214. n0b.CamScript.Disabled = false
  215. end)
  216. end)
  217. end)
  218. if LowerTorso then
  219. if LeftUpperLeg then
  220. makeballlimb(LowerTorso["LeftHipRigAttachment"], LeftUpperLeg["LeftHipRigAttachment"], 50,-50, 90)
  221. end
  222. if RightUpperLeg then
  223. makeballlimb(LowerTorso["RightHipRigAttachment"], RightUpperLeg["RightHipRigAttachment"], 50,-50, 90)
  224. end
  225. if LeftLowerLeg then
  226. makehingelimb(LeftUpperLeg["LeftKneeRigAttachment"], LeftLowerLeg["LeftKneeRigAttachment"], 0,-90)
  227. end
  228. if RightLowerLeg then
  229. makehingelimb(RightUpperLeg["RightKneeRigAttachment"], RightLowerLeg["RightKneeRigAttachment"], 0,-90)
  230. end
  231. if LeftFoot then
  232. makehingelimb(LeftLowerLeg["LeftAnkleRigAttachment"], LeftFoot["LeftAnkleRigAttachment"], 30, -30)
  233. end
  234. if RightFoot then
  235. makehingelimb(RightLowerLeg["RightAnkleRigAttachment"], RightFoot["RightAnkleRigAttachment"], 30, -30)
  236. end
  237. if UpperTorso then
  238. makehingelimb(UpperTorso["WaistRigAttachment"], LowerTorso["WaistRigAttachment"], 30, -30)
  239. end
  240. end
  241. if UpperTorso then
  242. local vel = Instance.new("BodyVelocity", UpperTorso)
  243. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  244. vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 10
  245. game.Debris:AddItem(vel, 0.1)
  246. local hitsound = Instance.new("Sound", UpperTorso)
  247. hitsound.SoundId = "http://www.roblox.com/asset/?id=148862502"
  248. hitsound:Play()
  249. hitsound.Volume = math.random(5,10)
  250. local canhit = true
  251. local hitval = 15
  252. local uptor = humanoid.Parent.UpperTorso
  253. if RightUpperArm then
  254. makeballlimb(RightUpperArm["RightShoulderRigAttachment"], UpperTorso["RightShoulderRigAttachment"], 90,-50, 180)
  255. end
  256. if RightLowerArm then
  257. makehingelimb(RightLowerArm["RightElbowRigAttachment"], RightUpperArm["RightElbowRigAttachment"], 0,-90)
  258. end
  259. if RightHand then
  260. makehingelimb(RightHand["RightWristRigAttachment"], RightLowerArm["RightWristRigAttachment"], 30,30)
  261. end
  262. if LeftUpperArm then
  263. makeballlimb(LeftUpperArm["LeftShoulderRigAttachment"], UpperTorso["LeftShoulderRigAttachment"], 90,-50, 180)
  264. end
  265. if LeftLowerArm then
  266. makehingelimb(LeftLowerArm["LeftElbowRigAttachment"], LeftUpperArm["LeftElbowRigAttachment"], 0,-90)
  267. end
  268. if LeftHand then
  269. makehingelimb(LeftHand["LeftWristRigAttachment"], LeftLowerArm["LeftWristRigAttachment"], 30,30)
  270. end
  271. end
  272. else
  273. humanoid.Parent.Archivable = true
  274. humanoid.PlatformStand = true
  275. local clone = humanoid.Parent:Clone()
  276. clone.Parent = workspace
  277. game.Debris:AddItem(clone, 60)
  278. for i,v in pairs(clone:GetChildren()) do
  279. if v.ClassName == "Script" or v.ClassName == "LocalScript" then
  280. v:Remove()
  281. end
  282. for i,p in pairs(v:GetChildren()) do
  283. if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
  284. p:Remove()
  285. end
  286. end
  287. end
  288. for i,t in pairs(humanoid.Parent:GetChildren()) do
  289. if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
  290. t:Remove()
  291. end
  292. end
  293. local vel = Instance.new("BodyVelocity", clone.Torso)
  294. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  295. vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 15
  296. game.Debris:AddItem(vel, 0.1)
  297. local hitsound = Instance.new("Sound", clone.Torso)
  298. hitsound.SoundId = "http://www.roblox.com/asset/?id=148862502"
  299. hitsound:Play()
  300. hitsound.Volume = math.random(5,10)
  301. vel = Instance.new("BodyVelocity", clone.Torso)
  302. vel.Velocity = clone.Torso.CFrame.lookVector * -5
  303. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  304. using = false
  305. hit = Instance.new("Sound", clone.Torso)
  306. hit.SoundId = "rbxassetid://260430060"
  307. hit.Volume = 0
  308. hit1 = Instance.new("Sound", clone.Torso)
  309. hit1.SoundId = "rbxassetid://138087186"
  310. hit1.Volume = 0
  311. hit2 = Instance.new("Sound", clone.Torso)
  312. hit2.SoundId = "rbxassetid://131237241"
  313. hit2.Volume = 0
  314. hit3 = Instance.new("Sound", clone.Torso)
  315. hit3.SoundId = "rbxassetid://278062209"
  316. hit3.Volume = 0
  317. hit3.TimePosition = 0.33
  318. ded = Instance.new("Sound", clone.Torso)
  319. ded.SoundId = "rbxassetid://418892870"
  320. ded.Volume = 0
  321. local leftarm = clone:findFirstChild("Left Arm")
  322. local rightrm = clone:findFirstChild("Right Arm")
  323. local leftleg = clone:findFirstChild("Left Leg")
  324. local rightleg = clone:findFirstChild("Right Leg")
  325. local head = clone:findFirstChild("Head")
  326. for i, g in pairs(humanoid.Parent:GetChildren()) do
  327. if g.ClassName == "Part" then
  328. g:destroy()
  329. end
  330. end
  331. for i, h in pairs(humanoid.Parent:GetChildren()) do
  332. if h.ClassName == "Accesory" then
  333. h:destroy()
  334. end
  335. end
  336. for z,x in pairs(clone:GetChildren()) do
  337. if x.ClassName == "Accessory" then
  338. local handle = x:findFirstChild("Handle")
  339. if handle then
  340. local attachment = handle:findFirstChildOfClass("Attachment")
  341. if attachment then
  342. for q,w in pairs(clone:GetChildren()) do
  343. if w.Name == "Torso" or w.Name == "Head" then
  344. local anotherone = w:findFirstChild(attachment.Name)
  345. if attachment and anotherone then
  346. local constraint = Instance.new("HingeConstraint", clone) --making fake weld
  347. constraint.Attachment0 = attachment
  348. constraint.Attachment1 = anotherone
  349. constraint.LimitsEnabled = true
  350. constraint.LowerAngle = 0
  351. constraint.UpperAngle = 0
  352. end
  353. end
  354. end
  355. end
  356. end
  357. end
  358. end
  359. if head and clone.Torso:findFirstChild("NeckAttachment") then
  360. local attachment = Instance.new("Attachment", clone.Head)
  361. attachment.Position = Vector3.new(0, -0.5, 0)
  362. attachment.Name = "lol"
  363. attachment.Visible = false
  364. clone.Torso.NeckAttachment.Visible = false
  365. clone.Torso.NeckAttachment.Position = clone.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  366. local ball = Instance.new("BallSocketConstraint", clone)
  367. ball.Attachment0 = clone.Torso.NeckAttachment
  368. ball.Attachment1 = attachment
  369. ball.LimitsEnabled = true
  370. ball.TwistLimitsEnabled = true
  371. ball.UpperAngle = 90
  372. ball.Restitution = 0.5
  373. ball.TwistUpperAngle = 90
  374. ball.TwistLowerAngle = -90
  375. local collidepartofleftleg = Instance.new("Part", clone.Torso)
  376. collidepartofleftleg.Name = "Bone"
  377. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  378. collidepartofleftleg.Transparency = 1
  379. collidepartofleftleg:BreakJoints()
  380. local weeld = Instance.new("Weld", collidepartofleftleg)
  381. weeld.Part0 = collidepartofleftleg
  382. weeld.Part1 = clone["Head"]
  383. end
  384. if leftleg ~= nil then
  385. leftleg:BreakJoints()
  386. local glue = Instance.new("Glue", clone.Torso)
  387. glue.Part0 = clone.Torso
  388. glue.Part1 = leftleg
  389. glue.Name = "Left leg"
  390. local collider = Instance.new("Part", leftleg)
  391. collider.Position = Vector3.new(0,999,0)
  392. collider.Size = Vector3.new(1.5, 1, 1)
  393. collider.Shape = "Cylinder"
  394. local weld = Instance.new("Weld", collider)
  395. weld.Part0 = leftleg
  396. weld.Part1 = collider
  397. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  398. collider.TopSurface = "Smooth"
  399. collider.BottomSurface = "Smooth"
  400. collider.formFactor = "Symmetric"
  401. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  402. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  403. collider.Transparency = 1
  404. end
  405. ------------
  406. if rightleg ~= nil then
  407. rightleg:BreakJoints()
  408. local glue1 = Instance.new("Glue", clone.Torso)
  409. glue1.Part0 = clone.Torso
  410. glue1.Part1 = rightleg
  411. glue1.Name = "Right leg"
  412. local collider1 = Instance.new("Part", rightleg)
  413. collider1.Position = Vector3.new(0,999,0)
  414. collider1.Size = Vector3.new(1.5, 1, 1)
  415. collider1.Shape = "Cylinder"
  416. local weld1 = Instance.new("Weld", collider1)
  417. weld1.Part0 = rightleg
  418. weld1.Part1 = collider1
  419. weld1.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  420. collider1.TopSurface = "Smooth"
  421. collider1.BottomSurface = "Smooth"
  422. collider1.formFactor = "Symmetric"
  423. glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  424. glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  425. collider1.Transparency = 1
  426. end
  427. ------------
  428. if rightrm ~= nil then
  429. rightrm:BreakJoints()
  430. rightrm.CFrame = clone.Torso.CFrame * CFrame.new(1.7,0,0)
  431. local glue11 = Instance.new("Glue", clone.Torso)
  432. glue11.Part0 = clone.Torso
  433. glue11.Part1 = rightrm
  434. glue11.Name = "Right shoulder"
  435. local collider11 = Instance.new("Part", rightrm)
  436. collider11.Position = Vector3.new(0,9999,0)
  437. collider11.Size = Vector3.new(1.5,1,1)
  438. collider11.Shape = "Cylinder"
  439. local weld11 = Instance.new("Weld", collider11)
  440. weld11.Part0 = rightrm
  441. weld11.Part1 = collider11
  442. weld11.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  443. collider11.TopSurface = "Smooth"
  444. collider11.BottomSurface = "Smooth"
  445. collider11.formFactor = "Symmetric"
  446. glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  447. glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  448. collider11.Transparency = 1
  449. end
  450. ------------
  451. if leftarm ~= nil then
  452. leftarm.CFrame = clone.Torso.CFrame * CFrame.new(-1.7,0,0)
  453. leftarm:BreakJoints()
  454. local glue111 = Instance.new("Glue", clone.Torso)
  455. glue111.Part0 = clone.Torso
  456. glue111.Part1 = leftarm
  457. glue111.Name = "Left shoulder"
  458. local collider111 = Instance.new("Part", leftarm)
  459. collider111.Position = Vector3.new(0,9999,0)
  460. collider111.Size = Vector3.new(1.5,1,1)
  461. collider111.Shape = "Cylinder"
  462. local weld111 = Instance.new("Weld", collider111)
  463. weld111.Part0 = leftarm
  464. weld111.Part1 = collider111
  465. weld111.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  466. collider111.TopSurface = "Smooth"
  467. collider111.BottomSurface = "Smooth"
  468. collider111.formFactor = "Symmetric"
  469. glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  470. glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  471. collider111.Transparency = 1
  472. ----------------
  473. sensoring = Instance.new("Part", clone.Torso)
  474. sensoring.Size = Vector3.new(1.2,1.1,0.8)
  475. sensoring.CanCollide = false
  476. sensoring.Position = clone.Torso.Position
  477. local welder = Instance.new("Weld", sensoring)
  478. welder.Part0 = clone.Torso
  479. welder.Part1 = sensoring
  480. welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
  481. sensoring.Transparency = 1
  482. -----------------
  483. sensoring1 = Instance.new("Part", clone.Torso)
  484. sensoring1.Size = Vector3.new(1.2,1.1,0.8)
  485. sensoring1.CanCollide = false
  486. sensoring1.Position = clone.Torso.Position
  487. local welder1 = Instance.new("Weld", sensoring)
  488. welder1.Part0 = clone.Torso
  489. welder1.Part1 = sensoring1
  490. welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
  491. sensoring1.Transparency = 1
  492. end
  493. clone.Name = humanoid.Parent.Name.." (PANNED)"
  494. ded:Play()
  495. vel:destroy()
  496. wait(0.5)
  497. local function touch()
  498. if not using then
  499. using = true
  500. local Math = math.random(1,4)
  501. if Math == 1 then
  502. hit:Play()
  503. end
  504. if Math == 2 then
  505. hit1:Play()
  506. end
  507. if Math == 3 then
  508. hit2:Play()
  509. end
  510. if Math == 4 then
  511. hit3:Play()
  512. end
  513. wait(0.1)
  514. using = false
  515. end
  516. end
  517. sensoring.Touched:connect(touch)
  518. sensoring1.Touched:connect(touch)
  519. while true do
  520. if clone:findFirstChild("Head") then
  521. clone.Head.CanCollide = false
  522. end
  523. game:GetService("RunService").Stepped:wait()
  524. end
  525. end
  526. end
  527. end
  528. end
  529. Part0.Touched:connect(hittie)
  530. function ragdoll()
  531. game.Players.LocalPlayer.Character.Archivable = true
  532. clone = game.Players.LocalPlayer.Character:Clone()
  533. clone.Parent = workspace
  534. for i,v in pairs(clone:GetChildren()) do
  535. if v.ClassName == "Script" or v.ClassName == "LocalScript" then
  536. v:Remove()
  537. end
  538. for i,p in pairs(v:GetChildren()) do
  539. if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
  540. p:Remove()
  541. end
  542. end
  543. end
  544. for i,t in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  545. if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
  546. t:Remove()
  547. end
  548. end
  549. vel = Instance.new("BodyVelocity", clone.Torso)
  550. vel.Velocity = clone.Torso.CFrame.lookVector * -5
  551. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  552. clone.Head.face.Texture = "http://www.roblox.com/asset/?id=161061608"
  553. using = false
  554. hit = Instance.new("Sound", clone.Torso)
  555. hit.SoundId = "rbxassetid://260430060"
  556. hit.Volume = 0
  557. hit1 = Instance.new("Sound", clone.Torso)
  558. hit1.SoundId = "rbxassetid://138087186"
  559. hit1.Volume = 0
  560. hit2 = Instance.new("Sound", clone.Torso)
  561. hit2.SoundId = "rbxassetid://131237241"
  562. hit2.Volume = 0
  563. hit3 = Instance.new("Sound", clone.Torso)
  564. hit3.SoundId = "rbxassetid://278062209"
  565. hit3.Volume = 0
  566. hit3.TimePosition = 0.33
  567. ded = Instance.new("Sound", clone.Torso)
  568. ded.SoundId = "rbxassetid://337800380"
  569. ded.Volume = 5
  570. local leftarm = clone:findFirstChild("Left Arm")
  571. local rightrm = clone:findFirstChild("Right Arm")
  572. local leftleg = clone:findFirstChild("Left Leg")
  573. local rightleg = clone:findFirstChild("Right Leg")
  574. local head = clone:findFirstChild("Head")
  575. for i, g in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  576. if g.ClassName == "Part" then
  577. g:destroy()
  578. end
  579. end
  580. for i, h in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  581. if h.ClassName == "Accesory" then
  582. h:destroy()
  583. end
  584. end
  585. game.Workspace.CurrentCamera.CameraSubject = head
  586. if head then
  587. local attachment = Instance.new("Attachment", clone.Head)
  588. attachment.Position = Vector3.new(0, -0.5, 0)
  589. attachment.Name = "lol"
  590. attachment.Visible = false
  591. clone.Torso.NeckAttachment.Visible = false
  592. clone.Torso.NeckAttachment.Position = clone.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  593. local ball = Instance.new("BallSocketConstraint", clone)
  594. ball.Attachment0 = clone.Torso.NeckAttachment
  595. ball.Attachment1 = attachment
  596. ball.LimitsEnabled = true
  597. ball.TwistLimitsEnabled = true
  598. ball.UpperAngle = 90
  599. ball.Restitution = 0.5
  600. ball.TwistUpperAngle = 90
  601. ball.TwistLowerAngle = -90
  602. local collidepartofleftleg = Instance.new("Part", clone.Torso)
  603. collidepartofleftleg.Name = "Bone"
  604. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  605. collidepartofleftleg.Transparency = 1
  606. collidepartofleftleg:BreakJoints()
  607. local weeld = Instance.new("Weld", collidepartofleftleg)
  608. weeld.Part0 = collidepartofleftleg
  609. weeld.Part1 = clone["Head"]
  610. end
  611. if leftleg ~= nil then
  612. local glue = Instance.new("Glue", clone.Torso)
  613. glue.Part0 = clone.Torso
  614. glue.Part1 = leftleg
  615. glue.Name = "Left leg"
  616. local collider = Instance.new("Part", leftleg)
  617. collider.Position = Vector3.new(0,999,0)
  618. collider.Size = Vector3.new(1.5, 1, 1)
  619. collider.Shape = "Cylinder"
  620. local weld = Instance.new("Weld", collider)
  621. weld.Part0 = leftleg
  622. weld.Part1 = collider
  623. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  624. collider.TopSurface = "Smooth"
  625. collider.BottomSurface = "Smooth"
  626. collider.formFactor = "Symmetric"
  627. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  628. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  629. collider.Transparency = 1
  630. end
  631. ------------
  632. if rightleg ~= nil then
  633. local glue1 = Instance.new("Glue", clone.Torso)
  634. glue1.Part0 = clone.Torso
  635. glue1.Part1 = rightleg
  636. glue1.Name = "Right leg"
  637. local collider1 = Instance.new("Part", rightleg)
  638. collider1.Position = Vector3.new(0,999,0)
  639. collider1.Size = Vector3.new(1.5, 1, 1)
  640. collider1.Shape = "Cylinder"
  641. local weld1 = Instance.new("Weld", collider1)
  642. weld1.Part0 = rightleg
  643. weld1.Part1 = collider1
  644. weld1.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  645. collider1.TopSurface = "Smooth"
  646. collider1.BottomSurface = "Smooth"
  647. collider1.formFactor = "Symmetric"
  648. glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  649. glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  650. collider1.Transparency = 1
  651. end
  652. ------------
  653. if rightrm ~= nil then
  654. local glue11 = Instance.new("Glue", clone.Torso)
  655. glue11.Part0 = clone.Torso
  656. glue11.Part1 = rightrm
  657. glue11.Name = "Right shoulder"
  658. local collider11 = Instance.new("Part", rightrm)
  659. collider11.Position = Vector3.new(0,9999,0)
  660. collider11.Size = Vector3.new(1.5,1,1)
  661. collider11.Shape = "Cylinder"
  662. local weld11 = Instance.new("Weld", collider11)
  663. weld11.Part0 = rightrm
  664. weld11.Part1 = collider11
  665. weld11.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  666. collider11.TopSurface = "Smooth"
  667. collider11.BottomSurface = "Smooth"
  668. collider11.formFactor = "Symmetric"
  669. glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  670. glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  671. collider11.Transparency = 1
  672. end
  673. ------------
  674. if leftarm ~= nil then
  675. local glue111 = Instance.new("Glue", clone.Torso)
  676. glue111.Part0 = clone.Torso
  677. glue111.Part1 = leftarm
  678. glue111.Name = "Left shoulder"
  679. local collider111 = Instance.new("Part", leftarm)
  680. collider111.Position = Vector3.new(0,9999,0)
  681. collider111.Size = Vector3.new(1.5,1,1)
  682. collider111.Shape = "Cylinder"
  683. local weld111 = Instance.new("Weld", collider111)
  684. weld111.Part0 = leftarm
  685. weld111.Part1 = collider111
  686. weld111.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  687. collider111.TopSurface = "Smooth"
  688. collider111.BottomSurface = "Smooth"
  689. collider111.formFactor = "Symmetric"
  690. glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  691. glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  692. collider111.Transparency = 1
  693. ----------------
  694. sensoring = Instance.new("Part", clone.Torso)
  695. sensoring.Size = Vector3.new(1.2,1.1,0.8)
  696. sensoring.CanCollide = false
  697. sensoring.Position = clone.Torso.Position
  698. local welder = Instance.new("Weld", sensoring)
  699. welder.Part0 = clone.Torso
  700. welder.Part1 = sensoring
  701. welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
  702. sensoring.Transparency = 1
  703. -----------------
  704. sensoring1 = Instance.new("Part", clone.Torso)
  705. sensoring1.Size = Vector3.new(1.2,1.1,0.8)
  706. sensoring1.CanCollide = false
  707. sensoring1.Position = clone.Torso.Position
  708. local welder1 = Instance.new("Weld", sensoring)
  709. welder1.Part0 = clone.Torso
  710. welder1.Part1 = sensoring1
  711. welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
  712. sensoring1.Transparency = 1
  713. end
  714. clone.Name = game.Players.LocalPlayer.Character.Name.." (DEAD)"
  715. ded:Play()
  716. vel:destroy()
  717. wait(0.2)
  718. game.Debris:AddItem(clone,60)
  719. local function touch()
  720. if not using then
  721. using = true
  722. local Math = math.random(1,4)
  723. if Math == 1 then
  724. hit:Play()
  725. end
  726. if Math == 2 then
  727. hit1:Play()
  728. end
  729. if Math == 3 then
  730. hit2:Play()
  731. end
  732. if Math == 4 then
  733. hit3:Play()
  734. end
  735. wait(0.1)
  736. using = false
  737. end
  738. end
  739. sensoring.Touched:connect(touch)
  740. sensoring1.Touched:connect(touch)
  741. while true do
  742. clone.Head.CanCollide = false
  743. game:GetService("RunService").Stepped:wait()
  744. end
  745. end
  746.  
  747. game.Players.LocalPlayer.Character.Humanoid.Died:connect(ragdoll)
  748.  
  749. --di ent
  750. while true do
  751. if cananimate then
  752. if game.Players.LocalPlayer.Character.Torso.Velocity.x < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x > 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > 0.5 and cananimate then
  753. for i = 0.1,0.3 , 0.008 do
  754. if cananimate and game.Players.LocalPlayer.Character.Torso.Velocity.x < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x > 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > 0.5 and cananimate then
  755. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.53402293, 0.0594797134, 0.144087285, 0.997264206, 0.0707819909, 0.0213012099, -0.0739177391, 0.9549582, 0.287386209, 2.98023224e-08, -0.28817457, 0.957577825),i)
  756. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.54035091, 0.0769848824, -0.170524538, 0.99592495, -0.0847774297, 0.0307573378, 0.090184398, 0.936214805, -0.339659303, 0, 0.341049016, 0.940045416),i)
  757. game:GetService("RunService").Stepped:wait()
  758. end
  759. end
  760. for i = 0.1,0.3 , 0.008 do
  761. if cananimate and game.Players.LocalPlayer.Character.Torso.Velocity.x < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x > 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > 0.5 and cananimate then
  762. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.53173375, 0.0903658867, -0.222393572, 0.997264206, 0.0662034005, -0.0328776538, -0.0739177391, 0.893185973, -0.443570435, 2.98023224e-08, 0.444787204, 0.895636141),i)
  763. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.54079688, 0.0720610619, 0.156226337, 0.99592495, -0.085669145, -0.0281783342, 0.090184398, 0.946062148, 0.311179608, 0, -0.312452823, 0.949932992),i)
  764. game:GetService("RunService").Stepped:wait()
  765. end
  766. end
  767. elseif game.Players.LocalPlayer.Character.Torso.Velocity.x > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x < 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < 0.5 then
  768. for i = 0,1 , 0.1 do
  769. if cananimate and game.Players.LocalPlayer.Character.Torso.Velocity.x > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x < 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < 0.5 and cananimate then
  770. weld.C0 = weld.C0:lerp(CFrame.new(0.0769970417, -1.17027426, -1.17937994, 0, 0, 1, -0.999999881, 0, 0, 0, -1, 0),i)
  771. headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 0.962374032, 0, 0.271727562, 0, 1, 0, -0.271727562, 0, 0.962374032),i)
  772. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.955355227, 0, -0.295459419, 0, 1, 0, 0.295459419, 0, 0.955355227),i)
  773. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.53559077, 0.0383267403, 0, 0.997264206, 0.0739177391, 0, -0.0739177391, 0.997264266, 0, 2.98023224e-08, 1.86264515e-09, 0.999999881),i)
  774. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.54305458, 0.047129631, 2.98023224e-08, 0.99592495, -0.0901843905, 0, 0.090184398, 0.995925009, 0, 0, 0, 0.999999881),i)
  775. game:GetService("RunService").RenderStepped:wait()
  776. end
  777. end
  778. end
  779. end
  780. wait()
  781. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement