sIendytubble

ground thing

Jun 17th, 2020
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.57 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. player = game.Players.LocalPlayer
  137. char = player.Character
  138. mouse = player:GetMouse()
  139. function rise(part)
  140. coroutine.resume(coroutine.create(function()
  141. part.CFrame = part.CFrame * CFrame.new(0,1,0)
  142. wait(0.05)
  143. part.CFrame = part.CFrame * CFrame.new(0,1,0)
  144. wait(0.05)
  145. part.CFrame = part.CFrame * CFrame.new(0,1,0)
  146. wait(0.05)
  147. part.CFrame = part.CFrame * CFrame.new(0,1,0)
  148. wait(0.05)
  149. part.CFrame = part.CFrame * CFrame.new(0,1,0)
  150. wait(0.05)
  151. part.CFrame = part.CFrame * CFrame.new(0,1,0)
  152. wait(0.05)
  153. part.CFrame = part.CFrame * CFrame.new(0,1,0)
  154. wait(0.05)
  155. part.CFrame = part.CFrame * CFrame.new(0,1,0)
  156. end))
  157. end
  158. mouse.Button1Down:Connect(function()
  159. if mouse.Target then
  160. mouse.Target.Archivable = true
  161. wall = mouse.Target:Clone()
  162. wall:ClearAllChildren()
  163. wall.Parent = workspace
  164. wall.Name = "ForceWall"
  165. wall.CanCollide = true
  166. wall.Anchored = true
  167. wall.Size = Vector3.new(4,8,1)
  168. wall.CFrame = char.HumanoidRootPart.CFrame
  169. wall.Position = mouse.Hit.p - Vector3.new(0,4,0)
  170. rise(wall)
  171. wall.Touched:Connect(function(hit)
  172. if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChildOfClass("Humanoid").Health >1 then
  173. coroutine.resume(coroutine.create(function()
  174. target = hit.Parent
  175. humanoid = target:FindFirstChildOfClass("Humanoid")
  176. humanoid.BreakJointsOnDeath = false
  177. humanoid.Health = 0
  178. --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))
  179. target.Archivable = true
  180. ragdoll = target
  181. Humanoid = ragdoll:FindFirstChildOfClass("Humanoid")
  182. ragdoll.Parent = workspace
  183. vweld = Instance.new("Weld",target)
  184. vweld.Part0 = ragdoll:WaitForChild("HumanoidRootPart")
  185. vweld.Part1 = target:WaitForChild("HumanoidRootPart")
  186. target.HumanoidRootPart.Transparency = 1
  187. if Humanoid.RigType == Enum.HumanoidRigType.R15 then
  188. ragdoll.Humanoid.BreakJointsOnDeath=false
  189. ragdoll.Humanoid.Name = "DEADMIDGET"
  190. ragdoll:FindFirstChildOfClass("Humanoid").PlatformStand = true
  191. local function makeballconnections(limb, attachementone, attachmenttwo, twistlower, twistupper)
  192. local connection = Instance.new('BallSocketConstraint', limb)
  193. connection.LimitsEnabled = true
  194. connection.Attachment0 = attachementone
  195. connection.Attachment1 = attachmenttwo
  196. connection.TwistLimitsEnabled = true
  197. connection.TwistLowerAngle = twistlower
  198. connection.TwistUpperAngle = twistupper
  199. local limbcollider = Instance.new("Part", limb)
  200. limbcollider.Size = Vector3.new(0.1,1,1)
  201. limbcollider.Shape = "Cylinder"
  202. limbcollider.Transparency = 1
  203. limbcollider:BreakJoints()
  204. local limbcolliderweld = Instance.new("Weld", limbcollider)
  205. limbcolliderweld.Part0 = limb
  206. limbcolliderweld.Part1 = limbcollider
  207. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  208. end
  209. local function makehingeconnections(limb, attachementone, attachmenttwo, lower, upper)
  210. local connection = Instance.new('HingeConstraint', limb)
  211. connection.LimitsEnabled = true
  212. connection.Attachment0 = attachementone
  213. connection.Attachment1 = attachmenttwo
  214. connection.LimitsEnabled = true
  215. connection.LowerAngle = lower
  216. connection.UpperAngle = upper
  217. local limbcollider = Instance.new("Part", limb)
  218. limbcollider.Size = Vector3.new(0.1,1,1)
  219. limbcollider.Shape = "Cylinder"
  220. limbcollider.Transparency = 1
  221. limbcollider:BreakJoints()
  222. local limbcolliderweld = Instance.new("Weld", limbcollider)
  223. limbcolliderweld.Part0 = limb
  224. limbcolliderweld.Part1 = limbcollider
  225. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  226. end
  227. local HeadAttachment = Instance.new("Attachment", Humanoid.Parent.Head)
  228. HeadAttachment.Position = Vector3.new(0, -0.5, 0)
  229. if ragdoll.UpperTorso:findFirstChild("NeckAttachment") then
  230. makehingeconnections(Humanoid.Parent.Head, HeadAttachment, ragdoll.UpperTorso.NeckAttachment, -50, 50)
  231. end
  232. function bleed(frick,OwO)
  233. while frick.Parent ~= nil and frick.Parent.Parent ~= nil do
  234. local reeee = coroutine.wrap(function()
  235. local thing = Instance.new('Part',workspace)
  236. thing.Size = Vector3.new(0.2,0.2,0.2)
  237. thing.CFrame = frick.CFrame
  238. thing.Transparency = 1
  239. thing.BrickColor = BrickColor.new('Maroon')
  240. thing.Material = Enum.Material.SmoothPlastic
  241. thing.Name = "Blood"
  242. thing.CanCollide =false
  243. thing:BreakJoints()
  244. local rawrxd = Instance.new('BodyForce',thing)
  245. rawrxd.Force = frick.CFrame.upVector*(math.random()*2)+Vector3.new(math.random(-5, 5)/10,1.5,0)
  246. local coru = coroutine.wrap(function()
  247. wait(0.01)
  248. rawrxd:Destroy()
  249. end)
  250. coru()
  251. local ree = Instance.new('ParticleEmitter',thing)
  252. if OwO ~= true then
  253. ree.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,1,1)),ColorSequenceKeypoint.new(1,Color3.new(1,1,1))})
  254. else
  255. ree.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,1,1)),ColorSequenceKeypoint.new(1,Color3.new(1,1,1))})
  256. end
  257. ree.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.1),NumberSequenceKeypoint.new(1,0.1)})
  258. ree.Texture = 'rbxassetid://867743272'
  259. ree.Lifetime = NumberRange.new(0.4)
  260. ree.Rate = 50
  261. ree.LockedToPart = true
  262. ree.Speed = NumberRange.new(0, 2)
  263. thing.Touched:connect(function(tou)
  264. 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
  265. local pos = Vector3.new(thing.Position.X,(tou.Position.Y+(tou.Size.Y/2))+0.02,thing.Position.Z)
  266. local Point1 = pos-Vector3.new(0.01,0.01,0.01)
  267. local Point2 = pos+Vector3.new(0.01,0.01,0.01)
  268. local Region = Region3.new(Point1,Point2)
  269. for _,Part in pairs(game.Workspace:FindPartsInRegion3(Region,nil,math.huge)) do
  270. if Part.Name == "BloodPuddle" then
  271. tou = Part
  272. end
  273. end
  274. thing:Destroy()
  275. if tou.Name == "BloodPuddle" then
  276. if tou.Size.X < 1 then
  277. pcall(function()
  278. tou.Sound:Play()
  279. end)
  280. end
  281. local reee = tou.CFrame
  282. if tou.Transparency > -0.2 then
  283. tou.Transparency = tou.Transparency -0.1
  284. end
  285. if tou.Size.X < 3 then
  286. tou.Size = tou.Size+Vector3.new(0.1,0,0.1)
  287. tou.CFrame = reee
  288. end
  289. elseif tou.CanCollide == true then
  290. local bloodlol = Instance.new('Part',workspace)
  291. local sound = Instance.new('Sound',bloodlol)
  292. sound.SoundId = 'rbxassetid://685857471'
  293. sound.Volume = 0.025
  294. sound:Play()
  295. bloodlol.Size=Vector3.new(0.2,0.2,0.2)
  296. bloodlol.Name = "BloodPuddle"
  297. bloodlol.Anchored = true
  298. bloodlol.CanCollide = false
  299. bloodlol.Material = Enum.Material.SmoothPlastic
  300. if OwO ~= true then
  301. bloodlol.Color = Color3.new(117, 0, 0)
  302. else
  303. bloodlol.Color = Color3.new(117, 0, 0)
  304. end
  305. local cyl = Instance.new('CylinderMesh',bloodlol)
  306. cyl.Scale = Vector3.new(1,0.1,1)
  307. bloodlol.CFrame = CFrame.new(pos)
  308. coroutine.resume(coroutine.create(function()
  309. local tou = bloodlol
  310. local reee = tou.CFrame
  311. while wait() do
  312. if tou.Size.X < 5 then
  313. tou.Size = tou.Size+Vector3.new(0.005,0,0.005)
  314. tou.CFrame = reee
  315. end
  316. end
  317. end))
  318. local coru=coroutine.wrap(function()
  319. while bloodlol.Parent ~= nil do
  320. if bloodlol.Transparency < 1 then
  321. bloodlol.Transparency = bloodlol.Transparency+0.05
  322. else
  323. bloodlol:Destroy()
  324. end
  325. wait(0.1)
  326. end
  327. end)
  328. end
  329. end
  330. end)
  331. local coru = coroutine.wrap(function()
  332. wait(1)
  333. thing:Destroy()
  334. end)
  335. coru()
  336. end)
  337. reeee()
  338. wait()
  339. end
  340. end
  341.  
  342. local aidsificating = Humanoid.Parent
  343. local thang = "Torso"
  344. if aidsificating:FindFirstChild('UpperTorso') then
  345. thang = "UpperTorso"
  346. end
  347. makehingeconnections(Humanoid.Parent.LowerTorso, Humanoid.Parent.LowerTorso.WaistRigAttachment, Humanoid.Parent.UpperTorso.WaistRigAttachment, -50, 50)
  348. makeballconnections(Humanoid.Parent.LeftUpperArm, Humanoid.Parent.LeftUpperArm.LeftShoulderRigAttachment, Humanoid.Parent.UpperTorso.LeftShoulderRigAttachment, -200, 200, 180)
  349. makehingeconnections(Humanoid.Parent.LeftLowerArm, Humanoid.Parent.LeftLowerArm.LeftElbowRigAttachment, Humanoid.Parent.LeftUpperArm.LeftElbowRigAttachment, 0, -60)
  350. makehingeconnections(Humanoid.Parent.LeftHand, Humanoid.Parent.LeftHand.LeftWristRigAttachment, Humanoid.Parent.LeftLowerArm.LeftWristRigAttachment, -20, 20)
  351. --
  352. makeballconnections(Humanoid.Parent.RightUpperArm, Humanoid.Parent.RightUpperArm.RightShoulderRigAttachment, Humanoid.Parent.UpperTorso.RightShoulderRigAttachment, -200, 200, 180)
  353. makehingeconnections(Humanoid.Parent.RightLowerArm, Humanoid.Parent.RightLowerArm.RightElbowRigAttachment, Humanoid.Parent.RightUpperArm.RightElbowRigAttachment, 0, -60)
  354. makehingeconnections(Humanoid.Parent.RightHand, Humanoid.Parent.RightHand.RightWristRigAttachment, Humanoid.Parent.RightLowerArm.RightWristRigAttachment, -20, 20)
  355. --
  356. makeballconnections(Humanoid.Parent.RightUpperLeg, Humanoid.Parent.RightUpperLeg.RightHipRigAttachment, Humanoid.Parent.LowerTorso.RightHipRigAttachment, -80, 80, 80)
  357. makehingeconnections(Humanoid.Parent.RightLowerLeg, Humanoid.Parent.RightLowerLeg.RightKneeRigAttachment, Humanoid.Parent.RightUpperLeg.RightKneeRigAttachment, 0, 60)
  358. makehingeconnections(Humanoid.Parent.RightFoot, Humanoid.Parent.RightFoot.RightAnkleRigAttachment, Humanoid.Parent.RightLowerLeg.RightAnkleRigAttachment, -20, 20)
  359. --
  360. makeballconnections(Humanoid.Parent.LeftUpperLeg, Humanoid.Parent.LeftUpperLeg.LeftHipRigAttachment, Humanoid.Parent.LowerTorso.LeftHipRigAttachment, -80, 80, 80)
  361. makehingeconnections(Humanoid.Parent.LeftLowerLeg, Humanoid.Parent.LeftLowerLeg.LeftKneeRigAttachment, Humanoid.Parent.LeftUpperLeg.LeftKneeRigAttachment, 0, 60)
  362. makehingeconnections(Humanoid.Parent.LeftFoot, Humanoid.Parent.LeftFoot.LeftAnkleRigAttachment, Humanoid.Parent.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20)
  363. for i,v in pairs(Humanoid.Parent:GetChildren()) do
  364. if v.ClassName == "Accessory" then
  365. local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  366. if attachment1 then
  367. for q,w in pairs(Humanoid.Parent:GetChildren()) do
  368. if w.ClassName == "Part" then
  369. local attachment2 = w:findFirstChild(attachment1.Name)
  370. if attachment2 then
  371. local hinge = Instance.new("HingeConstraint", v.Handle)
  372. hinge.Attachment0 = attachment1
  373. hinge.Attachment1 = attachment2
  374. hinge.LimitsEnabled = true
  375. hinge.LowerAngle = 0
  376. hinge.UpperAngle = 0
  377. end
  378. end
  379. end
  380. end
  381. end
  382. end
  383. for i,v in pairs(ragdoll:GetChildren()) do
  384. for q,w in pairs(v:GetChildren()) do
  385. if w.ClassName == "Motor6D"--[[ and w.Name ~= "Neck"--]] and w.Name ~= "ouch_weld" then
  386. w:destroy()
  387. end
  388. end
  389. end
  390. if ragdoll:findFirstChild("HumanoidRootPart") then
  391. ragdoll.HumanoidRootPart:destroy()
  392. end
  393. if ragdoll:findFirstChildOfClass("Humanoid") then
  394. ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
  395. end
  396. ragdoll.Head.Neck:remove()
  397. else
  398.  
  399. local c = ragdoll
  400. function bleed(frick,OwO)
  401. while frick.Parent ~= nil and frick.Parent.Parent ~= nil do
  402. local reeee = coroutine.wrap(function()
  403. local thing = Instance.new('Part',workspace)
  404. thing.Size = Vector3.new(0.2,0.2,0.2)
  405. thing.CFrame = frick.CFrame
  406. thing.Transparency = 1
  407. thing.BrickColor = BrickColor.new('Maroon')
  408. thing.Material = Enum.Material.SmoothPlastic
  409. thing.Name = "Blood"
  410. thing.CanCollide =false
  411. thing:BreakJoints()
  412. local rawrxd = Instance.new('BodyForce',thing)
  413. rawrxd.Force = frick.CFrame.upVector*(math.random()*2)+Vector3.new(math.random(-5, 5)/10,1.5,0)
  414. local coru = coroutine.wrap(function()
  415. wait(0.01)
  416. rawrxd:Destroy()
  417. end)
  418. coru()
  419. local ree = Instance.new('ParticleEmitter',thing)
  420. if OwO ~= true then
  421. ree.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,1,1)),ColorSequenceKeypoint.new(1,Color3.new(1,1,1))})
  422. else
  423. ree.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,1,1)),ColorSequenceKeypoint.new(1,Color3.new(1,1,1))})
  424. end
  425. ree.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.1),NumberSequenceKeypoint.new(1,0.1)})
  426. ree.Texture = 'rbxassetid://867743272'
  427. ree.Lifetime = NumberRange.new(0.4)
  428. ree.Rate = 50
  429. ree.LockedToPart = true
  430. ree.Speed = NumberRange.new(0, 2)
  431. thing.Touched:connect(function(tou)
  432. 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
  433. local pos = Vector3.new(thing.Position.X,(tou.Position.Y+(tou.Size.Y/2))+0.02,thing.Position.Z)
  434. local Point1 = pos-Vector3.new(0.01,0.01,0.01)
  435. local Point2 = pos+Vector3.new(0.01,0.01,0.01)
  436. local Region = Region3.new(Point1,Point2)
  437. for _,Part in pairs(game.Workspace:FindPartsInRegion3(Region,nil,math.huge)) do
  438. if Part.Name == "BloodPuddle" then
  439. tou = Part
  440. end
  441. end
  442. thing:Destroy()
  443. if tou.Name == "BloodPuddle" then
  444. if tou.Size.X < 1 then
  445. pcall(function()
  446. tou.Sound:Play()
  447. end)
  448. end
  449. local reee = tou.CFrame
  450. if tou.Transparency > -0.2 then
  451. tou.Transparency = tou.Transparency -0.1
  452. end
  453. if tou.Size.X < 3 then
  454. tou.Size = tou.Size+Vector3.new(0.1,0,0.1)
  455. tou.CFrame = reee
  456. end
  457. elseif tou.CanCollide == true then
  458. local bloodlol = Instance.new('Part',workspace)
  459. local sound = Instance.new('Sound',bloodlol)
  460. sound.SoundId = 'rbxassetid://685857471'
  461. sound.Volume = 0.025
  462. sound:Play()
  463. bloodlol.Size=Vector3.new(0.2,0.2,0.2)
  464. bloodlol.Name = "BloodPuddle"
  465. bloodlol.Anchored = true
  466. bloodlol.CanCollide = false
  467. bloodlol.Material = Enum.Material.SmoothPlastic
  468. if OwO ~= true then
  469. bloodlol.Color = Color3.new(117, 0, 0)
  470. else
  471. bloodlol.Color = Color3.new(117, 0, 0)
  472. end
  473. local cyl = Instance.new('CylinderMesh',bloodlol)
  474. cyl.Scale = Vector3.new(1,0.1,1)
  475. bloodlol.CFrame = CFrame.new(pos)
  476. coroutine.resume(coroutine.create(function()
  477. local tou = bloodlol
  478. local reee = tou.CFrame
  479. while wait() do
  480. if tou.Size.X < 5 then
  481. tou.Size = tou.Size+Vector3.new(0.005,0,0.005)
  482. tou.CFrame = reee
  483. end
  484. end
  485. end))
  486. local coru=coroutine.wrap(function()
  487. while bloodlol.Parent ~= nil do
  488. if bloodlol.Transparency < 1 then
  489. bloodlol.Transparency = bloodlol.Transparency+0.05
  490. else
  491. bloodlol:Destroy()
  492. end
  493. wait(0.1)
  494. end
  495. end)
  496. end
  497. end
  498. end)
  499. local coru = coroutine.wrap(function()
  500. wait(1)
  501. thing:Destroy()
  502. end)
  503. coru()
  504. end)
  505. reeee()
  506. wait()
  507. end
  508. end
  509.  
  510. local aidsificating = Humanoid.Parent
  511. local thang = "Torso"
  512. if aidsificating:FindFirstChild('UpperTorso') then
  513. thang = "UpperTorso"
  514. end
  515. ragdoll.Humanoid.BreakJointsOnDeath=false
  516. ragdoll.Humanoid.Name = "DEADMIDGET"
  517. ragdoll:FindFirstChildOfClass("Humanoid").PlatformStand = true
  518. leftleg = Instance.new("Part",c["Left Leg"])
  519. leftleg.Shape = "Cylinder"
  520. leftleg.Transparency = 1
  521. leftleg.Size=Vector3.new(1.4,1,1)
  522. leftlegweld = Instance.new("Weld",leftleg)
  523. leftlegweld.Part0=ragdoll["Left Leg"]
  524. leftlegweld.Part1=leftleg
  525. leftlegweld.C0=CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  526. rightleg = Instance.new("Part",ragdoll["Right Leg"])
  527. rightleg.Shape = "Cylinder"
  528. rightleg.Size=Vector3.new(1.4,1,1)
  529. rightleg.Transparency = 1
  530. rightlegweld = Instance.new("Weld",leftleg)
  531. rightlegweld.C0=CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  532. rightlegweld.Part0=c["Right Leg"]
  533. rightlegweld.Part1=rightleg
  534. rightarm = Instance.new("Part",c["Right Arm"])
  535. rightarm.Shape = "Cylinder"
  536. rightarm.Size=Vector3.new(1.4,1,1)
  537. rightarm.Transparency = 1
  538. rightarmweld = Instance.new("Weld",rightarm)
  539. rightarmweld.C0=CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  540. rightarmweld.Part0=c["Right Arm"]
  541. rightarmweld.Part1=rightarm
  542. leftarm = Instance.new("Part",c["Left Arm"])
  543. leftarm.Shape = "Cylinder"
  544. leftarm.Size=Vector3.new(1.4,1,1)
  545. leftarm.Transparency = 1
  546. leftarmweld = Instance.new("Weld",leftarm)
  547. leftarmweld.C0=CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  548. leftarmweld.Part0=c["Left Arm"]
  549. leftarmweld.Part1=leftarm
  550. head = Instance.new("Part",c.Head)
  551. head.Size=Vector3.new(1.4,1,1)
  552. head.Transparency = 1
  553. headweld = Instance.new("Weld",head)
  554. headweld.Part0=c.Head
  555. headweld.Part1=head
  556. player = ragdoll
  557. local RealTorso = player.Torso
  558. local RealHead = player.Head
  559. local RealLeftleg = player["Left Leg"]
  560. local RealRightleg = player["Right Leg"]
  561. local RealLeftArm = player["Left Arm"]
  562. local RealRightArm = player["Right Arm"]
  563. local rightarmglue = Instance.new("Glue", RealTorso)
  564. rightarmglue.Part0 = RealTorso
  565. rightarmglue.Part1 = RealRightArm
  566. rightarmglue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  567. rightarmglue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  568. local leftarmglue = Instance.new("Glue", RealTorso)
  569. leftarmglue.Part0 = RealTorso
  570. leftarmglue.Part1 = RealLeftArm
  571. leftarmglue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  572. leftarmglue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  573. local leftlegglue = Instance.new("Glue", RealTorso)
  574. leftlegglue.Part0 = RealTorso
  575. leftlegglue.Part1 = RealLeftleg
  576. leftlegglue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  577. leftlegglue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  578. local rightlegglue = Instance.new("Glue", RealTorso)
  579. rightlegglue.Part0 = RealTorso
  580. rightlegglue.Part1 = RealRightleg
  581. rightlegglue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  582. rightlegglue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  583. local headglue = Instance.new("Glue", RealTorso)
  584. headglue.Part0 = RealTorso
  585. headglue.Part1 = RealHead
  586. headglue.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  587. headglue.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  588. RealTorso["Left Hip"]:Destroy()
  589. RealTorso["Right Hip"]:Destroy()
  590. RealTorso["Left Shoulder"]:Destroy()
  591. RealTorso["Right Shoulder"]:Destroy()
  592. RealTorso.Neck:Destroy()
  593. RealTorso["Left Hip"]:Destroy()
  594. RealTorso["Right Hip"]:Destroy()
  595. RealTorso["Left Shoulder"]:Destroy()
  596. RealTorso["Right Shoulder"]:Destroy()
  597. RealTorso.Neck:Destroy()
  598. RealTorso["Left Hip"]:Destroy()
  599. RealTorso["Right Hip"]:Destroy()
  600. RealTorso["Left Shoulder"]:Destroy()
  601. RealTorso["Right Shoulder"]:Destroy()
  602. RealTorso.Neck:Destroy()
  603. RealTorso["Left Hip"]:Destroy()
  604. RealTorso["Right Hip"]:Destroy()
  605. RealTorso["Left Shoulder"]:Destroy()
  606. RealTorso["Right Shoulder"]:Destroy()
  607. RealTorso.Neck:Destroy()
  608. RealTorso["Left Hip"]:Destroy()
  609. RealTorso["Right Hip"]:Destroy()
  610. RealTorso["Left Shoulder"]:Destroy()
  611. RealTorso["Right Shoulder"]:Destroy()
  612. RealTorso.Neck:Destroy()
  613. for i = 1,100 do
  614. ga = c:FindFirstChildWhichIsA("Motor6D",true)
  615. if ga then
  616. ga.Part0 = nil
  617. ga.Part1 = nil
  618. ga.Parent = nil
  619. end
  620. end
  621. for i,v in pairs(RealTorso:GetChildren()) do
  622. if v.ClassName == "Motor6D" then
  623. v:remove()
  624. end
  625. end
  626. player.Humanoid.BreakJointsOnDeath = false
  627. RealTorso.CanCollide = false
  628. end
  629. end))
  630. end
  631. end)
  632. end
  633. end)
Add Comment
Please, Sign In to add comment