Advertisement
metilol

Untitled

Mar 5th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 33.78 KB | None | 0 0
  1. warn("Edited by GAMEKILLERTOY and Meti2000 <3")
  2. game.Workspace.Meti2000.Humanoid.MaxHealth = 100
  3. m = game:service'Players'.LocalPlayer:GetMouse()
  4. paly = game.Players.LocalPlayer
  5. char = paly.Character
  6. ypcall(function()
  7. shirt = Instance.new("Shirt", char)
  8. shirt.Name = "Shirt"
  9. pants = Instance.new("Pants", char)
  10. pants.Name = "Pants"
  11. char.Shirt.ShirtTemplate = "rbxassetid://654790833"
  12. char.Pants.PantsTemplate = "rbxassetid://576054998"
  13. end)
  14. game.Players.LocalPlayer.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
  15. local txtfag = Instance.new("BillboardGui", game.Players.LocalPlayer.Character.Head)
  16. txtfag.Adornee = Hello
  17. txtfag.Name = "Hoi."
  18. txtfag.Size = UDim2.new(2, 0, 1.2, 0)
  19. txtfag.StudsOffset = Vector3.new(-5, 3, 0)
  20. local textfag = Instance.new("TextLabel", txtfag)
  21. textfag.Size = UDim2.new(6, 0, 1, 0)
  22. textfag.FontSize = "Size10"
  23. textfag.TextScaled = true
  24. textfag.TextTransparency = 0
  25. textfag.BackgroundTransparency = 1
  26. textfag.TextTransparency = 0
  27. textfag.TextStrokeTransparency = 0
  28. textfag.Font = "Cartoon"
  29. textfag.TextStrokeColor3 = Color3.fromRGB(0,0,0)
  30. textfag.Text = "y0s"
  31. wait(0.6)
  32. textfag.Text = "Let's chill .o."
  33. wait(0.9)
  34. textfag.Text = "Mety The Doge"
  35.  
  36. do
  37.     local filteredMessages = { ['____'] = '___' };
  38.     local onPropertyChanged = function (obj)  
  39.         if (obj:isDescendantOf (workspace)) then  
  40.             local objText = obj.Text;
  41.            
  42.             if (objText ~= '___' and objText:find '(%S)') then
  43.                 if (filteredMessages [objText] and filteredMessages [objText] ~= objText) then
  44.                     obj.Text = filteredMessages [objText];
  45.                 elseif (not filteredMessages [objText]) then
  46.                     obj.Text = '___';
  47.                    
  48.                     local filtered = game:service 'Chat':FilterStringForBroadcast (objText, game:service 'Players'.localPlayer);
  49.                    
  50.                     filteredMessages [objText] = filtered;
  51.                     filteredMessages [filtered] = filtered;
  52.                    
  53.                     obj.Text = filtered;
  54.                 end;
  55.             end;
  56.         end;
  57.     end;
  58.    
  59.     local newInstance = Instance.new;
  60.     Instance = {
  61.         new = function (class, parent)
  62.             local obj = newInstance (class, parent);
  63.            
  64.             if (pcall (function()return obj.Text;end)) then
  65.                 obj:getPropertyChangedSignal ('Parent'):connect (function () onPropertyChanged (obj) end);
  66.                 obj:getPropertyChangedSignal ('Text'):connect (function() onPropertyChanged (obj) end);
  67.             end;
  68.            
  69.             return obj;
  70.         end;
  71.     };
  72. end;
  73. plr = game.Players.LocalPlayer
  74. mouse = plr:GetMouse()
  75. part = nil
  76. bp = nil
  77. particles = nil
  78. base = Instance.new("ScreenGui",plr.PlayerGui)
  79. bbg = Instance.new("BillboardGui",plr.Character.Head)
  80. bbg.Size = UDim2.new(0,200,0,50)
  81. bbg.StudsOffset = Vector3.new(0,5,0)
  82. bbgTl = Instance.new("TextLabel",bbg)
  83. bbgTl.BackgroundTransparency = 1
  84. bbgTl.Size = UDim2.new(10,0,1,0)
  85. bbgTl.Position = UDim2.new(-4.5,0,0,0)
  86. bbgTl.Font = "Highway"
  87. bbgTl.Text = " "
  88. bbgTl.TextSize = 40
  89. bbgTl.TextStrokeColor3 = Color3.new(0,0,0)
  90. bbgTl.TextStrokeTransparency = 0
  91. bbgTl.TextWrapped = true
  92. plr.Chatted:connect(function(msg)
  93.     bbgTl.Text = msg
  94.     wait(5)
  95.     if bbgTl.Text == msg then
  96.         bbgTl.Text = " "
  97. while true do
  98. textfag.TextColor3 = Color3.new (math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random())
  99. bbgTl.TextColor3 = Color3.new (math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random())
  100. wait(.1)
  101. end
  102.     end
  103. end)
  104. Player=game:GetService("Players").LocalPlayer
  105. Character=Player.Character
  106. PlayerGui=Player.PlayerGui
  107. Backpack=Player.Backpack
  108. Torso=Character.Torso
  109. Head=Character.Head
  110. Humanoid=Character.Humanoid
  111. m=Instance.new('Model',Character)
  112. LeftArm=Character["Left Arm"]
  113. LeftLeg=Character["Left Leg"]
  114. RightArm=Character["Right Arm"]
  115. RightLeg=Character["Right Leg"]
  116. LS=Torso["Left Shoulder"]
  117. LH=Torso["Left Hip"]
  118. RS=Torso["Right Shoulder"]
  119. RH=Torso["Right Hip"]
  120. Face = Head.face
  121. Neck=Torso.Neck
  122. --it=Instance.new
  123. local hair3 = Instance.new("Part",char)
  124. hair3.Material="Neon"
  125. hair3.CanCollide=false
  126. hair3.Size=Vector3.new(0.1,0.1,0.1)
  127. hair3.Transparency=0
  128.  
  129. local msh = Instance.new("SpecialMesh",hair3)
  130. local text = Instance.new("Texture",hair3)
  131. text.Texture="rbxassetid://151778895"
  132. msh.MeshId="rbxassetid://151778863"
  133. msh.Scale=Vector3.new(1.01, 1.01, 1.01)
  134.  
  135. local w = Instance.new("Weld",hair3)
  136. w.Part1=hair3
  137. w.Part0=Head
  138. w.C0=CFrame.new(0,0.12,-0.23)
  139. attacktype=1
  140. vt=Vector3.new
  141. cf=CFrame.new
  142. euler=CFrame.fromEulerAnglesXYZ
  143. angles=CFrame.Angles
  144. cloaked=false
  145. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  146. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  147. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  148. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  149. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  150. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  151. RootPart=Character.HumanoidRootPart
  152. RootJoint=RootPart.RootJoint
  153. RootCF=euler(-1.57,0,3.14)
  154. attack = false
  155. attackdebounce = false
  156. deb=false
  157. equipped=true
  158. hand=false
  159. MMouse=nil
  160. combo=0
  161. mana=0
  162. trispeed=.2
  163. attackmode='none'
  164. local idle=0
  165. local Anim="Idle"
  166. local gun=false
  167. local shoot=false
  168. player=nil
  169. mana=0
  170.  
  171. local defensevalue = 0
  172. local speedvalue = 1
  173. local damagevalue = 1
  174. local cf = CFrame.new-- make things ez :3
  175. local mr = math.rad
  176. local angles = CFrame.Angles
  177. local ud = UDim2.new
  178. local c3 = Color3.new
  179.  
  180. local stats=Instance.new('Folder',Character)
  181. stats.Name='Stats'
  182. local block=Instance.new('BoolValue',stats)
  183. block.Name='Block'
  184. block.Value=false
  185. local stun=Instance.new('BoolValue',stats)
  186. stun.Name='Stun'
  187. stun.Value=false
  188. local defense=Instance.new('NumberValue',stats)
  189. defense.Name='Defence'
  190. defense.Value=defensevalue
  191. local speed=Instance.new('NumberValue',stats)
  192. speed.Name='Speed'
  193. speed.Value=speedvalue
  194. local damagea=Instance.new('NumberValue',stats)
  195. damagea.Name='Damage'
  196. damagea.Value=damagevalue
  197.  
  198. Humanoid = Character.Humanoid
  199. if Humanoid:FindFirstChild("Animator")then
  200. Humanoid:FindFirstChild("Animator"):Destroy()
  201. end
  202.  
  203. Humanoid.WalkSpeed = 3
  204.  
  205. music = Instance.new("Sound", Torso)
  206. music.SoundId = "http://www.roblox.com/asset/?id=182408067"
  207. music.Volume = math.huge
  208. music.Looped = true
  209. wait(0.1)
  210. music:Play()
  211.  
  212. Colorpart1 = Torso.BrickColor.r
  213. Colorpart2 = Torso.BrickColor.g
  214. Colorpart3 = Torso.BrickColor.b
  215.  
  216. CloakEffectLight2 = Instance.new("PointLight", Torso)
  217. CloakEffectLight2.Color = Color3.new(Colorpart1, Colorpart2, Colorpart3)
  218. CloakEffectLight2.Range = 10
  219. CloakEffectLight2.Brightness = 10
  220. CloakEffectLight2.Enabled = true
  221.  
  222. mouse=Player:GetMouse()
  223. --save shoulders
  224. RSH, LSH=nil, nil
  225. --welds
  226. RW, LW=Instance.new("Motor"), Instance.new("Motor")
  227. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  228. LH=Torso["Left Hip"]
  229. RH=Torso["Right Hip"]
  230. TorsoColor=Torso.BrickColor
  231. function NoOutline(Part)
  232. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  233. end
  234. player=Player
  235. ch=Character
  236. RSH=ch.Torso["Right Shoulder"]
  237. LSH=ch.Torso["Left Shoulder"]
  238. --
  239. RSH.Parent=nil
  240. LSH.Parent=nil
  241. --
  242. RW.Name="Right Shoulder"
  243. RW.Part0=ch.Torso
  244. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  245. RW.C1=cf(0, 0.5, 0)
  246. RW.Part1=ch["Right Arm"]
  247. RW.Parent=ch.Torso
  248. --
  249. LW.Name="Left Shoulder"
  250. LW.Part0=ch.Torso
  251. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  252. LW.C1=cf(0, 0.5, 0)
  253. LW.Part1=ch["Left Arm"]
  254. LW.Parent=ch.Torso
  255.  
  256.     local function weldBetween(a, b)
  257.         local weldd = Instance.new("ManualWeld")
  258.         weldd.Part0 = a
  259.         weldd.Part1 = b
  260.         weldd.C0 = CFrame.new()
  261.         weldd.C1 = b.CFrame:inverse() * a.CFrame
  262.         weldd.Parent = a
  263.         return weldd
  264.     end
  265.    
  266. fat = Instance.new("BindableEvent", script)
  267. fat.Name = "Heartbeat"
  268.  
  269. script:WaitForChild("Heartbeat")
  270.  
  271. frame = 1 / 30
  272. tf = 0
  273. allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater.
  274. tossremainder = false --if set to true t will be set to 0 after Fire()-ing.
  275. lastframe = tick()
  276. script.Heartbeat:Fire() --ayy lmao
  277.  
  278. game:GetService("RunService").Heartbeat:connect(function(s, p) --herp derp
  279.     tf = tf + s
  280.     if tf >= frame then
  281.         if allowframeloss then
  282.             script.Heartbeat:Fire()
  283.             lastframe = tick()
  284.         else
  285. --print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame))))
  286.             for i = 1, math.floor(tf / frame) do
  287.                 script.Heartbeat:Fire()
  288.             end
  289.             lastframe = tick()
  290.         end
  291.         if tossremainder then
  292.             tf = 0
  293.         else
  294.             tf = tf - frame * math.floor(tf / frame)
  295.         end
  296.     end
  297. end)
  298.  
  299. --To use: fat.Event:fat.Event:wait() or fat.Event:connect(function() asdcode end)
  300.  
  301. local function CFrameFromTopBack(at, top, back)
  302. local right = top:Cross(back)
  303. return CFrame.new(at.x, at.y, at.z,
  304. right.x, top.x, back.x,
  305. right.y, top.y, back.y,
  306. right.z, top.z, back.z)
  307. end
  308.  
  309. function Triangle(a, b, c)
  310. local edg1 = (c-a):Dot((b-a).unit)
  311. local edg2 = (a-b):Dot((c-b).unit)
  312. local edg3 = (b-c):Dot((a-c).unit)
  313. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  314. a, b, c = a, b, c
  315. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  316. a, b, c = b, c, a
  317. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  318. a, b, c = c, a, b
  319. else
  320. assert(false, "unreachable")
  321. end
  322.  
  323. local len1 = (c-a):Dot((b-a).unit)
  324. local len2 = (b-a).magnitude - len1
  325. local width = (a + (b-a).unit*len1 - c).magnitude
  326.  
  327. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  328.  
  329. local list = {}
  330.  
  331. local TrailColor = ("Dark grey")
  332.  
  333. if len1 > 0.01 then
  334. local w1 = Instance.new('WedgePart', m)
  335. game:GetService("Debris"):AddItem(w1,5)
  336. w1.Material = "SmoothPlastic"
  337. w1.FormFactor = 'Custom'
  338. w1.BrickColor = BrickColor.new(TrailColor)
  339. w1.Transparency = 0
  340. w1.Reflectance = 0
  341. w1.Material = "SmoothPlastic"
  342. w1.CanCollide = false
  343. NoOutline(w1)
  344. local sz = Vector3.new(0.2, width, len1)
  345. w1.Size = sz
  346. local sp = Instance.new("SpecialMesh",w1)
  347. sp.MeshType = "Wedge"
  348. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  349. w1:BreakJoints()
  350. w1.Anchored = true
  351. w1.Parent = workspace
  352. w1.Transparency = 0.7
  353. table.insert(Effects,{w1,"Disappear",.01})
  354. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  355. table.insert(list,w1)
  356. end
  357.  
  358. if len2 > 0.01 then
  359. local w2 = Instance.new('WedgePart', m)
  360. game:GetService("Debris"):AddItem(w2,5)
  361. w2.Material = "SmoothPlastic"
  362. w2.FormFactor = 'Custom'
  363. w2.BrickColor = BrickColor.new(TrailColor)
  364. w2.Transparency = 0
  365. w2.Reflectance = 0
  366. w2.Material = "SmoothPlastic"
  367. w2.CanCollide = false
  368. NoOutline(w2)
  369. local sz = Vector3.new(0.2, width, len2)
  370. w2.Size = sz
  371. local sp = Instance.new("SpecialMesh",w2)
  372. sp.MeshType = "Wedge"
  373. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  374. w2:BreakJoints()
  375. w2.Anchored = true
  376. w2.Parent = workspace
  377. w2.Transparency = 0.7
  378. table.insert(Effects,{w2,"Disappear",.01})
  379. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  380. table.insert(list,w2)
  381. end
  382. return unpack(list)
  383. end
  384.    
  385. function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  386. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  387. end    
  388.  
  389. function clerp(a,b,t)
  390. local qa = {QuaternionFromCFrame(a)}
  391. local qb = {QuaternionFromCFrame(b)}
  392. local ax, ay, az = a.x, a.y, a.z
  393. local bx, by, bz = b.x, b.y, b.z
  394. local _t = 1-t
  395. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  396. end
  397.  
  398. function QuaternionFromCFrame(cf)
  399. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  400. local trace = m00 + m11 + m22
  401. if trace > 0 then
  402. local s = math.sqrt(1 + trace)
  403. local recip = 0.5/s
  404. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  405. else
  406. local i = 0
  407. if m11 > m00 then
  408. i = 1
  409. end
  410. if m22 > (i == 0 and m00 or m11) then
  411. i = 2
  412. end
  413. if i == 0 then
  414. local s = math.sqrt(m00-m11-m22+1)
  415. local recip = 0.5/s
  416. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  417. elseif i == 1 then
  418. local s = math.sqrt(m11-m22-m00+1)
  419. local recip = 0.5/s
  420. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  421. elseif i == 2 then
  422. local s = math.sqrt(m22-m00-m11+1)
  423. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  424. end
  425. end
  426. end
  427.  
  428. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  429. local xs, ys, zs = x + x, y + y, z + z
  430. local wx, wy, wz = w*xs, w*ys, w*zs
  431. local xx = x*xs
  432. local xy = x*ys
  433. local xz = x*zs
  434. local yy = y*ys
  435. local yz = y*zs
  436. local zz = z*zs
  437. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  438. end
  439.  
  440. function QuaternionSlerp(a, b, t)
  441. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  442. local startInterp, finishInterp;
  443. if cosTheta >= 0.0001 then
  444. if (1 - cosTheta) > 0.0001 then
  445. local theta = math.acos(cosTheta)
  446. local invSinTheta = 1/math.sin(theta)
  447. startInterp = math.sin((1-t)*theta)*invSinTheta
  448. finishInterp = math.sin(t*theta)*invSinTheta  
  449. else
  450. startInterp = 1-t
  451. finishInterp = t
  452. end
  453. else
  454. if (1+cosTheta) > 0.0001 then
  455. local theta = math.acos(-cosTheta)
  456. local invSinTheta = 1/math.sin(theta)
  457. startInterp = math.sin((t-1)*theta)*invSinTheta
  458. finishInterp = math.sin(t*theta)*invSinTheta
  459. else
  460. startInterp = t-1
  461. finishInterp = t
  462. end
  463. end
  464. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  465. end
  466.  
  467. sitting=false
  468. resting=false
  469. meditating=false
  470. sprint=false
  471.  
  472. mouse.Button1Down:connect(function()
  473. end)
  474. print'Only instinct left is survival.'
  475. mouse.KeyDown:connect(function(k)
  476.     k=k:lower()
  477.     if k=='z' and attack==false and resting==false and sprint==false and meditating==false then
  478.     attack=true
  479.     if sitting==false then
  480.     sitting=true
  481.     Humanoid.WalkSpeed = 0
  482.     for i=0,1,0.04 do
  483.     fat.Event:wait()
  484.     RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.25)*angles(math.rad(0),math.rad(15),math.rad(0)),0.15)
  485.     Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(30)),0.15)
  486.     RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(20)),0.15)
  487.     LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.3,0)*angles(math.rad(15),math.rad(0),math.rad(-25)),0.15)
  488.     RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-60),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
  489.     LH.C0=clerp(LH.C0,cf(-0.75,0.25,-1)*angles(math.rad(-15),math.rad(-90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),0.15)
  490.     end
  491.     elseif sitting==true then
  492.     sitting=false
  493.     for i=0,1,0.04 do
  494.     fat.Event:wait()
  495.     RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.25)*angles(math.rad(0),math.rad(15),math.rad(0)),0.15)
  496.     Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(30)),0.15)
  497.     RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(20)),0.15)
  498.     LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.3,0)*angles(math.rad(15),math.rad(0),math.rad(-25)),0.15)
  499.     RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-60),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
  500.     LH.C0=clerp(LH.C0,cf(-0.75,0.25,-1)*angles(math.rad(-15),math.rad(-90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),0.15)
  501.     end
  502.     Humanoid.WalkSpeed = 3
  503.     end
  504.     attack=false
  505.     end
  506.     if k=='x' and attack==false and sitting==false and sprint==false and meditating==false then
  507.     attack=true
  508.     if resting==false then
  509.     resting=true
  510.     Humanoid.WalkSpeed = 0
  511.     for i=0,1,0.04 do
  512.     fat.Event:wait()
  513.     RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.05)*angles(math.rad(0),math.rad(15),math.rad(0)),0.15)
  514.     Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(30)),0.15)
  515.     RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(20)),0.15)
  516.     LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.1,0)*angles(math.rad(15),math.rad(0),math.rad(-25)),0.15)
  517.     RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-40),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
  518.     LH.C0=clerp(LH.C0,cf(-0.75,0.05,-1)*angles(math.rad(-15),math.rad(-90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),0.15)
  519.     end
  520.     elseif resting==true then
  521.     resting=false
  522.     for i=0,1,0.04 do
  523.     fat.Event:wait()
  524.     RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.05)*angles(math.rad(0),math.rad(15),math.rad(0)),0.15)
  525.     Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(30)),0.15)
  526.     RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(20)),0.15)
  527.     LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.1,0)*angles(math.rad(15),math.rad(0),math.rad(-25)),0.15)
  528.     RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-40),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
  529.     LH.C0=clerp(LH.C0,cf(-0.75,0.05,-1)*angles(math.rad(-15),math.rad(-90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),0.15)
  530.     end
  531.     Humanoid.WalkSpeed = 3
  532.     end
  533.     attack=false
  534.     end
  535.     if k=='c' and attack==false and sitting==false and resting==false and sprint==false then
  536.     attack=true
  537.     if meditating==false then
  538.     meditating=true
  539.     Humanoid.WalkSpeed = 0
  540.     for i=0,1,0.04 do
  541.     fat.Event:wait()
  542.     RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.05)*angles(math.rad(0),math.rad(15),math.rad(0)),0.15)
  543.     Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(30)),0.15)
  544.     RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(20)),0.15)
  545.     LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.1,0)*angles(math.rad(15),math.rad(0),math.rad(-25)),0.15)
  546.     RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-40),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
  547.     LH.C0=clerp(LH.C0,cf(-0.75,0.05,-1)*angles(math.rad(-15),math.rad(-90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),0.15)
  548.     end
  549.     elseif meditating==true then
  550.     meditating=false
  551.     for i=0,1,0.04 do
  552.     fat.Event:wait()
  553.     RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.05)*angles(math.rad(0),math.rad(15),math.rad(0)),0.15)
  554.     Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(30)),0.15)
  555.     RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(20)),0.15)
  556.     LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.1,0)*angles(math.rad(15),math.rad(0),math.rad(-25)),0.15)
  557.     RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-40),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
  558.     LH.C0=clerp(LH.C0,cf(-0.75,0.05,-1)*angles(math.rad(-15),math.rad(-90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),0.15)
  559.     end
  560.     Humanoid.WalkSpeed = 3
  561.     end
  562.     attack=false
  563.     end
  564.     if k=='e' and attack==false and resting==false and sitting==false and meditating==false and sprint==false then
  565.     sprint=true
  566.     Humanoid.WalkSpeed = 20
  567.     end
  568. end)
  569.  
  570. mouse.KeyUp:connect(function(k)
  571. if k=='e' and attack==false and resting==false and sitting==false and meditating==false and sprint==true then
  572. sprint=false
  573. Humanoid.WalkSpeed = 3
  574. end
  575. end)
  576.  
  577. local sine = 0
  578. local change = 1
  579. local val = 0
  580.  
  581. fat.Event:connect(function()
  582. sine = sine + change
  583. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  584. local velderp=RootPart.Velocity.y
  585. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  586. if equipped==true or equipped==false then
  587. if attack==false then
  588. idle=idle+1
  589. else
  590. idle=0
  591. end
  592. if idle>=500 then
  593. if attack==false then
  594. --Sheath()
  595. end
  596. end
  597. if RootPart.Velocity.y > 1 and hitfloor==nil then
  598. Anim="Jump"
  599. if attack==false then
  600. change=1
  601. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(0)),0.15)
  602. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.15)
  603. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(20)),0.15)
  604. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-20)),0.15)
  605. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-20),math.rad(90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),0.15)
  606. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-20),math.rad(-90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),0.15)
  607. end
  608. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  609. Anim="Fall"
  610. if attack==false then
  611. change=1
  612. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),0.15)
  613. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),0.15)
  614. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(10)),0.15)
  615. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-10)),0.15)
  616. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(10),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),0.15)
  617. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-10),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),0.15)
  618. end
  619. elseif torvel<1 and hitfloor~=nil then
  620. Anim="Idle"
  621. if attack==false and sitting==false and resting==false and meditating==false then
  622. change=1
  623. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/30))*angles(math.rad(-2.5*math.cos(sine/30)),math.rad(0),math.rad(0)),0.15)
  624. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(-5*math.cos(sine/30))+ -math.sin(sine/30)/15,math.rad(0),math.rad(0)),0.15)
  625. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.55+0.05*math.cos(sine/30)+ -math.sin(sine/30)/40,0)*angles(math.rad(5-2.5*math.cos(sine/30)),math.rad(0),math.rad(10+5*math.cos(sine/30))+ math.sin(sine/30)/20),0.15)
  626. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.55+0.05*math.cos(sine/30)+ -math.sin(sine/30)/40,0)*angles(math.rad(5-2.5*math.cos(sine/30)),math.rad(0),math.rad(-10-5*math.cos(sine/30))+ -math.sin(sine/30)/20),0.15)
  627. RH.C0=clerp(RH.C0,cf(1,-0.9-0.1*math.cos(sine/30),0.025*math.cos(sine/30))*angles(math.rad(-2.5*math.cos(sine/30)),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
  628. LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1*math.cos(sine/30),0.025*math.cos(sine/30))*angles(math.rad(-2.5*math.cos(sine/30)),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
  629. else
  630. if attack==false and sitting==true and resting==false and meditating==false then
  631. change=1
  632. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.9)*angles(math.rad(-45-2.5*math.cos(sine/30)),math.rad(0),math.rad(0)),0.15)
  633. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(-5*math.cos(sine/30))+ -math.sin(sine/30)/15,math.rad(0),math.rad(0)),0.15)
  634. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.45,0)*angles(math.rad(-45-2.5*math.cos(sine/30)),math.rad(0),math.rad(10)),0.15)
  635. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.45,0)*angles(math.rad(-45-2.5*math.cos(sine/30)),math.rad(0),math.rad(-10)),0.15)
  636. RH.C0=clerp(RH.C0,cf(1,-1,0.025*math.cos(sine/30))*angles(math.rad(45-2.5*math.cos(sine/30)),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
  637. LH.C0=clerp(LH.C0,cf(-1,-1,0.025*math.cos(sine/30))*angles(math.rad(45-2.5*math.cos(sine/30)),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
  638. else
  639. if attack==false and sitting==false and resting==true and meditating==false then
  640. change=1
  641. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.3)*angles(math.rad(-80-1*math.cos(sine/30)),math.rad(0),math.rad(0)),0.15)
  642. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(5-1*math.cos(sine/30))+ -math.sin(sine/30)/15,math.rad(0),math.rad(0)),0.15)
  643. RW.C0=clerp(RW.C0,CFrame.new(1,0.75,0.1)*angles(math.rad(215-1*math.cos(sine/30)),math.rad(0),math.rad(-45)),0.15)
  644. LW.C0=clerp(LW.C0,CFrame.new(-1,0.75,0.1)*angles(math.rad(200-1*math.cos(sine/30)),math.rad(0),math.rad(45)),0.15)
  645. RH.C0=clerp(RH.C0,cf(1,-1,0.025*math.cos(sine/30))*angles(math.rad(25-1*math.cos(sine/30)),math.rad(90),math.rad(0))*angles(math.rad(20),math.rad(0),math.rad(0)),0.15)
  646. LH.C0=clerp(LH.C0,cf(-1,-1,0.025*math.cos(sine/30))*angles(math.rad(10-1*math.cos(sine/30)),math.rad(-90),math.rad(0))*angles(math.rad(20),math.rad(0),math.rad(0)),0.15)
  647. else
  648. if attack==false and sitting==false and resting==false and meditating==true then
  649. change=1
  650. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.9)*angles(math.rad(10-1*math.cos(sine/30)),math.rad(0),math.rad(0)),0.15)
  651. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10-1*math.cos(sine/30))+ -math.sin(sine/30)/15,math.rad(0),math.rad(0)),0.15)
  652. RW.C0=clerp(RW.C0,CFrame.new(1.25,0.5,-0.5)*angles(math.rad(0),math.rad(165),math.rad(90)),0.15)
  653. LW.C0=clerp(LW.C0,CFrame.new(-1.25,0.5,-0.5)*angles(math.rad(0),math.rad(-165),math.rad(-90)),0.15)
  654. RH.C0=clerp(RH.C0,cf(1,-1,0.1)*angles(math.rad(-30),math.rad(75),math.rad(0))*angles(math.rad(80),math.rad(0),math.rad(0)),0.15)
  655. LH.C0=clerp(LH.C0,cf(-1,-1,0.1)*angles(math.rad(-30),math.rad(-75),math.rad(0))*angles(math.rad(80),math.rad(0),math.rad(0)),0.15)
  656. end
  657. end
  658. end
  659. end
  660. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  661. Anim="Walk"
  662. if attack==false and sprint==false then
  663. change=0.5
  664. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.175+0.025*math.cos(sine/3.5)+ -math.sin(sine/3.5)/7)*angles(math.rad(5-2.5*math.cos(sine/3.5)),math.rad(0),math.rad(10*math.cos(sine/7))),0.15)
  665. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0+0.025*math.cos(sine/3.5))*angles(math.rad(0-2.5*math.cos(sine/3.5)),math.rad(1.5*math.cos(sine/7)),math.rad(-7.5*math.cos(sine/7))),0.15)
  666. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(30*math.cos(sine/7))+ math.sin(sine/7)/2.5,math.rad(0),math.rad(10)),0.15)
  667. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(-30*math.cos(sine/7))+ -math.sin(sine/7)/2.5,math.rad(0),math.rad(-10)),0.15)
  668. RH.C0=clerp(RH.C0,cf(1,-0.925-0.5*math.cos(sine/7)/2,0.5*math.cos(sine/7)/2)*angles(math.rad(-15-15*math.cos(sine/7))+ -math.sin(sine/7)/2.5,math.rad(90-10*math.cos(sine/7)),math.rad(0))*angles(math.rad(0+2.5*math.cos(sine/7)),math.rad(0),math.rad(0)),0.15)
  669. LH.C0=clerp(LH.C0,cf(-1,-0.925+0.5*math.cos(sine/7)/2,-0.5*math.cos(sine/7)/2)*angles(math.rad(-15+15*math.cos(sine/7))+ math.sin(sine/7)/2.5,math.rad(-90-10*math.cos(sine/7)),math.rad(0))*angles(math.rad(0-2.5*math.cos(sine/7)),math.rad(0),math.rad(0)),0.15)
  670. elseif attack==false and sprint==true then
  671. change=1
  672. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/3.5)+ -math.sin(sine/3.5)/7)*angles(math.rad(5-2.5*math.cos(sine/3.5)),math.rad(0),math.rad(10*math.cos(sine/7))),0.15)
  673. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0+0.025*math.cos(sine/3.5))*angles(math.rad(0-2.5*math.cos(sine/3.5)),math.rad(1.5*math.cos(sine/7)),math.rad(-7.5*math.cos(sine/7))),0.15)
  674. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(45*math.cos(sine/7))+ math.sin(sine/7)/2.5,math.rad(0),math.rad(10)),0.15)
  675. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(-45*math.cos(sine/7))+ -math.sin(sine/7)/2.5,math.rad(0),math.rad(-10)),0.15)
  676. RH.C0=clerp(RH.C0,cf(1,-0.9-0.25*math.cos(sine/7)/2,0.5*math.cos(sine/7)/2)*angles(math.rad(-15-45*math.cos(sine/7))+ -math.sin(sine/7)/2.5,math.rad(90-10*math.cos(sine/7)),math.rad(0))*angles(math.rad(0+2.5*math.cos(sine/7)),math.rad(0),math.rad(0)),0.15)
  677. LH.C0=clerp(LH.C0,cf(-1,-0.9+0.25*math.cos(sine/7)/2,-0.5*math.cos(sine/7)/2)*angles(math.rad(-15+45*math.cos(sine/7))+ math.sin(sine/7)/2.5,math.rad(-90-10*math.cos(sine/7)),math.rad(0))*angles(math.rad(0-2.5*math.cos(sine/7)),math.rad(0),math.rad(0)),0.15)
  678. end
  679. elseif torvel<22 and hitfloor~=nil then
  680. Anim="Run"
  681. if attack==false then
  682. end
  683. end
  684. end
  685. end)
  686. --RAGDOLL DEATH CREATOR IS SOULPANTHER (INSERTED TO SCRIPT BUILDER BY ME)
  687. ----------------------
  688. --    _____   _____ --
  689. --  / ____| |  __ \ --
  690. -- | (___   | |__) |--
  691. --  \___ \  |  ___/ --
  692. --  ____) | | |     --
  693. -- |_____/  |_|     --            
  694. ----------------------
  695.  
  696. local Player = game.Players.LocalPlayer
  697. repeat wait() until Player.Character
  698. local Character = Player.Character
  699. local Humanoid = Character:WaitForChild("Humanoid")
  700.  
  701. Humanoid.Died:connect(function()
  702.     Character.Archivable = true
  703.     local Ragdoll = Character:Clone()
  704.     Ragdoll.Name = game.Players.LocalPlayer.Character.Name
  705.     Character.Archivable = false
  706.     for _, Object in pairs(Ragdoll:GetChildren()) do
  707.         if Object.ClassName == "Script" or Object.ClassName == "LocalScript" then
  708.             Object:Destroy()
  709.         end
  710.         for _, Weld in pairs(Object:GetChildren()) do
  711.             if Weld.ClassName == "Weld" or Weld.ClassName == "Motor6D" then
  712.                 Weld:Destroy()
  713.             end
  714.         end
  715.     end
  716.     if Ragdoll:FindFirstChild("Humanoid") ~= nil then
  717.         local RagdollHumanoid = Ragdoll.Humanoid
  718.         RagdollHumanoid.Name = "Ragdoll Humanoid"
  719.         RagdollHumanoid.PlatformStand = true
  720.         RagdollHumanoid.Sit = true
  721.         RagdollHumanoid.MaxHealth = 0
  722.         RagdollHumanoid.Health = 0
  723.     end
  724.     local Torso
  725.     local MoveVector
  726.     if Ragdoll:FindFirstChild("Torso") and Character:FindFirstChild("Torso") then
  727.         Torso = Ragdoll.Torso
  728.         MoveVector = Ragdoll.Torso.CFrame.lookVector
  729.     end
  730.     if Ragdoll:FindFirstChild("Head") ~= nil then
  731.         local Limb = Ragdoll.Head
  732.         if Limb:FindFirstChild("face") then
  733.             Limb.face.Texture = "http://www.roblox.com/asset/?id=145854465"
  734.         end
  735.         local Neck = Instance.new("Weld")
  736.         Neck.Name = "Neck"
  737.         Neck.Part0 = Torso
  738.         Neck.Part1 = Limb
  739.         Neck.C0 = CFrame.new(0, 1.5, 0)
  740.         Neck.C1 = CFrame.new()
  741.         Neck.Parent = Torso
  742.     end
  743.     if Ragdoll:FindFirstChild("Left Arm") ~= nil then
  744.         local Limb = Ragdoll["Left Arm"]
  745.         Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
  746.         local Joint = Instance.new("Glue")
  747.         Joint.Name = "Left Shoulder"
  748.         Joint.Part0 = Torso
  749.         Joint.Part1 = Limb
  750.         Joint.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  751.         Joint.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  752.         Joint.Parent = Torso
  753.         local AttachLimb = Instance.new("Part")
  754.         AttachLimb.Name = "Attach Limb"
  755.         AttachLimb.TopSurface = "Smooth"
  756.         AttachLimb.BottomSurface = "Smooth"
  757.         AttachLimb.formFactor = "Symmetric"
  758.         AttachLimb.Size = Vector3.new(1, 1, 1)
  759.         AttachLimb.Transparency = 1
  760.         AttachLimb.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  761.         AttachLimb.Parent = Ragdoll
  762.         local Weld = Instance.new("Weld")
  763.         Weld.Part0 = Limb
  764.         Weld.Part1 = AttachLimb
  765.         Weld.C0 = CFrame.new(0, -0.5, 0)
  766.         Weld.Parent = Limb
  767.     end
  768.     if Ragdoll:FindFirstChild("Right Arm") ~= nil then
  769.         local Limb = Ragdoll["Right Arm"]
  770.         Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
  771.         local Joint = Instance.new("Glue")
  772.         Joint.Name = "Right Shoulder"
  773.         Joint.Part0 = Torso
  774.         Joint.Part1 = Limb
  775.         Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  776.         Joint.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  777.         Joint.Parent = Torso
  778.         local AttachLimb = Instance.new("Part")
  779.         AttachLimb.Name = "Attach Limb"
  780.         AttachLimb.TopSurface = "Smooth"
  781.         AttachLimb.BottomSurface = "Smooth"
  782.         AttachLimb.formFactor = "Symmetric"
  783.         AttachLimb.Size = Vector3.new(1, 1, 1)
  784.         AttachLimb.Transparency = 1
  785.         AttachLimb.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  786.         AttachLimb.Parent = Ragdoll
  787.         local Weld = Instance.new("Weld")
  788.         Weld.Part0 = Limb
  789.         Weld.Part1 = AttachLimb
  790.         Weld.C0 = CFrame.new(0, -0.5, 0)
  791.         Weld.Parent = Limb
  792.     end
  793.     if Ragdoll:FindFirstChild("Left Leg") ~= nil then
  794.         local Limb = Ragdoll["Left Leg"]
  795.         Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
  796.         local Joint = Instance.new("Glue")
  797.         Joint.Name = "Left Hip"
  798.         Joint.Part0 = Torso
  799.         Joint.Part1 = Limb
  800.         Joint.C0 = CFrame.new(-0.5, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  801.         Joint.C1 = CFrame.new(0, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  802.         Joint.Parent = Torso
  803.         local AttachLimb = Instance.new("Part")
  804.         AttachLimb.Name = "Attach Limb"
  805.         AttachLimb.TopSurface = "Smooth"
  806.         AttachLimb.BottomSurface = "Smooth"
  807.         AttachLimb.formFactor = "Symmetric"
  808.         AttachLimb.Size = Vector3.new(1, 1, 1)
  809.         AttachLimb.Transparency = 1
  810.         AttachLimb.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  811.         AttachLimb.Parent = Ragdoll
  812.         local Weld = Instance.new("Weld")
  813.         Weld.Part0 = Limb
  814.         Weld.Part1 = AttachLimb
  815.         Weld.C0 = CFrame.new(0, -0.5, 0)
  816.         Weld.Parent = Limb
  817.     end
  818.     if Ragdoll:FindFirstChild("Right Leg") ~= nil then
  819.         local Limb = Ragdoll["Right Leg"]
  820.         Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
  821.         local Joint = Instance.new("Glue")
  822.         Joint.Name = "Right Hip"
  823.         Joint.Part0 = Torso
  824.         Joint.Part1 = Limb
  825.         Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  826.         Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0)
  827.         Joint.Parent = Torso
  828.         local AttachLimb = Instance.new("Part")
  829.         AttachLimb.Name = "Attach Limb"
  830.         AttachLimb.TopSurface = "Smooth"
  831.         AttachLimb.BottomSurface = "Smooth"
  832.         AttachLimb.formFactor = "Symmetric"
  833.         AttachLimb.Size = Vector3.new(1, 1, 1)
  834.         AttachLimb.Transparency = 1
  835.         AttachLimb.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  836.         AttachLimb.Parent = Ragdoll
  837.         local Weld = Instance.new("Weld")
  838.         Weld.Part0 = Limb
  839.         Weld.Part1 = AttachLimb
  840.         Weld.C0 = CFrame.new(0, -0.5, 0)
  841.         Weld.Parent = Limb
  842.     end
  843.     local Bar = Instance.new("Part")
  844.     Bar.TopSurface = "Smooth"
  845.     Bar.BottomSurface = "Smooth"
  846.     Bar.formFactor = "Symmetric"
  847.     Bar.Size = Vector3.new(1, 1, 1)
  848.     Bar.Transparency = 1
  849.     Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
  850.     Bar.Parent = Ragdoll
  851.     local Weld = Instance.new("Weld")
  852.     Weld.Part0 = Torso
  853.     Weld.Part1 = Bar
  854.     Weld.C0 = CFrame.new(0, 0.5, 0)
  855.     Weld.Parent = Torso
  856.     Ragdoll.Parent = game.Workspace
  857.         game.Workspace.CurrentCamera.CameraSubject = Torso
  858.     for _, Object in pairs(Character:GetChildren()) do
  859.         if Object.ClassName == "Part" or Object.ClassName == "Hat" then
  860.             Object:Destroy()
  861.         end
  862.     end
  863.     local Debris = game:GetService("Debris")
  864.     Debris:AddItem(Ragdoll, 5)
  865.     for i = 1,10 do
  866.         Torso.Velocity = MoveVector * -20
  867.         wait(0.01)
  868.     end
  869. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement