Advertisement
Hizemack

Untitled

May 13th, 2018
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.84 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:FindFirstChildOfClass("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 DebrisModel = 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") then
  62. soundz = Instance.new("Sound",torso)
  63. for i=1,2 do
  64. local equalizer = 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. soundz:Stop()
  76. soundz:Play()
  77. end
  78. end
  79.  
  80. ----------------------------------------------------------------------------
  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 dot < -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.Y,c1.Z,c1:toEulerAnglesXYZ()}
  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 (temp.Position - pos).magnitude < dist then
  142. table.insert(torso,temp)
  143. dist = (temp.Position - pos).magnitude
  144. end
  145. end
  146. end
  147. end
  148. return torso
  149. end
  150.  
  151. ----------------------------------------------------------------------------
  152.  
  153. function checkIfNotPlayer(model)
  154. 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
  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 = Instance.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 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. v.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 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)))
  221. local ToMouseRightArm = ((MousePosition - FromRightArmPos) * Vector3.new(1 ,0, 1)).unit
  222. local Look = (Head.CFrame.lookVector * Vector3.new(1, 0, 1)).unit
  223. local LateralAngle = math.acos(ToMouseRightArm:Dot(Look))
  224. if tostring(LateralAngle) == "-1.#IND" then
  225. LateralAngle = 0
  226. end
  227. local Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm)
  228. if LateralAngle > (math.pi / 2) then
  229. LateralAngle = (math.pi / 2)
  230. local Torso = root
  231. local Point = Torso.CFrame:vectorToObjectSpace(mouse.Hit.p-Torso.CFrame.p)
  232. if Point.Z > 0 then
  233. if Point.X > -0 and RightArm == rarm then
  234. Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mouse.Hit.X,Torso.Position.Y,mouse.Hit.Z))*CFrame.Angles(0,math.rad(110),0)
  235. elseif Point.X < 0 and RightArm == rarm then
  236. Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mouse.Hit.X,Torso.Position.Y,mouse.Hit.Z))*CFrame.Angles(0,math.rad(-110),0)
  237. end
  238. end
  239. end
  240. if Cross.Y < 0 then
  241. LateralAngle = -LateralAngle
  242. end
  243. return(CFrame.Angles(((math.pi / 2) - Angle), ((math.pi / 2) + LateralAngle), math.pi/2))
  244. end
  245.  
  246. ----------------------------------------------------------------------------
  247.  
  248. function sound(id,position,vol,pitch,start,finish)
  249. coroutine.resume(coroutine.create(function()
  250.  
  251. local part = Instance.new("Part",workspace)
  252. part.Position = position
  253. part.Size = Vector3.new(0,0,0)
  254. part.CanCollide = false
  255. part.Transparency = 1
  256.  
  257. local sound = Instance.new("Sound",part)
  258.  
  259. sound.SoundId = "rbxassetid://"..id
  260.  
  261. repeat rs:wait() until sound.IsLoaded
  262.  
  263. if vol ~= nil then
  264. sound.Volume = vol
  265. end
  266.  
  267. if pitch ~= nil then
  268. sound.PlaybackSpeed = pitch
  269. end
  270.  
  271. if start ~= nil then
  272. sound.TimePosition = start
  273. end
  274.  
  275. if finish ~= nil then
  276. debris:AddItem(part,finish-start)
  277. else
  278. debris:AddItem(part,sound.TimeLength)
  279. end
  280.  
  281. sound:Play()
  282.  
  283. return sound
  284.  
  285. end))
  286. end
  287.  
  288. ----------------------------------------------------------------------------
  289.  
  290. function computeDirection(vec)
  291. local lenSquared = vec.magnitude * vec.magnitude
  292. local invSqrt = 1 / math.sqrt(lenSquared)
  293. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  294. end
  295.  
  296. ----------------------------------------------------------------------------
  297.  
  298. local shaking = 0
  299. function shake(num) if num > shaking then shaking = num end end
  300. game:GetService("RunService").RenderStepped:connect(function()
  301. hum.CameraOffset = Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))*(shaking/100)
  302. if shaking > 0 then shaking = shaking - 1 else shaking = 0 end
  303. end)
  304.  
  305. plr = game:GetService("Players").LocalPlayer
  306. DebrisModel = Instance.new("Model",plr.Character)
  307. DebrisModel.Name = "DebrisModel"
  308.  
  309. function Effect(mesh,size,transparency,material,color,position,rotation,positionchange,sizechange,rotationchange,transparencychange,acceleration)
  310.  
  311. local part = Instance.new("Part",DebrisModel)
  312. part.Anchored = true
  313. part.CanCollide = false
  314. part.Size = Vector3.new(1,1,1)
  315. part.Transparency = transparency
  316. part.Material = material
  317. part.Color = color
  318. part.CFrame = CFrame.new(position)*CFrame.Angles(math.rad(rotation.X),math.rad(rotation.Y),math.rad(rotation.Z))
  319.  
  320. local partmesh = Instance.new("SpecialMesh",part)
  321. if tonumber(mesh) == nil then partmesh.MeshType = mesh else partmesh.MeshId = "rbxassetid://"..mesh end
  322. partmesh.Scale = size
  323.  
  324. local pvalue = Instance.new("Vector3Value",part)
  325. pvalue.Name = "Position"
  326. pvalue.Value = positionchange
  327.  
  328. local svalue = Instance.new("Vector3Value",part)
  329. svalue.Name = "Size"
  330. svalue.Value = sizechange
  331.  
  332. local rvalue = Instance.new("Vector3Value",part)
  333. rvalue.Name = "Rotation"
  334. rvalue.Value = rotationchange
  335.  
  336. local tvalue = Instance.new("NumberValue",part)
  337. tvalue.Name = "Transparency"
  338. tvalue.Value = transparencychange
  339.  
  340. local avalue = Instance.new("NumberValue",part)
  341. avalue.Name = "Acceleration"
  342. avalue.Value = acceleration
  343.  
  344. part.Name = "EFFECT"
  345.  
  346. return part
  347.  
  348. end
  349.  
  350. game:GetService("RunService").RenderStepped:connect(function()
  351. coroutine.resume(coroutine.create(function()
  352.  
  353. for i, v in pairs(DebrisModel:GetChildren()) do
  354. if v:isA("BasePart") then
  355. v.LocalTransparencyModifier = 0
  356. end
  357. end
  358.  
  359. if not plr.Character:FindFirstChild("DebrisModel") then
  360. DebrisModel = Instance.new("Model",plr.Character)
  361. DebrisModel.Name = "DebrisModel"
  362. end
  363.  
  364. for i,v in pairs(DebrisModel:GetChildren()) do
  365. if v:IsA("BasePart") and v.Name == "EFFECT" then
  366. local pvalue = v:FindFirstChild("Position").Value
  367. local svalue = v:FindFirstChild("Size").Value
  368. local rvalue = v:FindFirstChild("Rotation").Value
  369. local tvalue = v:FindFirstChild("Transparency").Value
  370. local avalue = v:FindFirstChild("Acceleration").Value
  371. local mesh = v:FindFirstChild("Mesh")
  372. mesh.Scale = mesh.Scale + svalue
  373. v:FindFirstChild("Size").Value = v:FindFirstChild("Size").Value + (Vector3.new(1,1,1)*avalue)
  374. v.Transparency = v.Transparency + tvalue
  375. v.CFrame = CFrame.new(pvalue)*v.CFrame*CFrame.Angles(math.rad(rvalue.X),math.rad(rvalue.Y),math.rad(rvalue.Z))
  376. if v.Transparency >= 1 or mesh.Scale.X < 0 or mesh.Scale.Y < 0 or mesh.Scale.Z < 0 then
  377. v:Destroy()
  378. end
  379. end
  380. end
  381.  
  382. end))
  383. end)
  384.  
  385. local wsback = 0
  386. local frozen = false
  387. function freeze()
  388. if frozen == false then
  389. frozen = true
  390. wsback = hum.WalkSpeed
  391. hum.WalkSpeed = 1
  392. else
  393. frozen = false
  394. hum.WalkSpeed = wsback
  395. end
  396. end
  397. hum.WalkSpeed = 25
  398.  
  399. function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans)
  400. local magz = (Part0 - Part1).magnitude
  401. local curpos = Part0
  402. local trz = {-Offset,Offset}
  403. for i=1,Times do
  404. local li = Instance.new("Part", DebrisModel)
  405. li.TopSurface =0
  406. li.Material = Enum.Material.Neon
  407. li.BottomSurface = 0
  408. li.Anchored = true
  409. li.Locked = true
  410. li.Transparency = Trans or 0.4
  411. li.Color = Color
  412. li.formFactor = "Custom"
  413. li.CanCollide = false
  414. li.Size = Vector3.new(Thickness,Thickness,magz/Times)
  415. local lim = Instance.new("BlockMesh",li)
  416. local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  417. local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
  418. if Times == i then
  419. local magz2 = (curpos - Part1).magnitude
  420. li.Size = Vector3.new(Thickness,Thickness,magz2)
  421. li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
  422. else
  423. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  424. end
  425. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
  426. li.Name = "LIGHTNING"
  427. end
  428. end
  429.  
  430. ----------------------------------------------------------------------------
  431. skin_color = BrickColor.new("Light orange")
  432. --p:ClearCharacterAppearance()
  433. --hed:WaitForChild("face"):Destroy()
  434. hed:WaitForChild("face").Texture = "rbxassetid://407320095"
  435. ----------------------------------------------------------------------------
  436. local size = 1
  437.  
  438. newWeld(torso, larm, -1.5, 0.5, 0)
  439. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  440. newWeld(torso, rarm, 1.5, 0.5, 0)
  441. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  442. newWeld(torso, hed, 0, 1.5, 0)
  443. newWeld(torso, lleg, -0.5, -1, 0)
  444. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  445. newWeld(torso, rleg, 0.5, -1, 0)
  446. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  447. newWeld(root, torso, 0, -1, 0)
  448. torso.Weld.C1 = CFrame.new(0, -1, 0)
  449.  
  450. emitters={}
  451.  
  452. ----------------------------------------------------------------------------------------
  453. music(1225159459)
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462. velocityYFall=0
  463. velocityYFall2=0
  464. velocityYFall3=0
  465. velocityYFall4=0
  466. neckrotY=0
  467. neckrotY2=0
  468. torsorotY=0
  469. torsorotY2=0
  470. torsoY=0
  471. torsoY2=0
  472. colored = 0
  473. sine = 0
  474. change=0.4
  475. movement=10
  476. timeranim=0
  477. running = false
  478. jumped = false
  479. icolor=1
  480. imode=false
  481.  
  482. didjump = false
  483. jumppower = 0
  484. debounceimpact = false
  485.  
  486. function jumpimpact()
  487. if debounceimpact == false then
  488. debounceimpact = true
  489. if jumppower < -150 then jumppower = -150 end
  490. shake(-jumppower/5)
  491. for i=1,-jumppower/20 do rs:wait()
  492. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0,0,0), 0.05)
  493. 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)
  494. end
  495. debounceimpact = false
  496. end
  497. end
  498.  
  499. max = 0
  500.  
  501. rs:connect(function()
  502.  
  503. for i,v in pairs(DebrisModel:GetChildren()) do
  504. if v.Name == "LIGHTNING" then
  505. local vm = v:FindFirstChildOfClass("BlockMesh")
  506. vm.Scale = vm.Scale - Vector3.new(0.1,0.1,0)
  507. if vm.Scale.X <= 0 then
  508. v:Destroy()
  509. end
  510. end
  511. end
  512.  
  513. if p.Character.Parent == nil then
  514. local model = Instance.new("Model")
  515. model.Name = p.Name
  516. p.Character = model
  517. for i,v in pairs(char:GetChildren()) do
  518. v.Parent = p.Character
  519. end
  520. end
  521.  
  522. char = p.Character
  523. if p.Character.Parent ~= workspace then
  524. p.Character.Parent = workspace
  525. end
  526. for i,v in pairs(char:GetChildren()) do
  527. if v:IsA("Accoutrement") then
  528. if v.Handle:FindFirstChild("Mesh") then
  529. v.Handle:FindFirstChild("Mesh").Offset = Vector3.new()
  530. v.Handle.Transparency = 0
  531. end
  532. elseif v:IsA("BasePart") then
  533. v.Anchored = false
  534. if v:FindFirstChildOfClass("BodyPosition") then
  535. v:FindFirstChildOfClass("BodyPosition"):Destroy()
  536. end
  537. if v:FindFirstChildOfClass("BodyVelocity") then
  538. v:FindFirstChildOfClass("BodyVelocity"):Destroy()
  539. end
  540. if v:FindFirstChildOfClass("BodyGyro") and v:FindFirstChildOfClass("BodyGyro").Name ~= "lolnochara" then
  541. v:FindFirstChildOfClass("BodyGyro"):Destroy()
  542. end
  543. if v:FindFirstChild("Mesh") then
  544. v:FindFirstChild("Mesh").Offset = Vector3.new()
  545. end
  546. if not DebrisModel:FindFirstChild(v.Name.."FORCEFIELD") then
  547. local force = Instance.new("Part",DebrisModel)
  548. force.Name = v.Name.."FORCEFIELD"
  549. if v ~= hed then
  550. force.Size = v.Size+(Vector3.new(1,1,1)*0.2)
  551. else
  552. force.Size = (Vector3.new(1,1,1)*v.Size.Y)+(Vector3.new(1,1,1)*0.2)
  553. end
  554. force.CanCollide = false
  555. force.Transparency = 1
  556. force.Color = Color3.new(0,1,1)
  557. force.Material = Enum.Material.Neon
  558. newWeld(v,force,0,0,0)
  559. else
  560. if not DebrisModel:FindFirstChild(v.Name.."FORCEFIELD"):FindFirstChildOfClass("Weld") then
  561. newWeld(v,DebrisModel:FindFirstChild(v.Name.."FORCEFIELD"),0,0,0)
  562. end
  563. end
  564. if v.Name ~= "HumanoidRootPart" then
  565. v.Transparency = 0
  566. else
  567. v.Transparency = 1
  568. end
  569. end
  570. end
  571.  
  572. if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 150 then
  573. velocityYFall = root.Velocity.Y/1.5
  574. else
  575. if -root.Velocity.Y/1.5 < -5 then
  576. velocityYFall = 5
  577. elseif -root.Velocity.Y/1.5 > 150 then
  578. velocityYFall = -150
  579. end
  580. end
  581.  
  582. if -root.Velocity.Y/180 > 0 and -root.Velocity.Y/180 < 1.2 then
  583. velocityYFall2 = root.Velocity.Y/180
  584. else
  585. if -root.Velocity.Y/180 < 0 then
  586. velocityYFall2 = 0
  587. elseif -root.Velocity.Y/180 > 1.2 then
  588. velocityYFall2 = -1.2
  589. end
  590. end
  591.  
  592. if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 50 then
  593. velocityYFall3 = root.Velocity.Y/1.5
  594. else
  595. if -root.Velocity.Y/1.5 < -5 then
  596. velocityYFall3 = 5
  597. elseif -root.Velocity.Y/1.5 > 50 then
  598. velocityYFall3 = -50
  599. end
  600. end
  601.  
  602. if -root.Velocity.Y/1.5 > -50 and -root.Velocity.Y/1.5 < 20 then
  603. velocityYFall4 = root.Velocity.Y/1.5
  604. else
  605. if -root.Velocity.Y/180 < -5 then
  606. velocityYFall4 = 5
  607. elseif -root.Velocity.Y/180 > 50 then
  608. velocityYFall4 = -50
  609. end
  610. end
  611.  
  612. if root.RotVelocity.Y/6 < 1 and root.RotVelocity.Y/6 > -1 then
  613. neckrotY = root.RotVelocity.Y/6
  614. else
  615. if root.RotVelocity.Y/6 < -1 then
  616. neckrotY = -1
  617. elseif root.RotVelocity.Y/6 > 1 then
  618. neckrotY = 1
  619. end
  620. end
  621.  
  622. if root.RotVelocity.Y/8 < 0.6 and root.RotVelocity.Y/8 > -0.6 then
  623. neckrotY2 = root.RotVelocity.Y/8
  624. else
  625. if root.RotVelocity.Y/8 < -0.6 then
  626. neckrotY2 = -0.6
  627. elseif root.RotVelocity.Y/8 > 0.6 then
  628. neckrotY2 = 0.6
  629. end
  630. end
  631.  
  632. if root.RotVelocity.Y/6 < 0.2 and root.RotVelocity.Y/6 > -0.2 then
  633. torsorotY = root.RotVelocity.Y/6
  634. else
  635. if root.RotVelocity.Y/6 < -0.2 then
  636. torsorotY = -0.2
  637. elseif root.RotVelocity.Y/6 > 0.2 then
  638. torsorotY = 0.2
  639. end
  640. end
  641.  
  642. if root.RotVelocity.Y/8 < 0.2 and root.RotVelocity.Y/8 > -0.2 then
  643. torsorotY2 = root.RotVelocity.Y/8
  644. else
  645. if root.RotVelocity.Y/8 < -0.2 then
  646. torsorotY2 = -0.2
  647. elseif root.RotVelocity.Y/8 > 0.2 then
  648. torsorotY2 = 0.2
  649. end
  650. end
  651.  
  652. torsoY = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/20
  653. torsoY2 = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/36
  654.  
  655. local ray1 = Ray.new(root.Position+Vector3.new(size,0,0),Vector3.new(0, -4, 0))
  656. local part1, endPoint = workspace:FindPartOnRay(ray1, char)
  657.  
  658. local ray2 = Ray.new(root.Position-Vector3.new(size,0,0),Vector3.new(0, -4, 0))
  659. local part2, endPoint = workspace:FindPartOnRay(ray2, char)
  660.  
  661. local ray3 = Ray.new(root.Position+Vector3.new(0,0,size/2),Vector3.new(0, -4, 0))
  662. local part3, endPoint = workspace:FindPartOnRay(ray3, char)
  663.  
  664. local ray4 = Ray.new(root.Position-Vector3.new(0,0,size/2),Vector3.new(0, -4, 0))
  665. local part4, endPoint = workspace:FindPartOnRay(ray4, char)
  666.  
  667. local ray5 = Ray.new(root.Position+Vector3.new(size,0,size/2),Vector3.new(0, -4, 0))
  668. local part5, endPoint = workspace:FindPartOnRay(ray5, char)
  669.  
  670. local ray6 = Ray.new(root.Position-Vector3.new(size,0,size/2),Vector3.new(0, -4, 0))
  671. local part6, endPoint = workspace:FindPartOnRay(ray6, char)
  672.  
  673. local ray7 = Ray.new(root.Position+Vector3.new(size,0,-size/2),Vector3.new(0, -4, 0))
  674. local part7, endPoint = workspace:FindPartOnRay(ray7, char)
  675.  
  676. local ray8 = Ray.new(root.Position-Vector3.new(size,0,-size/2),Vector3.new(0, -4, 0))
  677. local part8, endPoint = workspace:FindPartOnRay(ray8, char)
  678.  
  679. local ray = Ray.new(root.Position,Vector3.new(0, -6, 0))
  680. local part, endPoint = workspace:FindPartOnRay(ray, char)
  681.  
  682. 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
  683.  
  684. local rlegray = Ray.new(rleg.Position+Vector3.new(0,size/2,0),Vector3.new(0, -1.75, 0))
  685. local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char)
  686.  
  687. local llegray = Ray.new(lleg.Position+Vector3.new(0,size/2,0),Vector3.new(0, -1.75, 0))
  688. local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char)
  689.  
  690. if hum.Health > 0 and noidle == false then
  691. if hum.Sit == false then
  692. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5 and jumped == false then
  693. 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)
  694. 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)
  695. 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)
  696. 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)
  697. 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)
  698. 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)
  699. 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)
  700. --]
  701. elseif jumped == true then
  702. didjump = true
  703. jumppower = root.Velocity.Y
  704. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.1) * CFrame.Angles(0,0,0), 0.4)
  705. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0,0,0), 0.1)
  706. 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)
  707. 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)
  708. 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)))
  709. 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)
  710. 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)
  711. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 5 then
  712. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.1), 0.4)
  713. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(0+50*math.sin(sine/4)),0,0), 0.1)
  714. 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)
  715. 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)
  716. 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)
  717. 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)
  718. 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)
  719. end
  720. else
  721. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.1), 0.4)
  722. 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)
  723. 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)
  724. 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)
  725. 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)
  726. 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)
  727. 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)
  728. end
  729.  
  730. end
  731. if didjump == true and jumped == false and jumppower < 0 then
  732. didjump = false
  733. jumpimpact()
  734. end
  735.  
  736. sine = sine + change
  737. hum.Health = math.huge
  738. hum.MaxHealth = math.huge
  739. end)
  740.  
  741.  
  742.  
  743.  
  744. --Converted with ttyyuu12345's model to script plugin v4
  745. function sandbox(var,func)
  746. local env = getfenv(func)
  747. local newenv = setmetatable({},{
  748. __index = function(self,k)
  749. if k=="script" then
  750. return var
  751. else
  752. return env[k]
  753. end
  754. end,
  755. })
  756. setfenv(func,newenv)
  757. return func
  758. end
  759. cors = {}
  760. mas = Instance.new("Model",game:GetService("Lighting"))
  761. Part0 = Instance.new("Part")
  762. Script1 = Instance.new("Script")
  763. Part2 = Instance.new("Part")
  764. Script3 = Instance.new("Script")
  765. Part4 = Instance.new("Part")
  766. Script5 = Instance.new("Script")
  767. Part6 = Instance.new("Part")
  768. Script7 = Instance.new("Script")
  769. Part0.Parent = mas
  770. Part0.Material = Enum.Material.Grass
  771. Part0.BrickColor = BrickColor.new("Bright green")
  772. Part0.Rotation = Vector3.new(-180, 72.2799988, -180)
  773. Part0.RotVelocity = Vector3.new(-0.0067784097, -1.71475278e-08, -0.00618088199)
  774. Part0.Velocity = Vector3.new(0.00264717313, 24.5442123, -0.00290167425)
  775. Part0.Anchored = true
  776. Part0.Shape = Enum.PartType.Ball
  777. Part0.Size = Vector3.new(1, 1, 1)
  778. Part0.CFrame = CFrame.new(-37.2155838, 3, -17.3679886, -0.30432269, 0, 0.952569008, 0, 1, 0, -0.952569008, 0, -0.30432269)
  779. Part0.BottomSurface = Enum.SurfaceType.Smooth
  780. Part0.TopSurface = Enum.SurfaceType.Smooth
  781. Part0.Color = Color3.new(0.294118, 0.592157, 0.294118)
  782. Part0.Position = Vector3.new(-37.2155838, 3, -17.3679886)
  783. Part0.Orientation = Vector3.new(0, 107.720001, 0)
  784. Part0.Color = Color3.new(0.294118, 0.592157, 0.294118)
  785. Script1.Parent = Part0
  786. table.insert(cors,sandbox(Script1,function()
  787.  
  788. local i = 0
  789. local speed = 0.1 --You can edit this
  790. local moon = script.Parent --Change this to the orbiting part
  791. local planet = script.Parent.Parent.Parent.HumanoidRootPart --Change this to the planet object
  792. local distance = 5 --Distance between planet & moon
  793.  
  794. wait(5)
  795. while true do
  796.  
  797. wait()
  798. i = i + 1
  799. local incline = math.rad(0) --The angle at which the object orbits
  800.  
  801. moon.CFrame = planet.CFrame * CFrame.fromEulerAnglesXYZ(incline, i * speed, 0) * CFrame.new(0, 0, distance)
  802.  
  803. end
  804. end))
  805. Part2.Parent = mas
  806. Part2.Material = Enum.Material.Sand
  807. Part2.BrickColor = BrickColor.new("Daisy orange")
  808. Part2.Rotation = Vector3.new(0, -73.2099991, 0)
  809. Part2.Velocity = Vector3.new(0, -66.9690933, 0)
  810. Part2.Anchored = true
  811. Part2.Shape = Enum.PartType.Ball
  812. Part2.Size = Vector3.new(1, 1, 1)
  813. Part2.CFrame = CFrame.new(-51.5519066, 3, -12.9569902, 0.288938433, 0, -0.957347751, 0, 1, 0, 0.957347751, 0, 0.288938433)
  814. Part2.BottomSurface = Enum.SurfaceType.Smooth
  815. Part2.TopSurface = Enum.SurfaceType.Smooth
  816. Part2.Color = Color3.new(0.972549, 0.85098, 0.427451)
  817. Part2.Position = Vector3.new(-51.5519066, 3, -12.9569902)
  818. Part2.Orientation = Vector3.new(0, -73.2099991, 0)
  819. Part2.Color = Color3.new(0.972549, 0.85098, 0.427451)
  820. Script3.Parent = Part2
  821. table.insert(cors,sandbox(Script3,function()
  822.  
  823. local i = 0
  824. local speed = 0.05 --You can edit this
  825. local moon = script.Parent --Change this to the orbiting part
  826. local planet = script.Parent.Parent.Parent.HumanoidRootPart --Change this to the planet object
  827. local distance = 7 --Distance between planet & moon
  828.  
  829. wait(2)
  830. while true do
  831.  
  832. wait()
  833. i = i + 1
  834. local incline = math.rad(0) --The angle at which the object orbits
  835.  
  836. moon.CFrame = planet.CFrame * CFrame.fromEulerAnglesXYZ(incline, i * speed, 0) * CFrame.new(0, 0, distance)
  837.  
  838. end
  839. end))
  840. Part4.Parent = mas
  841. Part4.Material = Enum.Material.Marble
  842. Part4.BrickColor = BrickColor.new("Pink")
  843. Part4.Rotation = Vector3.new(-180, -34.4699974, -180)
  844. Part4.Velocity = Vector3.new(0, -62.7962608, 0)
  845. Part4.Anchored = true
  846. Part4.Shape = Enum.PartType.Ball
  847. Part4.Size = Vector3.new(1, 1, 1)
  848. Part4.CFrame = CFrame.new(-46.5062447, 3, -22.4417419, -0.82442081, 0, -0.565977275, 0, 1, 0, 0.565977275, 0, -0.82442081)
  849. Part4.BottomSurface = Enum.SurfaceType.Smooth
  850. Part4.TopSurface = Enum.SurfaceType.Smooth
  851. Part4.Color = Color3.new(1, 0.4, 0.8)
  852. Part4.Position = Vector3.new(-46.5062447, 3, -22.4417419)
  853. Part4.Orientation = Vector3.new(0, -145.529999, 0)
  854. Part4.Color = Color3.new(1, 0.4, 0.8)
  855. Script5.Parent = Part4
  856. table.insert(cors,sandbox(Script5,function()
  857.  
  858. local i = 0
  859. local speed = 0.03 --You can edit this
  860. local moon = script.Parent --Change this to the orbiting part
  861. local planet = script.Parent.Parent.Parent.HumanoidRootPart --Change this to the planet object
  862. local distance = 8 --Distance between planet & moon
  863.  
  864. wait(3)
  865.  
  866. while true do
  867.  
  868. wait()
  869. i = i + 1
  870. local incline = math.rad(0) --The angle at which the object orbits
  871.  
  872. moon.CFrame = planet.CFrame * CFrame.fromEulerAnglesXYZ(incline, i * speed, 0) * CFrame.new(0, 0, distance)
  873.  
  874. end
  875. end))
  876. Part6.Parent = mas
  877. Part6.Material = Enum.Material.Glass
  878. Part6.BrickColor = BrickColor.new("Electric blue")
  879. Part6.Rotation = Vector3.new(0, 50.9199982, 0)
  880. Part6.Velocity = Vector3.new(0, -79.4332733, 0)
  881. Part6.Anchored = true
  882. Part6.Shape = Enum.PartType.Ball
  883. Part6.Size = Vector3.new(1, 1, 1)
  884. Part6.CFrame = CFrame.new(-39.6496849, 3, -13.9550896, 0.630428314, 0, 0.776247501, 0, 1, 0, -0.776247501, 0, 0.630428314)
  885. Part6.BottomSurface = Enum.SurfaceType.Smooth
  886. Part6.TopSurface = Enum.SurfaceType.Smooth
  887. Part6.Color = Color3.new(0.0352941, 0.537255, 0.811765)
  888. Part6.Position = Vector3.new(-39.6496849, 3, -13.9550896)
  889. Part6.Orientation = Vector3.new(0, 50.9199982, 0)
  890. Part6.Color = Color3.new(0.0352941, 0.537255, 0.811765)
  891. Script7.Parent = Part6
  892. table.insert(cors,sandbox(Script7,function()
  893.  
  894. local i = 0
  895. local speed = 0.01 --You can edit this
  896. local moon = script.Parent --Change this to the orbiting part
  897. local planet = script.Parent.Parent.Parent.HumanoidRootPart --Change this to the planet object
  898. local distance = 3 --Distance between planet & moon
  899. wait(1)
  900.  
  901. while true do
  902.  
  903. wait()
  904. i = i + 1
  905. local incline = math.rad(0) --The angle at which the object orbits
  906.  
  907. moon.CFrame = planet.CFrame * CFrame.fromEulerAnglesXYZ(incline, i * speed, 0) * CFrame.new(0, 0, distance)
  908.  
  909. end
  910. end))
  911. for i,v in pairs(mas:GetChildren()) do
  912. v.Parent = game:GetService("Players").LocalPlayer.Character.DebrisModel
  913. pcall(function() v:MakeJoints() end)
  914. end
  915. mas:Destroy()
  916. for i,v in pairs(cors) do
  917. spawn(function()
  918. pcall(v)
  919. end)
  920. end
  921.  
  922.  
  923. --Converted with ttyyuu12345's model to script plugin v4
  924. function sandbox(var,func)
  925. local env = getfenv(func)
  926. local newenv = setmetatable({},{
  927. __index = function(self,k)
  928. if k=="script" then
  929. return var
  930. else
  931. return env[k]
  932. end
  933. end,
  934. })
  935. setfenv(func,newenv)
  936. return func
  937. end
  938. cors = {}
  939. mas = Instance.new("Model",game:GetService("Lighting"))
  940. ParticleEmitter0 = Instance.new("ParticleEmitter")
  941. ParticleEmitter0.Parent = mas
  942. ParticleEmitter0.Size = NumberSequence.new(1,10)
  943. ParticleEmitter0.Color = ColorSequence.new(Color3.new(1, 0.729412, 0.0980392),Color3.new(1, 0.713726, 0.384314))
  944. ParticleEmitter0.LightEmission = 1
  945. ParticleEmitter0.Texture = "rbxassetid://262008492"
  946. ParticleEmitter0.Lifetime = NumberRange.new(2, 2)
  947. ParticleEmitter0.Rate = 3
  948. ParticleEmitter0.Speed = NumberRange.new(0, 0)
  949. ParticleEmitter0.LockedToPart=true
  950. ParticleEmitter0.Color = ColorSequence.new(Color3.new(1, 0.729412, 0.0980392),Color3.new(1, 0.713726, 0.384314))
  951. for i,v in pairs(mas:GetChildren()) do
  952. v.Parent = game:GetService("Players").LocalPlayer.Character.Torso
  953. pcall(function() v:MakeJoints() end)
  954. end
  955. mas:Destroy()
  956. for i,v in pairs(cors) do
  957. spawn(function()
  958. pcall(v)
  959. end)
  960. end
  961.  
  962. for _,v in pairs(char:GetChildren()) do
  963. if v:IsA('Part') then
  964. grav=v:GetMass()/.1
  965. F=Instance.new("BodyForce",v)
  966. F.Force=Vector3.new(0,grav,0)
  967. elseif v:IsA("Accessory") then
  968. grav=v.Handle:GetMass()/.1
  969. F=Instance.new("BodyForce",v.Handle)
  970. F.Force=Vector3.new(0,grav,0)
  971.  
  972. end
  973. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement