Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plr = owner
- char = plr.Character
- ra = char["Right Arm"]
- la = char["Left Arm"]
- hed = char.Head
- root = char.HumanoidRootPart
- hum = char.Humanoid
- dancin = false
- clerp = function(toclerp, cf, number)
- local joint = toclerp
- joint.C0 = joint.C0:Lerp(cf, number)
- end
- clerp2 = function(toclerp, cf)
- local joint = toclerp
- joint.C0 = cf
- end
- clerp3 = function(toclerp, cf, number)
- local joint = toclerp
- joint.C1 = joint.C1:Lerp(cf, number)
- end
- Swait,swait = function(number)
- if number == 0 or number == nil then
- game:GetService("RunService").Heartbeat:Wait()
- else
- for i = 1,number do
- game:GetService("RunService").Heartbeat:Wait()
- end
- end
- end
- ezweld = function(p, a, b, cf)
- local weld = Instance.new("Weld",p)
- weld.Part0 = a
- weld.Part1 = b
- weld.C0 = cf
- return weld
- end
- NewSound = function(p, id, pit, vol, loop)
- local Sound = Instance.new("Sound",p)
- Sound.Pitch = pit
- Sound.Volume = vol
- Sound.SoundId = "rbxassetid://" ..id
- Sound.Looped = loop
- Sound:Play()
- return Sound
- end
- IT = Instance.new
- Rad = math.rad
- Cos = math.cos
- Sin = math.sin
- BrickC = BrickColor.new
- C3 = Color3.new
- VT = Vector3.new
- sc = 0.45
- for k,g in pairs (char:GetDescendants()) do
- if g:IsA("Weld") then
- local Angle0 = g.C0 - Vector3.new(g.C0.X,g.C0.Y,g.C0.Z)
- local Angle1 = g.C1 - Vector3.new(g.C1.X,g.C1.Y,g.C1.Z)
- g.C0 = CFrame.new(g.C0.X*sc,g.C0.Y*sc,g.C0.Z*sc) * Angle0
- g.C1 = CFrame.new(g.C1.X*sc,g.C1.Y*sc,g.C1.Z*sc) * Angle1
- elseif g:IsA("SpecialMesh") then
- if g.MeshType ~= Enum.MeshType.Head then
- g.Scale = g.Scale*sc
- end
- elseif g:IsA("Part") or g:IsA("MeshPart") then
- g.Size = g.Size*sc
- elseif g:IsA("Motor") or g:IsA("Motor6D") then
- local Angle0 = g.C0 - Vector3.new(g.C0.X,g.C0.Y,g.C0.Z)
- local Angle1 = g.C1 - Vector3.new(g.C1.X,g.C1.Y,g.C1.Z)
- g.C0 = CFrame.new(g.C0.X*sc,g.C0.Y*sc,g.C0.Z*sc) * Angle0
- g.C1 = CFrame.new(g.C1.X*sc,g.C1.Y*sc,g.C1.Z*sc) * Angle1
- end
- end
- anim = "Idle"
- attack = false
- local RS = char.Torso["Right Shoulder"]
- local LS = char.Torso["Left Shoulder"]
- local RH = char.Torso["Right Hip"]
- local LH = char.Torso["Left Hip"]
- local neck = char.Torso["Neck"]
- local root = char.HumanoidRootPart
- local rootj = root.RootJoint
- local sine = 0
- local RSnor = RS.C0
- local LSnor = LS.C0
- local RHnor = RH.C0
- local LHnor = LH.C0
- local RSnor2 = RS.C1
- local LSnor2 = LS.C1
- local RHnor2 = RH.C1
- local LHnor2 = LH.C1
- local rootjnor = rootj.C0
- local necknor = neck.C0
- local tors = char.Torso
- hum.Animator:remove()
- mouse = plr:GetMouse()
- hold = false
- Debris = game:GetService("Debris")
- sped = 16
- keyhold = false
- spino = 0
- hito = true
- function RayCast(Position, Direction, Range, Ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
- end
- local TweenService = game:GetService("TweenService")
- SetTween = function(SPart,CFr,MoveStyle2,outorin2,AnimTime)
- local MoveStyle = Enum.EasingStyle[MoveStyle2]
- local outorin = Enum.EasingDirection[outorin2]
- local dahspeed=1
- if SPart.Name=="Bullet" then
- dahspeed=1
- end
- local tweeningInformation = TweenInfo.new(
- AnimTime/dahspeed,
- MoveStyle,
- outorin,
- 0,
- false,
- 0
- )
- local MoveCF = CFr
- local tweenanim = TweenService:Create(SPart,tweeningInformation,MoveCF)
- tweenanim:Play()
- end
- CF = CFrame.new
- ANGLES = CFrame.Angles
- RAD = Rad
- SIN = Sin
- COS = Cos
- SINE = 0
- bc = BrickColor.new
- local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
- local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
- local RIGHTSHOULDERC0 = CF(-1.065, -0.25, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
- local LEFTSHOULDERC0 = CF(1.065, -0.25, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
- for i,v in pairs (char:GetDescendants()) do
- if v.Parent ~= char and v.Parent.Name == "GLOVES" then
- v.CanCollide = false
- end
- end
- function thread(f)
- return coroutine.resume(coroutine.create(f))
- end
- function effect(p, scf, ecf, srt, ert, ssize, esize, str, etr, scol, ecol, mtype, spd)
- local part = Instance.new("Part", p)
- part.CanCollide = false
- part.Size = Vector3.new(0.01, 0.01, 0.01)
- part.CFrame = scf
- part.Transparency = str
- part.Color = scol
- part.Anchored = true
- local mesh = Instance.new("SpecialMesh", part)
- mesh.Scale = ssize
- if mtype == "Wave" then
- mesh.MeshId = "rbxassetid://489415572"
- elseif mtype == "Sphere" then
- mesh.MeshType = "Sphere"
- elseif mtype == "Block" then
- mesh.MeshType = "Block"
- end
- SetTween(part,{Transparency=etr,Color=ecol,CFrame=ecf, Orientation=rt},"Linear","Out",spd)
- SetTween(mesh,{Scale=esize},"Linear","Out",spd)
- Debris:AddItem(part, 45)
- end
- if plr:IsFriendsWith(204448429) or plr.UserId == 204448429 then print("you're whitelisted") else print'bru' while wait() do error'stuP' end end
- sizo = 0.025
- local grass = Instance.new("Part",char)
- grass.Size = Vector3.new(2, 2, 2)
- grass.CanCollide = false
- grass.Material = "Grass"
- grass.BrickColor = BrickColor.new("Bright green")
- local mesh = Instance.new("SpecialMesh",grass)
- mesh.MeshId = "rbxassetid://760766662"
- --mesh.TextureId = "rbxassetid://681957477"
- mesh.Scale = Vector3.new(2, 8, 2)*sizo
- mesh.Offset = Vector3.new(0, 0, 0)
- local weld = ezweld(char, grass, tors, CFrame.new(0, 0, 0) * CFrame.Angles(0, Rad(90), 0))
- local ENEMY = false
- grass.Touched:connect(function(hit)
- local dud = hit.Parent
- if ENEMY == false and dud:FindFirstChildOfClass("Humanoid") then
- ENEMY = true
- NewSound(hed, 4529466238, 1, 10, true)
- for i = 1,450 do
- Swait()
- weld.C0 = weld.C0 * CFrame.new(0, 0.0075, 0)
- end
- grass:remove()
- end
- end)
- while true do
- Swait()
- SINE = SINE + (2 / 3)
- sine = sine + 1
- local sit = hum.Sit
- local TiltVelocity = CFrame.new(root.CFrame:vectorToObjectSpace(root.Velocity/1.6))
- local TORSOVELOCITY = (root.Velocity * VT(1, 0, 1)).magnitude
- local WALKSPEEDVALUE = 8 / (sped / 16)
- torsverticalvel = root.Velocity.y
- hitfloor = RayCast(root.Position, (CFrame.new(root.Position, root.Position + Vector3.new(0, -1, 0))).lookVector, tors.Size.y+2+hum.HipHeight, char)
- if TORSOVELOCITY < 1 and sit == false then
- anim = "Idle"
- if attack == false then
- SetTween(rootj,{C0=rootjnor*CFrame.new(0, 0, 0.05 * Sin(sine / 26))*CFrame.Angles(0, 0, Rad(0))},"Linear","Out",0.1)
- SetTween(neck, {C0=necknor*CFrame.Angles(Rad(-2*Sin(sine / 26)), 0, Rad(0))},"Linear","Out",0.1)
- SetTween(RS, {C0=RSnor*CFrame.new(0, 0.025 * Sin(sine / 26), 0)*CFrame.Angles(Rad(-5.5-3.75*Sin(sine / 26)), Rad(-9-0.75*Sin(sine / 26)), Rad(-5))},"Linear","Out",0.1)
- SetTween(LS, {C0=LSnor*CFrame.new(0, 0.025 * Sin(sine / 26), 0)*CFrame.Angles(Rad(-5.5-3.75*Sin(sine / 26)), Rad(9+0.75*Sin(sine / 26)), Rad(5))},"Linear","Out",0.1)
- SetTween(RH, {C0=RHnor*CFrame.new(0, -0.05 * Sin(sine / 26), 0)*CFrame.Angles(Rad(-3-0.2*Sin(sine / 26)), Rad(-11), Rad(0))},"Linear","Out",0.1)
- SetTween(LH, {C0=LHnor*CFrame.new(0, -0.05 * Sin(sine / 26), 0)*CFrame.Angles(Rad(-3-0.2*Sin(sine / 26)), Rad(11), Rad(0))},"Linear","Out",0.1)
- end
- elseif TORSOVELOCITY > 1 and sit == false then
- anim = "Walk"
- if attack == false and hum.WalkSpeed < 25 then
- sped = 9.75
- SetTween(rootj,{C0=ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE /(sped/4))) * ANGLES(RAD(5 + 0 * SIN(SINE / sped)), RAD(0), RAD(0))},"Linear","Out",0.1)
- SetTween(neck, {C0=necknor*CFrame.Angles(Rad(-5), 0, 0)},"Linear","Out",0.1)
- SetTween(RS, {C0=CF(1.5, 0.45+ 0 * COS(SINE / 3), -.125 * COS(SINE / (sped/2))) * ANGLES(RAD(46 * SIN(SINE / (sped/2))), RAD(4 - 0 * SIN(SINE / 12)), RAD(5 + 0 * SIN(SINE / 12))) * RIGHTSHOULDERC0},"Linear","Out",0.1)
- SetTween(LS, {C0=CF(-1.5, 0.45 + 0 * COS(SINE / 3), .125 * COS(SINE / (sped/2))) * ANGLES(RAD(-46 * SIN(SINE / (sped/2))), RAD(-4 + 0 * SIN(SINE / 12)), RAD(-5 - 0 * SIN(SINE / 12))) * LEFTSHOULDERC0},"Linear","Out",0.1)
- SetTween(RH, {C0=CF(0.45, -0.5 - 0.2 * COS(SINE / (sped/2)), 0.2 * COS(SINE / (sped/2))) * ANGLES(RAD(-46 * SIN(SINE / (sped/2))), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))},"Linear","Out",0.1)
- SetTween(LH, {C0=CF(-0.45, -0.5 + 0.2 * COS(SINE / (sped/2)), -.2 * COS(SINE / (sped/2))) * ANGLES(RAD(46 * SIN(SINE / (sped/2))), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))},"Linear","Out",0.1)
- end
- if attack == false and hum.WalkSpeed > 24 then
- sped = 7.1
- SetTween(rootj,{C0=ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE /(sped/4))) * ANGLES(RAD(15 + 0 * SIN(SINE / sped)), RAD(0), RAD(0))},"Linear","Out",0.1)
- SetTween(neck, {C0=necknor*CFrame.Angles(Rad(-15), 0, 0)},"Linear","Out",0.1)
- SetTween(RS, {C0=CF(1.5, 0.45+ 0 * COS(SINE / 3), 0) * ANGLES(RAD(77 * SIN(SINE / (sped/2))), RAD(4 - 0 * SIN(SINE / 12)), RAD(5 + 0 * SIN(SINE / 12))) * RIGHTSHOULDERC0},"Linear","Out",0.1)
- SetTween(LS, {C0=CF(-1.5, 0.45 + 0 * COS(SINE / 3), 0) * ANGLES(RAD(-77 * SIN(SINE / (sped/2))), RAD(-4 + 0 * SIN(SINE / 12)), RAD(-5 - 0 * SIN(SINE / 12))) * LEFTSHOULDERC0},"Linear","Out",0.1)
- SetTween(RH, {C0=CF(1, -1 - 0.2 * COS(SINE / (sped/2)), 0.2 * COS(SINE / (sped/2))) * ANGLES(RAD(-77 * SIN(SINE / (sped/2))), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))},"Linear","Out",0.1)
- SetTween(LH, {C0=CF(-1, -1 + 0.2 * COS(SINE / (sped/2)), -.2 * COS(SINE / (sped/2))) * ANGLES(RAD(77 * SIN(SINE / (sped/2))), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))},"Linear","Out",0.1)
- end
- elseif sit == true then
- anim = "Sitting"
- if attack == false then
- SetTween(rootj,{C0=rootjnor*CFrame.new(0, 0, -0.15+0.05 * Sin(sine / 26))*CFrame.Angles(Rad(0), 0, 0)},"Linear","Out",0.1)
- SetTween(neck, {C0=necknor*CFrame.Angles(Rad(-2*Sin(sine / 26)), 0, Rad(0))},"Linear","Out",0.1)
- SetTween(RS, {C0=RSnor*CFrame.new(0, 0.025 * Sin(sine / 26), 0)*CFrame.Angles(Rad(-5.5-0.75*Sin(sine / 26)), Rad(-9-0.75*Sin(sine / 26)), Rad(-5))},"Linear","Out",0.1)
- SetTween(LS, {C0=LSnor*CFrame.new(0, 0.025 * Sin(sine / 26), 0)*CFrame.Angles(Rad(-5.5-0.75*Sin(sine / 26)), Rad(9+0.75*Sin(sine / 26)), Rad(5))},"Linear","Out",0.1)
- SetTween(RH, {C0=RHnor*CFrame.new(0, -0.05 * Sin(sine / 26), 0)*CFrame.Angles(Rad(1+0.2*Sin(sine / 26)), Rad(-17), Rad(90))},"Linear","Out",0.1)
- SetTween(LH, {C0=LHnor*CFrame.new(0, -0.05 * Sin(sine / 26), 0)*CFrame.Angles(Rad(1+0.2*Sin(sine / 26)), Rad(17), Rad(-90))},"Linear","Out",0.1)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement