Dark_EccentricYT

Untitled

Mar 22nd, 2018
3,103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 95.94 KB | None | 0 0
  1.  
  2. -- Made by 1ndrew
  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. LocalScript1 = Instance.new("LocalScript")
  21. Part2 = Instance.new("Part")
  22. LocalScript3 = Instance.new("LocalScript")
  23. Sound4 = Instance.new("Sound")
  24. Sound5 = Instance.new("Sound")
  25. Animation6 = Instance.new("Animation")
  26. SpecialMesh7 = Instance.new("SpecialMesh")
  27. Script8 = Instance.new("Script")
  28. Script9 = Instance.new("Script")
  29. LocalScript10 = Instance.new("LocalScript")
  30. LocalScript11 = Instance.new("LocalScript")
  31. Part12 = Instance.new("Part")
  32. CylinderMesh13 = Instance.new("CylinderMesh")
  33. Part14 = Instance.new("Part")
  34. Weld15 = Instance.new("Weld")
  35. CylinderMesh16 = Instance.new("CylinderMesh")
  36. Part17 = Instance.new("Part")
  37. CylinderMesh18 = Instance.new("CylinderMesh")
  38. Part19 = Instance.new("Part")
  39. CylinderMesh20 = Instance.new("CylinderMesh")
  40. LocalScript21 = Instance.new("LocalScript")
  41. Script22 = Instance.new("Script")
  42. Script23 = Instance.new("Script")
  43. Script24 = Instance.new("Script")
  44. Script25 = Instance.new("Script")
  45. Script26 = Instance.new("Script")
  46. Script27 = Instance.new("Script")
  47. Script28 = Instance.new("Script")
  48. LocalScript29 = Instance.new("LocalScript")
  49. ObjectValue30 = Instance.new("ObjectValue")
  50. Script31 = Instance.new("Script")
  51. Tool0.Name = "Brutal Stick"
  52. Tool0.Parent = mas
  53. Tool0.GripForward = Vector3.new(-0.425711513, 0.306347132, -0.851423025)
  54. Tool0.GripPos = Vector3.new(0, -1.29999995, 0.100000001)
  55. Tool0.GripRight = Vector3.new(0.89442718, 0, -0.44721359)
  56. Tool0.GripUp = Vector3.new(0.137002602, 0.951919854, 0.274005204)
  57. LocalScript1.Name = "Aiming"
  58. LocalScript1.Parent = Tool0
  59. table.insert(cors,sandbox(LocalScript1,function()
  60. wait()
  61. Tool=script.Parent
  62. CP,Torso,g=nil,nil,nil
  63. armo1=CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  64. armo2=CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  65. getPos=function(Pos,TorsoPos)
  66. return Vector3.new(Pos.x,TorsoPos.y,Pos.z)
  67. end
  68. Turn=function(mouse,Torso,Gyro)
  69. g.cframe=CFrame.new(Torso.Position,getPos(mouse.Hit.p,Torso.Position))
  70. offset=(Torso.Position.y-mouse.Hit.p.y)/125
  71. mag=(Torso.Position-mouse.Hit.p).magnitude/125
  72. offset=offset/mag
  73. arm=Torso:FindFirstChild("Right Shoulder")
  74. arm2=Torso:FindFirstChild("Left Shoulder")
  75. if arm~=nil then
  76. arm.C0=CFrame.new(1, 0.5, 0, 0, 0, 1, -6.48200512e-007, 1.00000274, 0, -1.00000274, -6.48200512e-007, 0)*CFrame.fromEulerAnglesXYZ(0,0,-offset)
  77. arm2.C0=CFrame.new(-1, 0.5, 0, 0, 0, -1, -6.48200512e-007, 1.00000274, 0, 1.00000274, -6.48200512e-007, 0)*CFrame.fromEulerAnglesXYZ(0,0,offset)
  78. end
  79. end
  80. Equi=function(mouse)
  81. wait(.01)
  82. local vCharacter = Tool.Parent
  83. local hum = vCharacter:findFirstChild("Humanoid")
  84. blah = hum:LoadAnimation(Tool.Handle.Idle)
  85. blah:Play()
  86. CP=Tool.Parent
  87. Torso=CP.Torso
  88. g=Instance.new("BodyGyro")
  89. g.P=18000
  90. g.D=600
  91. g.maxTorque=Vector3.new(80000,80000000,80000)*50000000000000000000000000
  92. g.cframe=Torso.CFrame
  93. while true do
  94. if Tool.Parent.className~="Model" then
  95. break
  96. end
  97. Turn(mouse,Torso,g)
  98. wait()
  99. end
  100. blah:Stop()
  101. arm.C0=armo1
  102. arm2.C0=armo2
  103. g:Remove()
  104. end
  105. Tool.Equipped:connect(Equi)
  106.  
  107. end))
  108. Part2.Name = "Handle"
  109. Part2.Parent = Tool0
  110. Part2.BrickColor = BrickColor.new("Dark stone grey")
  111. Part2.Transparency = 1
  112. Part2.FormFactor = Enum.FormFactor.Custom
  113. Part2.Size = Vector3.new(0.200000003, 3.9199934, 0.829999506)
  114. Part2.CFrame = CFrame.new(-20.2999878, 3.99999809, 14.9998779, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  115. Part2.BottomSurface = Enum.SurfaceType.Smooth
  116. Part2.TopSurface = Enum.SurfaceType.Smooth
  117. Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
  118. Part2.Position = Vector3.new(-20.2999878, 3.99999809, 14.9998779)
  119. Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
  120. LocalScript3.Name = "MacheteScript"
  121. LocalScript3.Parent = Part2
  122. table.insert(cors,sandbox(LocalScript3,function()
  123. local UTIL = {}
  124.  
  125. function UTIL.Class(tableIn,template)
  126. tableIn = tableIn or {}
  127. local mt = {
  128. __metatable = UTIL.DeepCopy(template);
  129. __index = UTIL.DeepCopy(template);
  130. }
  131. return setmetatable(tableIn, mt)
  132. end
  133. function UTIL.MakeClass(...)
  134. local arg = {...}
  135. assert(#arg>0, 'ERROR: class needs 1 argument or more')
  136. local members = arg[1]
  137. for i=2,#arg,1 do
  138. if type(arg[i])=='table' then
  139. for key,val in pairs(arg[i]) do
  140. if not members[key] then
  141. members[key] = val
  142. end
  143. end
  144. end
  145. end
  146. local function New(init)
  147. return UTIL.Class(init or {},members)
  148. end
  149. local function Copy(obj, ...)
  150. local newobj = obj:New(unpack(arg))
  151. for n,v in pairs(obj) do newobj[n] = v end
  152. return newobj
  153. end
  154. members.New = New
  155. members.Copy = Copy
  156. return mt
  157. end
  158.  
  159. function UTIL.DeepCopy(orig)
  160. local orig_type = type(orig)
  161. local copy
  162. if orig_type == 'table' then
  163. copy = {}
  164. for orig_key, orig_value in next, orig, nil do
  165. copy[UTIL.DeepCopy(orig_key)] = UTIL.DeepCopy(orig_value)
  166. end
  167. setmetatable(copy, UTIL.DeepCopy(getmetatable(orig)))
  168. else
  169. copy = orig
  170. end
  171. return copy
  172. end
  173.  
  174. function UTIL.Instantiate(guiType)
  175. return function(data)
  176. local obj = Instance.new(guiType)
  177. for k, v in pairs(data) do
  178. if type(k) == 'number' then
  179. v.Parent = obj
  180. else
  181. obj[k] = v
  182. end
  183. end
  184. return obj
  185. end
  186. end
  187.  
  188. function UTIL.RetroRegister(func,...)
  189. func()
  190. for _,i in ipairs({...}) do
  191. i:connect(func)
  192. end
  193. end
  194.  
  195. function UTIL.WaitForValidCharacter(player)
  196. local character = player.Character
  197. if not character or not character.Parent or not character:FindFirstChild('Humanoid') or character.Humanoid.Health <= 0 then
  198. player.CharacterAdded:wait()
  199. wait(0)
  200. character = player.Character
  201. end
  202. return character
  203. end
  204.  
  205. function UTIL.FindCharacterAncestor(subject)
  206. if subject and subject ~= Workspace then
  207. local humanoid = subject:FindFirstChild('Humanoid')
  208. if humanoid then
  209. return subject, humanoid
  210. else
  211. return UTIL.FindCharacterAncestor(subject.Parent)
  212. end
  213. end
  214. return nil
  215. end
  216.  
  217. UTIL.AssetURL = 'http://www.roblox.com/asset/?id='
  218.  
  219.  
  220. UTIL.TouchEnabled = game:GetService("UserInputService").TouchEnabled
  221. do
  222. local suceeded,_ =pcall(function() game.Workspace.CurrentCamera:GetPanSpeed() end)
  223. UTIL.CanCheckPanSpeed = suceeded
  224. end
  225.  
  226.  
  227. local DebrisService = Game:GetService('Debris')
  228. local DebugPrintOffset = 0
  229. function UTIL.Dprint(...)
  230. local line = ''
  231. for _, segment in pairs({...}) do
  232. line = line .. (line and ' ' or '') .. tostring(segment)
  233. end
  234. local gui = Instance.new('ScreenGui')
  235. local label = Instance.new('TextLabel')
  236. label.Text = line
  237. label.Size = UDim2.new(0.25, 0, 0.05, 0)
  238. label.BackgroundTransparency = 0.5
  239. label.Position = UDim2.new(0, 0, 0, DebugPrintOffset)
  240. label.TextWrapped = true
  241. label.Parent = gui
  242. DebrisService:AddItem(gui, 30)
  243. gui.Parent = script.Parent
  244. DebugPrintOffset = (DebugPrintOffset <= 600) and DebugPrintOffset + 30 or 0
  245. end
  246.  
  247. WeldUtil = {}
  248.  
  249.  
  250. do
  251.  
  252.  
  253. function WeldUtil.WeldBetween(a, b)
  254. local weld = Instance.new("Weld")
  255. weld.Part0 = a
  256. weld.Part1 = b
  257. weld.C0 = CFrame.new()
  258. weld.C1 = b.CFrame:inverse() * a.CFrame
  259.  
  260. weld.Parent = a
  261. return weld
  262. end
  263.  
  264. function WeldUtil:PermaWeld(weld)
  265. local OriginalParent = weld.Parent
  266. weld.Changed:connect(function()
  267. Delay(0,function() weld.Parent = OriginalParent end)
  268. end)
  269. end
  270.  
  271. end
  272.  
  273. local InternalEvent =
  274. {
  275. Listeners = nil,
  276. }
  277. do
  278. UTIL.MakeClass(InternalEvent)
  279. function InternalEvent:Connect(func)
  280. if not self.Listeners then self.Listeners = {} end
  281. table.insert(self.Listeners,func)
  282. end
  283. function InternalEvent:Fire(...)
  284. if not self.Listeners then return end
  285. local args = {...}
  286. for _,i in ipairs(self.Listeners) do
  287. Spawn(function() i(unpack(args)) end)
  288. end
  289. end
  290. end
  291.  
  292. --[[Sword Part Class]]--
  293.  
  294. local SwordPart =
  295. {
  296. Damage = 55,
  297. AttackTime = 1,
  298. CoolDown = 0.1,
  299.  
  300. LastSwing = 0,
  301. LastHit = 0,
  302.  
  303. Part= nil,
  304. Owner = nil,--player object that owns this sword
  305.  
  306. OnHit = nil,
  307. OnHitHumanoid = nil,
  308. OnAttackReady = nil,
  309. OnAttack = nil,
  310.  
  311.  
  312. SwingSound = nil,
  313. HitSound = nil,
  314. SwingAnimation = nil, --animation track!
  315.  
  316. ActiveConnections = {},
  317.  
  318. }
  319. do
  320. UTIL.MakeClass(SwordPart)
  321. function SwordPart.New(npart,nowner)
  322. local init= UTIL.DeepCopy(SwordPart)
  323. init.Part= npart
  324. init.Owner = nowner
  325. table.insert(init.ActiveConnections,init.Part.Touched:connect(function(hit) init:SwordTouch(hit) end))
  326.  
  327. init.OnHit = InternalEvent.New()
  328. init.OnHitHumanoid = InternalEvent.New()
  329. init.OnAttackReady = InternalEvent.New()
  330. init.OnAttack = InternalEvent.New()
  331.  
  332. return init
  333. end
  334.  
  335. function SwordPart:SwordTouch(hit)
  336. if tick()-self.LastSwing >self.AttackTime or tick()-self.LastHit<self.AttackTime then return end
  337. self.OnHit:Fire(hit)
  338. local character,humanoid = UTIL.FindCharacterAncestor(hit)
  339. if character and character ~= self.Owner.Character then
  340. humanoid:TakeDamage(self.Damage)
  341. self.OnHitHumanoid:Fire(humanoid,hit)
  342. self.LastHit = tick()
  343. if self.HitSound then
  344. self.HitSound:Play()
  345. end
  346. end
  347.  
  348. end
  349.  
  350. function SwordPart:DoSwing()
  351. if tick()-self.LastSwing<self.AttackTime+self.CoolDown then
  352. return
  353. end
  354.  
  355. if self.SwingAnimation then
  356. self.SwingAnimation:Play(.1,1,1.5)
  357. end
  358. if self.SwingSound then
  359. self.SwingSound:Play()
  360. end
  361. self.LastSwing = tick()
  362. self.OnAttack:Fire()
  363. end
  364.  
  365. function SwordPart:Destroy()
  366. for _,i in pairs(self.ActiveConnections) do
  367. i:disconnect()
  368. end
  369. end
  370. end
  371. do
  372. local Handle = script.Parent
  373. local Tool = Handle.Parent
  374.  
  375. local Player = game.Players.LocalPlayer
  376. local Character = UTIL.WaitForValidCharacter(Player)
  377. local SwingAni = UTIL.Instantiate"Animation"
  378. {AnimationId = "http://www.roblox.com/Asset?ID=89289879"}
  379.  
  380. local HitSound = Handle:WaitForChild('Hit')
  381. local SwingSound = Handle:WaitForChild('Swing')
  382.  
  383. local SwingAniTrack
  384.  
  385. local Sword
  386.  
  387.  
  388. Tool.Equipped:connect(function(mouse)
  389. Sword = SwordPart.New(Handle,Player)
  390. Sword.Damage = 40
  391. Sword.HitSound = HitSound
  392. Sword.SwingSound = SwingSound
  393. Character = UTIL.WaitForValidCharacter(Player)
  394. local Humanoid = Character:FindFirstChild('Humanoid')
  395.  
  396. SwingAniTrack = Humanoid:LoadAnimation(SwingAni)
  397. Sword.SwingAnimation = SwingAniTrack
  398.  
  399. Sword.OnHitHumanoid:Connect(function(humanoid,hit)
  400. local myTorso = Character:FindFirstChild('Torso')
  401. local torso = humanoid.Parent:FindFirstChild('Torso')
  402. if not torso or not myTorso then return end
  403.  
  404. if hit.Name=='Right Arm' or hit.Name=='Left Arm' or hit.Name=='Right Leg' or hit.Name=='Left Leg' then
  405. hit:BreakJoints()
  406. WeldUtil.WeldBetween(hit, Handle)
  407. Delay(1,function() hit:BreakJoints() end )
  408. end
  409. end)
  410.  
  411. mouse.Button1Down:connect(function()
  412. Sword:DoSwing()
  413. end)
  414. end)
  415. Tool.Unequipped:connect(function()
  416. Sword:Destroy()
  417. end)
  418.  
  419. end
  420.  
  421. end))
  422. Sound4.Name = "Hit"
  423. Sound4.Parent = Part2
  424. Sound4.Pitch = 0.69999998807907
  425. Sound4.SoundId = "http://www.roblox.com/Asset?ID=123252378"
  426. Sound4.Volume = 1
  427. Sound5.Name = "Swing"
  428. Sound5.Parent = Part2
  429. Sound5.SoundId = "rbxasset://sounds/swordslash.wav"
  430. Sound5.Volume = 1
  431. Animation6.Name = "Idle"
  432. Animation6.Parent = Part2
  433. Animation6.AnimationId = "http://www.roblox.com/Asset?ID=75522566"
  434. SpecialMesh7.Parent = Part2
  435. SpecialMesh7.MeshId = "http://www.roblox.com/asset/?id=123248347"
  436. SpecialMesh7.Scale = Vector3.new(0.400000006, 0.400000006, 0.400000006)
  437. SpecialMesh7.TextureId = "http://www.roblox.com/asset/?id=123248449"
  438. SpecialMesh7.MeshType = Enum.MeshType.FileMesh
  439. SpecialMesh7.Scale = Vector3.new(0.400000006, 0.400000006, 0.400000006)
  440. Script8.Name = "Ragdoll"
  441. Script8.Parent = Part2
  442. table.insert(cors,sandbox(Script8,function()
  443. Character = script.Parent
  444. Humanoid = Character.Humanoid
  445. Torso = Character.Torso
  446. mode = Instance.new("Model")
  447. mode.Name = "Raggy"
  448. mode.Parent = game.Workspace
  449. face = 145952218
  450.  
  451. function OnDeath()
  452.  
  453. print("Death")-- HAHA
  454. wait(0.00000001)
  455. Humanoid.Parent = nil
  456. if Torso then
  457. zam=Torso:Clone()
  458. zam.Parent=mode
  459. x=Character:GetChildren()
  460. for i=1,#x do
  461. if ((x[i].Name=="Shirt") or (x[i].Name=="Pants")) then
  462. local zor=x[i]:Clone()
  463. zor.Parent=mode
  464. end
  465. if x[i].Name=="Head" then
  466. Character.Head.face.Texture = "http://www.roblox.com/asset/?id=145952218"
  467. local zem=x[i]:Clone()
  468. zem.Parent=mode
  469. zem.Name="notahead"
  470. local Neck = Instance.new("Weld")
  471. Neck.Name = "Neck"
  472. Neck.Part0 = zam
  473. Neck.Part1 = zem
  474. Neck.C0 = CFrame.new(0, 1.5, 0)
  475. Neck.C1 = CFrame.new()
  476. Neck.Parent = zam
  477. end
  478. if x[i].Name=="Right Arm" then
  479. local Limb=x[i]:Clone()
  480. Limb.Parent=mode
  481. Limb.CFrame = zam.CFrame * CFrame.new(1.5, 0, 0)
  482. local Joint = Instance.new("Glue")
  483. Joint.Name = "RightShoulder"
  484. Joint.Part0 = zam
  485. Joint.Part1 = Limb
  486. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  487. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  488. Joint.Parent = zam
  489.  
  490. local B = Instance.new("Part")
  491. B.TopSurface = 0
  492. B.BottomSurface = 0
  493. B.formFactor = "Symmetric"
  494. B.Size = Vector3.new(1, 1, 1)
  495. B.Transparency = 1
  496. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  497. B.Parent = mode
  498. local W = Instance.new("Weld")
  499. W.Part0 = Limb
  500. W.Part1 = B
  501. W.C0 = CFrame.new(0, -0.5, 0)
  502. W.Parent = Limb
  503.  
  504. end
  505. if x[i].Name=="Left Arm" then
  506. local Limb=x[i]:Clone()
  507. Limb.Parent=mode
  508.  
  509. Limb.CFrame = zam.CFrame * CFrame.new(-1.5, 0, 0)
  510. local Joint = Instance.new("Glue")
  511. Joint.Name = "LeftShoulder"
  512. Joint.Part0 = zam
  513. Joint.Part1 = Limb
  514. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  515. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  516. Joint.Parent = zam
  517.  
  518. local B = Instance.new("Part")
  519. B.TopSurface = 0
  520. B.BottomSurface = 0
  521. B.formFactor = "Symmetric"
  522. B.Size = Vector3.new(1, 1, 1)
  523. B.Transparency = 1
  524. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  525. B.Parent = mode
  526. local W = Instance.new("Weld")
  527. W.Part0 = Limb
  528. W.Part1 = B
  529. W.C0 = CFrame.new(0, -0.5, 0)
  530. W.Parent = Limb
  531.  
  532. end
  533. if x[i].Name=="Right Leg" then
  534. local Limb=x[i]:Clone()
  535. Limb.Parent=mode
  536.  
  537. Limb.CFrame = zam.CFrame * CFrame.new(0.5, -2, 0)
  538. local Joint = Instance.new("Glue")
  539. Joint.Name = "RightHip"
  540. Joint.Part0 = zam
  541. Joint.Part1 = Limb
  542. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  543. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  544. Joint.Parent = zam
  545.  
  546. local B = Instance.new("Part")
  547. B.TopSurface = 0
  548. B.BottomSurface = 0
  549. B.formFactor = "Symmetric"
  550. B.Size = Vector3.new(1, 1, 1)
  551. B.Transparency = 1
  552. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  553. B.Parent = mode
  554. local W = Instance.new("Weld")
  555. W.Part0 = Limb
  556. W.Part1 = B
  557. W.C0 = CFrame.new(0, -0.5, 0)
  558. W.Parent = Limb
  559.  
  560. end
  561. if x[i].Name=="Left Leg" then
  562. local Limb=x[i]:Clone()
  563. Limb.Parent=mode
  564.  
  565. Limb.CFrame = zam.CFrame * CFrame.new(-0.5, -2, 0)
  566. local Joint = Instance.new("Glue")
  567. Joint.Name = "LeftHip"
  568. Joint.Part0 = zam
  569. Joint.Part1 = Limb
  570. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  571. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  572. Joint.Parent = zam
  573.  
  574. local B = Instance.new("Part")
  575. B.TopSurface = 0
  576. B.BottomSurface = 0
  577. B.formFactor = "Symmetric"
  578. B.Size = Vector3.new(1, 1, 1)
  579. B.Transparency = 1
  580. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  581. B.Parent = mode
  582. local W = Instance.new("Weld")
  583. W.Part0 = Limb
  584. W.Part1 = B
  585. W.C0 = CFrame.new(0, -0.5, 0)
  586. W.Parent = Limb
  587.  
  588. end
  589. bland=Instance.new("Humanoid")
  590. bland.Parent=mode
  591. if ((x[i].Name=="Shirt") or (x[i].Name=="Pants")) then
  592. local zor=x[i]:Clone()
  593. zor.Parent=mode
  594. end
  595. --[
  596. local Bar = Instance.new("Part")
  597. Bar.TopSurface = 0
  598. Bar.BottomSurface = 0
  599. Bar.formFactor = "Symmetric"
  600. Bar.Size = Vector3.new(1, 1, 1)
  601. Bar.Transparency = 1
  602. Bar.CFrame = zam.CFrame * CFrame.new(0, 0.5, 0)
  603. Bar.Parent = mode
  604. local Weld = Instance.new("Weld")
  605. Weld.Part0 = zam
  606. Weld.Part1 = Bar
  607. Weld.C0 = CFrame.new(0, 0.5, 0)
  608. Weld.Parent = zam
  609. --]]
  610. end
  611. end
  612. wait()
  613. Character:Remove()
  614. end
  615.  
  616. Humanoid.Died:connect(OnDeath)
  617.  
  618. end))
  619. Script9.Name = "qPerfectionWeld"
  620. Script9.Parent = Tool0
  621. table.insert(cors,sandbox(Script9,function()
  622.  
  623.  
  624. local NEVER_BREAK_JOINTS = false -- If you set this to true it will never break joints (this can create some welding issues, but can save stuff like hinges).
  625.  
  626.  
  627. local function CallOnChildren(Instance, FunctionToCall)
  628. -- Calls a function on each of the children of a certain object, using recursion.
  629.  
  630. FunctionToCall(Instance)
  631.  
  632. for _, Child in next, Instance:GetChildren() do
  633. CallOnChildren(Child, FunctionToCall)
  634. end
  635. end
  636.  
  637. local function GetNearestParent(Instance, ClassName)
  638. -- Returns the nearest parent of a certain class, or returns nil
  639.  
  640. local Ancestor = Instance
  641. repeat
  642. Ancestor = Ancestor.Parent
  643. if Ancestor == nil then
  644. return nil
  645. end
  646. until Ancestor:IsA(ClassName)
  647.  
  648. return Ancestor
  649. end
  650.  
  651. local function GetBricks(StartInstance)
  652. local List = {}
  653.  
  654. -- if StartInstance:IsA("BasePart") then
  655. -- List[#List+1] = StartInstance
  656. -- end
  657.  
  658. CallOnChildren(StartInstance, function(Item)
  659. if Item:IsA("BasePart") then
  660. List[#List+1] = Item;
  661. end
  662. end)
  663.  
  664. return List
  665. end
  666.  
  667. local function Modify(Instance, Values)
  668. -- Modifies an Instance by using a table.
  669.  
  670. assert(type(Values) == "table", "Values is not a table");
  671.  
  672. for Index, Value in next, Values do
  673. if type(Index) == "number" then
  674. Value.Parent = Instance
  675. else
  676. Instance[Index] = Value
  677. end
  678. end
  679. return Instance
  680. end
  681.  
  682. local function Make(ClassType, Properties)
  683. -- Using a syntax hack to create a nice way to Make new items.
  684.  
  685. return Modify(Instance.new(ClassType), Properties)
  686. end
  687.  
  688. local Surfaces = {"TopSurface", "BottomSurface", "LeftSurface", "RightSurface", "FrontSurface", "BackSurface"}
  689. local HingSurfaces = {"Hinge", "Motor", "SteppingMotor"}
  690.  
  691. local function HasWheelJoint(Part)
  692. for _, SurfaceName in pairs(Surfaces) do
  693. for _, HingSurfaceName in pairs(HingSurfaces) do
  694. if Part[SurfaceName].Name == HingSurfaceName then
  695. return true
  696. end
  697. end
  698. end
  699.  
  700. return false
  701. end
  702.  
  703. local function ShouldBreakJoints(Part)
  704. --- We do not want to break joints of wheels/hinges. This takes the utmost care to not do this. There are
  705. -- definitely some edge cases.
  706.  
  707. if NEVER_BREAK_JOINTS then
  708. return false
  709. end
  710.  
  711. if HasWheelJoint(Part) then
  712. return false
  713. end
  714.  
  715. local Connected = Part:GetConnectedParts()
  716.  
  717. if #Connected == 1 then
  718. return false
  719. end
  720.  
  721. for _, Item in pairs(Connected) do
  722. if HasWheelJoint(Item) then
  723. return false
  724. elseif not Item:IsDescendantOf(script.Parent) then
  725. return false
  726. end
  727. end
  728.  
  729. return true
  730. end
  731.  
  732. local function WeldTogether(Part0, Part1, JointType, WeldParent)
  733.  
  734.  
  735. JointType = JointType or "Weld"
  736. local RelativeValue = Part1:FindFirstChild("qRelativeCFrameWeldValue")
  737.  
  738. local NewWeld = Part1:FindFirstChild("qCFrameWeldThingy") or Instance.new(JointType)
  739. Modify(NewWeld, {
  740. Name = "qCFrameWeldThingy";
  741. Part0 = Part0;
  742. Part1 = Part1;
  743. C0 = CFrame.new();--Part0.CFrame:inverse();
  744. C1 = RelativeValue and RelativeValue.Value or Part1.CFrame:toObjectSpace(Part0.CFrame); --Part1.CFrame:inverse() * Part0.CFrame;-- Part1.CFrame:inverse();
  745. Parent = Part1;
  746. })
  747.  
  748. if not RelativeValue then
  749. RelativeValue = Make("CFrameValue", {
  750. Parent = Part1;
  751. Name = "qRelativeCFrameWeldValue";
  752. Archivable = true;
  753. Value = NewWeld.C1;
  754. })
  755. end
  756.  
  757. return NewWeld
  758. end
  759.  
  760. local function WeldParts(Parts, MainPart, JointType, DoNotUnanchor)
  761.  
  762.  
  763. for _, Part in pairs(Parts) do
  764. if ShouldBreakJoints(Part) then
  765. Part:BreakJoints()
  766. end
  767. end
  768.  
  769. for _, Part in pairs(Parts) do
  770. if Part ~= MainPart then
  771. WeldTogether(MainPart, Part, JointType, MainPart)
  772. end
  773. end
  774.  
  775. if not DoNotUnanchor then
  776. for _, Part in pairs(Parts) do
  777. Part.Anchored = false
  778. end
  779. MainPart.Anchored = false
  780. end
  781. end
  782.  
  783. local function PerfectionWeld()
  784. local Tool = GetNearestParent(script, "Tool")
  785.  
  786. local Parts = GetBricks(script.Parent)
  787. local PrimaryPart = Tool and Tool:FindFirstChild("Handle") and Tool.Handle:IsA("BasePart") and Tool.Handle or script.Parent:IsA("Model") and script.Parent.PrimaryPart or Parts[1]
  788.  
  789. if PrimaryPart then
  790. WeldParts(Parts, PrimaryPart, "Weld", false)
  791. else
  792. warn("qWeld - Unable to weld part")
  793. end
  794.  
  795. return Tool
  796. end
  797.  
  798. local Tool = PerfectionWeld()
  799.  
  800.  
  801. if Tool and script.ClassName == "Script" then
  802. --- Don't bother with local scripts
  803.  
  804. script.Parent.AncestryChanged:connect(function()
  805. PerfectionWeld()
  806. end)
  807. end
  808.  
  809.  
  810.  
  811. end))
  812. LocalScript10.Name = "Arms"
  813. LocalScript10.Parent = Tool0
  814. table.insert(cors,sandbox(LocalScript10,function()
  815. Tool = script.Parent
  816. local arms = nil
  817. local torso = nil
  818. local fakearms = {}
  819. local welds = {}
  820.  
  821. function Equip(mouse)
  822. wait(0.01)
  823. arms = {Tool.Parent:FindFirstChild("Left Arm"), Tool.Parent:FindFirstChild("Right Arm")}
  824. torso = Tool.Parent:FindFirstChild("Torso")
  825. model = Instance.new("Model", workspace)
  826. model.Name = "Arms"
  827. humanoid = Instance.new("Humanoid", model)
  828. humanoid.Name = "ArmHumanoid"
  829. local Link = Instance.new("ObjectValue",model)
  830. Link.Name, Link.Value = "HumanoidLink", torso.Parent.Humanoid
  831. if Tool.Parent:FindFirstChild("Shirt") then
  832. Tool.Parent.Shirt:Clone().Parent = model
  833. end
  834. for n,v in ipairs(arms) do
  835. local P = v:Clone()
  836. P.Parent = model
  837. P.TopSurface, P.BottomSurface = "Smooth", "Smooth"
  838. local PW = Instance.new("Weld")
  839. PW.Name = "FakeArmWeld"
  840. PW.Parent = v
  841. PW.Part0, PW.Part1, PW.C0, PW.C1 = v, P, v.CFrame:inverse(), P.CFrame:inverse()
  842. v.Transparency = 1
  843. fakearms[n] = P
  844. end
  845. fakearms[2].RightGrip:Destroy()
  846. mouse.TargetFilter = model
  847. end
  848.  
  849. function Unequip(mouse)
  850. model:Destroy()
  851. for n,v in ipairs(arms) do
  852. v.Transparency = 0
  853. end
  854. end
  855.  
  856. Tool.Equipped:connect(Equip)
  857. Tool.Unequipped:connect(Unequip)
  858.  
  859. end))
  860. LocalScript11.Name = "Weld"
  861. LocalScript11.Parent = Tool0
  862. table.insert(cors,sandbox(LocalScript11,function()
  863.  
  864. function Weld(x,y)
  865. local W = Instance.new("Weld")
  866. W.Part0 = x
  867. W.Part1 = y
  868. local CJ = CFrame.new(x.Position)
  869. local C0 = x.CFrame:inverse()*CJ
  870. local C1 = y.CFrame:inverse()*CJ
  871. W.C0 = C0
  872. W.C1 = C1
  873. W.Parent = x
  874. end
  875.  
  876. function SimpleWeld(x,y)
  877. local W = Instance.new("Weld")
  878. W.Part0 = x
  879. W.Part1 = y
  880. W.Parent = x
  881. end
  882.  
  883. function Get(A)
  884. if A:IsA("BasePart") then
  885. if A.Name == "HammerRotation" then
  886. SimpleWeld(script.Parent.HammerAttachment, A)
  887. A.Anchored = false
  888. elseif A.Name == "Hammer" then
  889. Weld(script.Parent.HammerRotation, A)
  890. A.Anchored = false
  891. elseif A.Name == "FrizzenRotation" then
  892. SimpleWeld(script.Parent.FrizzenAttachment, A)
  893. A.Anchored = false
  894. elseif A.Name == "Frizzen" then
  895. Weld(script.Parent.FrizzenRotation, A)
  896. A.Anchored = false
  897. else
  898. Weld(script.Parent.Handle, A)
  899. A.Anchored = false
  900. end
  901. else
  902. local C = A:GetChildren()
  903. for i=1, #C do
  904. Get(C[i])
  905. end
  906. end
  907. end
  908.  
  909. function Finale()
  910. Get(script.Parent)
  911. end
  912.  
  913.  
  914. end))
  915. Part12.Name = "Grip"
  916. Part12.Parent = Tool0
  917. Part12.Material = Enum.Material.Wood
  918. Part12.BrickColor = BrickColor.new("Pine Cone")
  919. Part12.Rotation = Vector3.new(-180, 0, -180)
  920. Part12.CanCollide = false
  921. Part12.FormFactor = Enum.FormFactor.Custom
  922. Part12.Size = Vector3.new(0.249733165, 0.249733493, 0.249733463)
  923. Part12.CFrame = CFrame.new(-20.408844, 3.84257984, 15.1341248, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  924. Part12.BottomSurface = Enum.SurfaceType.Smooth
  925. Part12.TopSurface = Enum.SurfaceType.Smooth
  926. Part12.Color = Color3.new(0.423529, 0.345098, 0.294118)
  927. Part12.Position = Vector3.new(-20.408844, 3.84257984, 15.1341248)
  928. Part12.Orientation = Vector3.new(0, 180, 0)
  929. Part12.Color = Color3.new(0.423529, 0.345098, 0.294118)
  930. CylinderMesh13.Parent = Part12
  931. CylinderMesh13.Scale = Vector3.new(0.947650433, 0.0557441823, 0.947649717)
  932. CylinderMesh13.Scale = Vector3.new(0.947650433, 0.0557441823, 0.947649717)
  933. Part14.Name = "Wood"
  934. Part14.Parent = Tool0
  935. Part14.Material = Enum.Material.Wood
  936. Part14.BrickColor = BrickColor.new("Pine Cone")
  937. Part14.CanCollide = false
  938. Part14.FormFactor = Enum.FormFactor.Custom
  939. Part14.Size = Vector3.new(0.249733165, 1.12017298, 0.249733463)
  940. Part14.CFrame = CFrame.new(-20.4072571, 3.08049679, 15.1345367, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  941. Part14.BottomSurface = Enum.SurfaceType.Smooth
  942. Part14.TopSurface = Enum.SurfaceType.Smooth
  943. Part14.Color = Color3.new(0.423529, 0.345098, 0.294118)
  944. Part14.Position = Vector3.new(-20.4072571, 3.08049679, 15.1345367)
  945. Part14.Color = Color3.new(0.423529, 0.345098, 0.294118)
  946. Weld15.Parent = Part14
  947. Weld15.C0 = CFrame.new(0, 0, 0, 1.10826505e-07, -1, 1.24278703e-08, 2.08616228e-07, -1.24278472e-08, -1, 1, 1.10826505e-07, 2.08616228e-07)
  948. Weld15.C1 = CFrame.new(0, 0, 0, 1.10826505e-07, -1, 1.24278703e-08, 2.08616228e-07, -1.24278472e-08, -1, 1, 1.10826505e-07, 2.08616228e-07)
  949. CylinderMesh16.Parent = Part14
  950. CylinderMesh16.Scale = Vector3.new(0.869548976, 1, 0.869550526)
  951. CylinderMesh16.Scale = Vector3.new(0.869548976, 1, 0.869550526)
  952. Part17.Name = "Metal"
  953. Part17.Parent = Tool0
  954. Part17.Material = Enum.Material.Wood
  955. Part17.BrickColor = BrickColor.new("Beige")
  956. Part17.Rotation = Vector3.new(0, -90, 0)
  957. Part17.CanCollide = false
  958. Part17.FormFactor = Enum.FormFactor.Custom
  959. Part17.Size = Vector3.new(0.249733165, 2.88074279, 0.249733463)
  960. Part17.CFrame = CFrame.new(-20.4075317, 4.19514513, 15.1350708, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  961. Part17.BottomSurface = Enum.SurfaceType.Smooth
  962. Part17.TopSurface = Enum.SurfaceType.Smooth
  963. Part17.Color = Color3.new(0.792157, 0.74902, 0.639216)
  964. Part17.Position = Vector3.new(-20.4075317, 4.19514513, 15.1350708)
  965. Part17.Orientation = Vector3.new(0, -90, 0)
  966. Part17.Color = Color3.new(0.792157, 0.74902, 0.639216)
  967. CylinderMesh18.Parent = Part17
  968. CylinderMesh18.Scale = Vector3.new(0.800000012, 0.995999992, 0.800000012)
  969. CylinderMesh18.Scale = Vector3.new(0.800000012, 0.995999992, 0.800000012)
  970. Part19.Name = "Metal"
  971. Part19.Parent = Tool0
  972. Part19.Material = Enum.Material.Wood
  973. Part19.BrickColor = BrickColor.new("Pine Cone")
  974. Part19.Rotation = Vector3.new(0, -90, 0)
  975. Part19.CanCollide = false
  976. Part19.FormFactor = Enum.FormFactor.Custom
  977. Part19.Size = Vector3.new(0.249733165, 2.88074279, 0.249733463)
  978. Part19.CFrame = CFrame.new(-20.4075317, 4.1851449, 15.1350708, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  979. Part19.BottomSurface = Enum.SurfaceType.Smooth
  980. Part19.TopSurface = Enum.SurfaceType.Smooth
  981. Part19.Color = Color3.new(0.423529, 0.345098, 0.294118)
  982. Part19.Position = Vector3.new(-20.4075317, 4.1851449, 15.1350708)
  983. Part19.Orientation = Vector3.new(0, -90, 0)
  984. Part19.Color = Color3.new(0.423529, 0.345098, 0.294118)
  985. CylinderMesh20.Parent = Part19
  986. CylinderMesh20.Scale = Vector3.new(0.907233477, 1, 0.85386616)
  987. CylinderMesh20.Scale = Vector3.new(0.907233477, 1, 0.85386616)
  988. LocalScript21.Name = "Remove Mouse"
  989. LocalScript21.Parent = Tool0
  990. table.insert(cors,sandbox(LocalScript21,function()
  991. local mouse = game.Players.LocalPlayer:GetMouse()
  992. mouse.Icon = 'rbxassetid://35446049'
  993. end))
  994. Script22.Name = "RagdollInitializer"
  995. Script22.Parent = Tool0
  996. table.insert(cors,sandbox(Script22,function()
  997. print("Bouyer's Ragdoll Physics Loaded")
  998. function OnEntered(Player)
  999. while Player.Character == nil do -- Notice it does not use break.
  1000. wait()
  1001. end
  1002. wait(1)
  1003. Player.Changed:connect(function(Property)
  1004. if Property == "Character" then
  1005. if Player.Character then
  1006. local Mods = script:GetChildren()
  1007. for X = 1, # Mods do
  1008. if Mods[X].className == "Script" or Mods[X].className == "LocalScript" then
  1009. local S = Mods[X]:Clone()
  1010. S.Disabled = false
  1011. S.Parent = Player.Character
  1012. end
  1013. end
  1014. end
  1015. end
  1016. end)
  1017. local Mods = script:GetChildren()
  1018. for X = 1, # Mods do
  1019. if Mods[X].className == "Script" or Mods[X].className == "LocalScript" then
  1020. local S = Mods[X]:Clone()
  1021. S.Disabled = false
  1022. S.Parent = Player.Character
  1023. end
  1024. end
  1025. end
  1026. game.Players.ChildAdded:connect(OnEntered)
  1027. end))
  1028. Script23.Name = "Ragdoll"
  1029. Script23.Parent = Script22
  1030. table.insert(cors,sandbox(Script23,function()
  1031. print("Hello world!")
  1032.  
  1033. Character = script.Parent
  1034. Humanoid = Character.Humanoid
  1035. Torso = Character.Torso
  1036.  
  1037. function OnDeath()
  1038. print("Death")
  1039. Humanoid.Parent = nil
  1040. if Torso then
  1041. local Head = Character:FindFirstChild("Head")
  1042. if Head then
  1043. local Neck = Instance.new("Weld")
  1044. Neck.Name = "Neck"
  1045. Neck.Part0 = Torso
  1046. Neck.Part1 = Head
  1047. Neck.C0 = CFrame.new(0, 1.5, 0)
  1048. Neck.C1 = CFrame.new()
  1049. Neck.Parent = Torso
  1050. end
  1051. local Limb = Character:FindFirstChild("Right Arm")
  1052. if Limb then
  1053.  
  1054. Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
  1055. local Joint = Instance.new("Glue")
  1056. Joint.Name = "RightShoulder"
  1057. Joint.Part0 = Torso
  1058. Joint.Part1 = Limb
  1059. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1060. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1061. Joint.Parent = Torso
  1062.  
  1063. local B = Instance.new("Part")
  1064. B.TopSurface = 0
  1065. B.BottomSurface = 0
  1066. B.formFactor = "Symmetric"
  1067. B.Size = Vector3.new(1, 1, 1)
  1068. B.Transparency = 1
  1069. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1070. B.Parent = Character
  1071. local W = Instance.new("Weld")
  1072. W.Part0 = Limb
  1073. W.Part1 = B
  1074. W.C0 = CFrame.new(0, -0.5, 0)
  1075. W.Parent = Limb
  1076.  
  1077. end
  1078. local Limb = Character:FindFirstChild("Left Arm")
  1079. if Limb then
  1080.  
  1081. Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
  1082. local Joint = Instance.new("Glue")
  1083. Joint.Name = "LeftShoulder"
  1084. Joint.Part0 = Torso
  1085. Joint.Part1 = Limb
  1086. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1087. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1088. Joint.Parent = Torso
  1089.  
  1090. local B = Instance.new("Part")
  1091. B.TopSurface = 0
  1092. B.BottomSurface = 0
  1093. B.formFactor = "Symmetric"
  1094. B.Size = Vector3.new(1, 1, 1)
  1095. B.Transparency = 1
  1096. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1097. B.Parent = Character
  1098. local W = Instance.new("Weld")
  1099. W.Part0 = Limb
  1100. W.Part1 = B
  1101. W.C0 = CFrame.new(0, -0.5, 0)
  1102. W.Parent = Limb
  1103.  
  1104. end
  1105. local Limb = Character:FindFirstChild("Right Leg")
  1106. if Limb then
  1107.  
  1108. Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
  1109. local Joint = Instance.new("Glue")
  1110. Joint.Name = "RightHip"
  1111. Joint.Part0 = Torso
  1112. Joint.Part1 = Limb
  1113. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1114. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1115. Joint.Parent = Torso
  1116.  
  1117. local B = Instance.new("Part")
  1118. B.TopSurface = 0
  1119. B.BottomSurface = 0
  1120. B.formFactor = "Symmetric"
  1121. B.Size = Vector3.new(1, 1, 1)
  1122. B.Transparency = 1
  1123. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1124. B.Parent = Character
  1125. local W = Instance.new("Weld")
  1126. W.Part0 = Limb
  1127. W.Part1 = B
  1128. W.C0 = CFrame.new(0, -0.5, 0)
  1129. W.Parent = Limb
  1130.  
  1131. end
  1132. local Limb = Character:FindFirstChild("Left Leg")
  1133. if Limb then
  1134.  
  1135. Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
  1136. local Joint = Instance.new("Glue")
  1137. Joint.Name = "LeftHip"
  1138. Joint.Part0 = Torso
  1139. Joint.Part1 = Limb
  1140. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1141. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1142. Joint.Parent = Torso
  1143.  
  1144. local B = Instance.new("Part")
  1145. B.TopSurface = 0
  1146. B.BottomSurface = 0
  1147. B.formFactor = "Symmetric"
  1148. B.Size = Vector3.new(1, 1, 1)
  1149. B.Transparency = 1
  1150. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1151. B.Parent = Character
  1152. local W = Instance.new("Weld")
  1153. W.Part0 = Limb
  1154. W.Part1 = B
  1155. W.C0 = CFrame.new(0, -0.5, 0)
  1156. W.Parent = Limb
  1157.  
  1158. end
  1159. --[
  1160. local Bar = Instance.new("Part")
  1161. Bar.TopSurface = 0
  1162. Bar.BottomSurface = 0
  1163. Bar.formFactor = "Symmetric"
  1164. Bar.Size = Vector3.new(1, 1, 1)
  1165. Bar.Transparency = 1
  1166. Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
  1167. Bar.Parent = Character
  1168. local Weld = Instance.new("Weld")
  1169. Weld.Part0 = Torso
  1170. Weld.Part1 = Bar
  1171. Weld.C0 = CFrame.new(0, 0.5, 0)
  1172. Weld.Parent = Torso
  1173. --]]
  1174. end
  1175. end
  1176.  
  1177. Humanoid.Died:connect(OnDeath)
  1178.  
  1179. end))
  1180. Script24.Name = "Ragdoll"
  1181. Script24.Parent = Tool0
  1182. table.insert(cors,sandbox(Script24,function()
  1183. print("Hello world!")
  1184.  
  1185. Character = script.Parent
  1186. Humanoid = Character.Humanoid
  1187. Torso = Character.Torso
  1188.  
  1189. function OnDeath()
  1190. print("Death")
  1191. Humanoid.Parent = nil
  1192. if Torso then
  1193. local Head = Character:FindFirstChild("Head")
  1194. if Head then
  1195. local Neck = Instance.new("Weld")
  1196. Neck.Name = "Neck"
  1197. Neck.Part0 = Torso
  1198. Neck.Part1 = Head
  1199. Neck.C0 = CFrame.new(0, 1.5, 0)
  1200. Neck.C1 = CFrame.new()
  1201. Neck.Parent = Torso
  1202. end
  1203. local Limb = Character:FindFirstChild("Right Arm")
  1204. if Limb then
  1205.  
  1206. Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
  1207. local Joint = Instance.new("Glue")
  1208. Joint.Name = "RightShoulder"
  1209. Joint.Part0 = Torso
  1210. Joint.Part1 = Limb
  1211. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1212. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1213. Joint.Parent = Torso
  1214.  
  1215. local B = Instance.new("Part")
  1216. B.TopSurface = 0
  1217. B.BottomSurface = 0
  1218. B.formFactor = "Symmetric"
  1219. B.Size = Vector3.new(1, 1, 1)
  1220. B.Transparency = 1
  1221. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1222. B.Parent = Character
  1223. local W = Instance.new("Weld")
  1224. W.Part0 = Limb
  1225. W.Part1 = B
  1226. W.C0 = CFrame.new(0, -0.5, 0)
  1227. W.Parent = Limb
  1228.  
  1229. end
  1230. local Limb = Character:FindFirstChild("Left Arm")
  1231. if Limb then
  1232.  
  1233. Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
  1234. local Joint = Instance.new("Glue")
  1235. Joint.Name = "LeftShoulder"
  1236. Joint.Part0 = Torso
  1237. Joint.Part1 = Limb
  1238. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1239. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1240. Joint.Parent = Torso
  1241.  
  1242. local B = Instance.new("Part")
  1243. B.TopSurface = 0
  1244. B.BottomSurface = 0
  1245. B.formFactor = "Symmetric"
  1246. B.Size = Vector3.new(1, 1, 1)
  1247. B.Transparency = 1
  1248. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1249. B.Parent = Character
  1250. local W = Instance.new("Weld")
  1251. W.Part0 = Limb
  1252. W.Part1 = B
  1253. W.C0 = CFrame.new(0, -0.5, 0)
  1254. W.Parent = Limb
  1255.  
  1256. end
  1257. local Limb = Character:FindFirstChild("Right Leg")
  1258. if Limb then
  1259.  
  1260. Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
  1261. local Joint = Instance.new("Glue")
  1262. Joint.Name = "RightHip"
  1263. Joint.Part0 = Torso
  1264. Joint.Part1 = Limb
  1265. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1266. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1267. Joint.Parent = Torso
  1268.  
  1269. local B = Instance.new("Part")
  1270. B.TopSurface = 0
  1271. B.BottomSurface = 0
  1272. B.formFactor = "Symmetric"
  1273. B.Size = Vector3.new(1, 1, 1)
  1274. B.Transparency = 1
  1275. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1276. B.Parent = Character
  1277. local W = Instance.new("Weld")
  1278. W.Part0 = Limb
  1279. W.Part1 = B
  1280. W.C0 = CFrame.new(0, -0.5, 0)
  1281. W.Parent = Limb
  1282.  
  1283. end
  1284. local Limb = Character:FindFirstChild("Left Leg")
  1285. if Limb then
  1286.  
  1287. Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
  1288. local Joint = Instance.new("Glue")
  1289. Joint.Name = "LeftHip"
  1290. Joint.Part0 = Torso
  1291. Joint.Part1 = Limb
  1292. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1293. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1294. Joint.Parent = Torso
  1295.  
  1296. local B = Instance.new("Part")
  1297. B.TopSurface = 0
  1298. B.BottomSurface = 0
  1299. B.formFactor = "Symmetric"
  1300. B.Size = Vector3.new(1, 1, 1)
  1301. B.Transparency = 1
  1302. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1303. B.Parent = Character
  1304. local W = Instance.new("Weld")
  1305. W.Part0 = Limb
  1306. W.Part1 = B
  1307. W.C0 = CFrame.new(0, -0.5, 0)
  1308. W.Parent = Limb
  1309.  
  1310. end
  1311. --[
  1312. local Bar = Instance.new("Part")
  1313. Bar.TopSurface = 0
  1314. Bar.BottomSurface = 0
  1315. Bar.formFactor = "Symmetric"
  1316. Bar.Size = Vector3.new(1, 1, 1)
  1317. Bar.Transparency = 1
  1318. Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
  1319. Bar.Parent = Character
  1320. local Weld = Instance.new("Weld")
  1321. Weld.Part0 = Torso
  1322. Weld.Part1 = Bar
  1323. Weld.C0 = CFrame.new(0, 0.5, 0)
  1324. Weld.Parent = Torso
  1325. --]]
  1326. end
  1327. end
  1328.  
  1329. Humanoid.Died:connect(OnDeath)
  1330.  
  1331. end))
  1332. Script25.Name = "Ragdoll"
  1333. Script25.Parent = Tool0
  1334. table.insert(cors,sandbox(Script25,function()
  1335. function OnDeath(Character)
  1336. local svch = Character
  1337. local hum = Character:findFirstChild("Humanoid")
  1338. Character.Archivable = true
  1339. local chrclone = Character:clone()
  1340. Character.Archivable = false
  1341.  
  1342. local ch = chrclone:GetChildren()
  1343. local i
  1344. local function Scan(ch)
  1345. local e
  1346. for e = 1,#ch do
  1347. Scan(ch[e]:GetChildren())
  1348. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" or ch[e].ClassName == "BodyVelocity" then
  1349. ch[e]:remove()
  1350. end
  1351. if ch[e].ClassName == "Part" then
  1352. ch[e].CanCollide = true
  1353. end
  1354. end
  1355. end
  1356. Scan(chrclone:GetChildren())
  1357.  
  1358. local hum2 = chrclone:findFirstChild("Humanoid")
  1359.  
  1360.  
  1361. if hum2 ~= nil then
  1362. hum2.Name = "Humanoid2"
  1363. hum2.PlatformStand = true
  1364. hum2.MaxHealth = 10000000
  1365. hum2.Health = 200
  1366. end
  1367.  
  1368. local ch = Character:GetChildren()
  1369. local i
  1370.  
  1371. local function Scan2(ch)
  1372. local e
  1373. for e = 1,#ch do
  1374. Scan(ch[e]:GetChildren())
  1375. if ch[e].Name == "Joints" or ch[e].ClassName == "Tool" then
  1376. ch[e]:remove()
  1377. end
  1378. end
  1379. end
  1380. Scan2(Character:GetChildren())
  1381.  
  1382. local ch = Character:GetChildren()
  1383. local i
  1384. for i = 1,#ch do
  1385. if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" then
  1386. ch[i]:remove()
  1387. end
  1388. end
  1389. Character = chrclone
  1390. local Torso = Character.Torso
  1391. local movevector = Vector3.new()
  1392.  
  1393. if Torso then
  1394. if getkiller ~= nil then
  1395. local killtors = getkiller:findFirstChild("Torso")
  1396. if killtors ~= nil then
  1397. movevector = CFrame.new(killtors.Position,Torso.Position).lookVector
  1398. end
  1399. end
  1400. local Head = Character:FindFirstChild("Head")
  1401. if Head then
  1402. local Neck = Instance.new("Weld")
  1403. Neck.Name = "Neck"
  1404. Neck.Part0 = Torso
  1405. Neck.Part1 = Head
  1406. Neck.C0 = CFrame.new(0, 1.5, 0)
  1407. Neck.C1 = CFrame.new()
  1408. Neck.Parent = Torso
  1409.  
  1410. hclone = Head:clone()
  1411. hclone.Name = "HeadClone"
  1412. local nsw = Instance.new("Weld")
  1413. nsw.Part0 = hclone
  1414. nsw.Part1 = Head
  1415. hclone.Parent = Character
  1416. nsw.Parent = Head
  1417. fc = Head:findFirstChild("Face")
  1418. if fc ~= nil then
  1419. fc.Parent = nil
  1420. end
  1421. Head.Transparency = 1
  1422.  
  1423. end
  1424. local Limb = Character:FindFirstChild("Right Arm")
  1425. if Limb then
  1426.  
  1427. Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
  1428. local Joint = Instance.new("Glue")
  1429. Joint.Name = "RightShoulder"
  1430. Joint.Part0 = Torso
  1431. Joint.Part1 = Limb
  1432. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1433. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1434. Joint.Parent = Torso
  1435.  
  1436. local B = Instance.new("Part")
  1437. B.TopSurface = 0
  1438. B.BottomSurface = 0
  1439. B.formFactor = "Symmetric"
  1440. B.Size = Vector3.new(1, 1, 1)
  1441. B.Transparency = 1
  1442. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1443. B.Parent = Character
  1444. local W = Instance.new("Weld")
  1445. W.Part0 = Limb
  1446. W.Part1 = B
  1447. W.C0 = CFrame.new(0, -0.5, 0)
  1448. W.Parent = Limb
  1449.  
  1450. end
  1451. local Limb = Character:FindFirstChild("Left Arm")
  1452. if Limb then
  1453.  
  1454. Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
  1455. local Joint = Instance.new("Glue")
  1456. Joint.Name = "LeftShoulder"
  1457. Joint.Part0 = Torso
  1458. Joint.Part1 = Limb
  1459. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1460. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1461. Joint.Parent = Torso
  1462.  
  1463. local B = Instance.new("Part")
  1464. B.TopSurface = 0
  1465. B.BottomSurface = 0
  1466. B.formFactor = "Symmetric"
  1467. B.Size = Vector3.new(1, 1, 1)
  1468. B.Transparency = 1
  1469. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1470. B.Parent = Character
  1471. local W = Instance.new("Weld")
  1472. W.Part0 = Limb
  1473. W.Part1 = B
  1474. W.C0 = CFrame.new(0, -0.5, 0)
  1475. W.Parent = Limb
  1476.  
  1477. end
  1478. local Limb = Character:FindFirstChild("Right Leg")
  1479. if Limb then
  1480.  
  1481. Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
  1482. local Joint = Instance.new("Glue")
  1483. Joint.Name = "RightHip"
  1484. Joint.Part0 = Torso
  1485. Joint.Part1 = Limb
  1486. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1487. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1488. Joint.Parent = Torso
  1489.  
  1490. local B = Instance.new("Part")
  1491. B.TopSurface = 0
  1492. B.BottomSurface = 0
  1493. B.formFactor = "Symmetric"
  1494. B.Size = Vector3.new(1, 1, 1)
  1495. B.Transparency = 1
  1496. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1497. B.Parent = Character
  1498. local W = Instance.new("Weld")
  1499. W.Part0 = Limb
  1500. W.Part1 = B
  1501. W.C0 = CFrame.new(0, -0.5, 0)
  1502. W.Parent = Limb
  1503.  
  1504. end
  1505. local Limb = Character:FindFirstChild("Left Leg")
  1506. if Limb then
  1507.  
  1508. Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
  1509. local Joint = Instance.new("Glue")
  1510. Joint.Name = "LeftHip"
  1511. Joint.Part0 = Torso
  1512. Joint.Part1 = Limb
  1513. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1514. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1515. Joint.Parent = Torso
  1516.  
  1517. local B = Instance.new("Part")
  1518. B.TopSurface = 0
  1519. B.BottomSurface = 0
  1520. B.formFactor = "Symmetric"
  1521. B.Size = Vector3.new(1, 1, 1)
  1522. B.Transparency = 1
  1523. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1524. B.Parent = Character
  1525. local W = Instance.new("Weld")
  1526. W.Part0 = Limb
  1527. W.Part1 = B
  1528. W.C0 = CFrame.new(0, -0.5, 0)
  1529. W.Parent = Limb
  1530.  
  1531. end
  1532. --[
  1533. local Bar = Instance.new("Part")
  1534. Bar.TopSurface = 0
  1535. Bar.BottomSurface = 0
  1536. Bar.formFactor = "Symmetric"
  1537. Bar.Size = Vector3.new(1, 1, 1)
  1538. Bar.Transparency = 1
  1539. Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
  1540. Bar.Parent = Character
  1541. local Weld = Instance.new("Weld")
  1542. Weld.Part0 = Torso
  1543. Weld.Part1 = Bar
  1544. Weld.C0 = CFrame.new(0, 0.5, 0)
  1545. Weld.Parent = Torso
  1546. --]]
  1547. end
  1548. Character.Parent = workspace
  1549. hum2.Health = 200
  1550. if movevector ~= Vector3.new() then
  1551. for i = 1,10 do
  1552. wait()
  1553. Torso.Velocity = movevector * 30
  1554. end
  1555. end
  1556. wait(10)
  1557. Character:remove()
  1558. end
  1559.  
  1560. function onRespawn(character)
  1561. wait(.8)
  1562. local humm = character:findFirstChild("Humanoid")
  1563. if humm ~= nil then
  1564. local bounce = false
  1565. local conn = humm.Died:connect(function()
  1566. if bounce then return end
  1567. bounce = true
  1568. OnDeath(character)
  1569. end)
  1570. end
  1571. end
  1572.  
  1573. function onPlayerEntered(newPlayer)
  1574. if newPlayer.ClassName ~= "Player" then return end
  1575. newPlayer.CharacterAdded:connect(onRespawn)
  1576. local checkChar = newPlayer.Character
  1577. if checkChar ~= nil then
  1578. onRespawn(checkChar)
  1579. end
  1580. end
  1581.  
  1582. game.Players.PlayerAdded:connect(onPlayerEntered)
  1583. local p2 = game.Players:GetPlayers()
  1584. local i2
  1585. for i2 = 1,#p2 do
  1586. onPlayerEntered(p2[i2])
  1587. end
  1588.  
  1589.  
  1590. end))
  1591. Script26.Name = "Ragdoll"
  1592. Script26.Parent = Tool0
  1593. table.insert(cors,sandbox(Script26,function()
  1594. Character = script.Parent
  1595. Humanoid = Character.Humanoid
  1596. Torso = Character.Torso
  1597. mode = Instance.new("Model")
  1598. mode.Name = "Raggy"
  1599. mode.Parent = game.Workspace
  1600. face = 145952218
  1601.  
  1602. function OnDeath()
  1603.  
  1604. print("Death")-- HAHA
  1605. wait(0.00000001)
  1606. Humanoid.Parent = nil
  1607. if Torso then
  1608. zam=Torso:Clone()
  1609. zam.Parent=mode
  1610. x=Character:GetChildren()
  1611. for i=1,#x do
  1612. if ((x[i].Name=="Shirt") or (x[i].Name=="Pants")) then
  1613. local zor=x[i]:Clone()
  1614. zor.Parent=mode
  1615. end
  1616. if x[i].Name=="Head" then
  1617. Character.Head.face.Texture = "http://www.roblox.com/asset/?id=145952218"
  1618. local zem=x[i]:Clone()
  1619. zem.Parent=mode
  1620. zem.Name="notahead"
  1621. local Neck = Instance.new("Weld")
  1622. Neck.Name = "Neck"
  1623. Neck.Part0 = zam
  1624. Neck.Part1 = zem
  1625. Neck.C0 = CFrame.new(0, 1.5, 0)
  1626. Neck.C1 = CFrame.new()
  1627. Neck.Parent = zam
  1628. end
  1629. if x[i].Name=="Right Arm" then
  1630. local Limb=x[i]:Clone()
  1631. Limb.Parent=mode
  1632. Limb.CFrame = zam.CFrame * CFrame.new(1.5, 0, 0)
  1633. local Joint = Instance.new("Glue")
  1634. Joint.Name = "RightShoulder"
  1635. Joint.Part0 = zam
  1636. Joint.Part1 = Limb
  1637. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1638. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1639. Joint.Parent = zam
  1640.  
  1641. local B = Instance.new("Part")
  1642. B.TopSurface = 0
  1643. B.BottomSurface = 0
  1644. B.formFactor = "Symmetric"
  1645. B.Size = Vector3.new(1, 1, 1)
  1646. B.Transparency = 1
  1647. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1648. B.Parent = mode
  1649. local W = Instance.new("Weld")
  1650. W.Part0 = Limb
  1651. W.Part1 = B
  1652. W.C0 = CFrame.new(0, -0.5, 0)
  1653. W.Parent = Limb
  1654.  
  1655. end
  1656. if x[i].Name=="Left Arm" then
  1657. local Limb=x[i]:Clone()
  1658. Limb.Parent=mode
  1659.  
  1660. Limb.CFrame = zam.CFrame * CFrame.new(-1.5, 0, 0)
  1661. local Joint = Instance.new("Glue")
  1662. Joint.Name = "LeftShoulder"
  1663. Joint.Part0 = zam
  1664. Joint.Part1 = Limb
  1665. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1666. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1667. Joint.Parent = zam
  1668.  
  1669. local B = Instance.new("Part")
  1670. B.TopSurface = 0
  1671. B.BottomSurface = 0
  1672. B.formFactor = "Symmetric"
  1673. B.Size = Vector3.new(1, 1, 1)
  1674. B.Transparency = 1
  1675. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1676. B.Parent = mode
  1677. local W = Instance.new("Weld")
  1678. W.Part0 = Limb
  1679. W.Part1 = B
  1680. W.C0 = CFrame.new(0, -0.5, 0)
  1681. W.Parent = Limb
  1682.  
  1683. end
  1684. if x[i].Name=="Right Leg" then
  1685. local Limb=x[i]:Clone()
  1686. Limb.Parent=mode
  1687.  
  1688. Limb.CFrame = zam.CFrame * CFrame.new(0.5, -2, 0)
  1689. local Joint = Instance.new("Glue")
  1690. Joint.Name = "RightHip"
  1691. Joint.Part0 = zam
  1692. Joint.Part1 = Limb
  1693. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1694. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1695. Joint.Parent = zam
  1696.  
  1697. local B = Instance.new("Part")
  1698. B.TopSurface = 0
  1699. B.BottomSurface = 0
  1700. B.formFactor = "Symmetric"
  1701. B.Size = Vector3.new(1, 1, 1)
  1702. B.Transparency = 1
  1703. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1704. B.Parent = mode
  1705. local W = Instance.new("Weld")
  1706. W.Part0 = Limb
  1707. W.Part1 = B
  1708. W.C0 = CFrame.new(0, -0.5, 0)
  1709. W.Parent = Limb
  1710.  
  1711. end
  1712. if x[i].Name=="Left Leg" then
  1713. local Limb=x[i]:Clone()
  1714. Limb.Parent=mode
  1715.  
  1716. Limb.CFrame = zam.CFrame * CFrame.new(-0.5, -2, 0)
  1717. local Joint = Instance.new("Glue")
  1718. Joint.Name = "LeftHip"
  1719. Joint.Part0 = zam
  1720. Joint.Part1 = Limb
  1721. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1722. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1723. Joint.Parent = zam
  1724.  
  1725. local B = Instance.new("Part")
  1726. B.TopSurface = 0
  1727. B.BottomSurface = 0
  1728. B.formFactor = "Symmetric"
  1729. B.Size = Vector3.new(1, 1, 1)
  1730. B.Transparency = 1
  1731. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1732. B.Parent = mode
  1733. local W = Instance.new("Weld")
  1734. W.Part0 = Limb
  1735. W.Part1 = B
  1736. W.C0 = CFrame.new(0, -0.5, 0)
  1737. W.Parent = Limb
  1738.  
  1739. end
  1740. bland=Instance.new("Humanoid")
  1741. bland.Parent=mode
  1742. if ((x[i].Name=="Shirt") or (x[i].Name=="Pants")) then
  1743. local zor=x[i]:Clone()
  1744. zor.Parent=mode
  1745. end
  1746. --[
  1747. local Bar = Instance.new("Part")
  1748. Bar.TopSurface = 0
  1749. Bar.BottomSurface = 0
  1750. Bar.formFactor = "Symmetric"
  1751. Bar.Size = Vector3.new(1, 1, 1)
  1752. Bar.Transparency = 1
  1753. Bar.CFrame = zam.CFrame * CFrame.new(0, 0.5, 0)
  1754. Bar.Parent = mode
  1755. local Weld = Instance.new("Weld")
  1756. Weld.Part0 = zam
  1757. Weld.Part1 = Bar
  1758. Weld.C0 = CFrame.new(0, 0.5, 0)
  1759. Weld.Parent = zam
  1760. --]]
  1761. end
  1762. end
  1763. wait()
  1764. Character:Remove()
  1765. end
  1766.  
  1767. Humanoid.Died:connect(OnDeath)
  1768.  
  1769. end))
  1770. Script27.Name = "Ragdoll Script"
  1771. Script27.Parent = Tool0
  1772. table.insert(cors,sandbox(Script27,function()
  1773. function Intialize(character)
  1774. for i, child in pairs(script:GetChildren()) do
  1775. if child.className == "Script" or child.className == "LocalScript" then
  1776. local c = child:Clone()
  1777. c.Parent = character
  1778. c.Disabled = false
  1779. end
  1780. end
  1781. end
  1782.  
  1783. function Apply(obj)
  1784. if obj.className == "Humanoid" then
  1785. Intialize(obj.Parent)
  1786. end
  1787. for i, child in pairs(obj:GetChildren()) do
  1788. Apply(child)
  1789. end
  1790. end
  1791.  
  1792. Apply(game.Workspace)
  1793. game.Workspace.ChildAdded:connect(Apply)
  1794.  
  1795. end))
  1796. Script28.Name = "Ragdoller"
  1797. Script28.Parent = Script27
  1798. table.insert(cors,sandbox(Script28,function()
  1799. print("Ragdoll script activated")
  1800. Gibs = game.Workspace
  1801.  
  1802. function getKillerOfHumanoidIfStillInGame(humanoid)
  1803. local tag = humanoid:findFirstChild("creator")
  1804. if tag ~= nil then
  1805. local killer = tag.Value
  1806. if killer.Parent ~= nil then
  1807. return killer
  1808. end
  1809. end
  1810. return nil
  1811. end
  1812.  
  1813. function OnDeath(Character)
  1814. local svch = Character
  1815. local hum = Character:findFirstChild("Humanoid")
  1816. local getkiller = getKillerOfHumanoidIfStillInGame(hum)
  1817. Character.Archivable = true
  1818. local chrclone = Character:clone()
  1819. Character.Archivable = false
  1820.  
  1821. local ch = chrclone:GetChildren()
  1822. local i
  1823. for i = 1,#ch do
  1824. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then
  1825. ch[i]:remove()
  1826. end
  1827. end
  1828. local function Scan(ch)
  1829. local e
  1830. for e = 1,#ch do
  1831. Scan(ch[e]:GetChildren())
  1832. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  1833. ch[e]:remove()
  1834. end
  1835. end
  1836. end
  1837. Scan(chrclone:GetChildren())
  1838.  
  1839. local hum2 = chrclone:findFirstChild("Humanoid")
  1840.  
  1841.  
  1842. if hum2 ~= nil then
  1843. hum2.Name = "Humanoid2"
  1844. hum2.PlatformStand = true
  1845. hum2.Sit = true
  1846. hum2.MaxHealth = 0
  1847. hum2.Health = 0
  1848. end
  1849.  
  1850. local ch = Character:GetChildren()
  1851. local i
  1852. for i = 1,#ch do
  1853. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  1854. ch[i]:remove()
  1855. end
  1856. end
  1857.  
  1858. wait(0.2)
  1859.  
  1860. local ch = Character:GetChildren()
  1861. local i
  1862. for i = 1,#ch do
  1863. if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  1864. ch[i]:remove()
  1865. end
  1866. end
  1867. Character = chrclone
  1868. local Torso = Character.Torso
  1869. local movevector = Vector3.new()
  1870.  
  1871. if Torso then
  1872. if getkiller ~= nil then
  1873. if getkiller.Character ~= nil then
  1874. local killtors = getkiller.Character:findFirstChild("Torso")
  1875. if killtors ~= nil then
  1876. movevector = CFrame.new(killtors.Position,Torso.Position).lookVector
  1877. end
  1878. end
  1879. end
  1880. local Head = Character:FindFirstChild("Head")
  1881. if Head then
  1882. local Neck = Instance.new("Weld")
  1883. Neck.Name = "Neck"
  1884. Neck.Part0 = Torso
  1885. Neck.Part1 = Head
  1886. Neck.C0 = CFrame.new(0, 1.5, 0)
  1887. Neck.C1 = CFrame.new()
  1888. Neck.Parent = Torso
  1889.  
  1890. local nsc = script.CamAttach:clone()
  1891. nsc.CamPart.Value = hum2.Parent.Head
  1892. nsc.Disabled = false
  1893. nsc.Parent = svch
  1894. end
  1895. local Limb = Character:FindFirstChild("Right Arm")
  1896. if Limb then
  1897.  
  1898. Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
  1899. local Joint = Instance.new("Glue")
  1900. Joint.Name = "RightShoulder"
  1901. Joint.Part0 = Torso
  1902. Joint.Part1 = Limb
  1903. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1904. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1905. Joint.Parent = Torso
  1906.  
  1907. local B = Instance.new("Part")
  1908. B.TopSurface = 0
  1909. B.BottomSurface = 0
  1910. B.formFactor = "Symmetric"
  1911. B.Size = Vector3.new(1, 1, 1)
  1912. B.Transparency = 1
  1913. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1914. B.Parent = Character
  1915. local W = Instance.new("Weld")
  1916. W.Part0 = Limb
  1917. W.Part1 = B
  1918. W.C0 = CFrame.new(0, -0.5, 0)
  1919. W.Parent = Limb
  1920.  
  1921. end
  1922. local Limb = Character:FindFirstChild("Left Arm")
  1923. if Limb then
  1924.  
  1925. Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
  1926. local Joint = Instance.new("Glue")
  1927. Joint.Name = "LeftShoulder"
  1928. Joint.Part0 = Torso
  1929. Joint.Part1 = Limb
  1930. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1931. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1932. Joint.Parent = Torso
  1933.  
  1934. local B = Instance.new("Part")
  1935. B.TopSurface = 0
  1936. B.BottomSurface = 0
  1937. B.formFactor = "Symmetric"
  1938. B.Size = Vector3.new(1, 1, 1)
  1939. B.Transparency = 1
  1940. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1941. B.Parent = Character
  1942. local W = Instance.new("Weld")
  1943. W.Part0 = Limb
  1944. W.Part1 = B
  1945. W.C0 = CFrame.new(0, -0.5, 0)
  1946. W.Parent = Limb
  1947.  
  1948. end
  1949. local Limb = Character:FindFirstChild("Right Leg")
  1950. if Limb then
  1951.  
  1952. Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
  1953. local Joint = Instance.new("Glue")
  1954. Joint.Name = "RightHip"
  1955. Joint.Part0 = Torso
  1956. Joint.Part1 = Limb
  1957. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1958. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1959. Joint.Parent = Torso
  1960.  
  1961. local B = Instance.new("Part")
  1962. B.TopSurface = 0
  1963. B.BottomSurface = 0
  1964. B.formFactor = "Symmetric"
  1965. B.Size = Vector3.new(1, 1, 1)
  1966. B.Transparency = 1
  1967. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1968. B.Parent = Character
  1969. local W = Instance.new("Weld")
  1970. W.Part0 = Limb
  1971. W.Part1 = B
  1972. W.C0 = CFrame.new(0, -0.5, 0)
  1973. W.Parent = Limb
  1974.  
  1975. end
  1976. local Limb = Character:FindFirstChild("Left Leg")
  1977. if Limb then
  1978.  
  1979. Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
  1980. local Joint = Instance.new("Glue")
  1981. Joint.Name = "LeftHip"
  1982. Joint.Part0 = Torso
  1983. Joint.Part1 = Limb
  1984. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1985. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1986. Joint.Parent = Torso
  1987.  
  1988. local B = Instance.new("Part")
  1989. B.TopSurface = 0
  1990. B.BottomSurface = 0
  1991. B.formFactor = "Symmetric"
  1992. B.Size = Vector3.new(1, 1, 1)
  1993. B.Transparency = 1
  1994. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1995. B.Parent = Character
  1996. local W = Instance.new("Weld")
  1997. W.Part0 = Limb
  1998. W.Part1 = B
  1999. W.C0 = CFrame.new(0, -0.5, 0)
  2000. W.Parent = Limb
  2001.  
  2002. end
  2003. --[
  2004. local Bar = Instance.new("Part")
  2005. Bar.TopSurface = 0
  2006. Bar.BottomSurface = 0
  2007. Bar.formFactor = "Symmetric"
  2008. Bar.Size = Vector3.new(1, 1, 1)
  2009. Bar.Transparency = 1
  2010. Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
  2011. Bar.Parent = Character
  2012. local Weld = Instance.new("Weld")
  2013. Weld.Part0 = Torso
  2014. Weld.Part1 = Bar
  2015. Weld.C0 = CFrame.new(0, 0.5, 0)
  2016. Weld.Parent = Torso
  2017. --]]
  2018. end
  2019. Character.Parent = Gibs
  2020. game.Debris:AddItem(Character, 12)
  2021. if movevector ~= Vector3.new() then
  2022. for i = 1,10 do
  2023. wait()
  2024. Torso.Velocity = movevector * 30
  2025. end
  2026. end
  2027. end
  2028.  
  2029. script.Parent.Humanoid.Died:connect(function()
  2030. OnDeath(script.Parent)
  2031. end)
  2032.  
  2033.  
  2034. end))
  2035. LocalScript29.Name = "CamAttach"
  2036. LocalScript29.Parent = Script28
  2037. LocalScript29.Disabled = true
  2038. table.insert(cors,sandbox(LocalScript29,function()
  2039. wait()
  2040. game.Workspace.CurrentCamera.CameraSubject = script.CamPart.Value
  2041. end))
  2042. ObjectValue30.Name = "CamPart"
  2043. ObjectValue30.Parent = LocalScript29
  2044. Script31.Name = "Gore + Ragdoll"
  2045. Script31.Parent = Tool0
  2046. table.insert(cors,sandbox(Script31,function()
  2047.  
  2048. script.Parent = nil
  2049.  
  2050. script.Name = "RobloxAdvanced"
  2051.  
  2052. if _G.RobloxAdvanced ~= nil then
  2053.  
  2054. pcall(function() _G.RobloxAdvanced.Disable() end)
  2055.  
  2056. wait(0.5)
  2057.  
  2058. _G.RobloxAdvanced = nil
  2059.  
  2060. wait(0.5)
  2061.  
  2062. end
  2063.  
  2064. _G.RobloxAdvanced = {}
  2065.  
  2066. _G.RobloxAdvanced.Instance = script
  2067.  
  2068. _G.RobloxAdvanced.Connections = {}
  2069.  
  2070. _G.RobloxAdvanced.RagdollOnHit = true
  2071.  
  2072. _G.RobloxAdvanced.DamageOnHit = true
  2073.  
  2074. _G.RobloxAdvanced.CriticalHitsEnabled = false
  2075.  
  2076. _G.RobloxAdvanced.RagdollOnDeath = true
  2077.  
  2078. _G.RobloxAdvanced.KeepCorpses = true
  2079.  
  2080. _G.RobloxAdvanced.KeepCorpsesTime = 15
  2081.  
  2082. _G.RobloxAdvanced.ShowDamage = false
  2083.  
  2084. _G.RobloxAdvanced.BloodEnabled = true
  2085.  
  2086. _G.RobloxAdvanced.BloodGuiEnabled = true
  2087.  
  2088. _G.RobloxAdvanced.DeathGuiEnabled = false
  2089.  
  2090. _G.RobloxAdvanced.SpawnGuiEnabled = false
  2091.  
  2092. _G.RobloxAdvanced.HUDEnabled = false
  2093.  
  2094. _G.RobloxAdvanced.HUDTimeReset = function() _G.RobloxAdvanced.HUDTimeOffset = tick() end
  2095.  
  2096. _G.RobloxAdvanced.HUDTimeReset()
  2097.  
  2098. _G.RobloxAdvanced.HUDRemove = function()
  2099.  
  2100. for _, PlayerList in pairs(game:GetService("Players"):GetChildren()) do
  2101.  
  2102. pcall(function() while true do PlayerList.PlayerGui.RobloxAdvancedHUD:Remove() end end)
  2103.  
  2104. end
  2105.  
  2106. end
  2107.  
  2108. _G.RobloxAdvanced.HUDShow = function()
  2109.  
  2110. _G.RobloxAdvanced.HUDRemove()
  2111.  
  2112. for _, PlayerList in pairs(game:GetService("Players"):GetChildren()) do
  2113.  
  2114. _G.RobloxAdvanced.HUD(PlayerList)
  2115.  
  2116. end
  2117.  
  2118. end
  2119.  
  2120. _G.RobloxAdvanced.Disable = function()
  2121.  
  2122. _G.RobloxAdvanced.RagdollOnHit = false
  2123.  
  2124. _G.RobloxAdvanced.DamageOnHit = false
  2125.  
  2126. _G.RobloxAdvanced.CriticalHitsEnabled = false
  2127.  
  2128. _G.RobloxAdvanced.RagdollOnDeath = false
  2129.  
  2130. _G.RobloxAdvanced.KeepCorpses = false
  2131.  
  2132. _G.RobloxAdvanced.ShowDamage = false
  2133.  
  2134. _G.RobloxAdvanced.BloodEnabled = false
  2135.  
  2136. _G.RobloxAdvanced.BloodGuiEnabled = false
  2137.  
  2138. _G.RobloxAdvanced.DeathGuiEnabled = false
  2139.  
  2140. _G.RobloxAdvanced.SpawnGuiEnabled = false
  2141.  
  2142. _G.RobloxAdvanced.HUDEnabled = false
  2143.  
  2144. _G.RobloxAdvanced.HUDRemove()
  2145.  
  2146. pcall(function() _G.RobloxAdvanced.Instance.Disabled = true end)
  2147.  
  2148. for _, Connection in pairs(_G.RobloxAdvanced.Connections) do
  2149.  
  2150. pcall(function() Connection:disconnect() end)
  2151.  
  2152. end
  2153.  
  2154. end
  2155.  
  2156. _G.RobloxAdvanced.MakeBlood = function()
  2157.  
  2158. local Size = math.random(10, 75) / 100
  2159.  
  2160. local Blood = Instance.new("Part")
  2161.  
  2162. Blood.Name = "Blood"
  2163.  
  2164. Blood.BrickColor = BrickColor.new("Really red")
  2165.  
  2166. Blood.TopSurface = 0
  2167.  
  2168. Blood.BottomSurface = 0
  2169.  
  2170. Blood.FormFactor = "Custom"
  2171.  
  2172. Blood.Size = Vector3.new(Size, Size, Size)
  2173.  
  2174. Blood.CanCollide = false
  2175.  
  2176. Instance.new("SpecialMesh", Blood).MeshType = "Sphere"
  2177.  
  2178. local HasTouched = true
  2179.  
  2180. coroutine.wrap(function()
  2181.  
  2182. wait(0.09)
  2183.  
  2184. HasTouched = false
  2185.  
  2186. end)()
  2187.  
  2188. table.insert(_G.RobloxAdvanced.Connections, Blood.Touched:connect(function(Hit)
  2189.  
  2190. if Hit.Name ~= "Blood" and Hit.Name ~= "Blood Pool" then
  2191.  
  2192. if Hit:GetMass() < 100 and math.random(1, 30) == 1 then
  2193.  
  2194. Hit.BrickColor = BrickColor.new((function()
  2195.  
  2196. local Color = math.random(1, 2)
  2197.  
  2198. if Color == 1 then
  2199.  
  2200. return "Bright red"
  2201.  
  2202. elseif Color == 2 then
  2203.  
  2204. return "Really red"
  2205.  
  2206. end
  2207.  
  2208. end)())
  2209.  
  2210. end
  2211.  
  2212. end
  2213.  
  2214. if Blood.Name == "Blood" and Hit.Name == "Blood Pool" then
  2215.  
  2216. Blood:Remove()
  2217.  
  2218. elseif Blood.Name == "Blood Pool" and Hit.Name == "Blood" then
  2219.  
  2220. if Blood.Size.x > math.random(5, 20) or Blood.Size.z > math.random(5, 20) then return end
  2221.  
  2222. local _, C0, C1, Part1 = pcall(function() return Blood.Weld.C0, Blood.Weld.C1, Blood.Weld.Part1 end)
  2223.  
  2224. Blood.Size = Blood.Size + Vector3.new(Hit.Size.x / 5, 0, Hit.Size.z / 5)
  2225.  
  2226. Blood.CFrame = Part1.CFrame * C0 * C1
  2227.  
  2228. if C0 ~= nil and C1 ~= nil and Part1 ~= nil then
  2229.  
  2230. local Weld = Instance.new("Weld", Blood)
  2231.  
  2232. Weld.Part0 = Blood
  2233.  
  2234. Weld.Part1 = Part1
  2235.  
  2236. Weld.C0 = C0
  2237.  
  2238. Weld.C1 = C1
  2239.  
  2240. end
  2241.  
  2242. elseif HasTouched == false and Hit.Name ~= "Blood" then
  2243.  
  2244. HasTouched = true
  2245.  
  2246. local NewHit, Position = Workspace:FindPartOnRay(Ray.new(Blood.Position + Vector3.new(0, 1, 0), Vector3.new(0, -3, 0)), Blood)
  2247.  
  2248. if NewHit ~= nil and NewHit.Anchored == true then
  2249.  
  2250. Blood.Size = Vector3.new(Size * 2, 0.3, Size * 2)
  2251.  
  2252. Blood.Name = "Blood Pool"
  2253.  
  2254. Blood.CFrame = CFrame.new(Position)
  2255.  
  2256. local Weld = Instance.new("Weld", Blood)
  2257.  
  2258. Weld.Part0 = Blood
  2259.  
  2260. Weld.Part1 = NewHit
  2261.  
  2262. Weld.C0 = Blood.CFrame:inverse() * CFrame.new(Position)
  2263.  
  2264. Weld.C1 = NewHit.CFrame:inverse() * CFrame.new(Position)
  2265.  
  2266. else
  2267.  
  2268. local Weld = Instance.new("Weld", Blood)
  2269.  
  2270. Weld.Part0 = Blood
  2271.  
  2272. Weld.Part1 = Hit
  2273.  
  2274. Weld.C0 = Blood.CFrame:inverse() * CFrame.new(Blood.Position)
  2275.  
  2276. Weld.C1 = Hit.CFrame:inverse() * CFrame.new(Blood.Position)
  2277.  
  2278. end
  2279.  
  2280. end
  2281.  
  2282. end))
  2283.  
  2284. coroutine.wrap(function()
  2285.  
  2286. local Size = Blood.Size
  2287.  
  2288. local Step = math.random(40, 100) / 1000
  2289.  
  2290. while Blood.Transparency < 1 do
  2291.  
  2292. if Blood.Name == "Blood Pool" and Size ~= Blood.Size then
  2293.  
  2294. Step = 0.003
  2295.  
  2296. Size = Blood.Size
  2297.  
  2298. Blood.Transparency = 0
  2299.  
  2300. end
  2301.  
  2302. Blood.Transparency = Blood.Transparency + Step
  2303.  
  2304. wait()
  2305.  
  2306. end
  2307.  
  2308. Blood:Remove()
  2309.  
  2310. end)()
  2311.  
  2312. return Blood
  2313.  
  2314. end
  2315.  
  2316. _G.RobloxAdvanced.HUD = function(Player)
  2317.  
  2318. if _G.RobloxAdvanced.HUDEnabled == false then return end
  2319.  
  2320. local PlayerGui = Player:FindFirstChild("PlayerGui")
  2321.  
  2322. if PlayerGui == nil then return end
  2323.  
  2324. coroutine.wrap(function()
  2325.  
  2326. while _G.RobloxAdvanced.HUDEnabled == true do
  2327.  
  2328. pcall(function()
  2329.  
  2330. PlayerGui.HealthGUI:Remove()
  2331.  
  2332. end)
  2333.  
  2334. wait()
  2335.  
  2336. end
  2337.  
  2338. end)()
  2339.  
  2340. local Gui = Instance.new("ScreenGui")
  2341.  
  2342. Gui.Name = "RobloxAdvancedHUD"
  2343.  
  2344. local Frame = Instance.new("Frame")
  2345.  
  2346. Frame.Name = "Background"
  2347.  
  2348. Frame.Size = UDim2.new(0, 500, 0, 15)
  2349.  
  2350. Frame.Position = UDim2.new(0.5, (-500 / 2), 1, -15)
  2351.  
  2352. Frame.BackgroundTransparency = 1
  2353.  
  2354. Frame.BorderSizePixel = 0
  2355.  
  2356. Frame.Parent = Gui
  2357.  
  2358. local Kills = Instance.new("TextLabel")
  2359.  
  2360. Kills.Name = "Kills"
  2361.  
  2362. Kills.Size = UDim2.new(1 / 5, 0, 1, 0)
  2363.  
  2364. Kills.Position = UDim2.new(0, 0, 0, 0)
  2365.  
  2366. Kills.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
  2367.  
  2368. Kills.BorderSizePixel = 1
  2369.  
  2370. Kills.BorderColor3 = Color3.new(1, 1, 1)
  2371.  
  2372. Kills.TextColor3 = Color3.new(1, 1, 1)
  2373.  
  2374. Kills.Parent = Frame
  2375.  
  2376. coroutine.wrap(function()
  2377.  
  2378. while true do
  2379.  
  2380. Kills.Text = "Kills: " ..(Player:FindFirstChild("RobloxAdvancedKills") ~= nil and Player.RobloxAdvancedKills.Value or 0)
  2381.  
  2382. wait(0.5)
  2383.  
  2384. end
  2385.  
  2386. end)()
  2387.  
  2388. Frame.Parent = Gui
  2389.  
  2390. local Killstreak = Instance.new("TextLabel")
  2391.  
  2392. Killstreak.Name = "Killstreak"
  2393.  
  2394. Killstreak.Size = UDim2.new(1 / 5, 0, 1, 0)
  2395.  
  2396. Killstreak.Position = UDim2.new(1 / 5, 0, 0, 0)
  2397.  
  2398. Killstreak.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
  2399.  
  2400. Killstreak.BorderSizePixel = 1
  2401.  
  2402. Killstreak.BorderColor3 = Color3.new(1, 1, 1)
  2403.  
  2404. Killstreak.TextColor3 = Color3.new(1, 1, 1)
  2405.  
  2406. Killstreak.Parent = Frame
  2407.  
  2408. coroutine.wrap(function()
  2409.  
  2410. while true do
  2411.  
  2412. Killstreak.Text = "Streak: " ..(Player:FindFirstChild("RobloxAdvancedKillstreak") ~= nil and Player.RobloxAdvancedKillstreak.Value or 0)
  2413.  
  2414. wait(0.5)
  2415.  
  2416. end
  2417.  
  2418. end)()
  2419.  
  2420. local Deaths = Instance.new("TextLabel")
  2421.  
  2422. Deaths.Name = "Deaths"
  2423.  
  2424. Deaths.Size = UDim2.new(1 / 5, 0, 1, 0)
  2425.  
  2426. Deaths.Position = UDim2.new(1 / 5 * 2, 0, 0, 0)
  2427.  
  2428. Deaths.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
  2429.  
  2430. Deaths.BorderSizePixel = 1
  2431.  
  2432. Deaths.BorderColor3 = Color3.new(1, 1, 1)
  2433.  
  2434. Deaths.TextColor3 = Color3.new(1, 1, 1)
  2435.  
  2436. Deaths.Parent = Frame
  2437.  
  2438. coroutine.wrap(function()
  2439.  
  2440. while true do
  2441.  
  2442. Deaths.Text = "Deaths: " ..(Player:FindFirstChild("RobloxAdvancedDeaths") ~= nil and Player.RobloxAdvancedDeaths.Value or 0)
  2443.  
  2444. wait(0.5)
  2445.  
  2446. end
  2447.  
  2448. end)()
  2449.  
  2450. local Health = Instance.new("TextLabel")
  2451.  
  2452. Health.Name = "Health"
  2453.  
  2454. Health.Size = UDim2.new(1 / 5, 0, 1, 0)
  2455.  
  2456. Health.Position = UDim2.new(1 / 5 * 3, 0, 0, 0)
  2457.  
  2458. Health.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
  2459.  
  2460. Health.BorderSizePixel = 1
  2461.  
  2462. Health.BorderColor3 = Color3.new(1, 1, 1)
  2463.  
  2464. Health.TextColor3 = Color3.new(1, 1, 1)
  2465.  
  2466. Health.Parent = Frame
  2467.  
  2468. coroutine.wrap(function()
  2469.  
  2470. for i = 0, math.huge, 0.5 do
  2471.  
  2472. if pcall(function() local _ = Player.Character.Humanoid end) == true then
  2473.  
  2474. if Player.Character.Humanoid.Health == math.huge or Player.Character.Humanoid.MaxHealth == math.huge then
  2475.  
  2476. Health.Text = "Invincible"
  2477.  
  2478. Health.BackgroundColor3 = Color3.new(0, 0, 0.5)
  2479.  
  2480. else
  2481.  
  2482. Health.Text = "Health: " ..math.floor(Player.Character.Humanoid.Health).. "/" ..math.floor(Player.Character.Humanoid.MaxHealth)
  2483.  
  2484. Health.BackgroundColor3 = Color3.new((1 - (Player.Character.Humanoid.Health / Player.Character.Humanoid.MaxHealth)) * 0.9, (Player.Character.Humanoid.Health / Player.Character.Humanoid.MaxHealth) * 0.5, 0)
  2485.  
  2486. end
  2487.  
  2488. if Player.Character:FindFirstChild("ForceField") ~= nil then
  2489.  
  2490. Health.BackgroundColor3 = Color3.new(((math.sin(i) + 1) / 2), 0, 1 - ((math.sin(i) + 1) / 2))
  2491.  
  2492. end
  2493.  
  2494. else
  2495.  
  2496. Health.Text = "Health: Nil"
  2497.  
  2498. Health.BackgroundColor3 = Color3.new(0, 0, 0)
  2499.  
  2500. end
  2501.  
  2502. wait(0.05)
  2503.  
  2504. end
  2505.  
  2506. end)()
  2507.  
  2508. local Time = Instance.new("TextLabel")
  2509.  
  2510. Time.Name = "Time"
  2511.  
  2512. Time.Size = UDim2.new(1 / 5, 0, 1, 0)
  2513.  
  2514. Time.Position = UDim2.new(1 / 5 * 4, 0, 0, 0)
  2515.  
  2516. Time.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
  2517.  
  2518. Time.BorderSizePixel = 1
  2519.  
  2520. Time.BorderColor3 = Color3.new(1, 1, 1)
  2521.  
  2522. Time.TextColor3 = Color3.new(1, 1, 1)
  2523.  
  2524. Time.Parent = Frame
  2525.  
  2526. coroutine.wrap(function()
  2527.  
  2528. while true do
  2529.  
  2530. local Total = tick() - _G.RobloxAdvanced.HUDTimeOffset
  2531.  
  2532. local Minutes = math.floor(Total / 60)
  2533.  
  2534. local Seconds = math.floor(Total % 60)
  2535.  
  2536. if string.len(Minutes) == 1 then Minutes = "0" ..Minutes end
  2537.  
  2538. if string.len(Seconds) == 1 then Seconds = "0" ..Seconds end
  2539.  
  2540. Time.Text = "Time: " ..Minutes.. ":" ..Seconds
  2541.  
  2542. wait(0.05)
  2543.  
  2544. end
  2545.  
  2546. end)()
  2547.  
  2548. Gui.Parent = PlayerGui
  2549.  
  2550. end
  2551.  
  2552. _G.RobloxAdvanced.HookPlayerDeath = function(Player)
  2553.  
  2554. table.insert(_G.RobloxAdvanced.Connections, Player.Changed:connect(function(Property)
  2555.  
  2556. if Property == "Character" then
  2557.  
  2558. if Player.Character ~= nil then
  2559.  
  2560. if _G.RobloxAdvanced.SpawnGuiEnabled == true then
  2561.  
  2562. local PlayerGui = Player:FindFirstChild("PlayerGui")
  2563.  
  2564. if PlayerGui == nil then return end
  2565.  
  2566. local Gui = Instance.new("ScreenGui")
  2567.  
  2568. Gui.Name = "Life"
  2569.  
  2570. local Frame = Instance.new("Frame")
  2571.  
  2572. Frame.Name = "White"
  2573.  
  2574. Frame.Size = UDim2.new(2, 0, 2, 0)
  2575.  
  2576. Frame.Position = UDim2.new(-0.5, 0, -0.5, 0)
  2577.  
  2578. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  2579.  
  2580. Frame.BackgroundTransparency = 0
  2581.  
  2582. Frame.Parent = Gui
  2583.  
  2584. Gui.Parent = PlayerGui
  2585.  
  2586. coroutine.wrap(function()
  2587.  
  2588. wait(0.1)
  2589.  
  2590. for i = 0, 1, 0.1 do
  2591.  
  2592. Frame.BackgroundColor3 = Color3.new(i, i, i)
  2593.  
  2594. wait()
  2595.  
  2596. end
  2597.  
  2598. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  2599.  
  2600. wait(0.3)
  2601.  
  2602. for i = 0, 1, 0.05 do
  2603.  
  2604. Frame.BackgroundTransparency = i
  2605.  
  2606. wait()
  2607.  
  2608. end
  2609.  
  2610. Gui:Remove()
  2611.  
  2612. end)()
  2613.  
  2614. end
  2615.  
  2616. _G.RobloxAdvanced.HUD(Player)
  2617.  
  2618. end
  2619.  
  2620. end
  2621.  
  2622. end))
  2623.  
  2624. _G.RobloxAdvanced.HUD(Player)
  2625.  
  2626. table.insert(_G.RobloxAdvanced.Connections, Player.Chatted:connect(function(Message)
  2627.  
  2628. if string.sub(Message, 0, 5) == "lego " then Message = string.sub(Message, 6) end
  2629.  
  2630. Message = Message:lower()
  2631.  
  2632. if Message == "throw me" or Message == "ragdoll" then
  2633.  
  2634. if Player.Character == nil then return end
  2635.  
  2636. if Player.Character:FindFirstChild("Humanoid") == nil then return end
  2637.  
  2638. if Player.Character:FindFirstChild("Torso") == nil then return end
  2639.  
  2640. Player.Character.Humanoid.Sit = true
  2641.  
  2642. _G.RobloxAdvanced.Ragdoll(true, Player.Character)
  2643.  
  2644. if Message == "throw me" then
  2645.  
  2646. Player.Character.Torso.Velocity = Player.Character.Torso.Velocity + (Player.Character.Torso.CFrame.lookVector * 150) + Vector3.new(0, 50, 0)
  2647.  
  2648. end
  2649.  
  2650. end
  2651.  
  2652. end))
  2653.  
  2654. end
  2655.  
  2656. _G.RobloxAdvanced.HookModelDeath = function(Character)
  2657.  
  2658. wait()
  2659.  
  2660. if Character == nil then return end
  2661.  
  2662. if Character:FindFirstChild("Humanoid") == nil then return end
  2663.  
  2664. local RagdollStatus = false
  2665.  
  2666. local ConnectTouched = function(Part)
  2667.  
  2668. if Part.Parent ~= Character then return end
  2669.  
  2670. pcall(function()
  2671.  
  2672. table.insert(_G.RobloxAdvanced.Connections, Part.Touched:connect(function(Hit)
  2673.  
  2674. if Hit == nil then return end
  2675.  
  2676. if Hit.Parent == nil then return end
  2677.  
  2678. if Hit.Parent ~= Character and Hit.Parent.Parent ~= Character and Hit:GetMass() > 3 then
  2679.  
  2680. local Velocity1 = {
  2681.  
  2682. math.abs(Part.Velocity.x),
  2683.  
  2684. math.abs(Part.Velocity.y),
  2685.  
  2686. math.abs(Part.Velocity.z)
  2687.  
  2688. }
  2689.  
  2690. local RotVelocity1 = {
  2691.  
  2692. math.abs(Part.RotVelocity.x),
  2693.  
  2694. math.abs(Part.RotVelocity.y),
  2695.  
  2696. math.abs(Part.RotVelocity.z)
  2697.  
  2698. }
  2699.  
  2700. local Velocity2 = {
  2701.  
  2702. math.abs(Hit.Velocity.x),
  2703.  
  2704. math.abs(Hit.Velocity.y),
  2705.  
  2706. math.abs(Hit.Velocity.z)
  2707.  
  2708. }
  2709.  
  2710. local RotVelocity2 = {
  2711.  
  2712. math.abs(Hit.RotVelocity.x),
  2713.  
  2714. math.abs(Hit.RotVelocity.y),
  2715.  
  2716. math.abs(Hit.RotVelocity.z)
  2717.  
  2718. }
  2719.  
  2720. if RagdollStatus == false and _G.RobloxAdvanced.RagdollOnHit == true then
  2721.  
  2722. for i = 1, 3 do
  2723.  
  2724. local Total = math.abs(Velocity1[i] - Velocity2[i])
  2725.  
  2726. if Total > math.random(85, 150) then
  2727.  
  2728. RagdollStatus = true
  2729.  
  2730. end
  2731.  
  2732. end
  2733.  
  2734. for i = 1, 3 do
  2735.  
  2736. local Total = math.abs(RotVelocity1[i] - RotVelocity2[i])
  2737.  
  2738. if Total > math.random(75, 100) then
  2739.  
  2740. RagdollStatus = true
  2741.  
  2742. end
  2743.  
  2744. end
  2745.  
  2746. if RagdollStatus == true then
  2747.  
  2748. _G.RobloxAdvanced.Ragdoll(true, Character)
  2749.  
  2750. if Character.Humanoid.PlatformStand == true or Character.Humanoid.Sit == true then
  2751.  
  2752. coroutine.wrap(function()
  2753.  
  2754. wait(5)
  2755.  
  2756. RagdollStatus = false
  2757.  
  2758. end)()
  2759.  
  2760. else
  2761.  
  2762. coroutine.wrap(function()
  2763.  
  2764. Character.Humanoid.PlatformStand = true
  2765.  
  2766. wait(1)
  2767.  
  2768. Character.Humanoid.PlatformStand = false
  2769.  
  2770. wait(5)
  2771.  
  2772. RagdollStatus = false
  2773.  
  2774. end)()
  2775.  
  2776. end
  2777.  
  2778. end
  2779.  
  2780. end
  2781.  
  2782. local Damage = 0
  2783.  
  2784. for i = 1, #Velocity1 do Damage = Damage + Velocity1[i] end
  2785.  
  2786. for i = 1, #RotVelocity1 do Damage = Damage + RotVelocity1[i] end
  2787.  
  2788. for i = 1, #Velocity2 do Damage = Damage + Velocity2[i] end
  2789.  
  2790. for i = 1, #RotVelocity2 do Damage = Damage + RotVelocity2[i] end
  2791.  
  2792. Damage = Damage / 60
  2793.  
  2794. if Damage >= 4 and _G.RobloxAdvanced.DamageOnHit == true then
  2795.  
  2796. pcall(function() Character.Humanoid:TakeDamage(math.floor(Damage)) end)
  2797.  
  2798. end
  2799.  
  2800. end
  2801.  
  2802. end))
  2803.  
  2804. end)
  2805.  
  2806. end
  2807.  
  2808. for _, Part in pairs(Character:GetChildren()) do ConnectTouched(Part) end
  2809.  
  2810. table.insert(_G.RobloxAdvanced.Connections, Character.ChildAdded:connect(function(Part) ConnectTouched(Part) end))
  2811.  
  2812. local OldHealth = Character.Humanoid.Health
  2813.  
  2814. table.insert(_G.RobloxAdvanced.Connections, Character.Humanoid.Changed:connect(function(Property)
  2815.  
  2816. if Property == "Health" then
  2817.  
  2818. local Source = nil
  2819.  
  2820. for _, Part in pairs(Character:GetChildren()) do
  2821.  
  2822. if Part:IsA("BasePart") then
  2823.  
  2824. if Source == nil then
  2825.  
  2826. Source = Part
  2827.  
  2828. else
  2829.  
  2830. if math.abs(Part.Velocity.x) + math.abs(Part.Velocity.y) + math.abs(Part.Velocity.z) > math.abs(Source.Velocity.x) + math.abs(Source.Velocity.y) + math.abs(Source.Velocity.z) then
  2831.  
  2832. Source = Part
  2833.  
  2834. end
  2835.  
  2836. end
  2837.  
  2838. end
  2839.  
  2840. end
  2841.  
  2842. if Source == nil then return end
  2843.  
  2844. if math.abs(Character.Humanoid.Health - OldHealth) > math.abs((Character.Humanoid.Health + 0.01 * 1.05 * Character.Humanoid.MaxHealth) - Character.Humanoid.Health) and _G.RobloxAdvanced.ShowDamage == true then
  2845.  
  2846. local Model = Instance.new("Model", Workspace)
  2847.  
  2848. Model.Name = tostring(math.floor(Character.Humanoid.Health - OldHealth))
  2849.  
  2850. Model.Name = Model.Name:sub(0, 1) ~= "-" and Model.Name.. "+" or Model.Name
  2851.  
  2852. local Damage = Instance.new("Part", Model)
  2853.  
  2854. Damage.Name = "Head"
  2855.  
  2856. Damage.BrickColor = BrickColor.new(Model.Name:match("-") and "Really red" or "Lime green")
  2857.  
  2858. if (OldHealth - Character.Humanoid.Health) / Character.Humanoid.MaxHealth > 0.25 then
  2859.  
  2860. coroutine.wrap(function()
  2861.  
  2862. while Damage.Parent ~= nil do
  2863.  
  2864. Damage.BrickColor = BrickColor.new("New Yeller")
  2865.  
  2866. wait()
  2867.  
  2868. Damage.BrickColor = BrickColor.new("Really blue")
  2869.  
  2870. wait()
  2871.  
  2872. end
  2873.  
  2874. end)()
  2875.  
  2876. end
  2877.  
  2878. Damage.TopSurface = 0
  2879.  
  2880. Damage.BottomSurface = 0
  2881.  
  2882. Damage.CanCollide = false
  2883.  
  2884. Damage.FormFactor = "Custom"
  2885.  
  2886. Damage.Size = (OldHealth - Character.Humanoid.Health) / Character.Humanoid.MaxHealth > 0.25 and Vector3.new(1, 1, 1) or Vector3.new(0.5, 0.5, 0.5)
  2887.  
  2888. Damage.CFrame = CFrame.new(Source.Position)
  2889.  
  2890. coroutine.wrap(function()
  2891.  
  2892. while Damage.Parent ~= nil do
  2893.  
  2894. Damage.CanCollide = false
  2895.  
  2896. wait()
  2897.  
  2898. end
  2899.  
  2900. end)()
  2901.  
  2902. local Humanoid = Instance.new("Humanoid", Model)
  2903.  
  2904. Humanoid.Name = "Corpse"
  2905.  
  2906. Humanoid.MaxHealth = 100
  2907.  
  2908. Humanoid.Health = 0
  2909.  
  2910. Humanoid.WalkSpeed = 0
  2911.  
  2912. Humanoid.PlatformStand = true
  2913.  
  2914. local BodyVelocity = Instance.new("BodyVelocity", Damage)
  2915.  
  2916. BodyVelocity.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  2917.  
  2918. BodyVelocity.velocity = Vector3.new(0, 7, 0)
  2919.  
  2920. coroutine.wrap(function()
  2921.  
  2922. wait(1)
  2923.  
  2924. for i = 0, 1, 0.05 do
  2925.  
  2926. Damage.Transparency = i
  2927.  
  2928. BodyVelocity.velocity = Vector3.new(0, 7 * (1 - i), 0)
  2929.  
  2930. wait()
  2931.  
  2932. end
  2933.  
  2934. Model:Remove()
  2935.  
  2936. end)()
  2937.  
  2938. end
  2939.  
  2940. if OldHealth - Character.Humanoid.Health >= 3 then
  2941.  
  2942. if _G.RobloxAdvanced.BloodEnabled == true then
  2943.  
  2944. local Max = math.ceil((OldHealth - Character.Humanoid.Health) * 2)
  2945.  
  2946. for i = 1, (Max > 20 and 20 or Max + 1) do
  2947.  
  2948. local Blood = _G.RobloxAdvanced.MakeBlood()
  2949.  
  2950. Blood.CFrame = Source.CFrame * CFrame.new(math.random(-2, 2), math.random(-2, 2), math.random(-2, 2))
  2951.  
  2952. Blood.Velocity = (Blood.Position - Source.Position).unit * math.random(5, 25)
  2953.  
  2954. Blood.Parent = Workspace
  2955.  
  2956. end
  2957.  
  2958. end
  2959.  
  2960. local Player = game:GetService("Players"):GetPlayerFromCharacter(Character)
  2961.  
  2962. if Player ~= nil and _G.RobloxAdvanced.BloodGuiEnabled == true then
  2963.  
  2964. local PlayerGui = Player:FindFirstChild("PlayerGui")
  2965.  
  2966. if PlayerGui == nil then PlayerGui = Instance.new("PlayerGui", Player) end
  2967.  
  2968. if PlayerGui:FindFirstChild("Pain") ~= nil then PlayerGui.Pain:Remove() end
  2969.  
  2970. local Gui = Instance.new("ScreenGui")
  2971.  
  2972. Gui.Name = "Pain"
  2973.  
  2974. local Frame = Instance.new("Frame")
  2975.  
  2976. Frame.Name = "Red"
  2977.  
  2978. Frame.Size = UDim2.new(2, 0, 2, 0)
  2979.  
  2980. Frame.Position = UDim2.new(-0.5, 0, -0.5, 0)
  2981.  
  2982. Frame.BackgroundColor3 = Color3.new(1, 0, 0)
  2983.  
  2984. Frame.BackgroundTransparency = (math.abs(OldHealth - Character.Humanoid.Health) / Character.Humanoid.MaxHealth) * 1.2
  2985.  
  2986. Frame.Parent = Gui
  2987.  
  2988. Gui.Parent = PlayerGui
  2989.  
  2990. coroutine.wrap(function()
  2991.  
  2992. for i = Frame.BackgroundTransparency, 1, 0.05 do
  2993.  
  2994. Frame.BackgroundTransparency = i
  2995.  
  2996. wait()
  2997.  
  2998. end
  2999.  
  3000. Gui:Remove()
  3001.  
  3002. end)()
  3003.  
  3004. end
  3005.  
  3006. end
  3007.  
  3008. if (OldHealth - Character.Humanoid.Health) / Character.Humanoid.MaxHealth > 0.25 and _G.RobloxAdvanced.CriticalHitsEnabled == true and Character.Humanoid.Health > 0 and RagdollStatus == false then
  3009.  
  3010. RagdollStatus = true
  3011.  
  3012. _G.RobloxAdvanced.Ragdoll(true, Character)
  3013.  
  3014. Character.Humanoid.PlatformStand = true
  3015.  
  3016. local Sound = Instance.new("Sound", Character.Torso)
  3017.  
  3018. Sound.SoundId = "http://www.roblox.com/Asset/?id=2801263"
  3019.  
  3020. Sound.Volume = 1
  3021.  
  3022. Sound.Pitch = math.random(500, 700) / 1000
  3023.  
  3024. Sound:Play()
  3025.  
  3026. local Player = game:GetService("Players"):GetPlayerFromCharacter(Character)
  3027.  
  3028. if Player ~= nil then
  3029.  
  3030. local PlayerGui = Player:FindFirstChild("PlayerGui")
  3031.  
  3032. if PlayerGui == nil then return end
  3033.  
  3034. if PlayerGui:FindFirstChild("Pain") ~= nil then PlayerGui.Pain:Remove() end
  3035.  
  3036. if PlayerGui:FindFirstChild("Critical Hit") ~= nil then PlayerGui.Pain:Remove() end
  3037.  
  3038. local Gui = Instance.new("ScreenGui", PlayerGui)
  3039.  
  3040. Gui.Name = "Critical Hit"
  3041.  
  3042. local Frame = Instance.new("Frame", Gui)
  3043.  
  3044. Frame.Name = "Yellow"
  3045.  
  3046. Frame.Size = UDim2.new(2, 0, 2, 0)
  3047.  
  3048. Frame.Position = UDim2.new(-0.5, 0, -0.5, 0)
  3049.  
  3050. Frame.BackgroundColor3 = Color3.new(0.9, 0.9, 0)
  3051.  
  3052. Frame.BackgroundTransparency = 0
  3053.  
  3054. coroutine.wrap(function()
  3055.  
  3056. for i = 0, 1, 0.01 do
  3057.  
  3058. Frame.BackgroundTransparency = i
  3059.  
  3060. wait()
  3061.  
  3062. end
  3063.  
  3064. Gui:Remove()
  3065.  
  3066. end)()
  3067.  
  3068. for i = 1, 5 do
  3069.  
  3070. local Label = Instance.new("TextLabel", Frame)
  3071.  
  3072. Label.Name = "Notification"
  3073.  
  3074. Label.Position = UDim2.new(0.5, 0, 0.5, 0)
  3075.  
  3076. Label.Text = "CRITICAL HIT"
  3077.  
  3078. Label.FontSize = "Size18"
  3079.  
  3080. Label.TextColor3 = Color3.new(1, 0.5, 0)
  3081.  
  3082. Label.TextTransparency = 0
  3083.  
  3084. coroutine.wrap(function()
  3085.  
  3086. while Label.Parent ~= nil do
  3087.  
  3088. Label.Position = UDim2.new(0.5, math.random(-25, 25), 0.5, math.random(-25, 25))
  3089.  
  3090. Label.FontSize = "Size" ..tostring((function()
  3091.  
  3092. local Size = math.random(1, 5)
  3093.  
  3094. if Size == 1 then
  3095.  
  3096. return 14
  3097.  
  3098. elseif Size == 2 then
  3099.  
  3100. return 18
  3101.  
  3102. elseif Size == 3 then
  3103.  
  3104. return 24
  3105.  
  3106. elseif Size == 4 then
  3107.  
  3108. return 36
  3109.  
  3110. elseif Size == 5 then
  3111.  
  3112. return 48
  3113.  
  3114. end
  3115.  
  3116. end)())
  3117.  
  3118. wait()
  3119.  
  3120. end
  3121.  
  3122. end)()
  3123.  
  3124. coroutine.wrap(function()
  3125.  
  3126. for i = 0.01, 1, 0.05 do
  3127.  
  3128. Label.TextTransparency = i
  3129.  
  3130. wait()
  3131.  
  3132. end
  3133.  
  3134. end)()
  3135.  
  3136. end
  3137.  
  3138. end
  3139.  
  3140. coroutine.wrap(function()
  3141.  
  3142. wait(3)
  3143.  
  3144. Character.Humanoid.PlatformStand = false
  3145.  
  3146. wait(5)
  3147.  
  3148. RagdollStatus = false
  3149.  
  3150. end)()
  3151.  
  3152. end
  3153.  
  3154. OldHealth = Character.Humanoid.Health
  3155.  
  3156. end
  3157.  
  3158. end))
  3159.  
  3160. table.insert(_G.RobloxAdvanced.Connections, Character.Humanoid.Died:connect(function()
  3161.  
  3162. local Humanoid = Character:FindFirstChild("Humanoid")
  3163.  
  3164. if Humanoid == nil then return end
  3165.  
  3166. local Player = game:GetService("Players"):GetPlayerFromCharacter(Character)
  3167.  
  3168. local Killer = nil
  3169.  
  3170. if Humanoid:FindFirstChild("creator") ~= nil then
  3171.  
  3172. Killer = Humanoid.creator.Value
  3173.  
  3174. end
  3175.  
  3176. if Killer ~= nil then
  3177.  
  3178. if Killer:FindFirstChild("RobloxAdvancedKills") == nil then
  3179.  
  3180. Instance.new("IntValue", Killer).Name = "RobloxAdvancedKills"
  3181.  
  3182. end
  3183.  
  3184. if Killer:FindFirstChild("RobloxAdvancedKillstreak") == nil then
  3185.  
  3186. Instance.new("IntValue", Killer).Name = "RobloxAdvancedKillstreak"
  3187.  
  3188. end
  3189.  
  3190. if Player ~= nil and Player.Neutral == false and Killer.Neutral == false and Player.TeamColor == Killer.TeamColor then
  3191.  
  3192. Killer.RobloxAdvancedKills.Value = Killer.RobloxAdvancedKills.Value - 2
  3193.  
  3194. Killer.RobloxAdvancedKillstreak.Value = 0
  3195.  
  3196. else
  3197.  
  3198. Killer.RobloxAdvancedKills.Value = Killer.RobloxAdvancedKills.Value + 1
  3199.  
  3200. Killer.RobloxAdvancedKillstreak.Value = Killer.RobloxAdvancedKillstreak.Value + 1
  3201.  
  3202. end
  3203.  
  3204. end
  3205.  
  3206. if Player ~= nil then
  3207.  
  3208. if Player:FindFirstChild("RobloxAdvancedDeaths") == nil then
  3209.  
  3210. Instance.new("IntValue", Player).Name = "RobloxAdvancedDeaths"
  3211.  
  3212. end
  3213.  
  3214. if Player:FindFirstChild("RobloxAdvancedKillstreak") == nil then
  3215.  
  3216. Instance.new("IntValue", Player).Name = "RobloxAdvancedKillstreak"
  3217.  
  3218. end
  3219.  
  3220. Player.RobloxAdvancedDeaths.Value = Player.RobloxAdvancedDeaths.Value + 1
  3221.  
  3222. Player.RobloxAdvancedKillstreak.Value = 0
  3223.  
  3224. end
  3225.  
  3226. if _G.RobloxAdvanced.RagdollOnDeath == true then
  3227.  
  3228. _G.RobloxAdvanced.Ragdoll(true, Character, true)
  3229.  
  3230. end
  3231.  
  3232. coroutine.wrap(function()
  3233.  
  3234. if _G.RobloxAdvanced.DeathGuiEnabled == false then return end
  3235.  
  3236. if Player == nil then return end
  3237.  
  3238. local PlayerGui = Player:FindFirstChild("PlayerGui")
  3239.  
  3240. if PlayerGui == nil then return end
  3241.  
  3242. local Gui = Instance.new("ScreenGui")
  3243.  
  3244. Gui.Name = "Death"
  3245.  
  3246. local Frame = Instance.new("Frame")
  3247.  
  3248. Frame.Name = "Black"
  3249.  
  3250. Frame.Size = UDim2.new(2, 0, 2, 0)
  3251.  
  3252. Frame.Position = UDim2.new(-0.5, 0, -0.5, 0)
  3253.  
  3254. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  3255.  
  3256. Frame.BackgroundTransparency = 1
  3257.  
  3258. Frame.Parent = Gui
  3259.  
  3260. local Label = Instance.new("TextLabel")
  3261.  
  3262. Label.Name = "Notification"
  3263.  
  3264. Label.Position = UDim2.new(0.5, 0, 0.5, 0)
  3265.  
  3266. if Killer ~= nil then
  3267.  
  3268. if Killer == Player then
  3269.  
  3270. Label.Text = "You have killed yourself."
  3271.  
  3272. else
  3273.  
  3274. Label.Text = "You have been killed by " ..Killer.Name.. "."
  3275.  
  3276. end
  3277.  
  3278. else
  3279.  
  3280. Label.Text = "You have died."
  3281.  
  3282. end
  3283.  
  3284. Label.FontSize = "Size24"
  3285.  
  3286. Label.TextColor3 = Color3.new(1, 0.5, 0)
  3287.  
  3288. Label.TextTransparency = 1
  3289.  
  3290. Label.Parent = Frame
  3291.  
  3292. Gui.Parent = PlayerGui
  3293.  
  3294. wait(0.5)
  3295.  
  3296. for i = 1, 0, -0.05 do
  3297.  
  3298. Label.TextTransparency = i
  3299.  
  3300. wait()
  3301.  
  3302. end
  3303.  
  3304. Label.BackgroundTransparency = 0
  3305.  
  3306. wait(0.5)
  3307.  
  3308. for i = 1, 0, -0.025 do
  3309.  
  3310. Frame.BackgroundTransparency = i
  3311.  
  3312. wait()
  3313.  
  3314. end
  3315.  
  3316. Frame.BackgroundTransparency = 0
  3317.  
  3318. wait(0.5)
  3319.  
  3320. for i = 0, 1, 0.05 do
  3321.  
  3322. Label.TextTransparency = i
  3323.  
  3324. wait()
  3325.  
  3326. end
  3327.  
  3328. Label.BackgroundTransparency = 1
  3329.  
  3330. end)()
  3331.  
  3332. wait(4.5)
  3333.  
  3334. if Character == nil or _G.RobloxAdvanced.KeepCorpses == false then return end
  3335.  
  3336. if Character.Parent == nil then return end
  3337.  
  3338. local ReweldNeck = false
  3339.  
  3340. if Character:FindFirstChild("Torso") ~= nil then
  3341.  
  3342. if Character.Torso:FindFirstChild("Neck") ~= nil then
  3343.  
  3344. ReweldNeck = true
  3345.  
  3346. end
  3347.  
  3348. end
  3349.  
  3350. local Model = Instance.new("Model", Workspace)
  3351.  
  3352. Model.Name = Character.Name.. "'s Corpse"
  3353.  
  3354. for _, Part in pairs(Character:GetChildren()) do
  3355.  
  3356. if Part.ClassName == "CharacterMesh" or Part:IsA("Clothing") or Part.ClassName == "ShirtGraphic" then
  3357.  
  3358. Part:Clone().Parent = Model
  3359.  
  3360. end
  3361.  
  3362. for _, Part2 in pairs(Part:GetChildren()) do
  3363.  
  3364. if Part2.ClassName == "Sound" then
  3365.  
  3366. Part2.SoundId = ""
  3367.  
  3368. Part2.Looped = false
  3369.  
  3370. Part2.PlayOnRemove = false
  3371.  
  3372. Part2.Volume = 0
  3373.  
  3374. Part2.Pitch = 0
  3375.  
  3376. Part2:Stop()
  3377.  
  3378. end
  3379.  
  3380. end
  3381.  
  3382. if Part.ClassName == "Part" then
  3383.  
  3384. pcall(function()
  3385.  
  3386. Part.Parent = Model
  3387.  
  3388. Part.CanCollide = true
  3389.  
  3390. end)
  3391.  
  3392. end
  3393.  
  3394. end
  3395.  
  3396. local Humanoid = Instance.new("Humanoid")
  3397.  
  3398. Humanoid.Name = "Corpse"
  3399.  
  3400. Humanoid.Health = 0
  3401.  
  3402. Humanoid.WalkSpeed = 0
  3403.  
  3404. Humanoid.PlatformStand = true
  3405.  
  3406. Humanoid.Parent = Model
  3407.  
  3408. if ReweldNeck == true then
  3409.  
  3410. local Neck = Instance.new("Weld")
  3411.  
  3412. Neck.Part0 = Torso
  3413.  
  3414. Neck.Part1 = Head
  3415.  
  3416. Neck.C0 = CFrame.new(0, 1.5, 0)
  3417.  
  3418. Neck.Parent = Torso
  3419.  
  3420. end
  3421.  
  3422. game:GetService("Debris"):AddItem(Model, _G.RobloxAdvanced.KeepCorpsesTime)
  3423.  
  3424. end))
  3425.  
  3426. table.insert(_G.RobloxAdvanced.Connections, Character.Humanoid.FallingDown:connect(function() _G.RobloxAdvanced.Ragdoll(true, Character) end))
  3427.  
  3428. table.insert(_G.RobloxAdvanced.Connections, Character.Humanoid.GettingUp:connect(function() _G.RobloxAdvanced.Ragdoll(false, Character) end))
  3429.  
  3430. coroutine.wrap(function()
  3431.  
  3432. local function RemoveLimb(Name)
  3433.  
  3434. if Character:FindFirstChild(Name) == nil then return false end
  3435.  
  3436. local Model = Instance.new("Model")
  3437.  
  3438. Model.Name = "Decapitated Limb"
  3439.  
  3440. for _, Part in pairs(Character:GetChildren()) do
  3441.  
  3442. if Part.ClassName == "CharacterMesh" or Part:IsA("Clothing") then
  3443.  
  3444. Part:Clone().Parent = Model
  3445.  
  3446. end
  3447.  
  3448. if Part.Name == Name then
  3449.  
  3450. pcall(function()
  3451.  
  3452. Part.Parent = Model
  3453.  
  3454. Part.CanCollide = true
  3455.  
  3456. Part:BreakJoints()
  3457.  
  3458. end)
  3459.  
  3460. end
  3461.  
  3462. end
  3463.  
  3464. local Humanoid = Instance.new("Humanoid")
  3465.  
  3466. Humanoid.Name = "Corpse"
  3467.  
  3468. Humanoid.Health = 0
  3469.  
  3470. Humanoid.MaxHealth = 0
  3471.  
  3472. Humanoid.WalkSpeed = 0
  3473.  
  3474. Humanoid.PlatformStand = true
  3475.  
  3476. Humanoid.Parent = Model
  3477.  
  3478. Model.Parent = Workspace
  3479.  
  3480. game:GetService("Debris"):AddItem(Model, _G.RobloxAdvanced.KeepCorpsesTime)
  3481.  
  3482. return true, Model
  3483.  
  3484. end
  3485.  
  3486. while true do
  3487.  
  3488. if Character.Parent == nil then break end
  3489.  
  3490. if Character:FindFirstChild("Torso") == nil then break end
  3491.  
  3492. if Character:FindFirstChild("Humanoid") == nil then break end
  3493.  
  3494. if Character.Torso:FindFirstChild("Left Shoulder") == nil and Character.Torso:FindFirstChild("LeftShoulder") == nil and Character.Torso:FindFirstChild("Left Shoulder 2") == nil then
  3495.  
  3496. local Blood = _G.RobloxAdvanced.MakeBlood()
  3497.  
  3498. Blood.CFrame = Character.Torso.CFrame * CFrame.new(-1.2, 0.5, 0)
  3499.  
  3500. Blood.Velocity = (Blood.Position - (Character.Torso.CFrame * CFrame.new(0, 0.5, 0)).p).unit * math.random(10, 25)
  3501.  
  3502. Blood.Parent = _G.RobloxAdvanced.BloodEnabled == true and Workspace
  3503.  
  3504. if Character:FindFirstChild("Humanoid") ~= nil then Character.Humanoid:TakeDamage(0.25) end
  3505.  
  3506. if Character:FindFirstChild("Left Arm") ~= nil then RemoveLimb("Left Arm") end
  3507.  
  3508. end
  3509.  
  3510. if Character.Torso:FindFirstChild("Right Shoulder") == nil and Character.Torso:FindFirstChild("RightShoulder") == nil and Character.Torso:FindFirstChild("Right Shoulder 2") == nil then
  3511.  
  3512. local Blood = _G.RobloxAdvanced.MakeBlood()
  3513.  
  3514. Blood.CFrame = Character.Torso.CFrame * CFrame.new(1.2, 0.5, 0)
  3515.  
  3516. Blood.Velocity = (Blood.Position - (Character.Torso.CFrame * CFrame.new(0, 0.5, 0)).p).unit * math.random(10, 25)
  3517.  
  3518. Blood.Parent = _G.RobloxAdvanced.BloodEnabled == true and Workspace
  3519.  
  3520. if Character:FindFirstChild("Humanoid") ~= nil then Character.Humanoid:TakeDamage(0.25) end
  3521.  
  3522. if Character:FindFirstChild("Right Arm") ~= nil then RemoveLimb("Right Arm") end
  3523.  
  3524. end
  3525.  
  3526. if Character.Torso:FindFirstChild("Left Hip") == nil and Character.Torso:FindFirstChild("LeftHip") == nil and Character.Torso:FindFirstChild("Left Hip 2") == nil then
  3527.  
  3528. local Blood = _G.RobloxAdvanced.MakeBlood()
  3529.  
  3530. Blood.CFrame = Character.Torso.CFrame * CFrame.new(-0.5, -1.2, 0)
  3531.  
  3532. Blood.Velocity = (Blood.Position - (Character.Torso.CFrame * CFrame.new(-0.5, 0, 0)).p).unit * math.random(4, 8)
  3533.  
  3534. Blood.Parent = _G.RobloxAdvanced.BloodEnabled == true and Workspace
  3535.  
  3536. if Character:FindFirstChild("Humanoid") ~= nil then Character.Humanoid:TakeDamage(0.25) end
  3537.  
  3538. if Character:FindFirstChild("Left Leg") ~= nil then RemoveLimb("Left Leg") end
  3539.  
  3540. end
  3541.  
  3542. if Character.Torso:FindFirstChild("Right Hip") == nil and Character.Torso:FindFirstChild("RightHip") == nil and Character.Torso:FindFirstChild("Right Hip 2") == nil then
  3543.  
  3544. local Blood = _G.RobloxAdvanced.MakeBlood()
  3545.  
  3546. Blood.CFrame = Character.Torso.CFrame * CFrame.new(0.5, -1.2, 0)
  3547.  
  3548. Blood.Velocity = (Blood.Position - (Character.Torso.CFrame * CFrame.new(0.5, 0, 0)).p).unit * math.random(4, 80)
  3549.  
  3550. Blood.Parent = _G.RobloxAdvanced.BloodEnabled == true and Workspace
  3551.  
  3552. if Character:FindFirstChild("Humanoid") ~= nil then Character.Humanoid:TakeDamage(0.25) end
  3553.  
  3554. if Character:FindFirstChild("Right Leg") ~= nil then RemoveLimb("Right Leg") end
  3555.  
  3556. end
  3557.  
  3558. if Character.Torso:FindFirstChild("Neck") == nil then
  3559.  
  3560. local Blood = _G.RobloxAdvanced.MakeBlood()
  3561.  
  3562. Blood.CFrame = Character.Torso.CFrame * CFrame.new(0, 1, 0)
  3563.  
  3564. Blood.Velocity = (Blood.Position - Character.Torso.Position).unit * math.random(25, 75)
  3565.  
  3566. Blood.Parent = _G.RobloxAdvanced.BloodEnabled == true and Workspace
  3567.  
  3568. if Character:FindFirstChild("Head") ~= nil then
  3569.  
  3570. local Blood = _G.RobloxAdvanced.MakeBlood()
  3571.  
  3572. Blood.CFrame = Character.Head.CFrame * CFrame.new(0, -0.5, 0)
  3573.  
  3574. Blood.Velocity = (Blood.Position - Character.Head.Position).unit * math.random(5, 25)
  3575.  
  3576. Blood.Parent = Workspace
  3577.  
  3578. end
  3579.  
  3580. end
  3581.  
  3582. wait(0.11)
  3583.  
  3584. end
  3585.  
  3586. end)()
  3587.  
  3588. end
  3589.  
  3590. _G.RobloxAdvanced.Ragdoll = function(Format, Character, Force)
  3591.  
  3592. if Force ~= true then
  3593.  
  3594. if Character:FindFirstChild("Ragdoll") ~= nil and Format == true then return false end
  3595.  
  3596. if Character:FindFirstChild("Ragdoll") == nil and Format == false then return false end
  3597.  
  3598. end
  3599.  
  3600. local Head = nil
  3601.  
  3602. local Torso = nil
  3603.  
  3604. local Humanoid = nil
  3605.  
  3606. local Dead = false
  3607.  
  3608. for _, Children in pairs(Character:GetChildren()) do
  3609.  
  3610. if Children.ClassName == "ForceField" then Children:Remove() end
  3611.  
  3612. if Children.Name == "" then Children:Remove() end
  3613.  
  3614. if Children.Name == "Head" then Head = Children end
  3615.  
  3616. if Children.Name == "Torso" then Torso = Children end
  3617.  
  3618. if Children.ClassName == "Humanoid" then Humanoid = Children end
  3619.  
  3620. if Children:IsA("Accoutrement") then
  3621.  
  3622. if Children:FindFirstChild("Handle") ~= nil then
  3623.  
  3624. if math.random(1, 3) == 1 then
  3625.  
  3626. coroutine.wrap(function()
  3627.  
  3628. Children.Parent = Workspace
  3629.  
  3630. wait()
  3631.  
  3632. Children.Parent = Character
  3633.  
  3634. Children.Handle.CanCollide = true
  3635.  
  3636. end)()
  3637.  
  3638. else
  3639.  
  3640. Children.Parent = Workspace
  3641.  
  3642. Children.Handle.CanCollide = true
  3643.  
  3644. end
  3645.  
  3646. else
  3647.  
  3648. Children:Remove()
  3649.  
  3650. end
  3651.  
  3652. end
  3653.  
  3654. end
  3655.  
  3656. if Humanoid ~= nil then
  3657.  
  3658. if Humanoid.Health <= 0 then
  3659.  
  3660. Dead = true
  3661.  
  3662. end
  3663.  
  3664. end
  3665.  
  3666. if Torso ~= nil then
  3667.  
  3668. for _, Children2 in pairs(Torso:GetChildren()) do
  3669.  
  3670. if Children2:IsA("JointInstance") then
  3671.  
  3672. Children2:Remove()
  3673.  
  3674. end
  3675.  
  3676. end
  3677.  
  3678. end
  3679.  
  3680. if Head ~= nil and (function()
  3681.  
  3682. if Dead == true and math.random(1, 2) == 1 then
  3683.  
  3684. return true
  3685.  
  3686. else
  3687.  
  3688. return false
  3689.  
  3690. end
  3691.  
  3692. end)() == false then
  3693.  
  3694. local Neck = Instance.new("Motor6D")
  3695.  
  3696. Neck.Name = "Neck"
  3697.  
  3698. Neck.Part0 = Torso
  3699.  
  3700. Neck.Part1 = Head
  3701.  
  3702. Neck.C0 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, math.rad(180))
  3703.  
  3704. Neck.C1 = CFrame.new(0, -0.5, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, math.rad(180))
  3705.  
  3706. Neck.MaxVelocity = 0.1
  3707.  
  3708. Neck.Parent = Torso
  3709.  
  3710. end
  3711.  
  3712. if Format == true then
  3713.  
  3714. local Ragdoll = Instance.new("IntValue")
  3715.  
  3716. Ragdoll.Name = "Ragdoll"
  3717.  
  3718. Ragdoll.Parent = Character
  3719.  
  3720. if Torso ~= nil then
  3721.  
  3722. Torso.Velocity = Torso.Velocity / 1.25
  3723.  
  3724. Torso.RotVelocity = (Torso.RotVelocity / 1.25) + Vector3.new(math.random(-25, 25), math.random(-25, 25), math.random(-25, 25))
  3725.  
  3726. if Dead == true then
  3727.  
  3728. if Humanoid ~= nil then
  3729.  
  3730. local Humanoid2 = Humanoid:Clone()
  3731.  
  3732. wait()
  3733.  
  3734. Humanoid:Remove()
  3735.  
  3736. Humanoid2.Parent = Character
  3737.  
  3738. Humanoid = Humanoid2
  3739.  
  3740. end
  3741.  
  3742. end
  3743.  
  3744. local Limb = Character:FindFirstChild("Right Arm")
  3745.  
  3746. if Limb ~= nil then
  3747.  
  3748. Limb.Velocity = Torso.Velocity
  3749.  
  3750. Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
  3751.  
  3752. local Joint = Instance.new("Glue")
  3753.  
  3754. Joint.Name = "RightShoulder"
  3755.  
  3756. Joint.Part0 = Torso
  3757.  
  3758. Joint.Part1 = Limb
  3759.  
  3760. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  3761.  
  3762. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  3763.  
  3764. Joint.Parent = Torso
  3765.  
  3766. local Weight = Instance.new("Part")
  3767.  
  3768. Weight.Name = ""
  3769.  
  3770. Weight.TopSurface = 0
  3771.  
  3772. Weight.BottomSurface = 0
  3773.  
  3774. Weight.Shape = "Block"
  3775.  
  3776. Weight.FormFactor = "Custom"
  3777.  
  3778. Weight.Size = Vector3.new(1, 1, 1)
  3779.  
  3780. Weight.Transparency = 1
  3781.  
  3782. Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  3783.  
  3784. Weight.Parent = Character
  3785.  
  3786. local Weld = Instance.new("Weld")
  3787.  
  3788. Weld.Part0 = Limb
  3789.  
  3790. Weld.Part1 = Weight
  3791.  
  3792. Weld.C0 = CFrame.new(0, -0.5, 0)
  3793.  
  3794. Weld.Parent = Limb
  3795.  
  3796. end
  3797.  
  3798. local Limb = Character:FindFirstChild("Left Arm")
  3799.  
  3800. if Limb then
  3801.  
  3802. Limb.Velocity = Torso.Velocity
  3803.  
  3804. Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
  3805.  
  3806. local Joint = Instance.new("Glue")
  3807.  
  3808. Joint.Name = "LeftShoulder"
  3809.  
  3810. Joint.Part0 = Torso
  3811.  
  3812. Joint.Part1 = Limb
  3813.  
  3814. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  3815.  
  3816. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  3817.  
  3818. Joint.Parent = Torso
  3819.  
  3820. local Weight = Instance.new("Part")
  3821.  
  3822. Weight.Name = ""
  3823.  
  3824. Weight.TopSurface = 0
  3825.  
  3826. Weight.BottomSurface = 0
  3827.  
  3828. Weight.Shape = "Block"
  3829.  
  3830. Weight.FormFactor = "Custom"
  3831.  
  3832. Weight.Size = Vector3.new(1, 1, 1)
  3833.  
  3834. Weight.Transparency = 1
  3835.  
  3836. Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  3837.  
  3838. Weight.Parent = Character
  3839.  
  3840. local Weld = Instance.new("Weld")
  3841.  
  3842. Weld.Part0 = Limb
  3843.  
  3844. Weld.Part1 = Weight
  3845.  
  3846. Weld.C0 = CFrame.new(0, -0.5, 0)
  3847.  
  3848. Weld.Parent = Limb
  3849.  
  3850. end
  3851.  
  3852. local Limb = Character:FindFirstChild("Right Leg")
  3853.  
  3854. if Limb then
  3855.  
  3856. Limb.Velocity = Torso.Velocity
  3857.  
  3858. Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
  3859.  
  3860. local Joint = Instance.new("Glue")
  3861.  
  3862. Joint.Name = "RightHip"
  3863.  
  3864. Joint.Part0 = Torso
  3865.  
  3866. Joint.Part1 = Limb
  3867.  
  3868. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  3869.  
  3870. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  3871.  
  3872. Joint.Parent = Torso
  3873.  
  3874. local Weight = Instance.new("Part")
  3875.  
  3876. Weight.Name = ""
  3877.  
  3878. Weight.TopSurface = 0
  3879.  
  3880. Weight.BottomSurface = 0
  3881.  
  3882. Weight.Shape = "Block"
  3883.  
  3884. Weight.FormFactor = "Custom"
  3885.  
  3886. Weight.Size = Vector3.new(1, 1, 1)
  3887.  
  3888. Weight.Transparency = 1
  3889.  
  3890. Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  3891.  
  3892. Weight.Parent = Character
  3893.  
  3894. local Weld = Instance.new("Weld")
  3895.  
  3896. Weld.Part0 = Limb
  3897.  
  3898. Weld.Part1 = Weight
  3899.  
  3900. Weld.C0 = CFrame.new(0, -0.5, 0)
  3901.  
  3902. Weld.Parent = Limb
  3903.  
  3904. end
  3905.  
  3906. local Limb = Character:FindFirstChild("Left Leg")
  3907.  
  3908. if Limb then
  3909.  
  3910. Limb.Velocity = Torso.Velocity
  3911.  
  3912. Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
  3913.  
  3914. local Joint = Instance.new("Glue")
  3915.  
  3916. Joint.Name = "LeftHip"
  3917.  
  3918. Joint.Part0 = Torso
  3919.  
  3920. Joint.Part1 = Limb
  3921.  
  3922. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  3923.  
  3924. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  3925.  
  3926. Joint.Parent = Torso
  3927.  
  3928. local Weight = Instance.new("Part")
  3929.  
  3930. Weight.Name = ""
  3931.  
  3932. Weight.TopSurface = 0
  3933.  
  3934. Weight.BottomSurface = 0
  3935.  
  3936. Weight.Shape = "Block"
  3937.  
  3938. Weight.FormFactor = "Custom"
  3939.  
  3940. Weight.Size = Vector3.new(1, 1, 1)
  3941.  
  3942. Weight.Transparency = 1
  3943.  
  3944. Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  3945.  
  3946. Weight.Parent = Character
  3947.  
  3948. local Weld = Instance.new("Weld")
  3949.  
  3950. Weld.Part0 = Limb
  3951.  
  3952. Weld.Part1 = Weight
  3953.  
  3954. Weld.C0 = CFrame.new(0, -0.5, 0)
  3955.  
  3956. Weld.Parent = Limb
  3957.  
  3958. end
  3959.  
  3960. local Weight = Instance.new("Part")
  3961.  
  3962. Weight.Name = ""
  3963.  
  3964. Weight.TopSurface = 0
  3965.  
  3966. Weight.BottomSurface = 0
  3967.  
  3968. Weight.Shape = "Block"
  3969.  
  3970. Weight.FormFactor = "Custom"
  3971.  
  3972. Weight.Size = Vector3.new(1.75, 1.5, 1.1)
  3973.  
  3974. Weight.Transparency = 1
  3975.  
  3976. Weight.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
  3977.  
  3978. Weight.Parent = Character
  3979.  
  3980. local Weld = Instance.new("Weld")
  3981.  
  3982. Weld.Part0 = Torso
  3983.  
  3984. Weld.Part1 = Weight
  3985.  
  3986. Weld.C0 = CFrame.new(0, 0.5, 0)
  3987.  
  3988. Weld.Parent = Torso
  3989.  
  3990. end
  3991.  
  3992. elseif Format == false then
  3993.  
  3994. if Character:FindFirstChild("Ragdoll") ~= nil then Character.Ragdoll:Remove() end
  3995.  
  3996. if Torso ~= nil then
  3997.  
  3998. local Limb = Character:FindFirstChild("Right Arm")
  3999.  
  4000. if Limb ~= nil then
  4001.  
  4002. local Joint = Instance.new("Motor6D")
  4003.  
  4004. Joint.Name = "Right Shoulder"
  4005.  
  4006. Joint.Part0 = Torso
  4007.  
  4008. Joint.Part1 = Limb
  4009.  
  4010. Joint.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  4011.  
  4012. Joint.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  4013.  
  4014. Joint.MaxVelocity = 0.15
  4015.  
  4016. Joint.Parent = Torso
  4017.  
  4018. end
  4019.  
  4020. local Limb = Character:FindFirstChild("Left Arm")
  4021.  
  4022. if Limb ~= nil then
  4023.  
  4024. local Joint = Instance.new("Motor6D")
  4025.  
  4026. Joint.Name = "Left Shoulder"
  4027.  
  4028. Joint.Part0 = Torso
  4029.  
  4030. Joint.Part1 = Limb
  4031.  
  4032. Joint.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  4033.  
  4034. Joint.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  4035.  
  4036. Joint.MaxVelocity = 0.15
  4037.  
  4038. Joint.Parent = Torso
  4039.  
  4040. end
  4041.  
  4042. local Limb = Character:FindFirstChild("Right Leg")
  4043.  
  4044. if Limb ~= nil then
  4045.  
  4046. local Joint = Instance.new("Motor6D")
  4047.  
  4048. Joint.Name = "Right Hip"
  4049.  
  4050. Joint.Part0 = Torso
  4051.  
  4052. Joint.Part1 = Limb
  4053.  
  4054. Joint.C0 = CFrame.new(0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  4055.  
  4056. Joint.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  4057.  
  4058. Joint.MaxVelocity = 0.1
  4059.  
  4060. Joint.Parent = Torso
  4061.  
  4062. end
  4063.  
  4064. local Limb = Character:FindFirstChild("Left Leg")
  4065.  
  4066. if Limb ~= nil then
  4067.  
  4068. local Joint = Instance.new("Motor6D")
  4069.  
  4070. Joint.Name = "Left Hip"
  4071.  
  4072. Joint.Part0 = Torso
  4073.  
  4074. Joint.Part1 = Limb
  4075.  
  4076. Joint.C0 = CFrame.new(-0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  4077.  
  4078. Joint.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  4079.  
  4080. Joint.MaxVelocity = 0.1
  4081.  
  4082. Joint.Parent = Torso
  4083.  
  4084. end
  4085.  
  4086. local Animate = Character:FindFirstChild("Animate")
  4087.  
  4088. if Animate ~= nil then
  4089.  
  4090. local Animate2 = Animate:Clone()
  4091.  
  4092. Animate:Remove()
  4093.  
  4094. Animate2.Parent = Character
  4095.  
  4096. end
  4097.  
  4098. end
  4099.  
  4100. else
  4101.  
  4102. return false
  4103.  
  4104. end
  4105.  
  4106. return true, Format
  4107.  
  4108. end
  4109.  
  4110. table.insert(_G.RobloxAdvanced.Connections, Workspace.DescendantAdded:connect(_G.RobloxAdvanced.HookModelDeath))
  4111.  
  4112. table.insert(_G.RobloxAdvanced.Connections, game:GetService("Players").PlayerAdded:connect(_G.RobloxAdvanced.HookPlayerDeath))
  4113.  
  4114. for _, Players in pairs(game:GetService("Players"):GetPlayers()) do
  4115.  
  4116. _G.RobloxAdvanced.HookPlayerDeath(Players)
  4117.  
  4118. end
  4119.  
  4120. for _, Children in pairs(Workspace:GetChildren()) do
  4121.  
  4122. _G.RobloxAdvanced.HookModelDeath(Children)
  4123.  
  4124. end
  4125.  
  4126. end))
  4127. for i,v in pairs(mas:GetChildren()) do
  4128. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  4129. pcall(function() v:MakeJoints() end)
  4130. end
  4131. mas:Destroy()
  4132. for i,v in pairs(cors) do
  4133. spawn(function()
  4134. pcall(v)
  4135. end)
  4136. end
Add Comment
Please, Sign In to add comment