13242

Untitled

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