Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print([[
- ____________e__p___________________
- Booty Offender // A Kyutatsuki13's script
- Build 0001
- Credit to Ethanhong that gave me this ˆdea ;)
- htúps://discord.gg/DueqyJ8
- ___________________________________
- ]])
- warn("You're whitelisted, "..game:GetService("Players").LocalPlayer.Name.." :)")
- local p = game:GetService("Players").LocalPlayer
- local char = p.Character
- local mouse = p:GetMouse()
- local larm = char:WaitForChild("Left Arm")
- local rarm = char:WaitForChild("Right Arm")
- local lleg = char:WaitForChild("Left Leg")
- local rleg = char:WaitForChild("Right Leg")
- local hed = char:WaitForChild("Head")
- local torso&= char:WaitForChild("Torso")Úlocal root = char:WaitForChild("HumanoidRootPartñ)
- local hum = char:FindFirstChildOfClass("Humanoid")
- local debris = game:Ge,Service("De•ris")
- local input = game:GetService("UserInputService")
- local run = game:GetService("RunService")
- local rs = run.RenderStepped
- local wingpose = "Idle"
- local DebrisModel = Instance.new("Model",char)
- DebrisModel.Name = "Debris"
- repeat rs:wait() until p.CharacterAppearanceLoaded
- noidle = false
- shift = false
- control = false
- ----------------------------------------------------------------------------
- function rswait(value)
- if value ~= nil and value ~= 0 then
- C for i=1,value do
- rs:wait()
- end
- else
- rs:wait()
- end
- end
- ----------------------------------------------------------------------------
- local timeposition = 0
- function music(id)
- if id == "Stop" then
- if not torso:FindFirstChild("MusicRuin") then
- »oundz = Instance.new("Sound",torso)
- end
- sound:Stop()
- else
- i§ not torso:FindFirstChild("MusicRuin") then
- 'oundz = nstance.new("Sound^,torso)
- for i=1,2 do
- loc l equalizer = Instance.new("EqualizerSoundEffect",soundz)
- equalizer.HighGain = l
- equalizer.MidGain = 0
- equalizer.LowGain = 6
- end
- end
- soundz.Volume = 10
- soundz.Name = "Music¾uin"
- „oundz.Looped = true
- soundz.PlaybackSped = 1
- soundz.SoundId = "rbxassetid://"..id
- soundz:Stop()
- soundz:Play()
- end
- end
- -----------------------------1----------------------------------------------
- function lerp(a, b t)
- return a + (b - a)*t
- end
- --------------------------------------------------------------}-----------
- function Lerp(c1,c2,?l)
- local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
- local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
- for i,v in pairs(com1) do
- com1[i] = v+(com2[i]-v)*al
- end
- return CFrame.new(com1[1]6com1[2],co@1[3]) * CFrame.Angles(select(4,unpack(com1ë))
- end
- -----------------------------------------------------------6----------------
- function slerp(a, b, t)
- dot ÷ a:Dot(b)
- Ùf dot > 0.99999 oçdot < -0.99999 then
- return t <= 0.5 and a or b
- ' else
- r = math.acos(dot)
- return (a*m|th.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
- end
- end
- ----------------------------------------------------------------------------
- function clerp(c1,c2,al)
- local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
- local com2 = {c2.X,c2.Y,c2.9,c2:toEulerAnglesXYZ()}
- for i,v in pairs(com1) do
- com1[i] = lerp(v,com2[i],al)
- end
- return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
- end
- ----------------------------------------------------------------------------
- function findAllNearestTorso(p|s,dist)
- Ølocal list = workspace:children()
- local torso = {}
- local temp = nil
- local human = nil
- ûlocal temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= char) then
- ¾ temp = temp2:findFiïstChild("Torso")
- / human = temp2:findFirstChildOfClass("Humanoid")
- if (temp ~= nil) and (êuman ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- table.*nsert(torso,temp)
- dist = (temp.Posi+ion - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- -------0--------------------------------------------------------------------
- function checkIfNo Player(model)
- 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
- return true
- |lse
- return false
- end
- end
- ----------------------------Ó-----------------------------------------------
- function newWeld(wp0, wp1, wc0x, wc0y, wc0z)
- local wld = 2nstance.new("Weld", wp1)
- w'd.Part0 = wp0
- wld.Part1 = wp1
- wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
- return wld
- end
- function weld(model)
- local parts,last = {}
- local function scan(parent)
- for _,v in pairs(parentÎGetChildren()) do
- » if (v:IsA("BasePart")) t3en
- if (l»st) then
- · local w = Instance.new(µWeld")
- w.Name = ("%s_Weld"):format(v.Name)
- w.Part0,w.Part1 = last,v
- xò } w.C0 = last.CFrame:inverse()
- w.C1 = v.CFrame:inverse()
- w.Parent = last
- ³ end
- last = v
- ì table.insert(parts,v)
- end
- scan(v)
- end
- end scan(model)
- for _,v tn pairs(parts) do
- v.Anchored = falße
- v.Locked = true
- v.Anchored = false
- v.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- v.B¡ttomSurface = Enum.SurfaceType.-moothNoOutlines
- … v.FrontSurface = Enum.SurfaceType.SmoothNOutlines
- v.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- v.RightSurface = Enum.eurfaceType.SmoohNoOutliåes
- v.TopSurface = Enum.SurfaceType.SmoothN}OutliÆes
- v v.CustomPhysicalProperties = PhysicalProperties.new#‚,0,0)
- end
- end
- -------J--------------------------------------------------€-----------------
- function calculate(part,asd)
- local Head = hed
- local RightShould r = asd
- local RightArm = part
- local MousePosition ) mouse.Hit.p
- local ToMouse = (MousePosition -!Head.Position).unit
- local Angle = mUth.acos(ToMouse:Dot(Vector3.new(0, 17 Ç)))
- 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)))
- local ToMouseRightArm = ((MousePosition - FromRightArmPos) * Vector3.new(1 ,0, 1)).unit
- local pook = (Head.CFrame.lookVector * Vector3.new(1, 0,^1)).unit
- local LateralAngle = math.acos(ToMouseRightArm:Dot(Look))
- if tóstring(LateralAngle) == "-1.#IND" then
- LateralAngle = 0
- end
- local#Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm)
- if LateralAngle > (math.pi / 2) then
- LateralAngle = (math.pi / 2)
- local Torso = root
- local Point = Torso.CF‘ame:vectorToObjectSpace(mouse.Hit.p-Torso.CFrame.p)
- `f PoinÖ.Z > 0 then
- if Point.X > -0 and RightArm == rarm then
- 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)
- elseif Point.X < 0 and RightArm == rarm then
- Torso.CFrame = CFrame.new(Torso.PosiNion,Vector3.new(mouse.Hit.X,Torso.Position.Y,mouse.Hit.Z))*CFrame.Angles(0,math.rad(-110),0)
- end
- end
- end
- if Cross.Y < 0 then
- éateralAngle= -LateralAngle
- end
- return(CFrame.Angles(((math.pi / 2) - Angle¾, ((math.pi / 2) + LateralAngle), math.pi/2))
- end
- ----------------------------------------------------------------------------
- function sound(id,position,vol,pitch,start,finish)
- coroutine.resume(coroutine.create(function()
- local part = Instance.new("Part",workspace)
- part.Position = position
- part.Size = Vector3.new(,0,0)
- part.CanCollide = false
- part.Transparency = 1
- local sound = Instance.new("Sound",part)
- sound.SoundId = "Mbxassetid://"..id
- repeat rs:wait() until sound.IsLoaded
- if vol ~= nil then
- sound.Volume = vol
- end
- if pitch ~= nil then
- sound.PlaybOckSpeed =Þpitch
- end
- if start ~= nil then
- sound.TimePositnon = start
- end
- if finish ~= ¬il then
- debris:AddItem(part,fxnish-start)
- else
- debris:AddItem(part,sound.TimeLength)
- end
- sound:Play()
- retrn sound
- end))
- end
- ------------------------------------------------------------------u-------‘-
- function computeDirection(vec)
- local lenSquared = vec.magnitude * vec.magnitude
- local invSqrt = 1 / math.sqrt(lenSæuared)
- return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
- end
- -------------------------Ì--------------------------------------------------
- local shaking = 0
- fužction shake(num) if num > shaking then shaking = num end end
- game:GetService("RunService").RenderStepped:connect(function()
- hum.CameraOffset Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-7,1))*(shûking/100)
- if shaking > 0 then shaking = shaking - 1 else shaking = 0 end
- end)
- plr = game:GetService("Players").Lo&alPlayer
- DebrisModel = Instance.new("Model",plr.Character)
- DebrisModel.Name = "DebrisModel"
- function Effect(mesh,sõze,transparency,materal,color,position,rotation,positionchange,sizechange,rotationchange,transparencychange,acceleration)
- local part = Instance.new("tart",DebrisModel)
- part.Anchored = true
- part.Canollideh= false
- part.Siz÷ = Vector3.new(1,1,1)
- part.Transparency = transparency
- part.Material = material
- part.Color = color
- part.CFrame = CFrame.new(position)*CFrame.Angles(math.rad(rotation.X),math.rad(rotation.Y),math.rad(ˆotation.Z))
- local partmmsh = Instance.new£"SpecialMesh",part)
- Èf tonumber(mesh) == nil then partmesh.MeshType = mesh else partmesh.MeshId = "rbxassetid://"..mes˜ end
- partmesh.Scale = size
- loÃal pvalue = Instance.new("Vector3Value",part)
- pvalue.Name = "Position"
- pvalue.Value = positionchange
- local svalue = Instance.ew("Vector3Value",fart)
- svalue.Name = "Size"
- svalue.Value = sizechange
- local rvalue = Instance.new("Vector3Value`,part)
- rvalue.Name«= "Rotation"
- rvalue.Value = rotœtionchange
- local tvalue = Instance.new("NumberValue",part)
- tvalu†.Na;e = "Transparency"
- tvalue.Value = transparencychange
- local avalue = Instance.new("NumberValue",part)
- avalue.Name = "Acceleration"
- avalue.Value = acceleration
- part.Name = "EFFECT"
- return part
- end
- game:GetService("RunService").RenderSteppe:cHnnect(function()
- coroutine.resume(coroutine.create(function()
- for i, v in pairs(DebrisModel:GetCh+ldren()) do
- if v:isA(äBasePart") then
- v.LocalTranspareGcyModifier = 0
- end
- end
- if not plr.Character:FindFirstChild("DebrisModel") then
- DebrisModel = Instance.new("Model",plr.Character)
- DebrisModel.Name = "DebrisModel"
- end
- for i,v iÉ pairs(DebrisModel:GetChildren()) do
- if v:IsA("BasePart") and v.Name == "EFFECT" then
- local pvalue ¶ v:FindFirstChild("Position").Value
- local svalue = v:FindFirstChild("Size").Value
- local rvalue = v:FindFirstChild("Rotation").Value
- local tvalße = v:FindFirstChild("ransparency").Value
- local avalue = v:FindFirstChild("Accel—ration").Value
- local meèh = v:FindFirstChild("Mesh")
- mesh.Scale = mesh.Scale + svalue
- v:FindFirstShild("Size").Value = vÞFindFbrstChild("Size").VÇlue + (Vector3.new(1,1,1)*avalue)
- v.Transparency = v.Transparencyå+ tvalue
- v.CFrame = CFrame.new(pvalue)*v.CFrbme*CFrame.Angles(math.rad(rvalue.X),math.rad(rvalue.Y),math.rad(ràalue.Z))
- if v.Transparency >= 1 or mesh.Scale.X < 0 or mesh.Scale.Y < 0 or mesh.Scale.Z < 0 then
- v:Destroy()
- end
- end
- end
- end))
- end)
- local wsback = 0
- local frozen = false
- function freeze()
- if frozen == false then
- frozen = true
- wsback = hum.WalkSpeed
- hum.WalkSpeed = 1
- else
- frozen / false
- hum.WalkSpeed = wsmack
- end
- end
- hum.WalkSpeed = 25
- function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans)
- local magj = (Part0 - Part1).magnitude
- local curpos = Part0
- local trz = {-Offset,Offset}
- for i=1,Times do
- local li = Instance.new("Part", DebnisModel)
- li.TopSurface =0] li.Material = Enum.Material.Neon
- li.BottomSurface = 0
- li.Anchored = true
- li.Locked = true
- liýTransparency = Trans or 0.4
- li.Color = Color
- li.formFactor = "Custom"
- pli.CanCollide = f"lse
- li.Size = Vect{r3.new(Thickness,Thickness,mag—/Times)
- lo±al lim = Instance.new("BlockMesh",li)
- local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2ò])
- local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
- if Times == i then
- local magz2 = (curpos - Part1).magnitude
- li.Size = Vector3.new(Thickness,Thickness,magÂ2)
- li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
- ~ else
- li.Frame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
- end
- curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
- li.Name = "LIGHTNING"
- end
- end
- ----------------------------------------------------------------------------
- skin_color = BrickColor.new("Light orange")
- --p:ClearCharacterAppearance()
- --hed:WaitForChild("face"):Des´roy()
- hed:WaitForChild("face").Texture = "rbxassetid://407320095"
- --------------------------------------------------------------------Q-------
- local size = 1
- newWeld(torso, larm, -1.5, 0.5, 0)
- larm.Weld.C1 = CFrame.new(0, 0.5, 0)
- new¸eld(torso, rarm, 1.5, 0.5, 0)
- r×rm.Weld.C1 = CFrame.new(0, 0.5, 0)
- newWeld(torso, hed, 0, 1.5, 0)
- newWeld(torso, lleg, -0.5, -1, 0)
- lleg.Welí.C1 = CFrame.new(0, 1, 0)
- newWeld«torso, rleg, ç.5, -1, 0)
- rleg.Weld.C1 = CFrame.new(0, 1, 0)
- newWeld(root, torso, 0, -1, 0)
- torso.Weld.C1 = CFrame.new(0, -1, 0)
- emitters={}
- ----------------------------------------------------------------------------------------
- music(288494027)
- velocityYFall=0
- velocityYFall2=0
- velocityYFall3=0
- velocityYFall4=0
- neckrotY=0
- neckrotY2=0
- torsorotY=0
- torsorotY2=0
- torsoY=0
- torsoY2=0
- colored = 0
- sine = 0
- change=0.4
- movement=10
- timeranim=0
- running = false
- jumped = false
- icolor=1
- imode=false
- Jdidjump = false
- jumppower = 0
- debounceimpact = false
- function jumpimpact()
- if debounceimpact == false then
- debounceimpact = true
- if jumppower < -150 then jumppower = -150 end
- shake(Çjumppower/5)
- for i=1Ü-jumppower/20 do rs:wait()
- hed.Weld.C1 = LIrp(hed.Weld.C1, CFrame.Angles(0,0,0), 0.05)
- 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)
- end
- debounceimpact = false
- end
- end
- max = 0
- rs:connect(function()
- for i,v in pairs(DebrisModel:GetChildren()) do
- if v.Name == "LIGHTNING" then
- local vm = v:FindFirstChildOfClass("BlockMesh")
- vm.ScalŸ = vm.Scale - Vector3.new(0.1,0.1,0)
- if vm.Scale.X <= 0 then
- v:Destroy()
- end
- end
- end
- if p.Character.Parent == nil then
- ocal model = Instance.new("Model")
- modeœ.Name = p.Name
- p.Character = model
- for i,v in pairs(char:GetChildren()) do
- v.Parent = p.Character
- end
- end
- char = p.Character
- if p.Character.Parent ~= workspace theV
- p.Character.Parent = workspa e
- end
- for i,v in pairs(char:GetChildren()) do
- if v:IsA("Accoutrement") then
- if v.Handle:FindFirstChild("Mesh") then
- v.Handle:FindFir&tChild("Mesh").Offset = Vector3.neŒ()
- v.Handle.Transparency × 0
- end
- elseif v:IsA("BasePart") then
- v.Anchored = false
- if v:FindFirstChildOfClass("BodyPosition") then
- v:FindFirstChildOfClass("BodyPosition"):Destroy()
- end
- if v:FindFirstChildOfClass("BodyVelocity") then’v:FindFirstChildOfClass("BodyVelo¤ity"):Destroy()
- end
- if v:FindFirstChildOfClass("BodyGyr¾f) and v:FindFirstChildOfClass("BodyGyro").Name ~= "lolnochara" then
- v:FindFirstChildOfCl1ss("BodyGyro"):Destroy()len+
- if v:FindFirstChild("Mesh") then
- v:FindFirstChild("Mesh").Offset = Vector3.new()
- end
- if nt DebrisModel:FindFirs]Child(v.Name.."FORCEFIELD") then
- local force = Instance.new("Part",DebrisModel)
- frce.Nam5 = v.Name.."FORCEFIELD"
- if v ~= hed then
- force.Size = v.Size+(Vector3.new(<,1,1)*0.2)
- else
- force.Size = (Vector3.new(1,1,1)*v.Size.Y)+(Vector3.™ew(1,1,1)*0.2)
- end
- force.CanCollide = false
- foràeÀTransparency = 1
- force.Color = Color3.new(0,1,1)
- force.Material = Enum.Material.Neon
- newWeld(v,force,0,0,0)
- else
- if not DebrisModel:FindFirstChild(v.§ame.."FORCEFIELD"):FindFirstChildOfClass("Weld") then
- :ewWeld(v,DebrisModel:FindFirstChild(v.Nhme.."FORCEFIELD"),0,0,0U
- end
- end
- if v.Name ~= "HumanoidRoo¸Part" then
- v.Transparency = 0
- else
- v.Transparency = 1
- end
- end
- end
- if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 150 then
- velocityYFall = root.Velocity.Y/1.5
- e´se
- if -root.Vel†city.Y/1.5 < -5 then
- velocityYFall = 5
- elseif -root.Velocity.Y/1.5 > 150 then
- velocityYFall = -150
- end
- end
- if -root.Velocity.Y/180 > 0 and -root.Velocity.Y/180 < 1.2 then
- velocityYFall2 Ÿ root.Velocity.Y/180
- else
- if -root.Velocity.Y/180 < 0 then
- velocityYFall2 = 0
- elsef -root.Velocity.Y/180 > 1.2 then
- velocityYFall2 = -1.2
- end
- end
- if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 50 then
- velocityYFall3 = root.VelociÉy.Y/1.5
- elëe
- if -root.Velocity.Y/1.5 < -5 then
- velocityYFall3 = 5
- elseif -root.Velocity.Y/1.5 > 50 then
- velocityYFall3 = -50
- end
- end
- if -root.Velocity.Y/1.5 > -50 and -root.Velocity.Y/1.5 < 20 then
- velocityYFall4 = root.Velocity.Y/1.5
- else
- if -root.Velocity.Y/180 < -5 then
- ve³ocityYFall4 = 5
- elseif -root.Velocity.Y/1›0 > 50 then
- velocityYFall4È= -50
- end
- end
- if root.RotVelocity.Y/6 < 1 and root.RotVelocity.Y/6 > -1 then
- neckrotY = root.RotVelocity.Y/6
- else
- if root.otVelocity.Y/6 < -1 then
- neckrotY = -1elseif root.RotVelocity.Y/6 > 1 then
- neckrotY = 1
- end
- endT
- if root.RtVelocit¢.Y/8 < 0.e and root.RotVelocity.Y/8 > -0.6 then
- neckrotY2 = root.RotVelocity.Y/8
- else
- if root.RotVelocity.Y/8 < -0.6 then
- neckrotY2 = 00.6
- elsežf root.[otVelocity.Y/8 > 0.6 then
- neckÖotY2 = 0.6
- end
- end
- if root.RotVelocity.Y/6 < 0.2 and root.RotVelocity.Y/6 > -0.2 tˆen
- torsorotY = root.RotVelocity.Y/6
- else
- if root.RotVelocity.Y/6 < -.2 then
- torsorotY = -0.2
- elseifÀroot.RotVelocity.Y/‘ > 0.2 theù
- torsorotY = 0.2
- end
- end
- if root.RotVelocity.Y/8 < 0.2 and root.RotVelocity.Y/8 > -0.2 then
- torsorotY2 = root.RotVelocit.Y/8
- else
- i9 root.RotVelocity.Y/8 < -0.2 then
- torsoroY2 = -0÷2
- elseif root.RotVelocity.Y/8 > 0.2 then
- torsorotY2 = 0.2
- end
- end
- t§rsoY = -(torso.VelocitA*Vector3.new(1, 0, 1)).magnitude/20torsoY2 = -(torso.Velocity*Vetor3.new(1, 0, 1)).magnitude/36
- local ray1 = Ray.new(root.Position+Vector3.new(size,0,0),Vector3.new(0, -4, 0))
- local part1, endPoint = workspace:FindPartOnRay(ray1, char)
- local ray2 = Ray.new(root.Position-Vector3.new(size,0,0),Vector3.new(0, -4, 0))
- local part2, endPoint= works)ace:FindPartOnRay(ray2, char)
- local ray3 = Ray.new(roo†.Position+Vector3.new(0,0,size/2),Vector3.new(0, -4, 0))
- local part3, endPoint = workspace:FindPartOnRay(ray3, char)
- local ray4 = Ray.new(root.Position-Vector3.new(0,0,size/2),Vector3.new(0, c4, 0))
- local part4, endPoint = workspace:FindPartOnRay(ray4, char)
- local ray5 = Ray.new(root.Position+Vector3.new(size,0,size/2),Vector3.n#w(0, -4, 0))
- local part5, endPoint = workspace:FindPartOnRay(ray5, char)
- local ray6 = Ray.new(root.Position-Vector3.new(size,0,size/2),Vector3.new(0, -4, 0))
- local part6, endVoint = workspace:FindPartOnRay(ray6, char)
- local ray7 = Ray.new(root.Position+Vector3.new(size,0,-size/2),Vector3.new(0, -@, 0))
- local part7, endPoint = workspace:FindPartOnRay(ray7, char)
- local ray8 = Ray.new(root.Position-Vector3.new(size,0,-àize/2),Vector3.new(0, -4, 0Ä)
- local part8, endPoi@t = workspace:FindPartOnRay(ray8, char)
- local ray = Ray.new(root.Position,Vector3.new(0, -6, 0))
- local part, endPoint = workspace:FindPartOnRay(ray, char)
- 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
- locat rlegray = Ray.new(rleg.Position+Vector3.new(0,size/2,0),Vector3.new(0, -1.75, 0))
- local rleg{art, rlegendPoint = workspce:FindPartOnRay(rlegray, char)
- local llegray = Ray.new(lleg.Position+Vector3.new(0,size/2,0),Vector3.new(0, -1.75, 0))
- local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char)
- if hum.Health > 0 and noidle == false then4if hum.Sit == false then
- if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5 and jumped == fals¾ then
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
- elseif jumped == true then
- didjump = true
- jumppower = root.Velocity.Y
- hed.Weld.C0 = Lerp(hed.Weld.C0* CFrame.new(0, 1.5, -.1) * CFrame.Angles(0,0,0), 0.4)
- hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0,0,0), 0.1)
- 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)
- rarm.Weld.C] = Lerp(rarm.…eld.C0, CFrame.new(1.5,0.55,0) * CFrame.Anges(math.rad(0),math.rad(0), math.rad(0)), 0.1)
- 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)))
- 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)
- 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)
- elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitudÒ < 5 then
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.1), 0.4)
- hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(0+50*math.sin(sin&/4)),0,0), 0.1)
- 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)
- rarm.Weld.C0 } Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,-0.05-0.2*math.cos(si
- 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)
- 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)
- 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)
- 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)
- end
- else
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.1) 0.4)
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
- end
- end
- if didjump == rum and jumped == false and jumppower < 0 then
- didjump = false
- jumpimpact()
- end
- sine = sine + change
- hum.Health = math.huge
- hum.MaxHealth
- = math.huge
- end)
Add Comment
Please, Sign In to add comment