sIendytubble

bloody ragdoll pan

May 17th, 2020
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 49.42 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  51. return m:TrigEvent(b and "Button2Down" or "Button2Up")
  52. end
  53. for _,t in pairs(CAS.Actions) do
  54. for _,k in pairs(t.Keys) do
  55. if k==io.KeyCode then
  56. t.Function(t.Name,io.UserInputState,io)
  57. end
  58. end
  59. end
  60. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  61. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  62. end
  63. end)
  64. Event.Parent = NLS([==[
  65. local Player = game:GetService("Players").LocalPlayer
  66. local Event = script:WaitForChild("UserInput_Event")
  67. local Mouse = Player:GetMouse()
  68. local UIS = game:GetService("UserInputService")
  69. local input = function(io,a)
  70. if a then return end
  71. --Since InputObject is a client-side instance, we create and pass table instead
  72. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  73. end
  74. UIS.InputBegan:Connect(input)
  75. UIS.InputEnded:Connect(input)
  76. local h,t
  77. --Give the server mouse data 30 times every second, but only if the values changed
  78. --If player is not moving their mouse, client won't fire events
  79. while wait(1/30) do
  80. if h~=Mouse.Hit or t~=Mouse.Target then
  81. h,t=Mouse.Hit,Mouse.Target
  82. Event:FireServer({isMouse=true,Target=t,Hit=h})
  83. end
  84. end]==],Player.Character)
  85.  
  86. ----Sandboxed game object that allows the usage of client-side methods and services
  87. --Real game object
  88. local _rg = game
  89.  
  90. --Metatable for fake service
  91. local fsmt = {
  92. __index = function(self,k)
  93. local s = rawget(self,"_RealService")
  94. if s then
  95. return typeof(s[k])=="function"
  96. and function(_,...)return s[k](s,...)end or s[k]
  97. end
  98. end,
  99. __newindex = function(self,k,v)
  100. local s = rawget(self,"_RealService")
  101. if s then s[k]=v end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return rawget(self,s) or _rg:GetService(s)
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. RunService = FakeService({
  120. _btrs = {},
  121. RenderStepped = _rg:GetService("RunService").Heartbeat,
  122. BindToRenderStep = function(self,name,_,fun)
  123. self._btrs[name] = self.Heartbeat:Connect(fun)
  124. end,
  125. UnbindFromRenderStep = function(self,name)
  126. self._btrs[name]:Disconnect()
  127. end,
  128. },"RunService")
  129. }
  130. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  131. g.service = g.GetService
  132. FakeService(g,game)
  133. --Changing owner to fake player object to support owner:GetMouse()
  134. game,owner = g,g.Players.LocalPlayer
  135. end
  136. char = game.Players.LocalPlayer.Character
  137. swing = Instance.new("Animation",char)
  138. swing.AnimationId = "rbxassetid://54584713"
  139. player = game.Players.LocalPlayer
  140. mouse = player:GetMouse()
  141. mas = char
  142. head = char.Head
  143. Part0 = Instance.new("Part")
  144. Sound1 = Instance.new("Sound")
  145. Sound2 = Instance.new("Sound")
  146. Sound3 = Instance.new("Sound")
  147. SpecialMesh4 = Instance.new("SpecialMesh")
  148. Weld5 = Instance.new("Weld")
  149. Part0.Name = "Handle"
  150. Part0.Parent = mas
  151. Part0.CFrame = CFrame.new(-19.2095661, 15.655098, 59.2000008, 4.37113883e-08, 1, -8.74227766e-08, 1, -4.37113883e-08, 0, -3.82137093e-15, -8.74227766e-08, -1)
  152. Part0.Orientation = Vector3.new(0, -180, 90)
  153. Part0.Position = Vector3.new(-19.2095661, 15.655098, 59.2000008)
  154. Part0.Rotation = Vector3.new(-180, 0, -90)
  155. Part0.Color = Color3.new(0.388235, 0.372549, 0.384314)
  156. Part0.Size = Vector3.new(1,2,3)
  157. Part0.BottomSurface = Enum.SurfaceType.Smooth
  158. Part0.BrickColor = BrickColor.new("Dark stone grey")
  159. Part0.Reflectance = 0.40000000596046
  160. Part0.TopSurface = Enum.SurfaceType.Smooth
  161. Part0.brickColor = BrickColor.new("Dark stone grey")
  162. Part0.CanCollide = false
  163. Sound1.Parent = Part0
  164. Sound1.SoundId = "rbxasset://sounds/swordslash.wav"
  165. Sound1.Volume = 1
  166. Sound2.Parent = Part0
  167. Sound2.SoundId = "rbxassetid://2235655773"
  168. Sound2.Volume = 1
  169. Sound3.Parent = Part0
  170. Sound3.SoundId = "rbxassetid://3431749479"
  171. Sound3.Volume = 3
  172. SpecialMesh4.Parent = Part0
  173. SpecialMesh4.MeshId = "http://www.roblox.com/asset/?id=24342877"
  174. SpecialMesh4.Scale = Vector3.new(2,2,2)
  175. SpecialMesh4.TextureId = "http://www.roblox.com/asset/?id=24342832"
  176. SpecialMesh4.MeshType = Enum.MeshType.FileMesh
  177. Weld5.Parent = Part0
  178. Weld5.C0 = CFrame.new(0,-2,0) * CFrame.Angles(-math.rad(90),math.rad(180),math.rad(90))
  179. Weld5.Part0 = mas["Right Arm"]
  180. Weld5.Part1 = Part0
  181. Weld5.part1 = Part0
  182. local slashing = false
  183. local slashing2 = false
  184. de = char.Humanoid:LoadAnimation(swing)
  185. Part0.Touched:Connect(function(hit)
  186. if swinging == true or slashing == true and slashing2 == false and hit.Parent ~= char then
  187. hit.Velocity = Vector3.new(hit.Velocity.X + (head.CFrame.lookVector.X * 18), hit.Velocity.Y + (head.CFrame.lookVector.Y * 18) + 8, hit.Velocity.Z + (head.CFrame.lookVector.Z * 18))
  188. if hit.Parent and hit.Parent:FindFirstChildOfClass("Humanoid") then
  189. Sound2:Stop()
  190. Sound3:Play()
  191. end
  192. if hit.Parent and hit.Parent:FindFirstChildOfClass("Humanoid") and not hit.Parent:FindFirstChild("DEADMIDGET") then
  193. Sound2:Stop()
  194. Sound3:Play()
  195. aaa = Instance.new("Decal",Part0)
  196. aaa.Transparency = 0.52
  197. aaa.Face = "Bottom"
  198. aaa.Texture = "rbxassetid://449475289"
  199. coroutine.resume(coroutine.create(function()
  200. target = hit.Parent
  201. hit.Velocity = Vector3.new(hit.Velocity.X + (head.CFrame.lookVector.X * 18), hit.Velocity.Y + (head.CFrame.lookVector.Y * 18) + 8, hit.Velocity.Z + (head.CFrame.lookVector.Z * 18))
  202. target.Archivable = true
  203. ragdoll = target:Clone()
  204. Humanoid = ragdoll.Humanoid
  205. ragdoll.Parent = workspace
  206. vweld = Instance.new("Weld",target)
  207. vweld.Part0 = ragdoll:WaitForChild("HumanoidRootPart")
  208. vweld.Part1 = target:WaitForChild("HumanoidRootPart")
  209. target.HumanoidRootPart.Transparency = 1
  210. for i,v in pairs(target:GetChildren()) do
  211. if v.ClassName == "Part" then
  212. v:Destroy()
  213. end
  214. end
  215. for i,v in pairs(target:GetChildren()) do
  216. if v.ClassName == "Script" then
  217. v:Destroy()
  218. end
  219. end
  220. target:Destroy()
  221. if Humanoid.RigType == Enum.HumanoidRigType.R15 then
  222. ragdoll.Humanoid.BreakJointsOnDeath=false
  223. ragdoll.Humanoid.Name = "DEADMIDGET"
  224. ragdoll:FindFirstChildOfClass("Humanoid").PlatformStand = true
  225. local function makeballconnections(limb, attachementone, attachmenttwo, twistlower, twistupper)
  226. local connection = Instance.new('BallSocketConstraint', limb)
  227. connection.LimitsEnabled = true
  228. connection.Attachment0 = attachementone
  229. connection.Attachment1 = attachmenttwo
  230. connection.TwistLimitsEnabled = true
  231. connection.TwistLowerAngle = twistlower
  232. connection.TwistUpperAngle = twistupper
  233. local limbcollider = Instance.new("Part", limb)
  234. limbcollider.Size = Vector3.new(0.1,1,1)
  235. limbcollider.Shape = "Cylinder"
  236. limbcollider.Transparency = 1
  237. limbcollider:BreakJoints()
  238. local limbcolliderweld = Instance.new("Weld", limbcollider)
  239. limbcolliderweld.Part0 = limb
  240. limbcolliderweld.Part1 = limbcollider
  241. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  242. end
  243. local function makehingeconnections(limb, attachementone, attachmenttwo, lower, upper)
  244. local connection = Instance.new('HingeConstraint', limb)
  245. connection.LimitsEnabled = true
  246. connection.Attachment0 = attachementone
  247. connection.Attachment1 = attachmenttwo
  248. connection.LimitsEnabled = true
  249. connection.LowerAngle = lower
  250. connection.UpperAngle = upper
  251. local limbcollider = Instance.new("Part", limb)
  252. limbcollider.Size = Vector3.new(0.1,1,1)
  253. limbcollider.Shape = "Cylinder"
  254. limbcollider.Transparency = 1
  255. limbcollider:BreakJoints()
  256. local limbcolliderweld = Instance.new("Weld", limbcollider)
  257. limbcolliderweld.Part0 = limb
  258. limbcolliderweld.Part1 = limbcollider
  259. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  260. end
  261. local HeadAttachment = Instance.new("Attachment", Humanoid.Parent.Head)
  262. HeadAttachment.Position = Vector3.new(0, -0.5, 0)
  263. if ragdoll.UpperTorso:findFirstChild("NeckAttachment") then
  264. makehingeconnections(Humanoid.Parent.Head, HeadAttachment, ragdoll.UpperTorso.NeckAttachment, -50, 50)
  265. end
  266. function bleed(frick,OwO)
  267. while frick.Parent ~= nil and frick.Parent.Parent ~= nil do
  268. local reeee = coroutine.wrap(function()
  269. local thing = Instance.new('Part',workspace)
  270. thing.Size = Vector3.new(0.2,0.2,0.2)
  271. thing.CFrame = frick.CFrame
  272. thing.Transparency = 1
  273. thing.BrickColor = BrickColor.new('Maroon')
  274. thing.Material = Enum.Material.SmoothPlastic
  275. thing.Name = "Blood"
  276. thing.CanCollide =false
  277. thing:BreakJoints()
  278. local rawrxd = Instance.new('BodyForce',thing)
  279. rawrxd.Force = frick.CFrame.upVector*(math.random()*2)+Vector3.new(math.random(-5, 5)/10,1.5,0)
  280. local coru = coroutine.wrap(function()
  281. wait(0.01)
  282. rawrxd:Destroy()
  283. end)
  284. coru()
  285. local ree = Instance.new('ParticleEmitter',thing)
  286. if OwO ~= true then
  287. ree.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,1,1)),ColorSequenceKeypoint.new(1,Color3.new(1,1,1))})
  288. else
  289. ree.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,1,1)),ColorSequenceKeypoint.new(1,Color3.new(1,1,1))})
  290. end
  291. ree.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.1),NumberSequenceKeypoint.new(1,0.1)})
  292. ree.Texture = 'rbxassetid://867743272'
  293. ree.Lifetime = NumberRange.new(0.4)
  294. ree.Rate = 50
  295. ree.LockedToPart = true
  296. ree.Speed = NumberRange.new(0, 2)
  297. thing.Touched:connect(function(tou)
  298. if tou.Parent and tou.Parent:IsA('Tool') == false and tou.Parent.Parent:FindFirstChildOfClass('Humanoid') == nil and tou.Parent:FindFirstChildOfClass('Humanoid') == nil and tou.Name ~= "Blood" and tou.Parent.Name ~= "Projectile" and tou.Parent.Name ~= "big ass knife" and tou.Parent.ClassName ~= "Accessory" and tou.Parent.Name ~= "bitch ass knife" and tou.Parent.Name ~= 'handle' and tou.Name ~= "blade" and tou.Name ~= 'handle' and tou.Name ~= "Projectile" and tou.Parent.Name ~= "Projectile" then
  299. local pos = Vector3.new(thing.Position.X,(tou.Position.Y+(tou.Size.Y/2))+0.02,thing.Position.Z)
  300. local Point1 = pos-Vector3.new(0.01,0.01,0.01)
  301. local Point2 = pos+Vector3.new(0.01,0.01,0.01)
  302. local Region = Region3.new(Point1,Point2)
  303. for _,Part in pairs(game.Workspace:FindPartsInRegion3(Region,nil,math.huge)) do
  304. if Part.Name == "BloodPuddle" then
  305. tou = Part
  306. end
  307. end
  308. thing:Destroy()
  309. if tou.Name == "BloodPuddle" then
  310. if tou.Size.X < 1 then
  311. pcall(function()
  312. tou.Sound:Play()
  313. end)
  314. end
  315. local reee = tou.CFrame
  316. if tou.Transparency > -0.2 then
  317. tou.Transparency = tou.Transparency -0.1
  318. end
  319. if tou.Size.X < 3 then
  320. tou.Size = tou.Size+Vector3.new(0.1,0,0.1)
  321. tou.CFrame = reee
  322. end
  323. elseif tou.CanCollide == true then
  324. local bloodlol = Instance.new('Part',workspace)
  325. local sound = Instance.new('Sound',bloodlol)
  326. sound.SoundId = 'rbxassetid://685857471'
  327. sound.Volume = 0.025
  328. sound:Play()
  329. bloodlol.Size=Vector3.new(0.2,0.2,0.2)
  330. bloodlol.Name = "BloodPuddle"
  331. bloodlol.Anchored = true
  332. bloodlol.CanCollide = false
  333. bloodlol.Material = Enum.Material.SmoothPlastic
  334. if OwO ~= true then
  335. bloodlol.Color = Color3.new(117, 0, 0)
  336. else
  337. bloodlol.Color = Color3.new(117, 0, 0)
  338. end
  339. local cyl = Instance.new('CylinderMesh',bloodlol)
  340. cyl.Scale = Vector3.new(1,0.1,1)
  341. bloodlol.CFrame = CFrame.new(pos)
  342. coroutine.resume(coroutine.create(function()
  343. local tou = bloodlol
  344. local reee = tou.CFrame
  345. while wait() do
  346. if tou.Size.X < 5 then
  347. tou.Size = tou.Size+Vector3.new(0.005,0,0.005)
  348. tou.CFrame = reee
  349. end
  350. end
  351. end))
  352. local coru=coroutine.wrap(function()
  353. while bloodlol.Parent ~= nil do
  354. if bloodlol.Transparency < 1 then
  355. bloodlol.Transparency = bloodlol.Transparency+0.05
  356. else
  357. bloodlol:Destroy()
  358. end
  359. wait(0.1)
  360. end
  361. end)
  362. end
  363. end
  364. end)
  365. local coru = coroutine.wrap(function()
  366. wait(1)
  367. thing:Destroy()
  368. end)
  369. coru()
  370. end)
  371. reeee()
  372. wait()
  373. end
  374. end
  375.  
  376. local aidsificating = Humanoid.Parent
  377. local thang = "Torso"
  378. if aidsificating:FindFirstChild('UpperTorso') then
  379. thang = "UpperTorso"
  380. end
  381. makehingeconnections(Humanoid.Parent.LowerTorso, Humanoid.Parent.LowerTorso.WaistRigAttachment, Humanoid.Parent.UpperTorso.WaistRigAttachment, -50, 50)
  382. makeballconnections(Humanoid.Parent.LeftUpperArm, Humanoid.Parent.LeftUpperArm.LeftShoulderRigAttachment, Humanoid.Parent.UpperTorso.LeftShoulderRigAttachment, -200, 200, 180)
  383. makehingeconnections(Humanoid.Parent.LeftLowerArm, Humanoid.Parent.LeftLowerArm.LeftElbowRigAttachment, Humanoid.Parent.LeftUpperArm.LeftElbowRigAttachment, 0, -60)
  384. makehingeconnections(Humanoid.Parent.LeftHand, Humanoid.Parent.LeftHand.LeftWristRigAttachment, Humanoid.Parent.LeftLowerArm.LeftWristRigAttachment, -20, 20)
  385. --
  386. makeballconnections(Humanoid.Parent.RightUpperArm, Humanoid.Parent.RightUpperArm.RightShoulderRigAttachment, Humanoid.Parent.UpperTorso.RightShoulderRigAttachment, -200, 200, 180)
  387. makehingeconnections(Humanoid.Parent.RightLowerArm, Humanoid.Parent.RightLowerArm.RightElbowRigAttachment, Humanoid.Parent.RightUpperArm.RightElbowRigAttachment, 0, -60)
  388. makehingeconnections(Humanoid.Parent.RightHand, Humanoid.Parent.RightHand.RightWristRigAttachment, Humanoid.Parent.RightLowerArm.RightWristRigAttachment, -20, 20)
  389. --
  390. makeballconnections(Humanoid.Parent.RightUpperLeg, Humanoid.Parent.RightUpperLeg.RightHipRigAttachment, Humanoid.Parent.LowerTorso.RightHipRigAttachment, -80, 80, 80)
  391. makehingeconnections(Humanoid.Parent.RightLowerLeg, Humanoid.Parent.RightLowerLeg.RightKneeRigAttachment, Humanoid.Parent.RightUpperLeg.RightKneeRigAttachment, 0, 60)
  392. makehingeconnections(Humanoid.Parent.RightFoot, Humanoid.Parent.RightFoot.RightAnkleRigAttachment, Humanoid.Parent.RightLowerLeg.RightAnkleRigAttachment, -20, 20)
  393. --
  394. makeballconnections(Humanoid.Parent.LeftUpperLeg, Humanoid.Parent.LeftUpperLeg.LeftHipRigAttachment, Humanoid.Parent.LowerTorso.LeftHipRigAttachment, -80, 80, 80)
  395. makehingeconnections(Humanoid.Parent.LeftLowerLeg, Humanoid.Parent.LeftLowerLeg.LeftKneeRigAttachment, Humanoid.Parent.LeftUpperLeg.LeftKneeRigAttachment, 0, 60)
  396. makehingeconnections(Humanoid.Parent.LeftFoot, Humanoid.Parent.LeftFoot.LeftAnkleRigAttachment, Humanoid.Parent.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20)
  397. for i,v in pairs(Humanoid.Parent:GetChildren()) do
  398. if v.ClassName == "Accessory" then
  399. local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  400. if attachment1 then
  401. for q,w in pairs(Humanoid.Parent:GetChildren()) do
  402. if w.ClassName == "Part" then
  403. local attachment2 = w:findFirstChild(attachment1.Name)
  404. if attachment2 then
  405. local hinge = Instance.new("HingeConstraint", v.Handle)
  406. hinge.Attachment0 = attachment1
  407. hinge.Attachment1 = attachment2
  408. hinge.LimitsEnabled = true
  409. hinge.LowerAngle = 0
  410. hinge.UpperAngle = 0
  411. end
  412. end
  413. end
  414. end
  415. end
  416. end
  417. for i,v in pairs(ragdoll:GetChildren()) do
  418. for q,w in pairs(v:GetChildren()) do
  419. if w.ClassName == "Motor6D"--[[ and w.Name ~= "Neck"--]] and w.Name ~= "ouch_weld" then
  420. w:destroy()
  421. end
  422. end
  423. end
  424. if ragdoll:findFirstChild("HumanoidRootPart") then
  425. ragdoll.HumanoidRootPart:destroy()
  426. end
  427. if ragdoll:findFirstChildOfClass("Humanoid") then
  428. ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
  429. end
  430. else
  431.  
  432. local c = ragdoll
  433. function bleed(frick,OwO)
  434. while frick.Parent ~= nil and frick.Parent.Parent ~= nil do
  435. local reeee = coroutine.wrap(function()
  436. local thing = Instance.new('Part',workspace)
  437. thing.Size = Vector3.new(0.2,0.2,0.2)
  438. thing.CFrame = frick.CFrame
  439. thing.Transparency = 1
  440. thing.BrickColor = BrickColor.new('Maroon')
  441. thing.Material = Enum.Material.SmoothPlastic
  442. thing.Name = "Blood"
  443. thing.CanCollide =false
  444. thing:BreakJoints()
  445. local rawrxd = Instance.new('BodyForce',thing)
  446. rawrxd.Force = frick.CFrame.upVector*(math.random()*2)+Vector3.new(math.random(-5, 5)/10,1.5,0)
  447. local coru = coroutine.wrap(function()
  448. wait(0.01)
  449. rawrxd:Destroy()
  450. end)
  451. coru()
  452. local ree = Instance.new('ParticleEmitter',thing)
  453. if OwO ~= true then
  454. ree.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,1,1)),ColorSequenceKeypoint.new(1,Color3.new(1,1,1))})
  455. else
  456. ree.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,1,1)),ColorSequenceKeypoint.new(1,Color3.new(1,1,1))})
  457. end
  458. ree.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.1),NumberSequenceKeypoint.new(1,0.1)})
  459. ree.Texture = 'rbxassetid://867743272'
  460. ree.Lifetime = NumberRange.new(0.4)
  461. ree.Rate = 50
  462. ree.LockedToPart = true
  463. ree.Speed = NumberRange.new(0, 2)
  464. thing.Touched:connect(function(tou)
  465. if tou.Parent and tou.Parent:IsA('Tool') == false and tou.Parent.Parent:FindFirstChildOfClass('Humanoid') == nil and tou.Parent:FindFirstChildOfClass('Humanoid') == nil and tou.Name ~= "Blood" and tou.Parent.Name ~= "Projectile" and tou.Parent.Name ~= "big ass knife" and tou.Parent.ClassName ~= "Accessory" and tou.Parent.Name ~= "bitch ass knife" and tou.Parent.Name ~= 'handle' and tou.Name ~= "blade" and tou.Name ~= 'handle' and tou.Name ~= "Projectile" and tou.Parent.Name ~= "Projectile" then
  466. local pos = Vector3.new(thing.Position.X,(tou.Position.Y+(tou.Size.Y/2))+0.02,thing.Position.Z)
  467. local Point1 = pos-Vector3.new(0.01,0.01,0.01)
  468. local Point2 = pos+Vector3.new(0.01,0.01,0.01)
  469. local Region = Region3.new(Point1,Point2)
  470. for _,Part in pairs(game.Workspace:FindPartsInRegion3(Region,nil,math.huge)) do
  471. if Part.Name == "BloodPuddle" then
  472. tou = Part
  473. end
  474. end
  475. thing:Destroy()
  476. if tou.Name == "BloodPuddle" then
  477. if tou.Size.X < 1 then
  478. pcall(function()
  479. tou.Sound:Play()
  480. end)
  481. end
  482. local reee = tou.CFrame
  483. if tou.Transparency > -0.2 then
  484. tou.Transparency = tou.Transparency -0.1
  485. end
  486. if tou.Size.X < 3 then
  487. tou.Size = tou.Size+Vector3.new(0.1,0,0.1)
  488. tou.CFrame = reee
  489. end
  490. elseif tou.CanCollide == true then
  491. local bloodlol = Instance.new('Part',workspace)
  492. local sound = Instance.new('Sound',bloodlol)
  493. sound.SoundId = 'rbxassetid://685857471'
  494. sound.Volume = 0.025
  495. sound:Play()
  496. bloodlol.Size=Vector3.new(0.2,0.2,0.2)
  497. bloodlol.Name = "BloodPuddle"
  498. bloodlol.Anchored = true
  499. bloodlol.CanCollide = false
  500. bloodlol.Material = Enum.Material.SmoothPlastic
  501. if OwO ~= true then
  502. bloodlol.Color = Color3.new(117, 0, 0)
  503. else
  504. bloodlol.Color = Color3.new(117, 0, 0)
  505. end
  506. local cyl = Instance.new('CylinderMesh',bloodlol)
  507. cyl.Scale = Vector3.new(1,0.1,1)
  508. bloodlol.CFrame = CFrame.new(pos)
  509. coroutine.resume(coroutine.create(function()
  510. local tou = bloodlol
  511. local reee = tou.CFrame
  512. while wait() do
  513. if tou.Size.X < 5 then
  514. tou.Size = tou.Size+Vector3.new(0.005,0,0.005)
  515. tou.CFrame = reee
  516. end
  517. end
  518. end))
  519. local coru=coroutine.wrap(function()
  520. while bloodlol.Parent ~= nil do
  521. if bloodlol.Transparency < 1 then
  522. bloodlol.Transparency = bloodlol.Transparency+0.05
  523. else
  524. bloodlol:Destroy()
  525. end
  526. wait(0.1)
  527. end
  528. end)
  529. end
  530. end
  531. end)
  532. local coru = coroutine.wrap(function()
  533. wait(1)
  534. thing:Destroy()
  535. end)
  536. coru()
  537. end)
  538. reeee()
  539. wait()
  540. end
  541. end
  542.  
  543. local aidsificating = Humanoid.Parent
  544. local thang = "Torso"
  545. if aidsificating:FindFirstChild('UpperTorso') then
  546. thang = "UpperTorso"
  547. end
  548. ragdoll.Humanoid.BreakJointsOnDeath=false
  549. ragdoll.Humanoid.Name = "DEADMIDGET"
  550. ragdoll:FindFirstChildOfClass("Humanoid").PlatformStand = true
  551. leftleg = Instance.new("Part",c["Left Leg"])
  552. leftleg.Shape = "Cylinder"
  553. leftleg.Transparency = 1
  554. leftleg.Size=Vector3.new(1.4,1,1)
  555. leftlegweld = Instance.new("Weld",leftleg)
  556. leftlegweld.Part0=ragdoll["Left Leg"]
  557. leftlegweld.Part1=leftleg
  558. leftlegweld.C0=CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  559. rightleg = Instance.new("Part",ragdoll["Right Leg"])
  560. rightleg.Shape = "Cylinder"
  561. rightleg.Size=Vector3.new(1.4,1,1)
  562. rightleg.Transparency = 1
  563. rightlegweld = Instance.new("Weld",leftleg)
  564. rightlegweld.C0=CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  565. rightlegweld.Part0=c["Right Leg"]
  566. rightlegweld.Part1=rightleg
  567. rightarm = Instance.new("Part",c["Right Arm"])
  568. rightarm.Shape = "Cylinder"
  569. rightarm.Size=Vector3.new(1.4,1,1)
  570. rightarm.Transparency = 1
  571. rightarmweld = Instance.new("Weld",rightarm)
  572. rightarmweld.C0=CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  573. rightarmweld.Part0=c["Right Arm"]
  574. rightarmweld.Part1=rightarm
  575. leftarm = Instance.new("Part",c["Left Arm"])
  576. leftarm.Shape = "Cylinder"
  577. leftarm.Size=Vector3.new(1.4,1,1)
  578. leftarm.Transparency = 1
  579. leftarmweld = Instance.new("Weld",leftarm)
  580. leftarmweld.C0=CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  581. leftarmweld.Part0=c["Left Arm"]
  582. leftarmweld.Part1=leftarm
  583. head = Instance.new("Part",c.Head)
  584. head.Size=Vector3.new(1.4,1,1)
  585. head.Transparency = 1
  586. headweld = Instance.new("Weld",head)
  587. headweld.Part0=c.Head
  588. headweld.Part1=head
  589. player = ragdoll
  590. local RealTorso = player.Torso
  591. local RealHead = player.Head
  592. local RealLeftleg = player["Left Leg"]
  593. local RealRightleg = player["Right Leg"]
  594. local RealLeftArm = player["Left Arm"]
  595. local RealRightArm = player["Right Arm"]
  596. local rightarmglue = Instance.new("Glue", RealTorso)
  597. rightarmglue.Part0 = RealTorso
  598. rightarmglue.Part1 = RealRightArm
  599. rightarmglue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  600. rightarmglue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  601. local leftarmglue = Instance.new("Glue", RealTorso)
  602. leftarmglue.Part0 = RealTorso
  603. leftarmglue.Part1 = RealLeftArm
  604. leftarmglue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  605. leftarmglue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  606. local leftlegglue = Instance.new("Glue", RealTorso)
  607. leftlegglue.Part0 = RealTorso
  608. leftlegglue.Part1 = RealLeftleg
  609. leftlegglue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  610. leftlegglue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  611. local rightlegglue = Instance.new("Glue", RealTorso)
  612. rightlegglue.Part0 = RealTorso
  613. rightlegglue.Part1 = RealRightleg
  614. rightlegglue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  615. rightlegglue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  616. local headglue = Instance.new("Glue", RealTorso)
  617. headglue.Part0 = RealTorso
  618. headglue.Part1 = RealHead
  619. headglue.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  620. headglue.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  621. RealTorso["Left Hip"]:Destroy()
  622. RealTorso["Right Hip"]:Destroy()
  623. RealTorso["Left Shoulder"]:Destroy()
  624. RealTorso["Right Shoulder"]:Destroy()
  625. RealTorso.Neck:Destroy()
  626. RealTorso["Left Hip"]:Destroy()
  627. RealTorso["Right Hip"]:Destroy()
  628. RealTorso["Left Shoulder"]:Destroy()
  629. RealTorso["Right Shoulder"]:Destroy()
  630. RealTorso.Neck:Destroy()
  631. RealTorso["Left Hip"]:Destroy()
  632. RealTorso["Right Hip"]:Destroy()
  633. RealTorso["Left Shoulder"]:Destroy()
  634. RealTorso["Right Shoulder"]:Destroy()
  635. RealTorso.Neck:Destroy()
  636. RealTorso["Left Hip"]:Destroy()
  637. RealTorso["Right Hip"]:Destroy()
  638. RealTorso["Left Shoulder"]:Destroy()
  639. RealTorso["Right Shoulder"]:Destroy()
  640. RealTorso.Neck:Destroy()
  641. RealTorso["Left Hip"]:Destroy()
  642. RealTorso["Right Hip"]:Destroy()
  643. RealTorso["Left Shoulder"]:Destroy()
  644. RealTorso["Right Shoulder"]:Destroy()
  645. RealTorso.Neck:Destroy()
  646. for i = 1,100 do
  647. ga = c:FindFirstChildWhichIsA("Motor6D",true)
  648. if ga then
  649. ga.Part0 = nil
  650. ga.Part1 = nil
  651. ga.Parent = nil
  652. end
  653. end
  654. for i,v in pairs(RealTorso:GetChildren()) do
  655. if v.ClassName == "Motor6D" then
  656. v:remove()
  657. end
  658. end
  659. player.Humanoid.BreakJointsOnDeath = false
  660. RealTorso.CanCollide = false
  661. end
  662. end))
  663. end
  664. elseif slashing2 == true then
  665. if hit.Parent and hit.Parent:FindFirstChildOfClass("Humanoid") and not hit.Parent:FindFirstChild("DEADMIDGET") then
  666. Sound2:Stop()
  667. Sound3:Play()
  668. aaa = Instance.new("Decal",Part0)
  669. aaa.Transparency = 0.52
  670. aaa.Face = "Bottom"
  671. aaa.Texture = "rbxassetid://449475289"
  672. coroutine.resume(coroutine.create(function()
  673. target = hit.Parent
  674. target.Archivable = true
  675. ragdoll = target:Clone()
  676. Humanoid = ragdoll.Humanoid
  677. ragdoll.Parent = workspace
  678. target.HumanoidRootPart.Transparency = 1
  679. for i,v in pairs(target:GetChildren()) do
  680. if v.ClassName == "Part" then
  681. v:Destroy()
  682. end
  683. end
  684. for i,v in pairs(target:GetChildren()) do
  685. if v.ClassName == "Script" then
  686. v:Destroy()
  687. end
  688. end
  689. target:Destroy()
  690. if Humanoid.RigType == Enum.HumanoidRigType.R15 then
  691. ragdoll.Humanoid.BreakJointsOnDeath=false
  692. ragdoll.Humanoid.Name = "DEADMIDGET"
  693. ragdoll:FindFirstChildOfClass("Humanoid").PlatformStand = true
  694. local function makeballconnections(limb, attachementone, attachmenttwo, twistlower, twistupper)
  695. local connection = Instance.new('BallSocketConstraint', limb)
  696. connection.LimitsEnabled = true
  697. connection.Attachment0 = attachementone
  698. connection.Attachment1 = attachmenttwo
  699. connection.TwistLimitsEnabled = true
  700. connection.TwistLowerAngle = twistlower
  701. connection.TwistUpperAngle = twistupper
  702. local limbcollider = Instance.new("Part", limb)
  703. limbcollider.Size = Vector3.new(0.1,1,1)
  704. limbcollider.Shape = "Cylinder"
  705. limbcollider.Transparency = 1
  706. limbcollider:BreakJoints()
  707. local limbcolliderweld = Instance.new("Weld", limbcollider)
  708. limbcolliderweld.Part0 = limb
  709. limbcolliderweld.Part1 = limbcollider
  710. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  711. end
  712. local function makehingeconnections(limb, attachementone, attachmenttwo, lower, upper)
  713. local connection = Instance.new('HingeConstraint', limb)
  714. connection.LimitsEnabled = true
  715. connection.Attachment0 = attachementone
  716. connection.Attachment1 = attachmenttwo
  717. connection.LimitsEnabled = true
  718. connection.LowerAngle = lower
  719. connection.UpperAngle = upper
  720. local limbcollider = Instance.new("Part", limb)
  721. limbcollider.Size = Vector3.new(0.1,1,1)
  722. limbcollider.Shape = "Cylinder"
  723. limbcollider.Transparency = 1
  724. limbcollider:BreakJoints()
  725. local limbcolliderweld = Instance.new("Weld", limbcollider)
  726. limbcolliderweld.Part0 = limb
  727. limbcolliderweld.Part1 = limbcollider
  728. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  729. end
  730. local HeadAttachment = Instance.new("Attachment", Humanoid.Parent.Head)
  731. HeadAttachment.Position = Vector3.new(0, -0.5, 0)
  732. if ragdoll.UpperTorso:findFirstChild("NeckAttachment") then
  733. makehingeconnections(Humanoid.Parent.Head, HeadAttachment, ragdoll.UpperTorso.NeckAttachment, -50, 50)
  734. end
  735. function bleed(frick,OwO)
  736. while frick.Parent ~= nil and frick.Parent.Parent ~= nil do
  737. local reeee = coroutine.wrap(function()
  738. local thing = Instance.new('Part',workspace)
  739. thing.Size = Vector3.new(0.2,0.2,0.2)
  740. thing.CFrame = frick.CFrame
  741. thing.Transparency = 1
  742. thing.BrickColor = BrickColor.new('Maroon')
  743. thing.Material = Enum.Material.SmoothPlastic
  744. thing.Name = "Blood"
  745. thing.CanCollide =false
  746. thing:BreakJoints()
  747. local rawrxd = Instance.new('BodyForce',thing)
  748. rawrxd.Force = frick.CFrame.upVector*(math.random()*2)+Vector3.new(math.random(-5, 5)/10,1.5,0)
  749. local coru = coroutine.wrap(function()
  750. wait(0.01)
  751. rawrxd:Destroy()
  752. end)
  753. coru()
  754. local ree = Instance.new('ParticleEmitter',thing)
  755. if OwO ~= true then
  756. ree.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,1,1)),ColorSequenceKeypoint.new(1,Color3.new(1,1,1))})
  757. else
  758. ree.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,1,1)),ColorSequenceKeypoint.new(1,Color3.new(1,1,1))})
  759. end
  760. ree.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.1),NumberSequenceKeypoint.new(1,0.1)})
  761. ree.Texture = 'rbxassetid://867743272'
  762. ree.Lifetime = NumberRange.new(0.4)
  763. ree.Rate = 50
  764. ree.LockedToPart = true
  765. ree.Speed = NumberRange.new(0, 2)
  766. thing.Touched:connect(function(tou)
  767. if tou.Parent and tou.Parent:IsA('Tool') == false and tou.Parent.Parent:FindFirstChildOfClass('Humanoid') == nil and tou.Parent:FindFirstChildOfClass('Humanoid') == nil and tou.Name ~= "Blood" and tou.Parent.Name ~= "Projectile" and tou.Parent.Name ~= "big ass knife" and tou.Parent.ClassName ~= "Accessory" and tou.Parent.Name ~= "bitch ass knife" and tou.Parent.Name ~= 'handle' and tou.Name ~= "blade" and tou.Name ~= 'handle' and tou.Name ~= "Projectile" and tou.Parent.Name ~= "Projectile" then
  768. local pos = Vector3.new(thing.Position.X,(tou.Position.Y+(tou.Size.Y/2))+0.02,thing.Position.Z)
  769. local Point1 = pos-Vector3.new(0.01,0.01,0.01)
  770. local Point2 = pos+Vector3.new(0.01,0.01,0.01)
  771. local Region = Region3.new(Point1,Point2)
  772. for _,Part in pairs(game.Workspace:FindPartsInRegion3(Region,nil,math.huge)) do
  773. if Part.Name == "BloodPuddle" then
  774. tou = Part
  775. end
  776. end
  777. thing:Destroy()
  778. if tou.Name == "BloodPuddle" then
  779. if tou.Size.X < 1 then
  780. pcall(function()
  781. tou.Sound:Play()
  782. end)
  783. end
  784. local reee = tou.CFrame
  785. if tou.Transparency > -0.2 then
  786. tou.Transparency = tou.Transparency -0.1
  787. end
  788. if tou.Size.X < 3 then
  789. tou.Size = tou.Size+Vector3.new(0.1,0,0.1)
  790. tou.CFrame = reee
  791. end
  792. elseif tou.CanCollide == true then
  793. local bloodlol = Instance.new('Part',workspace)
  794. local sound = Instance.new('Sound',bloodlol)
  795. sound.SoundId = 'rbxassetid://685857471'
  796. sound.Volume = 0.025
  797. sound:Play()
  798. bloodlol.Size=Vector3.new(0.2,0.2,0.2)
  799. bloodlol.Name = "BloodPuddle"
  800. bloodlol.Anchored = true
  801. bloodlol.CanCollide = false
  802. bloodlol.Material = Enum.Material.SmoothPlastic
  803. if OwO ~= true then
  804. bloodlol.Color = Color3.new(117, 0, 0)
  805. else
  806. bloodlol.Color = Color3.new(117, 0, 0)
  807. end
  808. local cyl = Instance.new('CylinderMesh',bloodlol)
  809. cyl.Scale = Vector3.new(1,0.1,1)
  810. bloodlol.CFrame = CFrame.new(pos)
  811. coroutine.resume(coroutine.create(function()
  812. local tou = bloodlol
  813. local reee = tou.CFrame
  814. while wait() do
  815. if tou.Size.X < 5 then
  816. tou.Size = tou.Size+Vector3.new(0.005,0,0.005)
  817. tou.CFrame = reee
  818. end
  819. end
  820. end))
  821. local coru=coroutine.wrap(function()
  822. while bloodlol.Parent ~= nil do
  823. if bloodlol.Transparency < 1 then
  824. bloodlol.Transparency = bloodlol.Transparency+0.05
  825. else
  826. bloodlol:Destroy()
  827. end
  828. wait(0.1)
  829. end
  830. end)
  831. end
  832. end
  833. end)
  834. local coru = coroutine.wrap(function()
  835. wait(1)
  836. thing:Destroy()
  837. end)
  838. coru()
  839. end)
  840. reeee()
  841. wait()
  842. end
  843. end
  844.  
  845. local aidsificating = Humanoid.Parent
  846. local thang = "Torso"
  847. if aidsificating:FindFirstChild('UpperTorso') then
  848. thang = "UpperTorso"
  849. end
  850.  
  851. makehingeconnections(Humanoid.Parent.LowerTorso, Humanoid.Parent.LowerTorso.WaistRigAttachment, Humanoid.Parent.UpperTorso.WaistRigAttachment, -50, 50)
  852. makeballconnections(Humanoid.Parent.LeftUpperArm, Humanoid.Parent.LeftUpperArm.LeftShoulderRigAttachment, Humanoid.Parent.UpperTorso.LeftShoulderRigAttachment, -200, 200, 180)
  853. makehingeconnections(Humanoid.Parent.LeftLowerArm, Humanoid.Parent.LeftLowerArm.LeftElbowRigAttachment, Humanoid.Parent.LeftUpperArm.LeftElbowRigAttachment, 0, -60)
  854. makehingeconnections(Humanoid.Parent.LeftHand, Humanoid.Parent.LeftHand.LeftWristRigAttachment, Humanoid.Parent.LeftLowerArm.LeftWristRigAttachment, -20, 20)
  855. --
  856. makeballconnections(Humanoid.Parent.RightUpperArm, Humanoid.Parent.RightUpperArm.RightShoulderRigAttachment, Humanoid.Parent.UpperTorso.RightShoulderRigAttachment, -200, 200, 180)
  857. makehingeconnections(Humanoid.Parent.RightLowerArm, Humanoid.Parent.RightLowerArm.RightElbowRigAttachment, Humanoid.Parent.RightUpperArm.RightElbowRigAttachment, 0, -60)
  858. makehingeconnections(Humanoid.Parent.RightHand, Humanoid.Parent.RightHand.RightWristRigAttachment, Humanoid.Parent.RightLowerArm.RightWristRigAttachment, -20, 20)
  859. --
  860. makeballconnections(Humanoid.Parent.RightUpperLeg, Humanoid.Parent.RightUpperLeg.RightHipRigAttachment, Humanoid.Parent.LowerTorso.RightHipRigAttachment, -80, 80, 80)
  861. makehingeconnections(Humanoid.Parent.RightLowerLeg, Humanoid.Parent.RightLowerLeg.RightKneeRigAttachment, Humanoid.Parent.RightUpperLeg.RightKneeRigAttachment, 0, 60)
  862. makehingeconnections(Humanoid.Parent.RightFoot, Humanoid.Parent.RightFoot.RightAnkleRigAttachment, Humanoid.Parent.RightLowerLeg.RightAnkleRigAttachment, -20, 20)
  863. --
  864. makeballconnections(Humanoid.Parent.LeftUpperLeg, Humanoid.Parent.LeftUpperLeg.LeftHipRigAttachment, Humanoid.Parent.LowerTorso.LeftHipRigAttachment, -80, 80, 80)
  865. makehingeconnections(Humanoid.Parent.LeftLowerLeg, Humanoid.Parent.LeftLowerLeg.LeftKneeRigAttachment, Humanoid.Parent.LeftUpperLeg.LeftKneeRigAttachment, 0, 60)
  866. makehingeconnections(Humanoid.Parent.LeftFoot, Humanoid.Parent.LeftFoot.LeftAnkleRigAttachment, Humanoid.Parent.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20)
  867. for i,v in pairs(Humanoid.Parent:GetChildren()) do
  868. if v.ClassName == "Accessory" then
  869. local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  870. if attachment1 then
  871. for q,w in pairs(Humanoid.Parent:GetChildren()) do
  872. if w.ClassName == "Part" then
  873. local attachment2 = w:findFirstChild(attachment1.Name)
  874. if attachment2 then
  875. local hinge = Instance.new("HingeConstraint", v.Handle)
  876. hinge.Attachment0 = attachment1
  877. hinge.Attachment1 = attachment2
  878. hinge.LimitsEnabled = true
  879. hinge.LowerAngle = 0
  880. hinge.UpperAngle = 0
  881. end
  882. end
  883. end
  884. end
  885. end
  886. end
  887. for i,v in pairs(ragdoll:GetChildren()) do
  888. for q,w in pairs(v:GetChildren()) do
  889. if w.ClassName == "Motor6D"--[[ and w.Name ~= "Neck"--]] and w.Name ~= "ouch_weld" and w.Name ~= "Root" then
  890. w:destroy()
  891. end
  892. end
  893. end
  894. if ragdoll:findFirstChild("HumanoidRootPart") then
  895. ragdoll.HumanoidRootPart:destroy()
  896. end
  897. coroutine.resume(coroutine.create(function()
  898. if ragdoll:findFirstChild("UpperTorso") then
  899. bigfatman = ragdoll:findFirstChild("UpperTorso")
  900. doof = Instance.new("Part",bigfatman.Parent.LowerTorso)
  901. doof.Size = Vector3.new(2, 2, 1)
  902. doof.Transparency = 1
  903. doof.CanCollide = false
  904. doof.Parent.Root.Part0 = doof
  905. coocoo = Instance.new("Weld",bigfatman)
  906. coocoo.Part0 = Part0
  907. coocoo.Part1 = doof
  908. coocoo.C0 = CFrame.new(0,0,0) * CFrame.Angles(40,0,0)
  909. wait(2)
  910. coocoo:remove()
  911. end
  912. end))
  913. if ragdoll:findFirstChildOfClass("Humanoid") then
  914. ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
  915. end
  916. elseif ragdoll:findFirstChildOfClass("Humanoid").RigType == Enum.HumanoidRigType.R6 then
  917.  
  918. local c = ragdoll
  919. function bleed(frick,OwO)
  920. while frick.Parent ~= nil and frick.Parent.Parent ~= nil do
  921. local reeee = coroutine.wrap(function()
  922. local thing = Instance.new('Part',workspace)
  923. thing.Size = Vector3.new(0.2,0.2,0.2)
  924. thing.CFrame = frick.CFrame
  925. thing.Transparency = 1
  926. thing.BrickColor = BrickColor.new('Maroon')
  927. thing.Material = Enum.Material.SmoothPlastic
  928. thing.Name = "Blood"
  929. thing.CanCollide =false
  930. thing:BreakJoints()
  931. local rawrxd = Instance.new('BodyForce',thing)
  932. rawrxd.Force = frick.CFrame.upVector*(math.random()*2)+Vector3.new(math.random(-5, 5)/10,1.5,0)
  933. local coru = coroutine.wrap(function()
  934. wait(0.01)
  935. rawrxd:Destroy()
  936. end)
  937. coru()
  938. local ree = Instance.new('ParticleEmitter',thing)
  939. if OwO ~= true then
  940. ree.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,1,1)),ColorSequenceKeypoint.new(1,Color3.new(1,1,1))})
  941. else
  942. ree.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,1,1)),ColorSequenceKeypoint.new(1,Color3.new(1,1,1))})
  943. end
  944. ree.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.1),NumberSequenceKeypoint.new(1,0.1)})
  945. ree.Texture = 'rbxassetid://867743272'
  946. ree.Lifetime = NumberRange.new(0.4)
  947. ree.Rate = 50
  948. ree.LockedToPart = true
  949. ree.Speed = NumberRange.new(0, 2)
  950. thing.Touched:connect(function(tou)
  951. if tou.Parent and tou.Parent:IsA('Tool') == false and tou.Parent.Parent:FindFirstChildOfClass('Humanoid') == nil and tou.Parent:FindFirstChildOfClass('Humanoid') == nil and tou.Name ~= "Blood" and tou.Parent.Name ~= "Projectile" and tou.Parent.Name ~= "big ass knife" and tou.Parent.ClassName ~= "Accessory" and tou.Parent.Name ~= "bitch ass knife" and tou.Parent.Name ~= 'handle' and tou.Name ~= "blade" and tou.Name ~= 'handle' and tou.Name ~= "Projectile" and tou.Parent.Name ~= "Projectile" then
  952. local pos = Vector3.new(thing.Position.X,(tou.Position.Y+(tou.Size.Y/2))+0.02,thing.Position.Z)
  953. local Point1 = pos-Vector3.new(0.01,0.01,0.01)
  954. local Point2 = pos+Vector3.new(0.01,0.01,0.01)
  955. local Region = Region3.new(Point1,Point2)
  956. for _,Part in pairs(game.Workspace:FindPartsInRegion3(Region,nil,math.huge)) do
  957. if Part.Name == "BloodPuddle" then
  958. tou = Part
  959. end
  960. end
  961. thing:Destroy()
  962. if tou.Name == "BloodPuddle" then
  963. if tou.Size.X < 1 then
  964. pcall(function()
  965. tou.Sound:Play()
  966. end)
  967. end
  968. local reee = tou.CFrame
  969. if tou.Transparency > -0.2 then
  970. tou.Transparency = tou.Transparency -0.1
  971. end
  972. if tou.Size.X < 3 then
  973. tou.Size = tou.Size+Vector3.new(0.1,0,0.1)
  974. tou.CFrame = reee
  975. end
  976. elseif tou.CanCollide == true then
  977. local bloodlol = Instance.new('Part',workspace)
  978. local sound = Instance.new('Sound',bloodlol)
  979. sound.SoundId = 'rbxassetid://685857471'
  980. sound.Volume = 0.025
  981. sound:Play()
  982. bloodlol.Size=Vector3.new(0.2,0.2,0.2)
  983. bloodlol.Name = "BloodPuddle"
  984. bloodlol.Anchored = true
  985. bloodlol.CanCollide = false
  986. bloodlol.Material = Enum.Material.SmoothPlastic
  987. if OwO ~= true then
  988. bloodlol.Color = Color3.new(117, 0, 0)
  989. else
  990. bloodlol.Color = Color3.new(117, 0, 0)
  991. end
  992.  
  993. local cyl = Instance.new('CylinderMesh',bloodlol)
  994. cyl.Scale = Vector3.new(1,0.1,1)
  995. bloodlol.CFrame = CFrame.new(pos)
  996. coroutine.resume(coroutine.create(function()
  997. local tou = bloodlol
  998. local reee = tou.CFrame
  999. while wait() do
  1000. if tou.Size.X < 5 then
  1001. tou.Size = tou.Size+Vector3.new(0.005,0,0.005)
  1002. tou.CFrame = reee
  1003. end
  1004. end
  1005. end))
  1006. local coru=coroutine.wrap(function()
  1007. while bloodlol.Parent ~= nil do
  1008. if bloodlol.Transparency < 1 then
  1009. bloodlol.Transparency = bloodlol.Transparency+0.05
  1010. else
  1011. bloodlol:Destroy()
  1012. end
  1013. wait(0.1)
  1014. end
  1015. end)
  1016. end
  1017. end
  1018. end)
  1019. local coru = coroutine.wrap(function()
  1020. wait(1)
  1021. thing:Destroy()
  1022. end)
  1023. coru()
  1024. end)
  1025. reeee()
  1026. wait()
  1027. end
  1028. end
  1029.  
  1030. local aidsificating = Humanoid.Parent
  1031. local thang = "Torso"
  1032. if aidsificating:FindFirstChild('UpperTorso') then
  1033. thang = "UpperTorso"
  1034. end
  1035. ragdoll.Humanoid.BreakJointsOnDeath=false
  1036. ragdoll.Humanoid.Name = "DEADMIDGET"
  1037. ragdoll:FindFirstChildOfClass("Humanoid").PlatformStand = true
  1038. leftleg = Instance.new("Part",c["Left Leg"])
  1039. leftleg.Shape = "Cylinder"
  1040. leftleg.Transparency = 1
  1041. leftleg.Size=Vector3.new(1.4,1,1)
  1042. leftlegweld = Instance.new("Weld",leftleg)
  1043. leftlegweld.Part0=ragdoll["Left Leg"]
  1044. leftlegweld.Part1=leftleg
  1045. leftlegweld.C0=CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  1046. rightleg = Instance.new("Part",ragdoll["Right Leg"])
  1047. rightleg.Shape = "Cylinder"
  1048. rightleg.Size=Vector3.new(1.4,1,1)
  1049. rightleg.Transparency = 1
  1050. rightlegweld = Instance.new("Weld",leftleg)
  1051. rightlegweld.C0=CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  1052. rightlegweld.Part0=c["Right Leg"]
  1053. rightlegweld.Part1=rightleg
  1054. rightarm = Instance.new("Part",c["Right Arm"])
  1055. rightarm.Shape = "Cylinder"
  1056. rightarm.Size=Vector3.new(1.4,1,1)
  1057. rightarm.Transparency = 1
  1058. rightarmweld = Instance.new("Weld",rightarm)
  1059. rightarmweld.C0=CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  1060. rightarmweld.Part0=c["Right Arm"]
  1061. rightarmweld.Part1=rightarm
  1062. leftarm = Instance.new("Part",c["Left Arm"])
  1063. leftarm.Shape = "Cylinder"
  1064. leftarm.Size=Vector3.new(1.4,1,1)
  1065. leftarm.Transparency = 1
  1066. leftarmweld = Instance.new("Weld",leftarm)
  1067. leftarmweld.C0=CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  1068. leftarmweld.Part0=c["Left Arm"]
  1069. leftarmweld.Part1=leftarm
  1070. head = Instance.new("Part",c.Head)
  1071. head.Size=Vector3.new(1.4,1,1)
  1072. head.Transparency = 1
  1073. headweld = Instance.new("Weld",head)
  1074. headweld.Part0=c.Head
  1075. headweld.Part1=head
  1076. player = ragdoll
  1077. coroutine.resume(coroutine.create(function()
  1078. if ragdoll:findFirstChild("Head") then
  1079. bigfatman = ragdoll:findFirstChild("Head")
  1080. doof = Instance.new("Part",bigfatman.Parent.Head)
  1081. doof.Size = Vector3.new(2, 2, 1)
  1082. doof.Transparency = 1
  1083. doof.CanCollide = false
  1084. oocoo = Instance.new("Weld",bigfatman)
  1085. oocoo.Part0 = bigfatman
  1086. oocoo.Part1 = doof
  1087. oocoo.C0 = CFrame.new(0,-1,0) * CFrame.Angles(0,0,0)
  1088. coocoo = Instance.new("Weld",bigfatman)
  1089. coocoo.Part0 = Part0
  1090. coocoo.Part1 = doof
  1091. coocoo.C0 = CFrame.new(0,0,0) * CFrame.Angles(math.rad(180),0,0)
  1092. wait(2)
  1093. coocoo:remove()
  1094. end
  1095. end))
  1096. local RealTorso = player.Torso
  1097. local RealHead = player.Head
  1098. local RealLeftleg = player["Left Leg"]
  1099. local RealRightleg = player["Right Leg"]
  1100. local RealLeftArm = player["Left Arm"]
  1101. local RealRightArm = player["Right Arm"]
  1102. local rightarmglue = Instance.new("Glue", RealTorso)
  1103. rightarmglue.Part0 = RealTorso
  1104. rightarmglue.Part1 = RealRightArm
  1105. rightarmglue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1106. rightarmglue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1107. local leftarmglue = Instance.new("Glue", RealTorso)
  1108. leftarmglue.Part0 = RealTorso
  1109. leftarmglue.Part1 = RealLeftArm
  1110. leftarmglue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1111. leftarmglue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1112. local leftlegglue = Instance.new("Glue", RealTorso)
  1113. leftlegglue.Part0 = RealTorso
  1114. leftlegglue.Part1 = RealLeftleg
  1115. leftlegglue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1116. leftlegglue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1117. local rightlegglue = Instance.new("Glue", RealTorso)
  1118. rightlegglue.Part0 = RealTorso
  1119. rightlegglue.Part1 = RealRightleg
  1120. rightlegglue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1121. rightlegglue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1122.  
  1123. RealTorso["Left Hip"]:Destroy()
  1124. RealTorso["Right Hip"]:Destroy()
  1125. RealTorso["Left Shoulder"]:Destroy()
  1126. RealTorso["Left Hip"]:Destroy()
  1127. RealTorso["Right Hip"]:Destroy()
  1128. RealTorso["Left Shoulder"]:Destroy()
  1129. RealTorso["Left Hip"]:Destroy()
  1130. RealTorso["Right Hip"]:Destroy()
  1131. RealTorso["Left Shoulder"]:Destroy()
  1132. RealTorso["Left Hip"]:Destroy()
  1133. RealTorso["Right Hip"]:Destroy()
  1134. RealTorso["Left Shoulder"]:Destroy()
  1135. RealTorso.Neck:Destroy()
  1136. player.Humanoid.BreakJointsOnDeath = false
  1137. RealTorso.CanCollide = false
  1138. end
  1139. end))
  1140. end
  1141. end
  1142. end)
  1143. function lerp(weld,startpos,endpos,amntime,longatend)
  1144. local waited = 0
  1145. for i=1,amntime*100 do
  1146. if longatend == true then
  1147. startpos = weld.C0
  1148. end
  1149. weld.C0 = startpos:lerp(endpos,i/(amntime*100))
  1150. wait(0.01)
  1151. waited=waited+0.01
  1152. end
  1153. end
  1154. swinging = false
  1155. working = false
  1156. function katanaswing()
  1157. working = true
  1158. pcall(function()
  1159. local rweld = Instance.new("Weld", char["Right Arm"])
  1160. local lweld = Instance.new("Weld", char["Left Arm"])
  1161. local tweld = Instance.new("Weld", char.HumanoidRootPart)
  1162. rweld.Part0 = char["Torso"]
  1163. rweld.Part1 = char["Right Arm"]
  1164. rweld.C0 = CFrame.new(1.5, 0, 0)
  1165. lweld.Part0 = char.Torso
  1166. lweld.Part1 = char["Left Arm"]
  1167. lweld.C0 = CFrame.new(-1.5, 0, 0)
  1168. tweld.Part0 = char.HumanoidRootPart
  1169. tweld.Part1 = char.Torso
  1170.  
  1171. local cor = coroutine.wrap(function()
  1172. lerp(tweld,tweld.C0,CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(45), 0),0.08)
  1173. end)
  1174. cor()
  1175. lerp(rweld,rweld.C0,CFrame.new(1.35, 0.5, -1.2) * CFrame.Angles(0, math.rad(110), math.rad(90)),0.08)
  1176. wait(0.2)
  1177.  
  1178. swinging = true
  1179.  
  1180. local cor = coroutine.wrap(function()
  1181. lerp(tweld,tweld.C0,CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(-45), 0),0.04)
  1182. end)
  1183. cor()
  1184. lerp(rweld,rweld.C0,CFrame.new(2, 0.5, 0) * CFrame.Angles(0, math.rad(0), math.rad(90)),0.04)
  1185. wait(0.2)
  1186. swinging = false
  1187. local cor = coroutine.wrap(function()
  1188. lerp(tweld,tweld.C0,CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),0.08)
  1189. end)
  1190. cor()
  1191. lerp(rweld,rweld.C0,CFrame.new(1.5, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)),0.08)
  1192. rweld:Destroy()
  1193. lweld:Destroy()
  1194. tweld:Destroy()
  1195. end)
  1196. working = false
  1197. end
  1198. mouse.Button1Down:Connect(function()
  1199. if working == false and slashing == false then
  1200. Sound2:Play()
  1201. katanaswing()
  1202. end
  1203. --de:Play()
  1204. end)
  1205. Weld = Instance.new("Weld",char["Right Arm"])
  1206. Weld.C0 = CFrame.new(1.5,0,0) * CFrame.Angles(-math.rad(0),0,math.rad(40))
  1207. Weld.Part0 = nil
  1208. Weld.Part1 = char["Right Arm"]
  1209. Weld1 = Instance.new("Weld",char["Right Arm"])
  1210. Weld1.C0 = CFrame.new(1,0.5,-1) * CFrame.Angles(math.rad(90),math.rad(90),math.rad(0))
  1211. Weld1.Part0 = nil
  1212. Weld1.Part1 = char["Right Arm"]
  1213. Weld2 = Instance.new("Weld",Part0)
  1214. Weld2.Part0 = char["Right Arm"]
  1215. Weld2.Part1 = nil
  1216. Weld2.C0 = CFrame.new(0,-2,0) * CFrame.Angles(-math.rad(90),math.rad(180),0)
Add Comment
Please, Sign In to add comment