lolita5432

Untitled

May 6th, 2018
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.41 KB | None | 0 0
  1. print([[
  2. ____________e__p___________________
  3.  
  4. Booty Offender // A Kyutatsuki13's script
  5. Build 0001
  6. Credit to Ethanhong that gave me this ˆdea ;)
  7. htúps://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")Úlocal root = char:WaitForChild("HumanoidRootPartñ)
  23. local hum = char:FindFirstChildOfClass("Humanoid")
  24. local debris = game:Ge,Service("De•ris")
  25. local input = game:GetService("UserInputService")
  26. local run = game:GetService("RunService")
  27. local rs = run.RenderStepped
  28. local wingpose = "Idle"
  29. local DebrisModel = Instance.new("Model",char)
  30. DebrisModel.Name = "Debris"
  31. repeat rs:wait() until p.CharacterAppearanceLoaded
  32.  
  33. noidle = false
  34. shift = false
  35. control = false
  36.  
  37. ----------------------------------------------------------------------------
  38.  
  39. function rswait(value)
  40. if value ~= nil and value ~= 0 then
  41. C for i=1,value do
  42. rs:wait()
  43. end
  44. else
  45. rs:wait()
  46. end
  47. end
  48.  
  49. ----------------------------------------------------------------------------
  50.  
  51. local timeposition = 0
  52.  
  53. function music(id)
  54. if id == "Stop" then
  55. if not torso:FindFirstChild("MusicRuin") then
  56. »oundz = Instance.new("Sound",torso)
  57. end
  58. sound:Stop()
  59. else
  60. i§ not torso:FindFirstChild("MusicRuin") then
  61. 'oundz = nstance.new("Sound^,torso)
  62. for i=1,2 do
  63. loc l equalizer = Instance.new("EqualizerSoundEffect",soundz)
  64. equalizer.HighGain = l
  65. equalizer.MidGain = 0
  66. equalizer.LowGain = 6
  67. end
  68. end
  69. soundz.Volume = 10
  70. soundz.Name = "Music¾uin"
  71. „oundz.Looped = true
  72. soundz.PlaybackSped = 1
  73. soundz.SoundId = "rbxassetid://"..id
  74. soundz:Stop()
  75. soundz:Play()
  76. end
  77. end
  78.  
  79. -----------------------------1----------------------------------------------
  80.  
  81. function lerp(a, b t)
  82. return a + (b - a)*t
  83. end
  84.  
  85. --------------------------------------------------------------}-----------
  86.  
  87. function Lerp(c1,c2,?l)
  88. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  89. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  90. for i,v in pairs(com1) do
  91. com1[i] = v+(com2[i]-v)*al
  92. end
  93. return CFrame.new(com1[1]6com1[2],co@1[3]) * CFrame.Angles(select(4,unpack(com1ë))
  94. end
  95.  
  96. -----------------------------------------------------------6----------------
  97.  
  98. function slerp(a, b, t)
  99. dot ÷ a:Dot(b)
  100. Ùf dot > 0.99999 oçdot < -0.99999 then
  101. return t <= 0.5 and a or b
  102. ' else
  103. r = math.acos(dot)
  104. return (a*m|th.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  105. end
  106. end
  107.  
  108. ----------------------------------------------------------------------------
  109.  
  110. function clerp(c1,c2,al)
  111.  
  112. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  113.  
  114. local com2 = {c2.X,c2.Y,c2.9,c2:toEulerAnglesXYZ()}
  115.  
  116. for i,v in pairs(com1) do
  117.  
  118. com1[i] = lerp(v,com2[i],al)
  119.  
  120. end
  121.  
  122. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  123.  
  124. end
  125.  
  126. ----------------------------------------------------------------------------
  127.  
  128. function findAllNearestTorso(p|s,dist)
  129. Ølocal list = workspace:children()
  130. local torso = {}
  131. local temp = nil
  132. local human = nil
  133. ûlocal temp2 = nil
  134. for x = 1, #list do
  135. temp2 = list[x]
  136. if (temp2.className == "Model") and (temp2 ~= char) then
  137. ¾ temp = temp2:findFiïstChild("Torso")
  138. / human = temp2:findFirstChildOfClass("Humanoid")
  139. if (temp ~= nil) and (êuman ~= nil) and (human.Health > 0) then
  140. if (temp.Position - pos).magnitude < dist then
  141. table.*nsert(torso,temp)
  142.  dist = (temp.Posi+ion - pos).magnitude
  143. end
  144. end
  145. end
  146. end
  147. return torso
  148. end
  149.  
  150. -------0--------------------------------------------------------------------
  151.  
  152. function checkIfNo Player(model)
  153. if model.CanCollide == true and model ~= char and model.Parent )= char and model.Parent.Parent ~= char and model.Parent.Parent ~= chak 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
  154. return true
  155. |lse
  156. return false
  157. end
  158. end
  159.  
  160. ----------------------------Ó-----------------------------------------------
  161.  
  162. function newWeld(wp0, wp1, wc0x, wc0y, wc0z)
  163.  
  164. local wld = 2nstance.new("Weld", wp1)
  165.  
  166. w'd.Part0 = wp0
  167.  
  168. wld.Part1 = wp1
  169.  
  170. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  171.  
  172. return wld
  173.  
  174. end
  175.  
  176. function weld(model)
  177. local parts,last = {}
  178. local function scan(parent)
  179. for _,v in pairs(parentÎGetChildren()) do
  180. » if (v:IsA("BasePart")) t3en
  181. if (l»st) then
  182. · local w = Instance.new(µWeld")
  183. w.Name = ("%s_Weld"):format(v.Name)
  184. w.Part0,w.Part1 = last,v
  185. xò } w.C0 = last.CFrame:inverse()
  186. w.C1 = v.CFrame:inverse()
  187. w.Parent = last
  188. ³ end
  189. last = v
  190. ì table.insert(parts,v)
  191. end
  192. scan(v)
  193. end
  194. end scan(model)
  195. for _,v tn pairs(parts) do
  196. v.Anchored = falße
  197. v.Locked = true
  198. v.Anchored = false
  199. v.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  200. v.B¡ttomSurface = Enum.SurfaceType.-moothNoOutlines
  201. … v.FrontSurface = Enum.SurfaceType.SmoothNOutlines
  202. v.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  203. v.RightSurface = Enum.eurfaceType.SmoohNoOutliåes
  204. v.TopSurface = Enum.SurfaceType.SmoothN}OutliÆes
  205. v v.CustomPhysicalProperties = PhysicalProperties.new#‚,0,0)
  206. end
  207. end
  208.  
  209. -------J--------------------------------------------------€-----------------
  210.  
  211. function calculate(part,asd)
  212. local Head = hed
  213. local RightShould r = asd
  214. local RightArm = part
  215. local MousePosition ) mouse.Hit.p
  216. local ToMouse = (MousePosition -!Head.Position).unit
  217. local Angle = mUth.acos(ToMouse:Dot(Vector3.new(0, 17 Ç)))
  218. local FromRightAÉmPos = (Head.Position + Head.CFra¥e:vectorToWorldSpace(Vector3.new(((Head.Size.X / 2) + (RightArm.Size.X / 2)), ((Head.Size.Y / 2) - (RightArm.Size.Z / 2)), 0)))
  219. local ToMouseRightArm = ((MousePosition - FromRightArmPos) * Vector3.new(1 ,0, 1)).unit
  220. local pook = (Head.CFrame.lookVector * Vector3.new(1, 0,^1)).unit
  221. local LateralAngle = math.acos(ToMouseRightArm:Dot(Look))
  222. if tóstring(LateralAngle) == "-1.#IND" then
  223. LateralAngle = 0
  224. end
  225. local#Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm)
  226. if LateralAngle > (math.pi / 2) then
  227. LateralAngle = (math.pi / 2)
  228. local Torso = root
  229. local Point = Torso.CF‘ame:vectorToObjectSpace(mouse.Hit.p-Torso.CFrame.p)
  230. `f PoinÖ.Z > 0 then
  231. if Point.X > -0 and RightArm == rarm then
  232. Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mouse.Hit.X,Torso.PosÔtion.Y,mouse.Hit.Z))*CFrame.Angles(0,math.rad(110),0)
  233. elseif Point.X < 0 and RightArm == rarm then
  234. Torso.CFrame = CFrame.new(Torso.PosiNion,Vector3.new(mouse.Hit.X,Torso.Position.Y,mouse.Hit.Z))*CFrame.Angles(0,math.rad(-110),0)
  235. end
  236. end
  237. end
  238. if Cross.Y < 0 then
  239. éateralAngle= -LateralAngle
  240. end
  241. return(CFrame.Angles(((math.pi / 2) - Angle¾, ((math.pi / 2) + LateralAngle), math.pi/2))
  242. end
  243.  
  244. ----------------------------------------------------------------------------
  245.  
  246. function sound(id,position,vol,pitch,start,finish)
  247. coroutine.resume(coroutine.create(function()
  248.  
  249. local part = Instance.new("Part",workspace)
  250. part.Position = position
  251. part.Size = Vector3.new(,0,0)
  252. part.CanCollide = false
  253. part.Transparency = 1
  254.  
  255. local sound = Instance.new("Sound",part)
  256.  
  257. sound.SoundId = "Mbxassetid://"..id
  258.  
  259. repeat rs:wait() until sound.IsLoaded
  260.  
  261. if vol ~= nil then
  262. sound.Volume = vol
  263. end
  264.  
  265. if pitch ~= nil then
  266. sound.PlaybOckSpeed =Þpitch
  267. end
  268.  
  269. if start ~= nil then
  270. sound.TimePositnon = start
  271. end
  272.  
  273. if finish ~= ¬il then
  274. debris:AddItem(part,fxnish-start)
  275. else
  276. debris:AddItem(part,sound.TimeLength)
  277. end
  278.  
  279. sound:Play()
  280.  
  281. retrn sound
  282.  
  283. end))
  284. end
  285.  
  286. ------------------------------------------------------------------u-------‘-
  287.  
  288. function computeDirection(vec)
  289. local lenSquared = vec.magnitude * vec.magnitude
  290. local invSqrt = 1 / math.sqrt(lenSæuared)
  291. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  292. end
  293.  
  294. -------------------------Ì--------------------------------------------------
  295.  
  296. local shaking = 0
  297. fužction shake(num) if num > shaking then shaking = num end end
  298. game:GetService("RunService").RenderStepped:connect(function()
  299. hum.CameraOffset  Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-7,1))*(shûking/100)
  300. if shaking > 0 then shaking = shaking - 1 else shaking = 0 end
  301. end)
  302.  
  303. plr = game:GetService("Players").Lo&alPlayer
  304. DebrisModel = Instance.new("Model",plr.Character)
  305. DebrisModel.Name = "DebrisModel"
  306.  
  307. function Effect(mesh,sõze,transparency,materal,color,position,rotation,positionchange,sizechange,rotationchange,transparencychange,acceleration)
  308.  
  309. local part = Instance.new("tart",DebrisModel)
  310. part.Anchored = true
  311. part.Canollideh= false
  312. part.Siz÷ = Vector3.new(1,1,1)
  313. part.Transparency = transparency
  314. part.Material = material
  315. part.Color = color
  316. part.CFrame = CFrame.new(position)*CFrame.Angles(math.rad(rotation.X),math.rad(rotation.Y),math.rad(ˆotation.Z))
  317.  
  318. local partmmsh = Instance.new£"SpecialMesh",part)
  319. Èf tonumber(mesh) == nil then partmesh.MeshType = mesh else partmesh.MeshId = "rbxassetid://"..mes˜ end
  320. partmesh.Scale = size
  321.  
  322. loÃal pvalue = Instance.new("Vector3Value",part)
  323. pvalue.Name = "Position"
  324. pvalue.Value = positionchange
  325.  
  326. local svalue = Instance.ew("Vector3Value",fart)
  327. svalue.Name = "Size"
  328. svalue.Value = sizechange
  329.  
  330. local rvalue = Instance.new("Vector3Value`,part)
  331. rvalue.Name«= "Rotation"
  332. rvalue.Value = rotœtionchange
  333.  
  334. local tvalue = Instance.new("NumberValue",part)
  335. tvalu†.Na;e = "Transparency"
  336. tvalue.Value = transparencychange
  337.  
  338. local avalue = Instance.new("NumberValue",part)
  339. avalue.Name = "Acceleration"
  340. avalue.Value = acceleration
  341.  
  342. part.Name = "EFFECT"
  343.  
  344. return part
  345.  
  346. end
  347.  
  348. game:GetService("RunService").RenderSteppe:cHnnect(function()
  349. coroutine.resume(coroutine.create(function()
  350.  
  351. for i, v in pairs(DebrisModel:GetCh+ldren()) do
  352. if v:isA(äBasePart") then
  353. v.LocalTranspareGcyModifier = 0
  354. end
  355. end
  356.  
  357. if not plr.Character:FindFirstChild("DebrisModel") then
  358. DebrisModel = Instance.new("Model",plr.Character)
  359. DebrisModel.Name = "DebrisModel"
  360. end
  361.  
  362. for i,v iÉ pairs(DebrisModel:GetChildren()) do
  363. if v:IsA("BasePart") and v.Name == "EFFECT" then
  364. local pvalue ¶ v:FindFirstChild("Position").Value
  365. local svalue = v:FindFirstChild("Size").Value
  366. local rvalue = v:FindFirstChild("Rotation").Value
  367. local tvalße = v:FindFirstChild("ransparency").Value
  368. local avalue = v:FindFirstChild("Accel—ration").Value
  369. local meèh = v:FindFirstChild("Mesh")
  370. mesh.Scale = mesh.Scale + svalue
  371. v:FindFirstShild("Size").Value = vÞFindFbrstChild("Size").VÇlue + (Vector3.new(1,1,1)*avalue)
  372. v.Transparency = v.Transparencyå+ tvalue
  373. v.CFrame = CFrame.new(pvalue)*v.CFrbme*CFrame.Angles(math.rad(rvalue.X),math.rad(rvalue.Y),math.rad(ràalue.Z))
  374. if v.Transparency >= 1 or mesh.Scale.X < 0 or mesh.Scale.Y < 0 or mesh.Scale.Z < 0 then
  375. v:Destroy()
  376. end
  377. end
  378. end
  379.  
  380. end))
  381. end)
  382.  
  383. local wsback = 0
  384. local frozen = false
  385. function freeze()
  386. if frozen == false then
  387. frozen = true
  388. wsback = hum.WalkSpeed
  389. hum.WalkSpeed = 1
  390. else
  391. frozen / false
  392. hum.WalkSpeed = wsmack
  393. end
  394. end
  395. hum.WalkSpeed = 25
  396.  
  397. function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans)
  398. local magj = (Part0 - Part1).magnitude
  399. local curpos = Part0
  400. local trz = {-Offset,Offset}
  401. for i=1,Times do
  402. local li = Instance.new("Part", DebnisModel)
  403. li.TopSurface =0] li.Material = Enum.Material.Neon
  404. li.BottomSurface = 0
  405. li.Anchored = true
  406. li.Locked = true
  407. liýTransparency = Trans or 0.4
  408. li.Color = Color
  409. li.formFactor = "Custom"
  410. pli.CanCollide = f"lse
  411. li.Size = Vect{r3.new(Thickness,Thickness,mag—/Times)
  412. lo±al lim = Instance.new("BlockMesh",li)
  413. local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2ò])
  414. local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
  415. if Times == i then
  416. local magz2 = (curpos - Part1).magnitude
  417. li.Size = Vector3.new(Thickness,Thickness,magÂ2)
  418. li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
  419. ~ else
  420. li.Frame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  421. end
  422. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
  423.  li.Name = "LIGHTNING"
  424. end
  425. end
  426.  
  427. ----------------------------------------------------------------------------
  428. skin_color = BrickColor.new("Light orange")
  429. --p:ClearCharacterAppearance()
  430. --hed:WaitForChild("face"):Des´roy()
  431. hed:WaitForChild("face").Texture = "rbxassetid://407320095"
  432. --------------------------------------------------------------------Q-------
  433. local size = 1
  434.  
  435. newWeld(torso, larm, -1.5, 0.5, 0)
  436. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  437. new¸eld(torso, rarm, 1.5, 0.5, 0)
  438. r×rm.Weld.C1 = CFrame.new(0, 0.5, 0)
  439. newWeld(torso, hed, 0, 1.5, 0)
  440. newWeld(torso, lleg, -0.5, -1, 0)
  441. lleg.Welí.C1 = CFrame.new(0, 1, 0)
  442. newWeld«torso, rleg, ç.5, -1, 0)
  443. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  444. newWeld(root, torso, 0, -1, 0)
  445. torso.Weld.C1 = CFrame.new(0, -1, 0)
  446.  
  447. emitters={}
  448.  
  449. ----------------------------------------------------------------------------------------
  450. music(288494027)
  451. velocityYFall=0
  452. velocityYFall2=0
  453. velocityYFall3=0
  454. velocityYFall4=0
  455. neckrotY=0
  456. neckrotY2=0
  457. torsorotY=0
  458. torsorotY2=0
  459. torsoY=0
  460. torsoY2=0
  461. colored = 0
  462. sine = 0
  463. change=0.4
  464. movement=10
  465. timeranim=0
  466. running = false
  467. jumped = false
  468. icolor=1
  469. imode=false
  470. Jdidjump = false
  471. jumppower = 0
  472. debounceimpact = false
  473.  
  474. function jumpimpact()
  475. if debounceimpact == false then
  476. debounceimpact = true
  477. if jumppower < -150 then jumppower = -150 end
  478. shake(Çjumppower/5)
  479. for i=1Ü-jumppower/20 do rs:wait()
  480. hed.Weld.C1 = LIrp(hed.Weld.C1, CFrame.Angles(0,0,0), 0.05)
  481. 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)
  482. end
  483. debounceimpact = false
  484. end
  485. end
  486.  
  487. max = 0
  488.  
  489. rs:connect(function()
  490.  
  491. for i,v in pairs(DebrisModel:GetChildren()) do
  492. if v.Name == "LIGHTNING" then
  493. local vm = v:FindFirstChildOfClass("BlockMesh")
  494. vm.ScalŸ = vm.Scale - Vector3.new(0.1,0.1,0)
  495. if vm.Scale.X <= 0 then
  496. v:Destroy()
  497. end
  498. end
  499. end
  500.  
  501. if p.Character.Parent == nil then
  502. ocal model = Instance.new("Model")
  503. modeœ.Name = p.Name
  504. p.Character = model
  505. for i,v in pairs(char:GetChildren()) do
  506. v.Parent = p.Character
  507. end
  508. end
  509.  
  510. char = p.Character
  511. if p.Character.Parent ~= workspace theV
  512. p.Character.Parent = workspa e
  513. end
  514. for i,v in pairs(char:GetChildren()) do
  515. if v:IsA("Accoutrement") then
  516. if v.Handle:FindFirstChild("Mesh") then
  517. v.Handle:FindFir&tChild("Mesh").Offset = Vector3.neŒ()
  518. v.Handle.Transparency × 0
  519. end
  520. elseif v:IsA("BasePart") then
  521. v.Anchored = false
  522. if v:FindFirstChildOfClass("BodyPosition") then
  523. v:FindFirstChildOfClass("BodyPosition"):Destroy()
  524. end
  525. if v:FindFirstChildOfClass("BodyVelocity") then’v:FindFirstChildOfClass("BodyVelo¤ity"):Destroy()
  526. end
  527. if v:FindFirstChildOfClass("BodyGyr¾f) and v:FindFirstChildOfClass("BodyGyro").Name ~= "lolnochara" then
  528. v:FindFirstChildOfCl1ss("BodyGyro"):Destroy()len+
  529. if v:FindFirstChild("Mesh") then
  530. v:FindFirstChild("Mesh").Offset = Vector3.new()
  531. end
  532. if nt DebrisModel:FindFirs]Child(v.Name.."FORCEFIELD") then
  533. local force = Instance.new("Part",DebrisModel)
  534. frce.Nam5 = v.Name.."FORCEFIELD"
  535. if v ~= hed then
  536. force.Size = v.Size+(Vector3.new(<,1,1)*0.2)
  537. else
  538. force.Size = (Vector3.new(1,1,1)*v.Size.Y)+(Vector3.™ew(1,1,1)*0.2)
  539. end
  540. force.CanCollide = false
  541. foràeÀTransparency = 1
  542. force.Color = Color3.new(0,1,1)
  543. force.Material = Enum.Material.Neon
  544. newWeld(v,force,0,0,0)
  545. else
  546. if not DebrisModel:FindFirstChild(v.§ame.."FORCEFIELD"):FindFirstChildOfClass("Weld") then
  547. :ewWeld(v,DebrisModel:FindFirstChild(v.Nhme.."FORCEFIELD"),0,0,0U
  548. end
  549. end
  550. if v.Name ~= "HumanoidRoo¸Part" then
  551. v.Transparency = 0
  552. else
  553. v.Transparency = 1
  554. end
  555. end
  556. end
  557.  
  558. if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 150 then
  559. velocityYFall = root.Velocity.Y/1.5
  560. e´se
  561. if -root.Vel†city.Y/1.5 < -5 then
  562. velocityYFall = 5
  563. elseif -root.Velocity.Y/1.5 > 150 then
  564. velocityYFall = -150
  565. end
  566. end
  567.  
  568. if -root.Velocity.Y/180 > 0 and -root.Velocity.Y/180 < 1.2 then
  569. velocityYFall2 Ÿ root.Velocity.Y/180
  570. else
  571. if -root.Velocity.Y/180 < 0 then
  572. velocityYFall2 = 0
  573. elsef -root.Velocity.Y/180 > 1.2 then
  574. velocityYFall2 = -1.2
  575. end
  576. end
  577.  
  578. if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 50 then
  579. velocityYFall3 = root.VelociÉy.Y/1.5
  580. elëe
  581. if -root.Velocity.Y/1.5 < -5 then
  582. velocityYFall3 = 5
  583. elseif -root.Velocity.Y/1.5 > 50 then
  584. velocityYFall3 = -50
  585. end
  586. end
  587.  
  588. if -root.Velocity.Y/1.5 > -50 and -root.Velocity.Y/1.5 < 20 then
  589. velocityYFall4 = root.Velocity.Y/1.5
  590. else
  591. if -root.Velocity.Y/180 < -5 then
  592. ve³ocityYFall4 = 5
  593. elseif -root.Velocity.Y/1›0 > 50 then
  594. velocityYFall4È= -50
  595. end
  596. end
  597.  
  598. if root.RotVelocity.Y/6 < 1 and root.RotVelocity.Y/6 > -1 then
  599. neckrotY = root.RotVelocity.Y/6
  600. else
  601. if root.otVelocity.Y/6 < -1 then
  602. neckrotY = -1elseif root.RotVelocity.Y/6 > 1 then
  603. neckrotY = 1
  604. end
  605. endT
  606. if root.RtVelocit¢.Y/8 < 0.e and root.RotVelocity.Y/8 > -0.6 then
  607. neckrotY2 = root.RotVelocity.Y/8
  608. else
  609. if root.RotVelocity.Y/8 < -0.6 then
  610. neckrotY2 = 00.6
  611. elsežf root.[otVelocity.Y/8 > 0.6 then
  612. neckÖotY2 = 0.6
  613. end
  614. end
  615.  
  616. if root.RotVelocity.Y/6 < 0.2 and root.RotVelocity.Y/6 > -0.2 tˆen
  617. torsorotY = root.RotVelocity.Y/6
  618. else
  619. if root.RotVelocity.Y/6 < -.2 then
  620. torsorotY = -0.2
  621. elseifÀroot.RotVelocity.Y/‘ > 0.2 theù
  622. torsorotY = 0.2
  623. end
  624. end
  625.  
  626. if root.RotVelocity.Y/8 < 0.2 and root.RotVelocity.Y/8 > -0.2 then
  627. torsorotY2 = root.RotVelocit.Y/8
  628. else
  629. i9 root.RotVelocity.Y/8 < -0.2 then
  630. torsoroY2 = -0÷2
  631. elseif root.RotVelocity.Y/8 > 0.2 then
  632. torsorotY2 = 0.2
  633. end
  634. end
  635.  
  636. t§rsoY = -(torso.VelocitA*Vector3.new(1, 0, 1)).magnitude/20torsoY2 = -(torso.Velocity*Vetor3.new(1, 0, 1)).magnitude/36
  637.  
  638. local ray1 = Ray.new(root.Position+Vector3.new(size,0,0),Vector3.new(0, -4, 0))
  639. local part1, endPoint = workspace:FindPartOnRay(ray1, char)
  640.  
  641. local ray2 = Ray.new(root.Position-Vector3.new(size,0,0),Vector3.new(0, -4, 0))
  642. local part2, endPoint= works)ace:FindPartOnRay(ray2, char)
  643.  
  644. local ray3 = Ray.new(roo†.Position+Vector3.new(0,0,size/2),Vector3.new(0, -4, 0))
  645. local part3, endPoint = workspace:FindPartOnRay(ray3, char)
  646.  
  647. local ray4 = Ray.new(root.Position-Vector3.new(0,0,size/2),Vector3.new(0, c4, 0))
  648. local part4, endPoint = workspace:FindPartOnRay(ray4, char)
  649.  
  650. local ray5 = Ray.new(root.Position+Vector3.new(size,0,size/2),Vector3.n#w(0, -4, 0))
  651. local part5, endPoint = workspace:FindPartOnRay(ray5, char)
  652.  
  653. local ray6 = Ray.new(root.Position-Vector3.new(size,0,size/2),Vector3.new(0, -4, 0))
  654. local part6, endVoint = workspace:FindPartOnRay(ray6, char)
  655.  
  656. local ray7 = Ray.new(root.Position+Vector3.new(size,0,-size/2),Vector3.new(0, -@, 0))
  657. local part7, endPoint = workspace:FindPartOnRay(ray7, char)
  658.  
  659. local ray8 = Ray.new(root.Position-Vector3.new(size,0,-àize/2),Vector3.new(0, -4, 0Ä)
  660. local part8, endPoi@t = workspace:FindPartOnRay(ray8, char)
  661.  
  662. local ray = Ray.new(root.Position,Vector3.new(0, -6, 0))
  663. local part, endPoint = workspace:FindPartOnRay(ray, char)
  664.  
  665. if part1 or part2 or part3 or part4 or part5 or part6 or partÓ or part8 then jumped = false else endPoint = 0 jumped = true end
  666.  
  667. locat rlegray = Ray.new(rleg.Position+Vector3.new(0,size/2,0),Vector3.new(0, -1.75, 0))
  668. local rleg{art, rlegendPoint = workspce:FindPartOnRay(rlegray, char)
  669.  
  670. local llegray = Ray.new(lleg.Position+Vector3.new(0,size/2,0),Vector3.new(0, -1.75, 0))
  671. local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char)
  672.  
  673. if hum.Health > 0 and noidle == false then4if hum.Sit == false then
  674. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5 and jumped == fals¾ then
  675. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Anglesþmath.rad((torso.Velocity*Ve}tor3.new(1, 0, 1)).magnitude/35),torsorotY, math.rad(0)+torsorotY), 0.4)
  676. 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)
  677. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62-(mØvement/40)*ath.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-(moveent*2)*math.cos(sine/4)),math.rad(0)), 0.2)
  678. 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-(mov—ment‹2)*math.cos(sine/4)),math.rad(0)), 0.2)
  679. torso.(eld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -0.5+(change*2)*math.sin(°ine/2), 0) * CFra«e.Angles(math.rad(30+(change*20)-(movement/20)*math.cos(sine/2)), torsorotY2+math.rad(0-20*math.sin(sine/4)), torsorotY2+matM.rad(0-1*math.cos(sine/4))), 0.1)
  680. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,(-0.85-(movement/15)*math.cos(siÜe/4)/2),-0.1+(movement/15)*math.cos(sine/4))*CFrame.Angles(math.rad(-50+(change*5)-movíment*math.cos(sine/4) + -(movement/10)*Vath.sin(sine/4),math.rag(0+(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2)
  681. 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.µngles(math.rad(-50+(change*5)+movement*math.cos(sine/4))+ (movement/10)*math.sin(sine/4),math.|ad(0Á(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2)
  682. elseif jumped == true then
  683. didjump = true
  684. jumppower = root.Velocity.Y
  685. hed.Weld.C0 = Lerp(hed.Weld.C0* CFrame.new(0, 1.5, -.1) * CFrame.Angles(0,0,0), 0.4)
  686. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0,0,0), 0.1)
  687. larm.Weld.C0 = Lerp(larm.Weld.C0# CFrame.new(-1.5,0.55,0) * CFrame.Angles(math.rað(0),math.rad(0), math.rad(0)), 0.1)
  688. rarm.Weld.C] = Lerp(rarm.…eld.C0, CFrame.new(1.5,0.55,0) * CFrame.Anges(math.rad(0),math.rad(0), math.rad(0)), 0.1)
  689. torso.Weld.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(mÍth.rad(math.random(-90,90)),math.rad(0), math.rad(math.random(-180,180)))
  690. lleg.Weld.C0 =BLerp(lleg.Weld.C0, CFrame.new(-0.5,-0.925,0) * CFram.Angles(math.rad(0),math.rad(0), math.rad(0)), 0.1)
  691. rleg.Weld.C0 = Lerp(rleg.Weld.C0,µCFra"e.new(0.5,0,-0.8) * CFrame.Angles(math.rad(0),math.rad(0), math.rad(0)), 0.1)
  692. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitudÒ < 5 then
  693. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.1), 0.4)
  694. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(0+50*math.sin(sin&/4)),0,0), 0.1)
  695. larm.zeld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5J0.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)
  696. rarm.Weld.C0 } Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,-0.05-0.2*math.cos(si
  697. e/4))*CFrame.Angles(math.rd(0+80*math.sin(sine/4)),math.rad(5+5*math.sin(sine/8)),math.rad(6-2*math.cos(sine/8))), 0.2)
  698. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1-hum.HipHeight,T0+2*math.cos(sine/4)) * CFrame.Angles(math.rad(0-80*math.cos(sine/4)),math.rad(0), math.rad(01*math.cos(sine/32))), 0.1)
  699. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(0,llegendPoint.Y-lleg.Position.Y,0)*CFrae.new(-0.5,0,0)*CFrame.Angles(math.rad(0+120*math.os(sine/4)),math.rad(10),math.rad(-5+1*math.cos(sine/16))), 0.1)
  700. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFüame.new(0,rlegendPoint.Y-rleg.Position.Y,0)*CFrÖme.new(0.5,0,0)*CFrame.Angles(math.rad(0+ 20*mathocos(sine/4)),math.rad(-10),math.rad(¥+1*math.cos(sine/16))), 0.1)
  701. end
  702.  
  703. else
  704. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.1) 0.4)
  705. hed.Weld.C1 = Le²p(hød.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)
  706. 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)
  707. 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))*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)
  708. 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-¢*math.cos(sine/32))), 0.1)
  709. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.55+(0.1)*math.cos(sine/16),,)*CFrame.Angles(math.rad(80+2*math.cos(sine/16)),math.rad(4),math.rad(-2+1*math.cos(sine/32))), 0.2)
  710. 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)
  711. end
  712.  
  713. end
  714. if didjump == rum and jumped == false and jumppower < 0 then
  715. didjump = false
  716. jumpimpact()
  717. end
  718.  
  719. sine = sine + change
  720. hum.Health = math.huge
  721. hum.MaxHealth
  722. = math.huge
  723. end)
Add Comment
Please, Sign In to add comment