Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[LOL]]--
- --[Zura]--
- wait(1 / 60)
- local Player = game.Players.LocalPlayer
- local Character = Player.Character
- Character.Archivable = true
- Zura = Character:Clone()
- Zura.Parent = Character
- Torso = Zura.Torso
- Head = Zura.Head
- RightLeg = Zura["Right Leg"]
- RightArm = Zura["Right Arm"]
- LeftLeg = Zura["Left Leg"]
- LeftArm = Zura["Left Arm"]
- RootPart = Zura.HumanoidRootPart
- local NoIdle = false
- function newWeld(wp0, wp1, wc0x, wc0y, wc0z)
- wld = Instance.new("Weld", wp1)
- wld.Part0 = wp0
- wld.Part1 = wp1
- wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
- return wld
- end
- newWeld(Torso, LeftArm, -1.5, 0.5, 0)
- LeftArm.Weld.C1 = CFrame.new(0, 0.5, 0)
- newWeld(Torso, RightArm, 1.5, 0.5, 0)
- RightArm.Weld.C1 = CFrame.new(0, 0.5, 0)
- newWeld(Torso, Head, 0, 1.5, 0)
- newWeld(Torso, LeftLeg, -0.5, -1, 0)
- LeftLeg.Weld.C1 = CFrame.new(0, 1, 0)
- newWeld(Torso, RightLeg, 0.5, -1, 0)
- RightLeg.Weld.C1 = CFrame.new(0, 1, 0)
- newWeld(RootPart, Torso, 0, -1, 0)
- Torso.Weld.C1 = CFrame.new(0, -1, 0)
- function Lerp(a,b,t)
- a:lerp(b,t)
- end
- function rayCast(Position, Direction, Range, Ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(Position,
- Direction.unit * (Range or 999.999)), Ignore)
- end
- attack = false
- local sine = 0
- local change = 1
- game.GetService("RunService").Stepped:connect(function()
- wait()
- sine = sine + change
- local trovel = (RootPart.velocity*Vector3.new(1,0,1)).magnitude
- hitfloor,posfloor = rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
- if NotIdle == false then
- if attack == false then
- if trovel and hitfloor ~=nil then
- Anim = "Idle"
- change = 1
- Torso.Weld.C0 = lerp(Torso.Weld.C0, CFrame.new(0, -1 + 0.1 * math.cos(sine/30),0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)),0.15)
- Head.Weld.C0 = lerp(Head.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-15), - math.sine(sine/30)/15, math.rad(0), math.rad(0)),0.15)
- RightArm.BrickColor = BrickColor.new("Really black")
- RightLeg.BrickColor = BrickColor.new("Really black")
- LeftArm.BrickColor = BrickColor.new("Really black")
- LeftLeg.BrickColor = BrickColor.new("Really black")
- Torso.BrickColor = BrickColor.new("Really black")
- Head.BrickColor = BrickColor.new("Really black")
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement