Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --natsu
- local asin = math.asin
- local atan2 = math.atan2
- local rad = math.rad
- local sin = math.sin
- local abs = math.abs
- local ceil = math.ceil
- local function getAngles(cf)
- local sx,sy,sz,m00,m01,m02,m10,m11,m12,m20,m21,m22 = cf:components()
- return atan2(-m12,m22),asin(m02),atan2(-m01,m00)
- end
- Lerp = {
- Number = function(C1,C2,inc)
- return C1 + (C2 - C1) * inc
- end;
- CFrame = function(a,b,m)
- local c,d={a:components()},{b:components()}
- table.foreach(c,function(a,b)c[a]=c[a]+(d[a]-c[a])*m end)
- return CFrame.new(unpack(c))
- end;
- }
- local function genWeld(a,b)
- local w = Instance.new("Weld",a)
- w.Part0 = a
- w.Part1 = b
- return w
- end
- Weld = function(p0,p1,x,y,z,rx,ry,rz,par)
- local w = Instance.new('Motor',par or p0)
- w.Part0 = p0
- w.Part1 = p1
- w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz)
- return w
- end
- anglespeed = 1
- yeet = 0
- count = 0
- angle = 0
- speed = 1
- local plr=game.Players.LocalPlayer
- local chr=plr.Character
- local torso=chr.Torso
- local flameclr = Color3.new(0,0,0)
- local mouse=plr:GetMouse()
- local running = false
- local Neck = genWeld(chr.Torso,chr.Head)
- Neck.C0 = CFrame.new(0,1,0)
- Neck.C1 = CFrame.new(0,-0.5,0)
- local LeftShoulder = genWeld(chr.Torso,chr['Left Arm'])
- LeftShoulder.C0 = CFrame.new(-1,0.5,0)
- LeftShoulder.C1 = CFrame.new(0.5,0.5,0)
- RightShoulder = genWeld(chr.Torso,chr['Right Arm'])
- RightShoulder.C0 = CFrame.new(1,0.5,0)
- RightShoulder.C1 = CFrame.new(-0.5,0.5,0)
- local LeftHip = genWeld(chr.Torso,chr['Left Leg'])
- LeftHip.C0 = CFrame.new(-1,-1,0)
- LeftHip.C1 = CFrame.new(-0.5,1,0)
- local RightHip = genWeld(chr.Torso,chr['Right Leg'])
- RightHip.C0 = CFrame.new(1,-1,0)
- RightHip.C1 = CFrame.new(0.5,1,0)
- local RootJoint = genWeld(chr.HumanoidRootPart,chr.Torso)
- RootJoint.C0 = CFrame.new(0,0,0) * CFrame.Angles(-math.pi/2,0,math.pi)
- RootJoint.C1 = CFrame.new(0,0,0) * CFrame.Angles(-math.pi/2,0,math.pi)
- local function newLerpTo(weld)
- return {
- Weld = weld; -- The weld that will lerp
- To = weld.C0; -- Where it will lerp to; a CFrame
- Cache = weld.C0; -- Cache of original position; it helps when making anim keyframes
- Speed = 0.1; -- Speed of lerp. 0.1 or 0.2 is best
- }
- end
- LerpTo = {
- Neck = newLerpTo(Neck);
- LeftArm = newLerpTo(LeftShoulder);
- RightArm = newLerpTo(RightShoulder);
- LeftLeg = newLerpTo(LeftHip);
- RightLeg = newLerpTo(RightHip);
- RootJoint = newLerpTo(RootJoint);
- }
- local makeflame = function(part,heat,size)
- flame = Instance.new("Fire",part)
- flame.Heat=heat
- flame.Size=size
- end
- local rf = Instance.new("Part",chr)
- rf.CanCollide = false
- rf.Transparency=1
- rf.FormFactor="Custom"
- rf.Size=Vector3.new(1,1,1)
- rf.Touched:connect(function(hit)
- if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= plr.Name then
- hit.Parent.Humanoid:TakeDamage(10)
- end
- end)
- makeflame(rf,0,5)
- Weld(rf,chr['Right Arm'],0,-.75,0,0,0,0,rf)
- local lf = Instance.new("Part",chr)
- lf.CanCollide = false
- lf.Transparency=1
- lf.FormFactor="Custom"
- lf.Size=Vector3.new(1,1,1)
- lf.Touched:connect(function(hit)
- if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= plr.Name then
- hit.Parent.Humanoid:TakeDamage(10)
- end
- end)
- makeflame(lf,0,5)
- Weld(lf,chr['Left Arm'],0,-.75,0,0,0,0,rf)
- for _, child in pairs(chr:GetChildren()) do
- if child.ClassName == 'CharacterMesh' then
- child:Destroy()
- for _, child in pairs(chr:GetChildren()) do
- if child.ClassName == 'Hat' then
- child:Destroy()
- end
- end
- end
- end
- for i,v in pairs(chr:GetChildren()) do
- if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("Hat") then
- v:Destroy()
- end
- end
- local ab = Instance.new("Decal")
- ab.Parent = chr.Torso
- ab.Texture = "http://www.roblox.com/asset/?id=200264388"
- ---Start Of Shirt---
- local r = Instance.new("Part")
- r.Parent = chr
- r.FormFactor = "Custom"
- r.Size = Vector3.new(0.6, 1.81, 1.01)
- r.BottomSurface = "Smooth"
- r.TopSurface = "Smooth"
- r.BrickColor = BrickColor.new("Black")
- local wr = Instance.new("Weld")
- wr.Parent = r
- wr.Part0 = chr["Torso"]
- wr.Part1 = r
- wr.C0 = CFrame.new(0.8, 0.1, 0) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local r2 = Instance.new("Part")
- r2.Parent = chr
- r2.FormFactor = "Custom"
- r2.Size = Vector3.new(0.6, 1.81, 1.01)
- r2.BottomSurface = "Smooth"
- r2.TopSurface = "Smooth"
- r2.BrickColor = BrickColor.new("Black")
- local wr2 = Instance.new("Weld")
- wr2.Parent = r2
- wr2.Part0 = chr["Torso"]
- wr2.Part1 = r2
- wr2.C0 = CFrame.new(-0.8, 0.1, 0) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local s = Instance.new("Part")
- s.Parent = chr
- s.FormFactor = "Custom"
- s.Size = Vector3.new(0.2, 1.85, 0.55)
- s.BottomSurface = "Smooth"
- s.TopSurface = "Smooth"
- s.BrickColor = BrickColor.new("Bright orange")
- local ws = Instance.new("Weld")
- ws.Parent = s
- ws.Part0 = chr["Torso"]
- ws.Part1 = s
- ws.C0 = CFrame.new(0.4, 0.1, -0.25) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local s2 = Instance.new("Part")
- s2.Parent = chr
- s2.FormFactor = "Custom"
- s2.Size = Vector3.new(0.2, 1.85, 0.55)
- s2.BottomSurface = "Smooth"
- s2.TopSurface = "Smooth"
- s2.BrickColor = BrickColor.new("Bright orange")
- local ws2 = Instance.new("Weld")
- ws2.Parent = s2
- ws2.Part0 = chr["Torso"]
- ws2.Part1 = s2
- ws2.C0 = CFrame.new(-0.4, 0.1, -0.25) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local s3 = Instance.new("Part")
- s3.Parent = chr
- s3.FormFactor = "Custom"
- s3.Size = Vector3.new(0.65, 0.2, 1.05)
- s3.BottomSurface = "Smooth"
- s3.TopSurface = "Smooth"
- s3.BrickColor = BrickColor.new("Bright orange")
- local ws3 = Instance.new("Weld")
- ws3.Parent = s3
- ws3.Part0 = chr["Torso"]
- ws3.Part1 = s3
- ws3.C0 = CFrame.new(0.8, -0.725, 0) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local s4 = Instance.new("Part")
- s4.Parent = chr
- s4.FormFactor = "Custom"
- s4.Size = Vector3.new(0.65, 0.2, 1.05)
- s4.BottomSurface = "Smooth"
- s4.TopSurface = "Smooth"
- s4.BrickColor = BrickColor.new("Bright orange")
- local ws4 = Instance.new("Weld")
- ws4.Parent = s4
- ws4.Part0 = chr["Torso"]
- ws4.Part1 = s4
- ws4.C0 = CFrame.new(-0.8, -0.725, 0) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local rb = Instance.new("Part")
- rb.Parent = chr
- rb.FormFactor = "Custom"
- rb.Size = Vector3.new(1, 1.81, 0.55)
- rb.BottomSurface = "Smooth"
- rb.TopSurface = "Smooth"
- rb.BrickColor = BrickColor.new("Black")
- local wrb = Instance.new("Weld")
- wrb.Parent = rb
- wrb.Part0 = chr["Torso"]
- wrb.Part1 = rb
- wrb.C0 = CFrame.new(0, 0.1, 0.23) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local sb = Instance.new("Part")
- sb.Parent = chr
- sb.FormFactor = "Custom"
- sb.Size = Vector3.new(1, 0.2, 0.55)
- sb.BottomSurface = "Smooth"
- sb.TopSurface = "Smooth"
- sb.BrickColor = BrickColor.new("Bright orange")
- local wsb = Instance.new("Weld")
- wsb.Parent = sb
- wsb.Part0 = chr["Torso"]
- wsb.Part1 = sb
- wsb.C0 = CFrame.new(0, -0.725, 0.25) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local b = Instance.new("Part")
- b.Parent = chr
- b.FormFactor = "Custom"
- b.Size = Vector3.new(2.02, 0.2, 1.05)
- b.BottomSurface = "Smooth"
- b.TopSurface = "Smooth"
- b.BrickColor = BrickColor.new("Brown")
- local wb = Instance.new("Weld")
- wb.Parent = b
- wb.Part0 = chr["Torso"]
- wb.Part1 = b
- wb.C0 = CFrame.new(0, -0.925, 0) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local t = Instance.new("Part")
- t.Transparency = 1
- t.Parent = chr
- t.FormFactor = "Custom"
- t.Size = Vector3.new(0.3, 0.5, 0.5)
- t.BottomSurface = "Smooth"
- t.TopSurface = "Smooth"
- t.BrickColor = BrickColor.new("Brown")
- local wt = Instance.new("Weld")
- wt.Parent = t
- wt.Part0 = chr["Right Arm"]
- wt.Part1 = t
- wt.C0 = CFrame.new(0.4, 0.6, 0) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local td = Instance.new("Decal")
- td.Parent = t
- td.Face = "Right"
- td.Texture = "http://www.roblox.com/asset/?id=200254167"
- ---Start Of Pants---
- local pp = Instance.new("Part")
- pp.Locked = true
- pp.Name = "pp"
- pp.Parent = chr
- pp.FormFactor = "Custom"
- pp.Size = Vector3.new (1.04, 0.2, 1.05)
- pp.BrickColor = BrickColor.new ("Black")
- pp.Material = "Neon"
- pp.TopSurface = "Smooth"
- pp.BottomSurface = "Smooth"
- pp.CanCollide = false
- local ppw = Instance.new("Weld")
- ppw.Parent = chr
- ppw.Part0 = pp.Parent["Right Leg"]
- ppw.Part1 = pp
- ppw.C0 = CFrame.new(0, -0.901, 0) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local pq = Instance.new("Part")
- pq.Locked = true
- pq.Name = "pq"
- pq.Parent = chr
- pq.FormFactor = "Custom"
- pq.Size = Vector3.new (1.04, 0.2, 1.05)
- pq.BrickColor = BrickColor.new ("Black")
- pq.Material = "Neon"
- pq.TopSurface = "Smooth"
- pq.BottomSurface = "Smooth"
- pq.CanCollide = false
- local pqw = Instance.new("Weld")
- pqw.Parent = chr
- pqw.Part0 = pq.Parent["Left Leg"]
- pqw.Part1 = pq
- pqw.C0 = CFrame.new(0, -0.901, 0) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local pr = Instance.new("Part")
- pr.Locked = true
- pr.Name = "pr"
- pr.Parent = chr
- pr.FormFactor = "Custom"
- pr.Size = Vector3.new (1.04, 0.2, 0.23)
- pr.BrickColor = BrickColor.new ("Black")
- pr.Material = "Neon"
- pr.TopSurface = "Smooth"
- pr.BottomSurface = "Smooth"
- pr.CanCollide = false
- local prw = Instance.new("Weld")
- prw.Parent = chr
- prw.Part0 = pr.Parent["Right Leg"]
- prw.Part1 = pr
- prw.C0 = CFrame.new(0, -0.801, -0.23) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local ps = Instance.new("Part")
- ps.Locked = true
- ps.Name = "ps"
- ps.Parent = chr
- ps.FormFactor = "Custom"
- ps.Size = Vector3.new (1.04, 0.2, 0.23)
- ps.BrickColor = BrickColor.new ("Black")
- ps.Material = "Neon"
- ps.TopSurface = "Smooth"
- ps.BottomSurface = "Smooth"
- ps.CanCollide = false
- local psw = Instance.new("Weld")
- psw.Parent = chr
- psw.Part0 = ps.Parent["Left Leg"]
- psw.Part1 = ps
- psw.C0 = CFrame.new(0, -0.801, -0.23) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local pt = Instance.new("Part")
- pt.Locked = true
- pt.Name = "pt"
- pt.Parent = chr
- pt.FormFactor = "Custom"
- pt.Size = Vector3.new (1.04, 0.2, 0.4)
- pt.BrickColor = BrickColor.new ("Black")
- pt.Material = "Neon"
- pt.TopSurface = "Smooth"
- pt.BottomSurface = "Smooth"
- pt.CanCollide = false
- local ptw = Instance.new("Weld")
- ptw.Parent = chr
- ptw.Part0 = pt.Parent["Right Leg"]
- ptw.Part1 = pt
- ptw.C0 = CFrame.new(0, -0.601, -0.32) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local pu = Instance.new("Part")
- pu.Locked = true
- pu.Name = "pu"
- pu.Parent = chr
- pu.FormFactor = "Custom"
- pu.Size = Vector3.new (1.04, 0.2, 0.4)
- pu.BrickColor = BrickColor.new ("Black")
- pu.Material = "Neon"
- pu.TopSurface = "Smooth"
- pu.BottomSurface = "Smooth"
- pu.CanCollide = false
- local puw = Instance.new("Weld")
- puw.Parent = chr
- puw.Part0 = pu.Parent["Left Leg"]
- puw.Part1 = pu
- puw.C0 = CFrame.new(0, -0.601, -0.32) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local sk = Instance.new("Part")
- sk.Parent = chr
- sk.FormFactor = "Custom"
- sk.Size = Vector3.new(1.01, 1.01, 1.01)
- sk.BottomSurface = "Smooth"
- sk.TopSurface = "Smooth"
- sk.BrickColor = BrickColor.new("Black")
- local wsk = Instance.new("Weld")
- wsk.Parent = sk
- wsk.Part0 = chr["Right Leg"]
- wsk.Part1 = sk
- wsk.C0 = CFrame.new(0, 0.5, 0) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local sk2 = Instance.new("Part")
- sk2.Parent = chr
- sk2.FormFactor = "Custom"
- sk2.Size = Vector3.new(1.01, 1.01, 1.01)
- sk2.BottomSurface = "Smooth"
- sk2.TopSurface = "Smooth"
- sk2.BrickColor = BrickColor.new("Black")
- local wsk2 = Instance.new("Weld")
- wsk2.Parent = sk2
- wsk2.Part0 = chr["Left Leg"]
- wsk2.Part1 = sk2
- wsk2.C0 = CFrame.new(0, 0.5, 0) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local sk3 = Instance.new("Part")
- sk3.Parent = chr
- sk3.FormFactor = "Custom"
- sk3.Size = Vector3.new(1.05, 0.2, 1.05)
- sk3.BottomSurface = "Smooth"
- sk3.TopSurface = "Smooth"
- sk3.BrickColor = BrickColor.new("Bright orange")
- local wsk3 = Instance.new("Weld")
- wsk3.Parent = sk3
- wsk3.Part0 = chr["Right Leg"]
- wsk3.Part1 = sk3
- wsk3.C0 = CFrame.new(0, 0.05, 0) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local sk4 = Instance.new("Part")
- sk4.Parent = chr
- sk4.FormFactor = "Custom"
- sk4.Size = Vector3.new(1.05, 0.2, 1.05)
- sk4.BottomSurface = "Smooth"
- sk4.TopSurface = "Smooth"
- sk4.BrickColor = BrickColor.new("Bright orange")
- local wsk4 = Instance.new("Weld")
- wsk4.Parent = sk4
- wsk4.Part0 = chr["Left Leg"]
- wsk4.Part1 = sk4
- wsk4.C0 = CFrame.new(0, 0.05, 0) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local sk5 = Instance.new("Part")
- sk5.Parent = chr
- sk5.FormFactor = "Custom"
- sk5.Size = Vector3.new(0.2, 0.9, 0.55)
- sk5.BottomSurface = "Smooth"
- sk5.TopSurface = "Smooth"
- sk5.BrickColor = BrickColor.new("Bright orange")
- local wsk5 = Instance.new("Weld")
- wsk5.Parent = sk5
- wsk5.Part0 = chr["Right Leg"]
- wsk5.Part1 = sk5
- wsk5.C0 = CFrame.new(-0.43, 0.57, -0.25) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local sk6 = Instance.new("Part")
- sk6.Parent = chr
- sk6.FormFactor = "Custom"
- sk6.Size = Vector3.new(0.2, 0.9, 0.55)
- sk6.BottomSurface = "Smooth"
- sk6.TopSurface = "Smooth"
- sk6.BrickColor = BrickColor.new("Bright orange")
- local wsk6 = Instance.new("Weld")
- wsk6.Parent = sk6
- wsk6.Part0 = chr["Left Leg"]
- wsk6.Part1 = sk6
- wsk6.C0 = CFrame.new(0.43, 0.57, -0.25) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
- ---hair---
- local h = Instance.new("Part")
- h.Parent = chr
- h.FormFactor = "Custom"
- h.Size = Vector3.new(0.3, 0.5, 0.5)
- h.BottomSurface = "Smooth"
- h.TopSurface = "Smooth"
- h.BrickColor = BrickColor.new("Brown")
- local wh = Instance.new("Weld")
- wh.Parent = h
- wh.Part0 = chr["Head"]
- wh.Part1 = h
- wh.C0 = CFrame.new(0, 0.3, 0.2) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local mh = Instance.new("SpecialMesh")
- mh.TextureId = "http://www.roblox.com/asset/?id=41068173"
- mh.MeshId = "http://www.roblox.com/asset/?id=62246019"
- mh.Parent = h
- local anim = true
- local function updateanims()
- if anim==true then
- if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then
- anglespeed = 1/3
- LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(sin(angle)*0.05,0,0)
- LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,0)
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(0),rad(0),rad(25))
- LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,rad(-25))
- LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(0,0,abs(sin(angle))*0.2)
- LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(0,0,-abs(sin(angle))*0.2)
- end
- if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 and running == false then
- anglespeed = 1.5
- LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,0,math.sin(angle)*0.05)
- LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,0)
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(0,0,rad(25))
- LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,rad(-25))
- LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(-sin(angle)*.8,0,0)
- LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(sin(angle)*.8,0,0)
- end
- if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 and running == true then
- anglespeed = 1.5
- LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(rad(45),0,math.sin(angle)*0.05)
- LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(math.pi/5,0,0)
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(-rad(45),0,rad(25))
- LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(-rad(45),0,rad(-25))
- LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(-sin(angle)*.8,0,0)
- LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(sin(angle)*.8,0,0)
- end
- end
- end
- attacking = false
- mouse.Button1Down:connect(function()
- if anim == true and attacking == false then
- anim = false
- attacking = true
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),rad(0),rad(0))
- wait(.5)
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),rad(0),rad(90))
- wait(.5)
- anim = true
- attacking = false
- end
- end)
- roar = function()
- if anim == true and attacking == false then
- anim = false
- attacking = true
- LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(rad(25),0,0)
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(math.pi/-5,0,0)
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(-45),rad(-45),rad(45))
- LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(-45),rad(45),rad(-45))
- LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(rad(-45),rad(0),rad(0))
- LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(rad(-45),rad(0),rad(0))
- wait(.5)
- LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(rad(0),0,0)
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(rad(0),0,0)
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(135),rad(45),rad(-25))
- LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(135),rad(-45),rad(25))
- LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(rad(0),rad(0),rad(0))
- LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(rad(0),rad(0),rad(0))
- wait(.5)
- for i = 1,25 do
- wait()
- part = Instance.new("Part",chr)
- part.CanCollide=false
- part.Transparency=1
- part.FormFactor="Custom"
- part.Size=Vector3.new(2,2,.2)
- part.Anchored = true
- part.Touched:connect(function(hit)
- if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= plr.Name then
- hit.Parent.Humanoid:TakeDamage(50)
- end
- end)
- makeflame(part,0,i)
- part.CFrame = chr.Head.CFrame*CFrame.new(0,0,-i+-i/2)
- game.Debris:AddItem(part,5)
- end
- wait(.5)
- attacking = false
- anim = true
- end
- end
- local blaze = function()
- if attacking == false and anim == true then
- attacking = true
- anim = false
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.new(0,0,10)
- LerpTo.RightArm.To = LerpTo.RightArm.Cache*CFrame.Angles(rad(90),rad(0),rad(-45))
- LerpTo.LeftArm.To = LerpTo.LeftArm.Cache*CFrame.Angles(rad(90),rad(0),rad(45))
- wait(.5)
- shoot = Instance.new("Part",chr)
- shoot.Size=Vector3.new(30,30,30)
- shoot.CanCollide=false
- shoot.Transparency=1
- shoot.CFrame=chr.Torso.CFrame*CFrame.new(0,0,-2.5)
- makeflame(shoot,0,30)
- shoot.Touched:connect(function(hit)
- if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= plr.Name then
- hit.Parent.Humanoid:TakeDamage(50)
- end
- end)
- x=Instance.new("Part",chr)
- x.CanCollide=false
- x.Transparency=1
- x.Position = mouse.Hit.p
- bp = Instance.new("BodyPosition",shoot)
- bp.maxForce = Vector3.new(math.huge,math.huge,math.huge)
- bp.position = x.Position.Unit*80
- wait(.5)
- game.Debris:AddItem(Shoot,.5)
- game.Debris:AddItem(x,.5)
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.new(0,0,0)
- anim = true
- attacking = false
- end
- end
- local spin = function()
- if attacking == false and anim == true then
- anim = false
- attacking = true
- LerpTo.RightArm.To=LerpTo.RightArm.Cache*CFrame.Angles(0,0,rad(90))
- LerpTo.LeftArm.To=LerpTo.LeftArm.Cache*CFrame.Angles(0,0,rad(-90))
- LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,rad(270))
- wait(.1)
- LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,rad(180))
- wait(.1)
- LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,rad(90))
- wait(.1)
- LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,rad(0))
- wait(.1)
- attacking = false
- anim = true
- end
- end
- local spike = function()
- anim = false
- attacking = true
- LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(rad(25),0,0)
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(math.pi/-5,0,0)
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(-45),rad(-45),rad(45))
- LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(-45),rad(45),rad(-45))
- LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(rad(-45),rad(0),rad(0))
- LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(rad(-45),rad(0),rad(0))
- local asd = Instance.new("Part",chr)
- asd.Transparency=1
- asd.Size=Vector3.new(30,30,30)
- asd.Anchored=true
- asd.CanCollide=false
- asd.CFrame=chr.Torso.CFrame
- makeflame(asd,0,30)
- asd.Touched:connect(function(hit)
- if hit.Parent.Name~=plr.Name and hit.Parent:FindFirstChild("Humanoid") then
- hit.Parent:BreakJoints()
- end
- end)
- wait(5)
- asd:Destroy()
- anim = true
- attacking = false
- end
- mouse.KeyDown:connect(function(key)
- if key == "q" then
- roar()
- elseif key == "e" then
- blaze()
- elseif key == "r" then
- spin()
- elseif key == "t" then
- spike()
- elseif key == "0" then
- running = true
- chr.Humanoid.WalkSpeed = 50
- end
- end)
- mouse.KeyUp:connect(function(key)
- if key == "0" then
- running = false
- chr.Humanoid.WalkSpeed=16
- end
- end)
- Spawn(function()
- while wait()do
- angle = (angle % 100) + anglespeed/10 -- no matter whut it has to be in a loop or its on exticy
- for i,v in pairs(chr:GetChildren()) do
- if v:IsA("Part") and v:FindFirstChild("Fire") then
- v.Fire.Color=flameclr
- v.Fire.SecondaryColor=flameclr
- end
- end
- end
- end)
- meo=0
- sdeb=false
- game:service'RunService'.RenderStepped:connect(function()
- meo=meo+1
- for _,v in pairs(LerpTo) do
- v.Weld.C0 = Lerp.CFrame(v.Weld.C0,v.To,v.Speed)end
- updateanims()
- end)
Add Comment
Please, Sign In to add comment