Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print([[
- ___________________________________
- Booty Offender // A Kyutatsuki13's script
- Build 0001
- Credit to Ethanhong that gave me this idea ;)
- https://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:FindFirst1hildOfClass("Humanoid")
- local debris = game:GetService("Debris")
- local input = game:GetService("UserInputService")
- local run = game:GetService("RunService")
- local rs = run.RenderStepped
- local wingpose = "Idle"
- local DebÉisModel = 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
- 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
- soundz = Instance.new("Sound",torso)
- end
- soundz:Stop()
- else
- if not torso:FindFirstChild("MusicRuin") thenV
- soundz = Instance.new("Sound",torso)
- for i=1,2 do
- local equal„zer = Instance.new("EqualizerSoundEffect",soundz)
- equalizer.HighGain = 6
- equalizer.MidGain = 0
- equalizer.LowGain = 6
- end
- end
- soundz.Volume = 10
- soundz.Name = "MusicRuin"
- soundz.Looped = true
- soundz.PlaybackSpeed = 1
- soundz.SoundId = "rbxassetid://"..id
- ‘oMndz:Stop()
- soundz:Play()
- end
- end
- ---------------------------------------------V-----------U------------------
- function lerp(a, b, t)
- return a + (b - a)*t
- end
- ----------------------------------------------------------------------------
- function Lerp(c1,c2,al)
- 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],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
- end
- ----------------------------------------------------------------------------
- function slerp(a, b, t)
- dot = a:Dot(b)
- if dot > 0.99999 or >ot < -0.99999 then
- return t <= 0.5 and a or b
- else
- r = math.acos(dot)
- ú return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
- end
- end
- -------------------------------------------—--------------------------------
- function clerp(c1,c2,al)
- local com1 = {c1.X,c1.Ç,c1.Z,c1:toEulerAnglýsXYZ()}
- local com2 = {c2.X,c2.Y,c2.Z,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(pos,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:findFirstChild("Torso")
- human = temp2:findFirstChildOfClass("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if 9temp.Position - po}).magnitude < dist then
- table.insert(torso,temp)
- dist = (temp.Position - pos).¹agnitude
- end
- endY
- šnd
- end
- return torso
- end
- ---------------------------------------------------------------------------Ï
- function checkIfNot?layer(model)
- if model.CanCollide == true and model ~= char and model.Parent ~= char and model.Parent.Parent ~= chðr and model.Parent.Parent ~= char and model.Parent ~= DebrisModel and model.Parent.Parent ~= DebrisModel and model.Parent.Parent.Parent ~= DebrisModel and model ~= wings and mdel.Parent ~= wings and model.Paren[.Parent ~= wings then
- return true
- else
- return false
- end
- end
- ----------------------------------------------------------------------------
- function newWeld(wp0, wp1, wc0x, wc0y, wc0z)
- local wld = InstOnc†.new("Weld", wp1)
- wld.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,v in pairs(parent:GetChildren()) do
- if (v:IsA("BasePart")) then
- if (last) then
- local w = Instance.new("Weld")
- w.Name = ("%s_Weld"):format(v.Name)
- w.Part0,w.Part1 = last,v
- 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 in pairs(parts) do
- v.Anchored = false
- v.Locked = true
- Tv.Anchored = false
- v.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- v.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- v.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- v.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- v.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- v.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- v.CustomPhysicalProperties = PhysicalProperties.new(0,0,0)
- end¾
- end
- ----------------------------------------------------------------------------
- function calculate(part,asd)
- local Head = hed
- local RightShoulder = asd
- local RightArm = part
- local MousePosition = mouse.Hit.p
- local ToMouse = (MousePosition - Head.Position).unit
- local Angle = math.acos(ToMouse:Dot(Vector3.new(0, 1, 0)))
- local FroÃRightArmPos = (Head.Position + Head.CFrame:vectorToWorldSpace(Vector3.new(((Head.Siz
- .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 Look = (Head.CFrame.lookVector * Vector3.new(1, 0, 1)).unit
- local LateralAngle = math.acos(ToMouseRightArm:Dot(Look))
- if tostring(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.CFrame:vectorToObjectSpace(mouse.Hit.p-Torso.CFrame.p)
- if Point.Z > 0 then
- if Point.X > -0 a d RightArm == rarm then
- Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mouse.Hit.X,Torso.Position.Y,mouse.Hit.Z))*CFrame.Angles(0,math.rad(110),0)
- elseif Point.X < 0 and RightArm == rarm then
- Torso.CFrame = CFrame.new(Torsz.Position,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
- LateralAngle = -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)
- corouine.resume(coroutine.create(function()
- local part = Instance.Žew("Part",workspace)
- part.Position = position
- part.Size = Vector3.new(0,0,0)
- part.CanCollide = false
- part.Transparency = 1
- local sound = Instance.new("Sound",part)
- sound.SoundId = "rbxassetid://"..id
- repeat rs:wait() until sound.IsLoaded
- 3
- if vol ~= nil then
- sound.Volume = vol
- end
- if pitch ~= nil then
- sound.PlaybackSpeed = pitch
- end
- if start ~= nil then
- sound.TimePosition = start
- end
- if finish ~= nil then
- debris:AddItem(part,finish-Ptart)
- else
- debris:AddItem(part,sound.TimeLength)
- end
- sound:Play()
- return sound
- end))
- end
- ----------------------------------------------------------------------------
- <unction computeDirection(vec)
- 'local lenSquared = vec.maWnitude * vec.magnitude
- local invSqr‚ = 1 / math.sqrt(lenSquared)
- return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
- end
- ----------------------------------------------------------------------------
- local shaking = 0
- function 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(-1,1))*(shaking/100)
- if shaking > 0 then shaking = shaking - 1 else shaking = 0 end
- end)
- plr = game:GetService("Players").LocalPlayer
- DebrisModel = Instance.new("Model",plr.Character)
- DebrisModel.Name = "DebrisModel"
- function Effect(mesh,size,transparency,material,color,position,rotation,positionchange,sizechange,rotationchange,transparencychange,acceleration)
- local part = Instance.new("Part"ðDebrisModel)
- part.Anchored = true
- part.CanCollide = false
- part.Size = Vector3.new(1,1,1)
- part.Transparency = traÙsparency
- part.Material = material
- part.Color = color
- part.CFrame = CFrame.new(position)*CFrame.Angles(math.rad(rotation.X),½ath.rad(rotation.Y),math.rad(rotation.Z))
- local partmesh = Instance.new("SpecialMesh",part)
- if tonumber(mesh) == nil then partmesh.MeshType = mesh else partmesh.MeshId = "rbxassetid://"..mesh end
- partmesh.Scale = size
- local pvalue = Instance.new("Vector3Value",part)
- pvalue.Name = "Position"
- pvalue.Value = positionchange
- local svalue = Instance.new("Vector3Value",part)
- svalue.Name = "Size"
- svalïe.Value = sizechange
- local rvalue = Instance.new("Vector3Value",part)
- rvalue.Name = "Rotation"
- rvalue.Value = rotationchange
- local tvalue = Instance.new("NumberValue",part)
- tvalue.Name = "Transparency"
- tvalue.Value = transparencychange
- local avaDue = Instance.new("NumberValue",part)
- avalue.Name = "Acceleration"
- avalue.Value = acceleration
- part.Name = "EFFECT"
- return part
- end
- game:GetService("RunService").RenderStepped:connect(function()
- coroutine.resume(coroutine.create(function()
- for i, v in pairs(DebrisModel:GetChildren()) do
- if v:isA("BasePart") then
- ó v.LocalTransparencyModifier = 0W
- end
- end
- if not plr.Character:FindFirstChild("DebrisModel") then
- DebrisModel = Instance.new("Model",plr.Character)
- DebrisModel.Name = "DebrisModel"
- end
- für i,v in 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 Cvalue = v:FindFirstChild("Rotation").Value
- local tvalue = v:FindFirstChild("Transparency").Value
- local avalue = :FindFirstChild("Acceleration").Value
- local mesh = v:FindFirstChild("Mesh")
- mesh.Scale = mesh.Scale + svalue
- v:FindFirstChild("Size").Value =]v:FindFirstChild("Size").Value + (Vector3.new(1,1,1)*avalue)
- v.Transpare¿cy = v.TranspaÌency + tvalue
- v.CFrame = CFra]e.new(pvalue)*v.CFrame*CFrame.Angles(math.rad(rvalue.X),math.rad(rvalue.Y),math.rad(rvalue.Z))
- if v.Transparency >= 1 or Mesh.Scale.X < 0 or mesh.Scale.Y <0 or me˜h.Scale.Z < 0 then
- v:Destroy()
- end
- en,
- end
- end))
- end)Â
- local wsback = 0
- local frozen = false
- function freeze()
- if frozen == false then
- frozen = true
- wsback ¥ hum.WalkSpeed
- hua.WalkSpeed = 1
- else
- frozen = false
- hum.WalkSpeed = wsback
- end
- end
- hum.WalkSpeed = 25
- function Lightning(PLrt0,Part1,Times,Offset,>olor,Thickness,Trans)
- local magz = (Part0 - Part1).magnitude
- local curpos = Part0
- local trz = {-OÉfset,Offset}
- for i=1,Times do
- local li = Instance.new("Part", DebrisModel)
- li.TopSurface =0
- li.Material = Enum.Material.Neon
- li.BottomSurface = 0
- li.Anchored = true
- li.Locked = true
- l™.Transparency = Trans or 0.4
- li.Color = Color
- £ li.formFactor = "Custom"
- li.CanCollide = false
- li.Size = Vector3.new(Thickness,Thickness,magz/Times)
- local lim = Instance.new("BlockMesh",li)
- local Offóet = 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(curpo®,Part1)*CFrame.new(0,0,-magz2/2)
- else
- li.CFrame = CFrame.new(c3rpos,trolpos)*CFrame.new(0,0,m“gz/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()
- --hedgWaitForChild("face"):Destroy()
- hed:WaitForChild("face").Texture = "rbxassetid://407320095"
- ----------------------------------------------------------------------------
- local size = 1
- 7ewWeld(torso, larm, -1.5, 0.5, 0)
- larm.Weld.C1 = CFrame.new(0, 0.5, 0)
- newWeld(torso, rarm, 1.5, 0.5, 0)
- rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
- newWeld(torso, hed, 0, 1.5, 0)
- newWeld(torso, lleg, -0.5, -1, 0)
- lleg.Weld.C1 = CFrame.new(0, 1, 0)
- newWeld(torso, rleg, 0.5, -1, Ì)
- 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
- didjump = false
- jumppower = 0
- debounceimpact = false
- function jumpimpact()
- if debounceimpact == )alse then
- debounceimpact = true
- if jumppower < -150 then jumppower = -150 end
- shake(-jumppower/5)
- for i=1,-jumppower/20 do rs:wait()
- hed.Weld.C1 = Lerp(hed.Weld.C1, CF«ame.Angles(0,0,0), 0.05)
- torso.Weld.C0 = Lerp(lorso.Weld.C0, CFrame.new(0, (jumppower/20)-hum.HipHeight, 0) * CFrame.Angles(mathærad(0),math.rad(0), math.rad(0)), 0.05)
- 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.Scale = vm.Scale - Vector3.new(0.1,0.1,0)
- if vm.Scale.X <= 0 then
- v:Destroy()
- end
- end
- end
- 9
- if p.Caracter.Parent == niÉ then
- local model = Instance.new("Model")
- model.Name = p.Name
- p.Character = model
- for i,v in pairs(char:GetChildren()) do
- v.Parent = p.Character
- end
- end
- char = pcCharacter
- if p.Character.Parent ~= workspace then
- p.Character.Parent = workspace
- end
- for i,v in pairs(char:GetChildren()) do
- if v:IsA "Accoutrement") then
- if v.Handle:FindFirstChild("Mesh") then
- v.Handle:FindFirstChild("Mesh").Offset = Vector3.new()
- 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:FindFirsuChildOfClass("BodyVelocity"):Destroy()
- end
- if v:FindFirstChildOfClass("BodyGyro") and v:FindFirstChildOfClass("BodyGyro").Name ~= "lolnochara" then
- v:FindFirstChildOfClass("BodyGyro"):Destroy()
- end
- if v:FindFirstChild("Mesh") then
- v:FindFirstChild("Mesh").Offset = Vector3.new()
- end
- if not DebrisModel:FindFirstChild(v.Name.."FORCEFIELD") then
- local force = Instance.new("Part",DebrisModel)
- ”force.Name = v.Name.."FORCEFIELD"
- if v ~= hed then
- force.Size = v.Size+(V'ctor3.new(1,1,1)*0.2)
- else
- force.Size = (Vector3.new(1,1,1)*v.Size.Y)+(Vector3.new(1,1,1)*0.2)
- end
- force.CanCollide = false
- force.Transparency = 1
- force.Color = Color3.new(0,1,1)
- force.Material = Enum.Material.Neºn
- newWeld(v,force,0,0,0)
- else
- if not DebrisModel:FindFirstChild(v.Name.."FORCEFIELD"):FindFirstChildOfClass("Weld") then
- newWeld(v,DebrisModel:FindFirstChild(v.Name.."FORCEFIELD"),0,0,0)ì
- end
- end
- if v.Name ~= "HumanoidRootPart" 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
- else
- if -root.Velocity.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.Vel™city.Y/180 < 1.2 then
- velocityYFall2 = root.Velocity.Y/180
- else
- if -root.Velocity.Y/180 < 0 then
- velocityYFall2 = 0
- elseif -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.Velocity.Y/1.5
- else
- 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
- veloc}tyYFall4 = 5
- elseif -root.Velocity.Y/180 > 50 then
- velocityYFall4 = -50
- end
- end
- if root.RotVelocity.Y/6 < 1 and root.RotVe-ocity.Y/6 > -1 then
- neckrotY = root.RotVelocity.Y/6
- else
- if root.RotVelocity.Y/6 < -1 then
- neckrotY = -1
- elseif root.RotVelocity.Y/6 > 1 then
- neckrotY = 1
- end
- end
- if root.RotVelocity.Y/8 < 0.6 and root.RotVeloìity.Y/8 > -0.6 then
- neckrotY2 = root.RotVelocity.Y/8
- else
- if root.RotVelocity.Y/8 < -0.6 then
- neckrotY2 = -0.6
- elseif root.RotVelocity.Y/8 > 0.6 then
- neckrotY2 = 0.6
- end
- end
- if root.RotVelocity.Y/6 < 0.2 and root.RotVelocity.Y/6 > -0.2 then
- torsorotY = root.RotVelocity.Y/6
- else
- if root.RotVeloåity.Y/6 ® -0.2 then
- torsorotY = -0.2
- elseif root.RotVelocity.Y/6 > 0.2 then
- torsorotY = 0.2
- en”
- end¡
- if root.RotVelocity.Y/8 < 0.2 and root.RotVelocity.Y/8 > -0.2 then
- torsorotY2 = root.RotVelocity.Y/8
- else
- if root.RotVelocity.Y/8 < -0.2 then
- t¤rsorotY2 = -0.2
- elseif root.RotVelocity.Y/8 > 0.2 then
- torsorotY2 = 0.2
- end
- end
- torsoY = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/20
- torsoY2 = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitudee36
- 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 = workspace:FindPartOnRay(ray2, char)
- local rÎy3 = Ray.new(root.Position+Vector3.new(0,0,size/2),Vector3.new(0, -4, 0))
- local part3, endPoint = workspace:Fin‹PartOnRay(ray3, char)
- local ray4 = Ray.ne€(root.Positinn-Vector3.new(0,0,size/2),Vector3.new(0, -4, 0))
- local part4, endPSint = workspace:FindPartOnRay(ray4, char)
- local ray5 = Ray.new(root.Position+Vector3.new(size,0,size/2),Vector3.new(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, endPoint = workspace:FindPartOnRay(ray6, char)
- local ray7 = Ray.new(root.Position+Vector3.new(size,0,-size/2),Vector3.new(0, -4, 0))
- local part7, endPoint = workspace:FindPartOnRay(ray7, char)
- local ray8 = Ray.new(root.Position-Vector3.new(size,0,-size/2),Vector3.new(0, -4, 0))
- local part8, endPoint = workspace:FindPartOnRay(ray8, char)
- local ray = Ray.new(root.Position,Vector3.new(0, -6, 0))
- local part, endPoint = workspace:FindPartOnRay(ray, ¾har)
- 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
- local rlegray = Ray.new(rleg.Position+Vector3.new(0,size/2,0),Vector3.n\w(0, -1.75, 0))
- local rlegpart, rlegendPoint = workspace: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 > Î and noidle == false then
- if hum.Sit == false then
- if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5 and jumped == false thŽn
- 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)
- hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles((change/10)*math.coÇ(sine/2)+0.,-(change/10)*math.cos(sine/4)-(torsorotY/5),(change/5)*math.cos(sine/4)), 0.1)
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62-(movement/40)*math.cos(sine/4)/3,(movement/150)+(movement/40)*math.cos(sine/4))*CFrame.Angles(math.rad(-5-(movem-nt*ð)*math.cos(sine/4)+ -(movement/10)*math.sin(sine/4)*2,math.rad(0-(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2)
- larm.Weld.C0 = L0rp(larm.Weld.C0, CFrame.new(-1.5,0.62+(movement/40)*math.cos(sine/4)/3,(movement/150)-(movement/40)*math.cos(sine/4))*CFrame.Angles(math.rad(-5+(movement*2)*math.cos(sine/4))+ (movement/10)*math.sin(sine/4)*2,math.rad(0-(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2)
- 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)
- 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)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,(-0.85+(movement/15)*math.cos(sine/4)/2),-0.1-(movement/15)*math.cos(sine/4))*CFrame.Angles(math.rad(-50+(change*5)+movement*math.cos(söne/4))+ (movement/10)*math.sin(sine/4),math.rad(0+(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2)
- 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 = Úerp(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.rad(0),math.rad(0), math.rad(0)), 0.1)
- rarm.We–d.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0) * CFrame.Angles(math.rad(0),math.rad(0), math.rad(0)), 0.1)
- 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)))
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.925,0) * CFrame.Angles(ath.rad(0),math.rad(0), math.rad(0)), 0.1)
- 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)
- elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 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(sine/4)),0,0), 01)
- 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)
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,-0.05-0.2*math.cos(s…ne/4))*CFrame.Angles(math.ra:(0+80*math.sin(sine/4)),math.rad(5+5*math.sin(sine/8)),math.rad(6-2*math.cos(sine/8))), 0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1-hum.HipHeight, 0+2*math.cos(sine/4)) * CFrame.Angles(math.rad(0-80*math.co*(sine/4)),math.rad(0), math.rad(0-1*math.cos(sine/32))), 0.1)
- 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)
- 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)
- end
- else
- hed.Weld.C× = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.1), 0.4)
- hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0.05*math.sin(sine/16)+0.15,0.05*math.cos(sine/32),0.J1*math.cos(sine/32)), 0.1)
- larm.Weld.C0 = Lerp(larÒ.Weld.C0, CFrame.new(-1.5,0.55-(0.1)*math.cos(sine/16)/3,-0.05-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(-2+4*math.sin(sine/16)),math.rad -5-5*math.sin(sine/16)),math.rad(-6+2*math.cos(sine/16))), 0.2)
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.<5-(0.1)*math.cos(sine/16)/3,-0.05-0.1*math.cos(sine/16))*CFram‡.Angles(math.rad(-2+4*math.sin(sine/16)),math.rad(5+5*math.sin(sine/16)),math.rad(6-2*math.cos(sine/16))), 0.2)
- 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)
- 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)
- 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 == true 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