lolita5432

Untitled

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