Advertisement
danielaust

stick

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