Advertisement
aaaay63746

A

Mar 25th, 2020
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 122.73 KB | None | 0 0
  1. Bypass = "death"
  2. loadstring(game:GetObjects("rbxassetid://5325226148")[1].Source)()
  3.  
  4. print([[
  5. ___________________________________
  6.  
  7. Booty Offender // A Kyutatsuki13's script
  8. Build 0001
  9. Credit to Ethanhong that gave me this idea ;)
  10. https://discord.gg/DueqyJ8
  11.  
  12. ___________________________________
  13. ]])
  14.  
  15. warn("You're whitelisted, "..game:GetService("Players").LocalPlayer.Name.." :)")
  16.  
  17. local p = game:GetService("Players").LocalPlayer
  18. local char = p.Character
  19. local mouse = p:GetMouse()
  20. local larm = char:WaitForChild("Left Arm")
  21. local rarm = char:WaitForChild("Right Arm")
  22. local lleg = char:WaitForChild("Left Leg")
  23. local rleg = char:WaitForChild("Right Leg")
  24. local hed = char:WaitForChild("Head")
  25. local torso = char:WaitForChild("Torso")
  26. local root = char:WaitForChild("HumanoidRootPart")
  27. local hum = char:FindFirstChildOfClass("Humanoid")
  28. local debris = game:GetService("Debris")
  29. local input = game:GetService("UserInputService")
  30. local run = game:GetService("RunService")
  31. local rs = run.RenderStepped
  32. local wingpose = "Idle"
  33. local DebrisModel = Instance.new("Model",char)
  34. DebrisModel.Name = "Debris"
  35. repeat rs:wait() until p.CharacterAppearanceLoaded
  36.  
  37. noidle = false
  38. shift = false
  39. control = false
  40.  
  41. ----------------------------------------------------------------------------
  42.  
  43. function rswait(value)
  44. if value ~= nil and value ~= 0 then
  45. for i=1,value do
  46. rs:wait()
  47. end
  48. else
  49. rs:wait()
  50. end
  51. end
  52.  
  53. ----------------------------------------------------------------------------
  54.  
  55. local timeposition = 0
  56.  
  57. function music(id)
  58. if id == "Stop" then
  59. if not torso:FindFirstChild("MusicRuin") then
  60. soundz = Instance.new("Sound",torso)
  61. end
  62. soundz:Stop()
  63. else
  64. if not torso:FindFirstChild("MusicRuin") then
  65. soundz = Instance.new("Sound",torso)
  66. for i=1,2 do
  67. local equalizer = Instance.new("EqualizerSoundEffect",soundz)
  68. equalizer.HighGain = 6
  69. equalizer.MidGain = 0
  70. equalizer.LowGain = 6
  71. end
  72. end
  73. soundz.Volume = 10
  74. soundz.Name = "MusicRuin"
  75. soundz.Looped = true
  76. soundz.PlaybackSpeed = 1
  77. soundz.SoundId = "rbxassetid://"..id
  78. soundz:Stop()
  79. soundz:Play()
  80. end
  81. end
  82.  
  83. ----------------------------------------------------------------------------
  84.  
  85. function lerp(a, b, t)
  86. return a + (b - a)*t
  87. end
  88.  
  89. ----------------------------------------------------------------------------
  90.  
  91. function Lerp(c1,c2,al)
  92. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  93. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  94. for i,v in pairs(com1) do
  95. com1[i] = v+(com2[i]-v)*al
  96. end
  97. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  98. end
  99.  
  100. ----------------------------------------------------------------------------
  101.  
  102. function slerp(a, b, t)
  103. dot = a:Dot(b)
  104. if dot > 0.99999 or dot < -0.99999 then
  105. return t <= 0.5 and a or b
  106. else
  107. r = math.acos(dot)
  108. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  109. end
  110. end
  111.  
  112. ----------------------------------------------------------------------------
  113.  
  114. function clerp(c1,c2,al)
  115.  
  116. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  117.  
  118. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  119.  
  120. for i,v in pairs(com1) do
  121.  
  122. com1[i] = lerp(v,com2[i],al)
  123.  
  124. end
  125.  
  126. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  127.  
  128. end
  129.  
  130. ----------------------------------------------------------------------------
  131.  
  132. function findAllNearestTorso(pos,dist)
  133. local list = workspace:children()
  134. local torso = {}
  135. local temp = nil
  136. local human = nil
  137. local temp2 = nil
  138. for x = 1, #list do
  139. temp2 = list[x]
  140. if (temp2.className == "Model") and (temp2 ~= char) then
  141. temp = temp2:findFirstChild("Torso")
  142. human = temp2:findFirstChildOfClass("Humanoid")
  143. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  144. if (temp.Position - pos).magnitude < dist then
  145. table.insert(torso,temp)
  146. dist = (temp.Position - pos).magnitude
  147. end
  148. end
  149. end
  150. end
  151. return torso
  152. end
  153.  
  154. ----------------------------------------------------------------------------
  155.  
  156. function checkIfNotPlayer(model)
  157. if model.CanCollide == true and model ~= char and model.Parent ~= char and model.Parent.Parent ~= char and model.Parent.Parent ~= char and model.Parent ~= DebrisModel and model.Parent.Parent ~= DebrisModel and model.Parent.Parent.Parent ~= DebrisModel and model ~= wings and model.Parent ~= wings and model.Parent.Parent ~= wings then
  158. return true
  159. else
  160. return false
  161. end
  162. end
  163.  
  164. ----------------------------------------------------------------------------
  165.  
  166. function newWeld(wp0, wp1, wc0x, wc0y, wc0z)
  167.  
  168. local wld = Instance.new("Weld", wp1)
  169.  
  170. wld.Part0 = wp0
  171.  
  172. wld.Part1 = wp1
  173.  
  174. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  175.  
  176. return wld
  177.  
  178. end
  179.  
  180. function weld(model)
  181. local parts,last = {}
  182. local function scan(parent)
  183. for _,v in pairs(parent:GetChildren()) do
  184. if (v:IsA("BasePart")) then
  185. if (last) then
  186. local w = Instance.new("Weld")
  187. w.Name = ("%s_Weld"):format(v.Name)
  188. w.Part0,w.Part1 = last,v
  189. w.C0 = last.CFrame:inverse()
  190. w.C1 = v.CFrame:inverse()
  191. w.Parent = last
  192. end
  193. last = v
  194. table.insert(parts,v)
  195. end
  196. scan(v)
  197. end
  198. end
  199. scan(model)
  200. for _,v in pairs(parts) do
  201. v.Anchored = false
  202. v.Locked = true
  203. v.Anchored = false
  204. v.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  205. v.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  206. v.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  207. v.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  208. v.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  209. v.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  210. v.CustomPhysicalProperties = PhysicalProperties.new(0,0,0)
  211. end
  212. end
  213.  
  214. ----------------------------------------------------------------------------
  215.  
  216. function calculate(part,asd)
  217. local Head = hed
  218. local RightShoulder = asd
  219. local RightArm = part
  220. local MousePosition = mouse.Hit.p
  221. local ToMouse = (MousePosition - Head.Position).unit
  222. local Angle = math.acos(ToMouse:Dot(Vector3.new(0, 1, 0)))
  223. local FromRightArmPos = (Head.Position + Head.CFrame:vectorToWorldSpace(Vector3.new(((Head.Size.X / 2) + (RightArm.Size.X / 2)), ((Head.Size.Y / 2) - (RightArm.Size.Z / 2)), 0)))
  224. local ToMouseRightArm = ((MousePosition - FromRightArmPos) * Vector3.new(1 ,0, 1)).unit
  225. local Look = (Head.CFrame.lookVector * Vector3.new(1, 0, 1)).unit
  226. local LateralAngle = math.acos(ToMouseRightArm:Dot(Look))
  227. if tostring(LateralAngle) == "-1.#IND" then
  228. LateralAngle = 0
  229. end
  230. local Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm)
  231. if LateralAngle > (math.pi / 2) then
  232. LateralAngle = (math.pi / 2)
  233. local Torso = root
  234. local Point = Torso.CFrame:vectorToObjectSpace(mouse.Hit.p-Torso.CFrame.p)
  235. if Point.Z > 0 then
  236. if Point.X > -0 and RightArm == rarm then
  237. Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mouse.Hit.X,Torso.Position.Y,mouse.Hit.Z))*CFrame.Angles(0,math.rad(110),0)
  238. elseif Point.X < 0 and RightArm == rarm then
  239. Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mouse.Hit.X,Torso.Position.Y,mouse.Hit.Z))*CFrame.Angles(0,math.rad(-110),0)
  240. end
  241. end
  242. end
  243. if Cross.Y < 0 then
  244. LateralAngle = -LateralAngle
  245. end
  246. return(CFrame.Angles(((math.pi / 2) - Angle), ((math.pi / 2) + LateralAngle), math.pi/2))
  247. end
  248.  
  249. ----------------------------------------------------------------------------
  250.  
  251. function sound(id,position,vol,pitch,start,finish)
  252. coroutine.resume(coroutine.create(function()
  253.  
  254. local part = Instance.new("Part",workspace)
  255. part.Position = position
  256. part.Size = Vector3.new(0,0,0)
  257. part.CanCollide = false
  258. part.Transparency = 1
  259.  
  260. local sound = Instance.new("Sound",part)
  261.  
  262. sound.SoundId = "rbxassetid://"..id
  263.  
  264. repeat rs:wait() until sound.IsLoaded
  265.  
  266. if vol ~= nil then
  267. sound.Volume = vol
  268. end
  269.  
  270. if pitch ~= nil then
  271. sound.PlaybackSpeed = pitch
  272. end
  273.  
  274. if start ~= nil then
  275. sound.TimePosition = start
  276. end
  277.  
  278. if finish ~= nil then
  279. debris:AddItem(part,finish-start)
  280. else
  281. debris:AddItem(part,sound.TimeLength)
  282. end
  283.  
  284. sound:Play()
  285.  
  286. return sound
  287.  
  288. end))
  289. end
  290.  
  291. ----------------------------------------------------------------------------
  292.  
  293. function computeDirection(vec)
  294. local lenSquared = vec.magnitude * vec.magnitude
  295. local invSqrt = 1 / math.sqrt(lenSquared)
  296. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  297. end
  298.  
  299. ----------------------------------------------------------------------------
  300.  
  301. local shaking = 0
  302. function shake(num) if num > shaking then shaking = num end end
  303. game:GetService("RunService").RenderStepped:connect(function()
  304. hum.CameraOffset = Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))*(shaking/100)
  305. if shaking > 0 then shaking = shaking - 1 else shaking = 0 end
  306. end)
  307.  
  308. plr = game:GetService("Players").LocalPlayer
  309. DebrisModel = Instance.new("Model",plr.Character)
  310. DebrisModel.Name = "DebrisModel"
  311.  
  312. function Effect(mesh,size,transparency,material,color,position,rotation,positionchange,sizechange,rotationchange,transparencychange,acceleration)
  313.  
  314. local part = Instance.new("Part",DebrisModel)
  315. part.Anchored = true
  316. part.CanCollide = false
  317. part.Size = Vector3.new(1,1,1)
  318. part.Transparency = transparency
  319. part.Material = material
  320. part.Color = color
  321. part.CFrame = CFrame.new(position)*CFrame.Angles(math.rad(rotation.X),math.rad(rotation.Y),math.rad(rotation.Z))
  322.  
  323. local partmesh = Instance.new("SpecialMesh",part)
  324. if tonumber(mesh) == nil then partmesh.MeshType = mesh else partmesh.MeshId = "rbxassetid://"..mesh end
  325. partmesh.Scale = size
  326.  
  327. local pvalue = Instance.new("Vector3Value",part)
  328. pvalue.Name = "Position"
  329. pvalue.Value = positionchange
  330.  
  331. local svalue = Instance.new("Vector3Value",part)
  332. svalue.Name = "Size"
  333. svalue.Value = sizechange
  334.  
  335. local rvalue = Instance.new("Vector3Value",part)
  336. rvalue.Name = "Rotation"
  337. rvalue.Value = rotationchange
  338.  
  339. local tvalue = Instance.new("NumberValue",part)
  340. tvalue.Name = "Transparency"
  341. tvalue.Value = transparencychange
  342.  
  343. local avalue = Instance.new("NumberValue",part)
  344. avalue.Name = "Acceleration"
  345. avalue.Value = acceleration
  346.  
  347. part.Name = "EFFECT"
  348.  
  349. return part
  350.  
  351. end
  352.  
  353. game:GetService("RunService").RenderStepped:connect(function()
  354. coroutine.resume(coroutine.create(function()
  355.  
  356. for i, v in pairs(DebrisModel:GetChildren()) do
  357. if v:isA("BasePart") then
  358. v.LocalTransparencyModifier = 0
  359. end
  360. end
  361.  
  362. if not plr.Character:FindFirstChild("DebrisModel") then
  363. DebrisModel = Instance.new("Model",plr.Character)
  364. DebrisModel.Name = "DebrisModel"
  365. end
  366.  
  367. for i,v in pairs(DebrisModel:GetChildren()) do
  368. if v:IsA("BasePart") and v.Name == "EFFECT" then
  369. local pvalue = v:FindFirstChild("Position").Value
  370. local svalue = v:FindFirstChild("Size").Value
  371. local rvalue = v:FindFirstChild("Rotation").Value
  372. local tvalue = v:FindFirstChild("Transparency").Value
  373. local avalue = v:FindFirstChild("Acceleration").Value
  374. local mesh = v:FindFirstChild("Mesh")
  375. mesh.Scale = mesh.Scale + svalue
  376. v:FindFirstChild("Size").Value = v:FindFirstChild("Size").Value + (Vector3.new(1,1,1)*avalue)
  377. v.Transparency = v.Transparency + tvalue
  378. v.CFrame = CFrame.new(pvalue)*v.CFrame*CFrame.Angles(math.rad(rvalue.X),math.rad(rvalue.Y),math.rad(rvalue.Z))
  379. if v.Transparency >= 1 or mesh.Scale.X < 0 or mesh.Scale.Y < 0 or mesh.Scale.Z < 0 then
  380. v:Destroy()
  381. end
  382. end
  383. end
  384.  
  385. end))
  386. end)
  387.  
  388. local wsback = 0
  389. local frozen = false
  390. function freeze()
  391. if frozen == false then
  392. frozen = true
  393. wsback = hum.WalkSpeed
  394. hum.WalkSpeed = 1
  395. else
  396. frozen = false
  397. hum.WalkSpeed = wsback
  398. end
  399. end
  400. hum.WalkSpeed = 25
  401.  
  402. function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans)
  403. local magz = (Part0 - Part1).magnitude
  404. local curpos = Part0
  405. local trz = {-Offset,Offset}
  406. for i=1,Times do
  407. local li = Instance.new("Part", DebrisModel)
  408. li.TopSurface =0
  409. li.Material = Enum.Material.Neon
  410. li.BottomSurface = 0
  411. li.Anchored = true
  412. li.Locked = true
  413. li.Transparency = Trans or 0.4
  414. li.Color = Color
  415. li.formFactor = "Custom"
  416. li.CanCollide = false
  417. li.Size = Vector3.new(Thickness,Thickness,magz/Times)
  418. local lim = Instance.new("BlockMesh",li)
  419. local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  420. local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
  421. if Times == i then
  422. local magz2 = (curpos - Part1).magnitude
  423. li.Size = Vector3.new(Thickness,Thickness,magz2)
  424. li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
  425. else
  426. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  427. end
  428. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
  429. li.Name = "LIGHTNING"
  430. end
  431. end
  432.  
  433. ----------------------------------------------------------------------------
  434. skin_color = BrickColor.new("Light orange")
  435. --p:ClearCharacterAppearance()
  436. --hed:WaitForChild("face"):Destroy()
  437. hed:WaitForChild("face").Texture = "rbxassetid://407320095"
  438. ----------------------------------------------------------------------------
  439. local size = 1
  440.  
  441. newWeld(torso, larm, -1.5, 0.5, 0)
  442. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  443. newWeld(torso, rarm, 1.5, 0.5, 0)
  444. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  445. newWeld(torso, hed, 0, 1.5, 0)
  446. newWeld(torso, lleg, -0.5, -1, 0)
  447. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  448. newWeld(torso, rleg, 0.5, -1, 0)
  449. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  450. newWeld(root, torso, 0, -1, 0)
  451. torso.Weld.C1 = CFrame.new(0, -1, 0)
  452.  
  453. emitters={}
  454.  
  455. ----------------------------------------------------------------------------------------
  456. music(288494027)
  457. velocityYFall=0
  458. velocityYFall2=0
  459. velocityYFall3=0
  460. velocityYFall4=0
  461. neckrotY=0
  462. neckrotY2=0
  463. torsorotY=0
  464. torsorotY2=0
  465. torsoY=0
  466. torsoY2=0
  467. colored = 0
  468. sine = 0
  469. change=0.4
  470. movement=10
  471. timeranim=0
  472. running = false
  473. jumped = false
  474. icolor=1
  475. imode=false
  476.  
  477. didjump = false
  478. jumppower = 0
  479. debounceimpact = false
  480.  
  481. function jumpimpact()
  482. if debounceimpact == false then
  483. debounceimpact = true
  484. if jumppower < -150 then jumppower = -150 end
  485. shake(-jumppower/5)
  486. for i=1,-jumppower/20 do rs:wait()
  487. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0,0,0), 0.05)
  488. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, (jumppower/20)-hum.HipHeight, 0) * CFrame.Angles(math.rad(0),math.rad(0), math.rad(0)), 0.05)
  489. end
  490. debounceimpact = false
  491. end
  492. end
  493.  
  494. max = 0
  495.  
  496. rs:connect(function()
  497.  
  498. for i,v in pairs(DebrisModel:GetChildren()) do
  499. if v.Name == "LIGHTNING" then
  500. local vm = v:FindFirstChildOfClass("BlockMesh")
  501. vm.Scale = vm.Scale - Vector3.new(0.1,0.1,0)
  502. if vm.Scale.X <= 0 then
  503. v:Destroy()
  504. end
  505. end
  506. end
  507.  
  508. if p.Character.Parent == nil then
  509. local model = Instance.new("Model")
  510. model.Name = p.Name
  511. p.Character = model
  512. for i,v in pairs(char:GetChildren()) do
  513. v.Parent = p.Character
  514. end
  515. end
  516.  
  517. char = p.Character
  518. if p.Character.Parent ~= workspace then
  519. p.Character.Parent = workspace
  520. end
  521. for i,v in pairs(char:GetChildren()) do
  522. if v:IsA("Accoutrement") then
  523. if v.Handle:FindFirstChild("Mesh") then
  524. v.Handle:FindFirstChild("Mesh").Offset = Vector3.new()
  525. v.Handle.Transparency = 0
  526. end
  527. elseif v:IsA("BasePart") then
  528. v.Anchored = false
  529. if v:FindFirstChildOfClass("BodyPosition") then
  530. v:FindFirstChildOfClass("BodyPosition"):Destroy()
  531. end
  532. if v:FindFirstChildOfClass("BodyVelocity") then
  533. v:FindFirstChildOfClass("BodyVelocity"):Destroy()
  534. end
  535. if v:FindFirstChildOfClass("BodyGyro") and v:FindFirstChildOfClass("BodyGyro").Name ~= "lolnochara" then
  536. v:FindFirstChildOfClass("BodyGyro"):Destroy()
  537. end
  538. if v:FindFirstChild("Mesh") then
  539. v:FindFirstChild("Mesh").Offset = Vector3.new()
  540. end
  541. if not DebrisModel:FindFirstChild(v.Name.."FORCEFIELD") then
  542. local force = Instance.new("Part",DebrisModel)
  543. force.Name = v.Name.."FORCEFIELD"
  544. if v ~= hed then
  545. force.Size = v.Size+(Vector3.new(1,1,1)*0.2)
  546. else
  547. force.Size = (Vector3.new(1,1,1)*v.Size.Y)+(Vector3.new(1,1,1)*0.2)
  548. end
  549. force.CanCollide = false
  550. force.Transparency = 1
  551. force.Color = Color3.new(0,1,1)
  552. force.Material = Enum.Material.Neon
  553. newWeld(v,force,0,0,0)
  554. else
  555. if not DebrisModel:FindFirstChild(v.Name.."FORCEFIELD"):FindFirstChildOfClass("Weld") then
  556. newWeld(v,DebrisModel:FindFirstChild(v.Name.."FORCEFIELD"),0,0,0)
  557. end
  558. end
  559. if v.Name ~= "HumanoidRootPart" then
  560. v.Transparency = 0
  561. else
  562. v.Transparency = 1
  563. end
  564. end
  565. end
  566.  
  567. if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 150 then
  568. velocityYFall = root.Velocity.Y/1.5
  569. else
  570. if -root.Velocity.Y/1.5 < -5 then
  571. velocityYFall = 5
  572. elseif -root.Velocity.Y/1.5 > 150 then
  573. velocityYFall = -150
  574. end
  575. end
  576.  
  577. if -root.Velocity.Y/180 > 0 and -root.Velocity.Y/180 < 1.2 then
  578. velocityYFall2 = root.Velocity.Y/180
  579. else
  580. if -root.Velocity.Y/180 < 0 then
  581. velocityYFall2 = 0
  582. elseif -root.Velocity.Y/180 > 1.2 then
  583. velocityYFall2 = -1.2
  584. end
  585. end
  586.  
  587. if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 50 then
  588. velocityYFall3 = root.Velocity.Y/1.5
  589. else
  590. if -root.Velocity.Y/1.5 < -5 then
  591. velocityYFall3 = 5
  592. elseif -root.Velocity.Y/1.5 > 50 then
  593. velocityYFall3 = -50
  594. end
  595. end
  596.  
  597. if -root.Velocity.Y/1.5 > -50 and -root.Velocity.Y/1.5 < 20 then
  598. velocityYFall4 = root.Velocity.Y/1.5
  599. else
  600. if -root.Velocity.Y/180 < -5 then
  601. velocityYFall4 = 5
  602. elseif -root.Velocity.Y/180 > 50 then
  603. velocityYFall4 = -50
  604. end
  605. end
  606.  
  607. if root.RotVelocity.Y/6 < 1 and root.RotVelocity.Y/6 > -1 then
  608. neckrotY = root.RotVelocity.Y/6
  609. else
  610. if root.RotVelocity.Y/6 < -1 then
  611. neckrotY = -1
  612. elseif root.RotVelocity.Y/6 > 1 then
  613. neckrotY = 1
  614. end
  615. end
  616.  
  617. if root.RotVelocity.Y/8 < 0.6 and root.RotVelocity.Y/8 > -0.6 then
  618. neckrotY2 = root.RotVelocity.Y/8
  619. else
  620. if root.RotVelocity.Y/8 < -0.6 then
  621. neckrotY2 = -0.6
  622. elseif root.RotVelocity.Y/8 > 0.6 then
  623. neckrotY2 = 0.6
  624. end
  625. end
  626.  
  627. if root.RotVelocity.Y/6 < 0.2 and root.RotVelocity.Y/6 > -0.2 then
  628. torsorotY = root.RotVelocity.Y/6
  629. else
  630. if root.RotVelocity.Y/6 < -0.2 then
  631. torsorotY = -0.2
  632. elseif root.RotVelocity.Y/6 > 0.2 then
  633. torsorotY = 0.2
  634. end
  635. end
  636.  
  637. if root.RotVelocity.Y/8 < 0.2 and root.RotVelocity.Y/8 > -0.2 then
  638. torsorotY2 = root.RotVelocity.Y/8
  639. else
  640. if root.RotVelocity.Y/8 < -0.2 then
  641. torsorotY2 = -0.2
  642. elseif root.RotVelocity.Y/8 > 0.2 then
  643. torsorotY2 = 0.2
  644. end
  645. end
  646.  
  647. torsoY = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/20
  648. torsoY2 = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/36
  649.  
  650. local ray1 = Ray.new(root.Position+Vector3.new(size,0,0),Vector3.new(0, -4, 0))
  651. local part1, endPoint = workspace:FindPartOnRay(ray1, char)
  652.  
  653. local ray2 = Ray.new(root.Position-Vector3.new(size,0,0),Vector3.new(0, -4, 0))
  654. local part2, endPoint = workspace:FindPartOnRay(ray2, char)
  655.  
  656. local ray3 = Ray.new(root.Position+Vector3.new(0,0,size/2),Vector3.new(0, -4, 0))
  657. local part3, endPoint = workspace:FindPartOnRay(ray3, char)
  658.  
  659. local ray4 = Ray.new(root.Position-Vector3.new(0,0,size/2),Vector3.new(0, -4, 0))
  660. local part4, endPoint = workspace:FindPartOnRay(ray4, char)
  661.  
  662. local ray5 = Ray.new(root.Position+Vector3.new(size,0,size/2),Vector3.new(0, -4, 0))
  663. local part5, endPoint = workspace:FindPartOnRay(ray5, char)
  664.  
  665. local ray6 = Ray.new(root.Position-Vector3.new(size,0,size/2),Vector3.new(0, -4, 0))
  666. local part6, endPoint = workspace:FindPartOnRay(ray6, char)
  667.  
  668. local ray7 = Ray.new(root.Position+Vector3.new(size,0,-size/2),Vector3.new(0, -4, 0))
  669. local part7, endPoint = workspace:FindPartOnRay(ray7, char)
  670.  
  671. local ray8 = Ray.new(root.Position-Vector3.new(size,0,-size/2),Vector3.new(0, -4, 0))
  672. local part8, endPoint = workspace:FindPartOnRay(ray8, char)
  673.  
  674. local ray = Ray.new(root.Position,Vector3.new(0, -6, 0))
  675. local part, endPoint = workspace:FindPartOnRay(ray, char)
  676.  
  677. if part1 or part2 or part3 or part4 or part5 or part6 or part7 or part8 then jumped = false else endPoint = 0 jumped = true end
  678.  
  679. local rlegray = Ray.new(rleg.Position+Vector3.new(0,size/2,0),Vector3.new(0, -1.75, 0))
  680. local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char)
  681.  
  682. local llegray = Ray.new(lleg.Position+Vector3.new(0,size/2,0),Vector3.new(0, -1.75, 0))
  683. local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char)
  684.  
  685. if hum.Health > 0 and noidle == false then
  686. if hum.Sit == false then
  687. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5 and jumped == false then
  688. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad((torso.Velocity*Vector3.new(1, 0, 1)).magnitude/35),torsorotY, math.rad(0)+torsorotY), 0.4)
  689. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles((change/10)*math.cos(sine/2)+0.1,-(change/10)*math.cos(sine/4)-(torsorotY/5),(change/5)*math.cos(sine/4)), 0.1)
  690. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62-(movement/40)*math.cos(sine/4)/3,(movement/150)+(movement/40)*math.cos(sine/4))*CFrame.Angles(math.rad(-5-(movement*2)*math.cos(sine/4))+ -(movement/10)*math.sin(sine/4)*2,math.rad(0-(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2)
  691. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+(movement/40)*math.cos(sine/4)/3,(movement/150)-(movement/40)*math.cos(sine/4))*CFrame.Angles(math.rad(-5+(movement*2)*math.cos(sine/4))+ (movement/10)*math.sin(sine/4)*2,math.rad(0-(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2)
  692. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -0.5+(change*2)*math.sin(sine/2), 0) * CFrame.Angles(math.rad(30+(change*20)-(movement/20)*math.cos(sine/2)), torsorotY2+math.rad(0-20*math.sin(sine/4)), torsorotY2+math.rad(0-1*math.cos(sine/4))), 0.1)
  693. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,(-0.85-(movement/15)*math.cos(sine/4)/2),-0.1+(movement/15)*math.cos(sine/4))*CFrame.Angles(math.rad(-50+(change*5)-movement*math.cos(sine/4))+ -(movement/10)*math.sin(sine/4),math.rad(0+(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2)
  694. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,(-0.85+(movement/15)*math.cos(sine/4)/2),-0.1-(movement/15)*math.cos(sine/4))*CFrame.Angles(math.rad(-50+(change*5)+movement*math.cos(sine/4))+ (movement/10)*math.sin(sine/4),math.rad(0+(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2)
  695. elseif jumped == true then
  696. didjump = true
  697. jumppower = root.Velocity.Y
  698. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.1) * CFrame.Angles(0,0,0), 0.4)
  699. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0,0,0), 0.1)
  700. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0) * CFrame.Angles(math.rad(0),math.rad(0), math.rad(0)), 0.1)
  701. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0) * CFrame.Angles(math.rad(0),math.rad(0), math.rad(0)), 0.1)
  702. torso.Weld.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(math.random(-90,90)),math.rad(0), math.rad(math.random(-180,180)))
  703. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.925,0) * CFrame.Angles(math.rad(0),math.rad(0), math.rad(0)), 0.1)
  704. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,0,-0.8) * CFrame.Angles(math.rad(0),math.rad(0), math.rad(0)), 0.1)
  705. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 5 then
  706. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.1), 0.4)
  707. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(0+50*math.sin(sine/4)),0,0), 0.1)
  708. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,-0.05-0.2*math.cos(sine/4))*CFrame.Angles(math.rad(0+80*math.sin(sine/4)),math.rad(-5-5*math.sin(sine/8)),math.rad(-6+2*math.cos(sine/8))), 0.2)
  709. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,-0.05-0.2*math.cos(sine/4))*CFrame.Angles(math.rad(0+80*math.sin(sine/4)),math.rad(5+5*math.sin(sine/8)),math.rad(6-2*math.cos(sine/8))), 0.2)
  710. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1-hum.HipHeight, 0+2*math.cos(sine/4)) * CFrame.Angles(math.rad(0-80*math.cos(sine/4)),math.rad(0), math.rad(0-1*math.cos(sine/32))), 0.1)
  711. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(0,llegendPoint.Y-lleg.Position.Y,0)*CFrame.new(-0.5,0,0)*CFrame.Angles(math.rad(0+120*math.cos(sine/4)),math.rad(10),math.rad(-5+1*math.cos(sine/16))), 0.1)
  712. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0,rlegendPoint.Y-rleg.Position.Y,0)*CFrame.new(0.5,0,0)*CFrame.Angles(math.rad(0+120*math.cos(sine/4)),math.rad(-10),math.rad(5+1*math.cos(sine/16))), 0.1)
  713. end
  714.  
  715. else
  716. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.1), 0.4)
  717. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0.05*math.sin(sine/16)+0.15,0.05*math.cos(sine/32),0.01*math.cos(sine/32)), 0.1)
  718. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55-(0.1)*math.cos(sine/16)/3,-0.05-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(-2+4*math.sin(sine/16)),math.rad(-5-5*math.sin(sine/16)),math.rad(-6+2*math.cos(sine/16))), 0.2)
  719. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55-(0.1)*math.cos(sine/16)/3,-0.05-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(-2+4*math.sin(sine/16)),math.rad(5+5*math.sin(sine/16)),math.rad(6-2*math.cos(sine/16))), 0.2)
  720. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.4-(0.1)*math.cos(sine/16)-hum.HipHeight, 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(0), math.rad(0-1*math.cos(sine/32))), 0.1)
  721. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.55+(0.1)*math.cos(sine/16),0)*CFrame.Angles(math.rad(80+2*math.cos(sine/16)),math.rad(4),math.rad(-2+1*math.cos(sine/32))), 0.2)
  722. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,-0.55+(0.1)*math.cos(sine/16),0)*CFrame.Angles(math.rad(80+2*math.cos(sine/16)),math.rad(-4),math.rad(2+1*math.cos(sine/32))), 0.2)
  723. end
  724.  
  725. end
  726. if didjump == true and jumped == false and jumppower < 0 then
  727. didjump = false
  728. jumpimpact()
  729. end
  730.  
  731. sine = sine + change
  732. hum.Health = math.huge
  733. hum.MaxHealth = math.huge
  734. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement