Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Made by noobygames12
- p = game.Players.LocalPlayer
- char = p.Character
- torso = char.Torso
- neck = char.Torso.Neck
- Player=game:GetService("Players").LocalPlayer
- Character=Player.Character
- PlayerGui=Player.PlayerGui
- Backpack=Player.Backpack
- Torso=Character.Torso
- Head=Character.Head
- Humanoid=Character.Humanoid
- LeftArm=Character["Left Arm"]
- LeftLeg=Character["Left Leg"]
- RightArm=Character["Right Arm"]
- RightLeg=Character["Right Leg"]
- cam=game.Workspace.CurrentCamera
- LS=Torso["Left Shoulder"]
- LH=Torso["Left Hip"]
- RS=Torso["Right Shoulder"]
- RH=Torso["Right Hip"]
- Face = Head.face
- Neck=Torso.Neck
- it=Instance.new
- attacktype=1
- vt=Vector3.new
- cf=CFrame.new
- euler=CFrame.fromEulerAnglesXYZ
- angles=CFrame.Angles
- cloaked=false
- necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
- LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
- RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
- RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
- RootPart=Character.HumanoidRootPart
- RootJoint=RootPart.RootJoint
- RootCF=euler(-1.57,0,3.14)
- attack = false
- bounce=false
- cooldown=false
- deeznuts=false
- attackdebounce = false
- deb=false
- equipped=true
- hand=false
- MMouse=nil
- combo=0
- mana=0
- trispeed=.2
- attackmode='none'
- local idle=0
- local Anim="Idle"
- local Effects={}
- local gun=false
- local shoot=false
- player=nil
- mana=0
- cam = workspace.CurrentCamera
- ZTarget = nil
- RocketTarget = nil
- local m = Instance.new("Model",Character)
- m.Name = "WeaponModel"
- mouse=Player:GetMouse()
- --save shoulders
- RSH, LSH=nil, nil
- --welds
- RW, LW=Instance.new("Weld"), Instance.new("Weld")
- RW.Name="Right Shoulder" LW.Name="Left Shoulder"
- LH=Torso["Left Hip"]
- RH=Torso["Right Hip"]
- TorsoColor=Torso.BrickColor
- function NoOutline(Part)
- Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
- end
- player=Player
- ch=Character
- RSH=ch.Torso["Right Shoulder"]
- LSH=ch.Torso["Left Shoulder"]
- --
- RSH.Parent=nil
- LSH.Parent=nil
- --
- RW.Name="Right Shoulder"
- RW.Part0=ch.Torso
- RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
- RW.C1=cf(0, 0.5, 0)
- RW.Part1=ch["Right Arm"]
- RW.Parent=ch.Torso
- --
- LW.Name="Left Shoulder"
- LW.Part0=ch.Torso
- LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
- LW.C1=cf(0, 0.5, 0)
- LW.Part1=ch["Left Arm"]
- LW.Parent=ch.Torso
- function swait(num)
- if num==0 or num==nil then
- game:service'RunService'.Heartbeat:wait(0)
- else
- for i=0,num do
- game:service'RunService'.Heartbeat:wait(0)
- end
- end
- end
- local Player = game.Players.localPlayer
- local Character = Player.Character
- local red = 255
- local green = 255
- local blue = 255
- local Humanoid = Character.Humanoid
- local mouse = Player:GetMouse()
- local m = Instance.new("Model", Character)
- m.Name = "WeaponModel"
- local LeftArm = Character["Left Arm"]
- local RightArm = Character["Right Arm"]
- local LeftLeg = Character["Left Leg"]
- local RightLeg = Character["Right Leg"]
- local Head = Character.Head
- local Torso = Character.Torso
- local cam = game.Workspace.CurrentCamera
- local RootPart = Character.HumanoidRootPart
- local RootJoint = RootPart.RootJoint
- local equipped = false
- local attack = false
- local Anim = "Idle"
- local idle = 0
- local attacktype = 1
- local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
- local velocity = RootPart.Velocity.y
- local sine = 0
- local change = 1
- local grabbed = false
- local cn = CFrame.new
- local mr = math.rad
- local angles = CFrame.Angles
- local ud = UDim2.new
- local c3 = Color3.new
- local lim = 0
- local st = 0
- local necko = cn(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- local attacktype = 1
- local ZTarget, RocketTarget = nil, nil
- local euler = CFrame.fromEulerAnglesXYZ
- function clerp(a,b,t)
- local qa = {QuaternionFromCFrame(a)}
- local qb = {QuaternionFromCFrame(b)}
- local ax, ay, az = a.x, a.y, a.z
- local bx, by, bz = b.x, b.y, b.z
- local _t = 1-t
- return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
- end
- function QuaternionFromCFrame(cf)
- local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
- local trace = m00 + m11 + m22
- if trace > 0 then
- local s = math.sqrt(1 + trace)
- local recip = 0.5/s
- return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
- else
- local i = 0
- if m11 > m00 then
- i = 1
- end
- if m22 > (i == 0 and m00 or m11) then
- i = 2
- end
- if i == 0 then
- local s = math.sqrt(m00-m11-m22+1)
- local recip = 0.5/s
- return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
- elseif i == 1 then
- local s = math.sqrt(m11-m22-m00+1)
- local recip = 0.5/s
- return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
- elseif i == 2 then
- local s = math.sqrt(m22-m00-m11+1)
- local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
- end
- end
- end
- function QuaternionToCFrame(px, py, pz, x, y, z, w)
- local xs, ys, zs = x + x, y + y, z + z
- local wx, wy, wz = w*xs, w*ys, w*zs
- local xx = x*xs
- local xy = x*ys
- local xz = x*zs
- local yy = y*ys
- local yz = y*zs
- local zz = z*zs
- return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
- end
- function QuaternionSlerp(a, b, t)
- local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
- local startInterp, finishInterp;
- if cosTheta >= 0.0001 then
- if (1 - cosTheta) > 0.0001 then
- local theta = math.acos(cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((1-t)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = 1-t
- finishInterp = t
- end
- else
- if (1+cosTheta) > 0.0001 then
- local theta = math.acos(-cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((t-1)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = t-1
- finishInterp = t
- end
- end
- return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
- end
- rayCast = function(Position, Direction, Range, Ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
- end
- local v = game.Players.localPlayer
- local torso = v.Character.Torso
- plr = game.Players.LocalPlayer
- char = game.Players.LocalPlayer.Character
- hum = game.Players.LocalPlayer.Character.Humanoid
- t = game.Players.LocalPlayer.Character.Torso
- h = game.Players.LocalPlayer.Character.Head
- ra = game.Players.LocalPlayer.Character["Right Arm"]
- la = game.Players.LocalPlayer.Character["Left Arm"]
- rl = game.Players.LocalPlayer.Character["Right Leg"]
- ll = game.Players.LocalPlayer.Character["Left Leg"]
- tors = Character.Torso
- lleg = Character["Left Leg"]
- root = Character.HumanoidRootPart
- hed = Character.Head
- rleg = Character["Right Leg"]
- rarm = Character["Right Arm"]
- larm = Character["Left Arm"]
- bsize1 = NumberSequenceKeypoint.new(3,3,3)
- bsize2 = NumberSequenceKeypoint.new(10,10,10)
- local Effects = {}
- attack = false
- local attacking = false
- vt = Vector3.new
- bc = BrickColor.new
- br = BrickColor.random
- it = Instance.new
- cf = CFrame.new
- euler = CFrame.fromEulerAnglesXYZ
- angles = CFrame.Angles
- matr = math.random
- local colororg = BrickColor.new("Dark indigo") -- set color u like
- local meshtype = "Sphere" -- only for specialmesh
- mouse = plr:GetMouse()
- Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
- if hit.Parent==nil then
- return
- end
- h=hit.Parent:FindFirstChild("Humanoid")
- for _,v in pairs(hit.Parent:children()) do
- if v:IsA("Humanoid") then
- h=v
- end
- end
- if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
- h=hit.Parent.Parent:FindFirstChild("Humanoid")
- end
- if hit.Parent.className=="Hat" then
- hit=hit.Parent.Parent:findFirstChild("Head")
- end
- if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
- if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
- --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
- return
- end]]
- -- hs(hit,1.2)
- c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=game:service("Players").LocalPlayer
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- Damage=math.random(minim,maxim)
- -- h:TakeDamage(Damage)
- blocked=false
- block=hit.Parent:findFirstChild("Block")
- if block~=nil then
- print(block.className)
- if block.className=="NumberValue" then
- if block.Value>0 then
- blocked=true
- if decreaseblock==nil then
- block.Value=block.Value-1
- end
- end
- end
- if block.className=="IntValue" then
- if block.Value>0 then
- blocked=true
- if decreaseblock~=nil then
- block.Value=block.Value-1
- end
- end
- end
- end
- if blocked==false then
- -- h:TakeDamage(Damage)
- h.Health=h.Health-Damage
- showDamage(hit.Parent,Damage,3,TorsoColor)
- else
- h.Health=h.Health-(Damage/2)
- showDamage(hit.Parent,Damage/2,3,BrickColor.new("Bright blue"))
- end
- if Type=="Knockdown" then
- hum=hit.Parent.Humanoid
- hum.PlatformStand=true
- coroutine.resume(coroutine.create(function(HHumanoid)
- swait(1)
- HHumanoid.PlatformStand=false
- end),hum)
- local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
- --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
- local bodvol=Instance.new("BodyVelocity")
- bodvol.velocity=angle*knockback
- bodvol.P=5000
- bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
- bodvol.Parent=hit
- rl=Instance.new("BodyAngularVelocity")
- rl.P=3000
- rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
- rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
- rl.Parent=hit
- game:GetService("Debris"):AddItem(bodvol,.5)
- game:GetService("Debris"):AddItem(rl,.5)
- elseif Type=="Normal" then
- vp=Instance.new("BodyVelocity")
- vp.P=500
- vp.maxForce=Vector3.new(math.huge,0,math.huge)
- -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
- if KnockbackType==1 then
- vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
- elseif KnockbackType==2 then
- vp.velocity=Property.CFrame.lookVector*knockback
- end
- if knockback>0 then
- vp.Parent=hit.Parent.Torso
- end
- game:GetService("Debris"):AddItem(vp,.5)
- elseif Type=="Up" then
- local bodyVelocity=Instance.new("BodyVelocity")
- bodyVelocity.velocity=vt(0,10,0)
- bodyVelocity.P=1000
- bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009)
- bodyVelocity.Parent=hit
- game:GetService("Debris"):AddItem(bodyVelocity,1)
- rl=Instance.new("BodyAngularVelocity")
- rl.P=3000
- rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
- rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
- rl.Parent=hit
- game:GetService("Debris"):AddItem(rl,.5)
- elseif Type=="Snare" then
- bp=Instance.new("BodyPosition")
- bp.P=2000
- bp.D=100
- bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- bp.position=hit.Parent.Torso.Position
- bp.Parent=hit.Parent.Torso
- game:GetService("Debris"):AddItem(bp,1)
- elseif Type=="Target" then
- if Targetting==false then
- ZTarget=hit.Parent.Torso
- coroutine.resume(coroutine.create(function(Part)
- swait(5)
- end),ZTarget)
- TargHum=ZTarget.Parent:findFirstChild("Humanoid")
- targetgui=Instance.new("BillboardGui")
- targetgui.Parent=ZTarget
- targetgui.Size=UDim2.new(10,100,10,100)
- targ=Instance.new("ImageLabel")
- targ.Parent=targetgui
- targ.BackgroundTransparency=1
- targ.Image="rbxassetid://4834067"
- targ.Size=UDim2.new(1,0,1,0)
- cam.CameraType="Scriptable"
- cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
- dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
- workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
- Targetting=true
- RocketTarget=ZTarget
- for i=1,Property do
- --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
- if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
- swait()
- end
- --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
- cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
- dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
- cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
- end
- Targetting=false
- RocketTarget=nil
- targetgui.Parent=nil
- cam.CameraType="Custom"
- end
- end
- debounce=Instance.new("BoolValue")
- debounce.Name="DebounceHit"
- debounce.Parent=hit.Parent
- debounce.Value=true
- game:GetService("Debris"):AddItem(debounce,Delay)
- c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=Player
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- CRIT=false
- hitDeb=true
- AttackPos=6
- end
- end
- showDamage=function(Char,Dealt,du,Color)
- m=Instance.new("Model")
- m.Name=""
- h=Instance.new("Humanoid")
- h.Health=0
- h.MaxHealth=0
- h.Parent=m
- c=Instance.new("Part")
- c.Transparency=0
- c.Material = "Neon"
- c.BrickColor=bc("Bright red")
- c.Name="Head"
- c.TopSurface=0
- c.BottomSurface=0
- CV="Hot pink"
- local txt = Instance.new("BillboardGui", c)
- txt.Adornee = c
- txt.Name = "_status"
- txt.Size = UDim2.new(2, 0, 1.2, 0)
- txt.StudsOffset = Vector3.new(-9, 8, 0)
- local text = Instance.new("TextLabel", txt)
- text.Size = UDim2.new(10, 0, 7, 0)
- text.FontSize = "Size24"
- text.TextScaled = true
- text.TextTransparency = 0
- text.BackgroundTransparency = 1
- text.TextTransparency = 0
- text.TextStrokeTransparency = 0
- if Dealt < 12 then
- text.Font = "Highway"
- elseif Dealt < 20 then
- text.Font = "SourceSansBold"
- elseif Dealt >= 20 then
- text.Font = "Fantasy"
- end
- text.TextStrokeColor3 = BrickColor.new("Really black").Color
- local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
- v=Instance.new("Part")
- v.Name = "ColorBrick"
- v.Parent=c
- v.FormFactor="Symmetric"
- v.Anchored=true
- v.CanCollide=false
- v.BottomSurface="Smooth"
- v.TopSurface="Smooth"
- v.Size=Vector3.new(10,5,3)
- v.Transparency=1
- v.CFrame=c.CFrame
- v.BrickColor=BrickColor.new(CV)
- v.Transparency=1
- if Dealt < 12 then
- text.TextColor3 = BrickColor.new("White").Color
- elseif Dealt < 20 then
- text.TextColor3 = BrickColor.new("Bright yellow").Color
- elseif Dealt >= 20 then
- text.TextColor3 = BrickColor.new("Really red").Color
- end
- v.Shape="Block"
- text.Text = tostring(Dealt).. "!"
- local dam = Instance.new("Sound",c)
- local rndm=math.random(1,#hitsounds)
- local r=rndm
- dam.SoundId = "http://www.roblox.com/asset/?id="..hitsounds[r]
- dam.Volume = 1.25
- dam.Pitch = 1
- dam:Play()
- c.formFactor="Plate"
- c.Transparency = 1
- c.Size=Vector3.new(1,.4,1)
- ms=Instance.new("CylinderMesh")
- ms.Scale=Vector3.new(.8,.8,.8)
- if CRIT==true then
- ms.Scale=Vector3.new(1,1.25,1)
- end
- ms.Parent=c
- c.Reflectance=0
- Instance.new("BodyGyro").Parent=c
- c.Parent=m
- if Char:findFirstChild("Head")~=nil then
- c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
- elseif Char.Parent:findFirstChild("Head")~=nil then
- c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
- end
- f=Instance.new("BodyPosition")
- f.P=2000
- f.D=100
- f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- f.position=c.Position+Vector3.new(0,3,0)
- f.Parent=c
- game:GetService("Debris"):AddItem(m,.5+du)
- c.CanCollide=false
- m.Parent=workspace
- c.CanCollide=false
- wait(1)
- for l = 0, 9 do
- text.TextTransparency = text.TextTransparency + 0.1
- text.TextStrokeTransparency = text.TextStrokeTransparency + 0.1
- wait()
- end
- end
- gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
- local gui = it(GuiType)
- gui.Parent = parent
- gui.Text = text
- gui.BackgroundTransparency = backtrans
- gui.BackgroundColor3 = backcol
- gui.SizeConstraint = "RelativeXY"
- gui.TextXAlignment = "Center"
- gui.TextYAlignment = "Center"
- gui.Position = pos
- gui.Size = size
- gui.Font = "SourceSans"
- gui.FontSize = "Size14"
- gui.TextWrapped = false
- gui.TextStrokeTransparency = 0
- gui.TextColor = BrickColor.new("White")
- return gui
- end
- local mana = 249
- ---- GUI set
- local basgui = it("GuiMain")
- basgui.Parent = Player.PlayerGui
- basgui.Name = "CooldownsGUI"
- local basframe = it("Frame")
- basframe.Parent = basgui
- basframe.BackgroundColor3 = Color3.new(255, 255, 255)
- basframe.BackgroundTransparency = 1
- basframe.BorderColor3 = Color3.new(17, 17, 17)
- basframe.Size = UDim2.new(0.2, 0, 0.2, 0)
- basframe.Position = UDim2.new(0.8, 0, 0.8, 0)
- local basicgui = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Bright orange").Color, UDim2.new(-0.15, 0, -0.175, 0), UDim2.new(0.45, 0, 0.35, 0))
- basicgui.ZIndex = 2
- basicgui.Font = "Highway"
- basicgui.BackgroundTransparency = 0.5
- basicgui.BorderSizePixel = 0.65
- basicgui.TextScaled = true
- basicgui.Text = "(Z)\nHotshot"
- basicgui.TextSize = 24
- local basicgui2 = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Bright orange").Color, UDim2.new(0.35, 0, -0.175, 0), UDim2.new(0.45, 0, 0.35, 0))
- basicgui2.ZIndex = 2
- basicgui2.Font = "Highway"
- basicgui2.BackgroundTransparency = 0.5
- basicgui2.BorderSizePixel = 0.65
- basicgui2.TextScaled = true
- basicgui2.Text = "(X)\nBlazing Dash"
- basicgui2.TextSize = 24
- local basicgui3 = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Bright orange").Color, UDim2.new(-0.15, 0, 0.225, 0), UDim2.new(0.45, 0, 0.35, 0))
- basicgui3.ZIndex = 2
- basicgui3.Font = "Highway"
- basicgui3.BackgroundTransparency = 0.5
- basicgui3.BorderSizePixel = 0.65
- basicgui3.TextScaled = true
- basicgui3.Text = "(C)\nBlazing Boomrang"
- basicgui3.TextSize = 24
- local basicgui4 = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Bright orange").Color, UDim2.new(0.35, 0, 0.225, 0), UDim2.new(0.45, 0, 0.35, 0))
- basicgui4.ZIndex = 2
- basicgui4.Font = "Highway"
- basicgui4.BackgroundTransparency = 0.5
- basicgui4.BorderSizePixel = 0.65
- basicgui4.TextScaled = true
- basicgui4.Text = "(V)\nDying Star"
- basicgui4.TextSize = 24
- local healthg = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Really black").Color, UDim2.new(-0.15, 0, 0.675, 0), UDim2.new(0.95, 0, 0.15, 0))
- healthg.ZIndex = 2
- healthg.Font = "Highway"
- healthg.BackgroundTransparency = 0.5
- healthg.BorderSizePixel = 0.65
- healthg.TextScaled = true
- healthg.Text = "health"
- healthg.TextSize = 24
- local manag = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Bright blue").Color, UDim2.new(-0.15, 0, -0.35, 0), UDim2.new(0.95, 0, 0.15, 0))
- manag.ZIndex = 2
- manag.Font = "Highway"
- manag.BackgroundTransparency = 0.5
- manag.BorderSizePixel = 0.65
- manag.TextScaled = true
- manag.Text = "health"
- manag.TextSize = 24
- ---------------- Weapon model
- local handle = Instance.new("Part")
- handle.Parent = Character
- handle.Size = Vector3.new(1,1,1)
- handle.Archivable = true
- handle.Transparency = 0.99
- handle.BrickColor = BrickColor.new("White")
- handle.Material = "Neon"
- local handlmesh = Instance.new("BlockMesh",handle)
- handlmesh.Scale = Vector3.new(1,1,1)
- local handleweld = Instance.new("Weld")
- handleweld.Parent = handle
- handleweld.Part0 = torso
- handleweld.Part1 = handle
- handleweld.C1 = CFrame.new(0, 2.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
- local par = Instance.new("Part")
- par.Parent = Character
- par.Size = Vector3.new(0.2,0.2,0.2)
- par.Archivable = true
- par.Transparency = 0
- par.BrickColor = BrickColor.new("Really black")
- par.Material = "Metal"
- local parmesh = Instance.new("SpecialMesh",par)
- parmesh.MeshType = "FileMesh"
- parmesh.MeshId = "http://www.roblox.com/asset?id=156292343"
- parmesh.Scale = Vector3.new(5,5,5)
- local weld12 = Instance.new("Weld")
- weld12.Parent = par
- weld12.Part0 = handle
- weld12.Part1 = par
- weld12.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
- local par2 = Instance.new("Part")
- par2.Parent = Character
- par2.Size = Vector3.new(0.2,0.2,0.2)
- par2.Archivable = true
- par2.Transparency = 0
- par2.BrickColor = BrickColor.new("Really black")
- par2.Material = "Metal"
- local parmesh2 = Instance.new("SpecialMesh",par2)
- parmesh2.MeshType = "FileMesh"
- parmesh2.MeshId = "http://www.roblox.com/asset?id=156292343"
- parmesh2.Scale = Vector3.new(5.25,5.25,4.75)
- parmesh2.VertexColor = Vector3.new(1,0.5,0)
- parmesh2.TextureId = "rbxassetid://269748808"
- local weld13 = Instance.new("Weld")
- weld13.Parent = par2
- weld13.Part0 = handle
- weld13.Part1 = par2
- weld13.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
- local par3 = Instance.new("Part")
- par3.Parent = Character
- par3.Size = Vector3.new(0.2,0.2,0.2)
- par3.Archivable = true
- par3.Transparency = 0
- par3.BrickColor = BrickColor.new("Really black")
- par3.Material = "Metal"
- local parmesh3 = Instance.new("SpecialMesh",par3)
- parmesh3.MeshType = "FileMesh"
- parmesh3.MeshId = "http://www.roblox.com/asset?id=156292343"
- parmesh3.Scale = Vector3.new(5.65,5.65,4.25)
- parmesh3.VertexColor = Vector3.new(1,0.75,0.25)
- parmesh3.TextureId = "rbxassetid://269748808"
- local weld14 = Instance.new("Weld")
- weld14.Parent = par3
- weld14.Part0 = handle
- weld14.Part1 = par3
- weld14.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
- local par4 = Instance.new("Part")
- par4.Parent = Character
- par4.Size = Vector3.new(0.2,0.2,0.2)
- par4.Archivable = true
- par4.Transparency = 0
- par4.BrickColor = BrickColor.new("Really black")
- par4.Material = "Metal"
- local parmesh4 = Instance.new("SpecialMesh",par4)
- parmesh4.MeshType = "FileMesh"
- parmesh4.MeshId = "http://www.roblox.com/asset/?id=3270017"
- parmesh4.Scale = Vector3.new(4.5,4.5,1.25)
- parmesh4.VertexColor = Vector3.new(1,0.75,0)
- parmesh4.TextureId = "rbxassetid://269748808"
- local weld15 = Instance.new("Weld")
- weld15.Parent = par4
- weld15.Part0 = handle
- weld15.Part1 = par4
- weld15.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
- local par4a = Instance.new("Part")
- par4a.Parent = Character
- par4a.Size = Vector3.new(0.2,0.2,0.2)
- par4a.Archivable = true
- par4a.Transparency = 0
- par4a.BrickColor = BrickColor.new("Really black")
- par4a.Material = "Metal"
- local parmesh4a = Instance.new("SpecialMesh",par4a)
- parmesh4a.MeshType = "FileMesh"
- parmesh4a.MeshId = "http://www.roblox.com/asset/?id=3270017"
- parmesh4a.Scale = Vector3.new(1.25,7.5,1)
- parmesh4a.VertexColor = Vector3.new(1,0.5,0)
- parmesh4a.TextureId = "rbxassetid://269748808"
- local weld15a = Instance.new("Weld")
- weld15a.Parent = par4a
- weld15a.Part0 = par4
- weld15a.Part1 = par4a
- weld15a.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
- local par4b = Instance.new("Part")
- par4b.Parent = Character
- par4b.Size = Vector3.new(0.2,0.2,0.2)
- par4b.Archivable = true
- par4b.Transparency = 0
- par4b.BrickColor = BrickColor.new("Really black")
- par4b.Material = "Metal"
- local parmesh4b = Instance.new("SpecialMesh",par4b)
- parmesh4b.MeshType = "FileMesh"
- parmesh4b.MeshId = "http://www.roblox.com/asset/?id=3270017"
- parmesh4b.Scale = Vector3.new(7.5,1.25,1)
- parmesh4b.VertexColor = Vector3.new(1,0.5,0)
- parmesh4b.TextureId = "rbxassetid://269748808"
- local weld15b = Instance.new("Weld")
- weld15b.Parent = par4b
- weld15b.Part0 = par4
- weld15b.Part1 = par4b
- weld15b.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
- local par5 = Instance.new("Part")
- par5.Parent = Character
- par5.Size = Vector3.new(0.2,0.2,0.2)
- par5.Archivable = true
- par5.Transparency = 0
- par5.BrickColor = BrickColor.new("Really black")
- par5.Material = "Metal"
- local parmesh5 = Instance.new("SpecialMesh",par5)
- parmesh5.MeshType = "FileMesh"
- parmesh5.MeshId = "http://www.roblox.com/asset/?id=3270017"
- parmesh5.Scale = Vector3.new(1,1,0.75)
- parmesh5.VertexColor = Vector3.new(1,0.75,0)
- parmesh5.TextureId = "rbxassetid://269748808"
- local weld16 = Instance.new("Weld")
- weld16.Parent = par5
- weld16.Part0 = handle
- weld16.Part1 = par5
- weld16.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
- local par5a = Instance.new("Part")
- par5a.Parent = Character
- par5a.Size = Vector3.new(0.2,0.2,0.2)
- par5a.Archivable = true
- par5a.Transparency = 0
- par5a.BrickColor = BrickColor.new("Really black")
- par5a.Material = "Metal"
- local parmesh5a = Instance.new("SpecialMesh",par5a)
- parmesh5a.MeshType = "FileMesh"
- parmesh5a.MeshId = "http://www.roblox.com/asset/?id=3270017"
- parmesh5a.Scale = Vector3.new(3,0.75,0.5)
- parmesh5a.VertexColor = Vector3.new(1,0.5,0)
- parmesh5a.TextureId = "rbxassetid://269748808"
- local weld16a = Instance.new("Weld")
- weld16a.Parent = par5a
- weld16a.Part0 = par5
- weld16a.Part1 = par5a
- weld16a.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
- local par5b = Instance.new("Part")
- par5b.Parent = Character
- par5b.Size = Vector3.new(0.2,0.2,0.2)
- par5b.Archivable = true
- par5b.Transparency = 0
- par5b.BrickColor = BrickColor.new("Really black")
- par5b.Material = "Metal"
- local parmesh5b = Instance.new("SpecialMesh",par5b)
- parmesh5b.MeshType = "FileMesh"
- parmesh5b.MeshId = "http://www.roblox.com/asset/?id=3270017"
- parmesh5b.Scale = Vector3.new(0.75,3,0.5)
- parmesh5b.VertexColor = Vector3.new(1,0.5,0)
- parmesh5b.TextureId = "rbxassetid://269748808"
- local weld16b = Instance.new("Weld")
- weld16b.Parent = par5b
- weld16b.Part0 = par5
- weld16b.Part1 = par5b
- weld16b.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
- local par6 = Instance.new("Part")
- par6.Parent = Character
- par6.Size = Vector3.new(0.2,0.2,0.2)
- par6.Archivable = true
- par6.Transparency = 0
- par6.BrickColor = BrickColor.new("Really black")
- par6.Material = "Metal"
- local parmesh6 = Instance.new("SpecialMesh",par6)
- parmesh6.MeshType = "FileMesh"
- parmesh6.MeshId = "http://www.roblox.com/asset/?id=9756362"
- parmesh6.Scale = Vector3.new(1.65,1.65,0.115)
- parmesh6.VertexColor = Vector3.new(1,0.35,0)
- parmesh6.TextureId = "rbxassetid://269748808"
- local weld17 = Instance.new("Weld")
- weld17.Parent = par6
- weld17.Part0 = handle
- weld17.Part1 = par6
- weld17.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
- local par6a = Instance.new("Part")
- par6a.Parent = Character
- par6a.Size = Vector3.new(0.2,0.2,0.2)
- par6a.Archivable = true
- par6a.Transparency = 0
- par6a.BrickColor = BrickColor.new("Really black")
- par6a.Material = "Metal"
- local parmesh6a = Instance.new("SpecialMesh",par6a)
- parmesh6a.MeshType = "FileMesh"
- parmesh6a.MeshId = "http://www.roblox.com/asset/?id=9756362"
- parmesh6a.Scale = Vector3.new(7.5,0.95,0.115)
- parmesh6a.VertexColor = Vector3.new(1,0.35,0)
- parmesh6a.TextureId = "rbxassetid://269748808"
- local weld17a = Instance.new("Weld")
- weld17a.Parent = par6a
- weld17a.Part0 = par6
- weld17a.Part1 = par6a
- weld17a.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(45))
- local par6b = Instance.new("Part")
- par6b.Parent = Character
- par6b.Size = Vector3.new(0.2,0.2,0.2)
- par6b.Archivable = true
- par6b.Transparency = 0
- par6b.BrickColor = BrickColor.new("Really black")
- par6b.Material = "Metal"
- local parmesh6b = Instance.new("SpecialMesh",par6b)
- parmesh6b.MeshType = "FileMesh"
- parmesh6b.MeshId = "http://www.roblox.com/asset/?id=9756362"
- parmesh6b.Scale = Vector3.new(7.5,0.95,0.115)
- parmesh6b.VertexColor = Vector3.new(1,0.35,0)
- parmesh6b.TextureId = "rbxassetid://269748808"
- local weld17b = Instance.new("Weld")
- weld17b.Parent = par6b
- weld17b.Part0 = par6
- weld17b.Part1 = par6b
- weld17b.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-45))
- local par7 = Instance.new("Part")
- par7.Parent = Character
- par7.Size = Vector3.new(0.2,0.2,0.2)
- par7.Archivable = true
- par7.Transparency = 0
- par7.BrickColor = BrickColor.new("Really black")
- par7.Material = "Metal"
- local parmesh7 = Instance.new("SpecialMesh",par7)
- parmesh7.MeshType = "FileMesh"
- parmesh7.MeshId = "http://www.roblox.com/asset/?id=3270017"
- parmesh7.Scale = Vector3.new(4.375,4.375,2.15)
- local weld18 = Instance.new("Weld")
- weld18.Parent = par7
- weld18.Part0 = handle
- weld18.Part1 = par7
- weld18.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
- local par8 = Instance.new("Part")
- par8.Parent = Character
- par8.Size = Vector3.new(0.2,0.2,0.2)
- par8.Archivable = true
- par8.Transparency = 0
- par8.BrickColor = BrickColor.new("Really black")
- par8.Material = "Metal"
- local parmesh8 = Instance.new("SpecialMesh",par8)
- parmesh8.MeshType = "FileMesh"
- parmesh8.MeshId = "http://www.roblox.com/asset/?id=3270017"
- parmesh8.Scale = Vector3.new(4.365,4.365,2.165)
- parmesh8.VertexColor = Vector3.new(1,0.25,0)
- parmesh8.TextureId = "rbxassetid://269748808"
- local weld19 = Instance.new("Weld")
- weld19.Parent = par8
- weld19.Part0 = handle
- weld19.Part1 = par8
- weld19.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
- ----- lol
- handle.CanCollide = false
- par.CanCollide = false
- par2.CanCollide = false
- par3.CanCollide = false
- par4.CanCollide = false
- par4a.CanCollide = false
- par4b.CanCollide = false
- par5.CanCollide = false
- par5a.CanCollide = false
- par5b.CanCollide = false
- par6.CanCollide = false
- par6a.CanCollide = false
- par6b.CanCollide = false
- par7.CanCollide = false
- par8.CanCollide = false
- ----
- function attackone()
- attack = true
- handleweld.Part0 = rarm
- for i = 0,2,0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50 - 2.5 * math.cos(sine / 32))), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3)
- handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 2.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
- weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
- weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- end
- local slas = Instance.new("Sound",handle)
- slas.SoundId = "rbxassetid://199145095"
- slas.Volume = 1.75
- slas.Pitch = 1
- slas:Play()
- local hit = handle.Touched:connect(function(hit)
- Damagefunc(hit,5,6,5,"Normal",root,.2,1)
- end)
- for i = 0,1,0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3)
- handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
- weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
- weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- end
- attack = false
- hit:disconnect()
- wait(3)
- slas:Destroy()
- end
- function attacktwo()
- attack = true
- handleweld.Part0 = rarm
- for i = 0,2,0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(90), math.rad(50 - 2.5 * math.cos(sine / 32))), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3)
- handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 2.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
- weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
- weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- end
- local slas = Instance.new("Sound",handle)
- slas.SoundId = "rbxassetid://199145095"
- slas.Volume = 1.75
- slas.Pitch = 0.9
- slas:Play()
- local hit = handle.Touched:connect(function(hit)
- Damagefunc(hit,5,6,5,"Normal",root,.2,1)
- end)
- for i = 0,1,0.5 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3)
- handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 10, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
- weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
- weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- end
- for i = 0,1,0.5 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3)
- handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 15, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.25)
- weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
- weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- end
- for i = 0,1,0.5 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3)
- handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 20, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.25)
- weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
- weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- end
- for i = 0,3,0.5 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3)
- handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 25, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.25)
- weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
- weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- end
- attack = false
- hit:disconnect()
- wait(3)
- slas:Destroy()
- end
- function attackthree()
- attack = true
- handleweld.Part0 = rarm
- for i = 0,2,0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, -0.25) * angles(math.rad(90), math.rad(0), math.rad(-50 - 2.5 * math.cos(sine / 32))), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3)
- handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, 3.25) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1)
- weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
- weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- end
- local hit = handle.Touched:connect(function(hit)
- Damagefunc(hit,5,6,5,"Normal",root,.2,1)
- end)
- local slas = Instance.new("Sound",handle)
- slas.SoundId = "rbxassetid://199145095"
- slas.Volume = 1.75
- slas.Pitch = 0.95
- slas:Play()
- for i = 0,2,0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(75)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-75)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, -0.25) * angles(math.rad(90), math.rad(0), math.rad(75 - 2.5 * math.cos(sine / 32))), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3)
- handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, 7.5) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.3)
- weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
- weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- end
- slas:Destroy()
- attack = false
- hit:disconnect()
- end
- function attackfour()
- attack = true
- handleweld.Part0 = rarm
- local tra = Instance.new("ParticleEmitter",handle)
- tra.Texture = "rbxassetid://296874871"
- tra.LightEmission = 0.95
- tra.Color = ColorSequence.new(Color3.new(1,0.5,0))
- tra.Rate = 1000
- tra.Lifetime = NumberRange.new(0.25)
- tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10,0),NumberSequenceKeypoint.new(1,0,0)})
- tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0.85,0)})
- tra.Speed = NumberRange.new(0)
- tra.Rotation = NumberRange.new(-500,500)
- tra.VelocitySpread = 90000
- tra.LockedToPart = true
- tra.RotSpeed = NumberRange.new(-500,500)
- for i = 0,5,0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, -0.25) * angles(math.rad(90), math.rad(0), math.rad(-50 - 2.5 * math.cos(sine / 32))), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3)
- handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, 3.25) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1)
- weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
- weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- end
- local traz = Instance.new("ParticleEmitter",handle)
- traz.Texture = "rbxassetid://296874871"
- traz.LightEmission = 0.95
- traz.Color = ColorSequence.new(Color3.new(1,0.5,0))
- traz.Rate = 1000000
- traz.Lifetime = NumberRange.new(0.5)
- traz.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,15,0)})
- traz.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
- traz.Speed = NumberRange.new(50)
- traz.Rotation = NumberRange.new(-500,500)
- traz.VelocitySpread = 90000
- traz.RotSpeed = NumberRange.new(-500,500)
- local sa = Instance.new("Sound",handle)
- sa.SoundId = "rbxassetid://519795084"
- sa.Volume = 1.25
- sa.Pitch = 1.5
- sa:Play()
- tra.Rate = 0
- local lb = Instance.new("Part")
- lb.Parent = char
- lb.Material = "Neon"
- lb.Color = Color3.new(1,0.5,0)
- lb.CanCollide = false
- lb.Shape = "Ball"
- lb.CFrame = handle.CFrame
- lb.Anchored = true
- lb.Size = vt(3,3,3)
- local thing = Instance.new("SpecialMesh",lb)
- thing.MeshType = meshtype
- lb.Touched:connect(function(hit)
- Damagefunc(hit,7,8,5,"Normal",root,.2,1)
- end)
- lb.Anchored = false
- local trail = Instance.new("ParticleEmitter",lb)
- trail.Texture = "rbxassetid://296874871"
- trail.LightEmission = 0.95
- trail.Color = ColorSequence.new(lb.BrickColor.Color)
- trail.Rate = 10000
- trail.Lifetime = NumberRange.new(1.5)
- trail.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,0,0)})
- trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.95,0),NumberSequenceKeypoint.new(1,1,0)})
- trail.Speed = NumberRange.new(0,0)
- trail.Rotation = NumberRange.new(-500,500)
- trail.RotSpeed = NumberRange.new(-500,500)
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv.velocity = mouse.Hit.lookVector *175
- bv.Parent = lb
- traz.Rate = 0
- for i = 0,1,0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.5,0)* angles(math.rad(0),math.rad(0),math.rad(-85)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(85)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, -0.25) * angles(math.rad(90), math.rad(0), math.rad(25 - 2.5 * math.cos(sine / 32))), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3)
- handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, 3.25) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1)
- weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
- weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- end
- attack = false
- wait(10)
- traz:Destroy()
- tra:Destroy()
- sa:Destroy()
- lb:Destroy()
- end
- hold = false
- function do1()
- attack = true
- handleweld.Part0 = rarm
- local tra = Instance.new("ParticleEmitter",handle)
- tra.Texture = "rbxassetid://296874871"
- tra.LightEmission = 0.95
- tra.Color = ColorSequence.new(Color3.new(1,0.5,0))
- tra.Rate = 1000
- tra.Lifetime = NumberRange.new(0.25)
- tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10,0),NumberSequenceKeypoint.new(1,0,0)})
- tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0.85,0)})
- tra.Speed = NumberRange.new(0)
- tra.Rotation = NumberRange.new(-500,500)
- tra.VelocitySpread = 90000
- tra.LockedToPart = true
- tra.RotSpeed = NumberRange.new(-500,500)
- while true do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, -0.25) * angles(math.rad(90), math.rad(0), math.rad(-50 - 2.5 * math.cos(sine / 32))), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-50 + 2.5 * math.cos(sine / 32))), 0.3)
- handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, 3.25) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1)
- weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
- weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- if hold == false then
- break
- end
- end
- local traz = Instance.new("ParticleEmitter",handle)
- traz.Texture = "rbxassetid://296874871"
- traz.LightEmission = 0.95
- traz.Color = ColorSequence.new(Color3.new(1,0.5,0))
- traz.Rate = 1000000
- traz.Lifetime = NumberRange.new(0.5)
- traz.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,15,0)})
- traz.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
- traz.Speed = NumberRange.new(50)
- traz.Rotation = NumberRange.new(-500,500)
- traz.VelocitySpread = 90000
- traz.RotSpeed = NumberRange.new(-500,500)
- local sa = Instance.new("Sound",handle)
- sa.SoundId = "rbxassetid://519795084"
- sa.Volume = 1.25
- sa.Pitch = 1.15
- sa:Play()
- tra.Rate = 0
- local lb = Instance.new("Part")
- lb.Parent = char
- lb.Material = "Neon"
- lb.Color = Color3.new(1,0.5,0)
- lb.CanCollide = false
- lb.Shape = "Ball"
- lb.CFrame = handle.CFrame
- lb.Anchored = true
- lb.Size = vt(7.5,7.5,7.5)
- local thing = Instance.new("SpecialMesh",lb)
- thing.MeshType = meshtype
- lb.Touched:connect(function(hit)
- Damagefunc(hit,10,15,5,"Normal",root,.2,1)
- end)
- lb.Anchored = false
- local trail = Instance.new("ParticleEmitter",lb)
- trail.Texture = "rbxassetid://296874871"
- trail.LightEmission = 0.95
- trail.Color = ColorSequence.new(lb.BrickColor.Color)
- trail.Rate = 10000
- trail.Lifetime = NumberRange.new(1.5)
- trail.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,0,0)})
- trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.95,0),NumberSequenceKeypoint.new(1,1,0)})
- trail.Speed = NumberRange.new(0,0)
- trail.Rotation = NumberRange.new(-500,500)
- trail.RotSpeed = NumberRange.new(-500,500)
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv.velocity = mouse.Hit.lookVector *175
- bv.Parent = lb
- traz.Rate = 0
- for i = 0,1,0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.5,0)* angles(math.rad(0),math.rad(0),math.rad(-85)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(85)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, -0.25) * angles(math.rad(90), math.rad(0), math.rad(25 - 2.5 * math.cos(sine / 32))), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3)
- handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, 3.25) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1)
- weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
- weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- end
- attack = false
- wait(10)
- traz:Destroy()
- tra:Destroy()
- sa:Destroy()
- lb:Destroy()
- end
- function do2()
- attack = true
- handleweld.Part0 = rarm
- for i = 0,2,0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, -0.25) * angles(math.rad(90), math.rad(0), math.rad(-50 - 2.5 * math.cos(sine / 32))), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3)
- handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, 3.25) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1)
- weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
- weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- end
- local traz2 = Instance.new("ParticleEmitter",handle)
- traz2.Texture = "rbxassetid://296874871"
- traz2.LightEmission = 0.95
- traz2.Color = ColorSequence.new(Color3.new(1,0.5,0))
- traz2.Rate = 1000000
- traz2.Lifetime = NumberRange.new(1)
- traz2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10,0),NumberSequenceKeypoint.new(1,50,0)})
- traz2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
- traz2.Speed = NumberRange.new(25,50)
- traz2.Rotation = NumberRange.new(-500,500)
- traz2.VelocitySpread = 90000
- traz2.RotSpeed = NumberRange.new(-500,500)
- local traz = Instance.new("ParticleEmitter",handle)
- traz.Texture = "rbxassetid://296874871"
- traz.LightEmission = 0.95
- traz.Color = ColorSequence.new(Color3.new(1,0.5,0))
- traz.Rate = 1000000
- traz.Lifetime = NumberRange.new(0.5)
- traz.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,15,0)})
- traz.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
- traz.Speed = NumberRange.new(0)
- traz.Rotation = NumberRange.new(-500,500)
- traz.VelocitySpread = 90000
- traz.RotSpeed = NumberRange.new(-500,500)
- root.Velocity = root.CFrame.lookVector*250
- local hit = handle.Touched:connect(function(hit)
- Damagefunc(hit,10,14,5,"Normal",root,.2,1)
- end)
- local slas = Instance.new("Sound",handle)
- slas.SoundId = "rbxassetid://412756170"
- slas.Volume = 2.5
- slas.Pitch = 0.75
- slas:Play()
- wait(0.05)
- traz2.Rate = 0
- for i = 0,3.5,0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(75)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-75)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, -0.25) * angles(math.rad(90), math.rad(0), math.rad(75 - 2.5 * math.cos(sine / 32))), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3)
- handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, 7.5) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.3)
- weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
- weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- end
- traz.Rate = 0
- attack = false
- hit:disconnect()
- wait(10)
- traz2:Destroy()
- traz:Destroy()
- slas:Destroy()
- end
- function do3()
- attack = true
- local van = 1
- for i = 0,3,0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(180), math.rad(0), math.rad(5 - 2.5 * math.cos(sine / 32))), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(180), math.rad(0), math.rad(-5 + 2.5 * math.cos(sine / 32))), 0.3)
- handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, -3.25) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1)
- weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
- weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- end
- local slas = Instance.new("Sound",handle)
- slas.SoundId = "rbxassetid://412756170"
- slas.Volume = 2.5
- slas.Pitch = 0.75
- slas:Play()
- local traz = Instance.new("ParticleEmitter",handle)
- traz.Texture = "rbxassetid://296874871"
- traz.LightEmission = 0.95
- traz.Color = ColorSequence.new(Color3.new(1,0.5,0))
- traz.Rate = 1000000
- traz.Lifetime = NumberRange.new(0.5)
- traz.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,10,0)})
- traz.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
- traz.Speed = NumberRange.new(0)
- traz.Rotation = NumberRange.new(-500,500)
- traz.VelocitySpread = 90000
- traz.RotSpeed = NumberRange.new(-500,500)
- local hit = handle.Touched:connect(function(hit)
- Damagefunc(hit,19,25,5,"Normal",root,.2,1)
- end)
- for i = 0,3,0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(5 - 2.5 * math.cos(sine / 32))), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-5 + 2.5 * math.cos(sine / 32))), 0.3)
- handleweld.C1 = clerp(handleweld.C1, CFrame.new(75, 0, 0) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1)
- weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
- weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- end
- for i = 0,1,0.5 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(5 - 2.5 * math.cos(sine / 32))), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-5 + 2.5 * math.cos(sine / 32))), 0.3)
- handleweld.C1 = clerp(handleweld.C1, CFrame.new(50, 0, 0) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1)
- weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
- weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- end
- for i = 0,1,0.5 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(5 - 2.5 * math.cos(sine / 32))), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-5 + 2.5 * math.cos(sine / 32))), 0.3)
- handleweld.C1 = clerp(handleweld.C1, CFrame.new(25, 0, 0) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1)
- weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
- weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- end
- for i = 0,5,0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(5 - 2.5 * math.cos(sine / 32))), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-5 + 2.5 * math.cos(sine / 32))), 0.3)
- handleweld.C1 = clerp(handleweld.C1, CFrame.new(5, 0, 0) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1)
- weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
- weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- end
- hit:disconnect()
- traz.Rate = 0
- attack = false
- wait(5)
- traz:Destroy()
- slas:Destroy()
- end
- function DeleteParent(parent)
- for i,v in pairs(parent:children()) do
- if v:IsA("Part") then
- v:Destroy()
- end
- end
- end
- function do4()
- attack = true
- hum.WalkSpeed = 0
- local van = 1
- local lba = Instance.new("Part")
- local slas = Instance.new("Sound",lba)
- slas.SoundId = "rbxassetid://137463716"
- slas.Volume = 1.5
- slas.Pitch = 0.25
- slas:Play()
- local slas2 = Instance.new("Sound",lba)
- slas2.SoundId = "rbxassetid://342793847"
- slas2.Volume = 1.5
- slas2.Pitch = 0.5
- slas2:Play()
- lba.Parent = char
- lba.Material = "Neon"
- lba.BrickColor = BrickColor.new("Persimmon")
- lba.CanCollide = false
- lba.Shape = "Ball"
- lba.CFrame = handle.CFrame
- lba.Anchored = true
- lba.Size = vt(1,1,1)
- local thing = Instance.new("SpecialMesh",lba)
- thing.MeshType = meshtype
- for i = 0,50,0.1 do
- swait()
- van = van + 0.05
- thing.Scale = thing.Scale + vt(0.085,0.085,0.085)
- lba.CFrame = handle.CFrame + vt(0,van,0)
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(180), math.rad(0), math.rad(5 - 2.5 * math.cos(sine / 32))), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(180), math.rad(0), math.rad(-5 + 2.5 * math.cos(sine / 32))), 0.3)
- handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, -3.25) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1)
- weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
- weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
- end
- for z = 0, 9 do
- for i = 0, 24 do
- thing.Scale = thing.Scale - vt(0.15,0.15,0.15)
- local lb = Instance.new("Part")
- lb.Parent = handle
- lb.Material = "Neon"
- lb.BrickColor = BrickColor.new("Persimmon")
- lb.CanCollide = false
- lb.Shape = "Ball"
- lb.CFrame = lba.CFrame
- lb.Anchored = false
- lb.Size = vt(5,5,5)
- lb.CFrame = lba.CFrame
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv.velocity = vt(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- bv.Parent = lb
- local sound = it("Sound",lb)
- sound.Volume = 0.5
- sound.SoundId = "rbxassetid://178452221"
- sound.Pitch = 0.5
- sound:Play()
- lb.Touched:connect(function(hit)
- Damagefunc(hit,20,30,5,"Normal",root,.2,1)
- end)
- wait()
- end
- end
- lba:Destroy()
- hum.WalkSpeed = 16
- attack = false
- wait(10)
- DeleteParent(handle)
- end
- attackcombo = 0
- mouse.Button1Down:connect(function()
- if hold == false then
- if attack == false and attackcombo == 0 then
- attackcombo = 1
- attackone()
- elseif attack == false and attackcombo == 1 then
- attackcombo = 2
- attacktwo()
- elseif attack == false and attackcombo == 2 then
- attackcombo = 3
- attackthree()
- elseif attack == false and attackcombo == 3 then
- attackcombo = 0
- attackfour()
- end
- end
- if attack == true and hold == true then
- hold = false
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == "z" and attack == false and hold == false and mana >= 25 then
- hold = true
- mana = mana - 25
- do1()
- end
- if key == "x" and attack == false and mana >= 40 then
- mana = mana - 40
- do2()
- end
- if key == "c" and attack == false and mana >= 60 then
- mana = mana - 60
- do3()
- end
- if key == "v" and attack == false and mana >= 100 then
- mana = mana - 100
- do4()
- end
- end)
- game:GetService("RunService").Stepped:connect(function()
- Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
- velocity = RootPart.Velocity.y
- sine = sine + change
- local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
- if equipped == true or equipped == false then
- healthg.Text = math.floor(hum.Health).. "/" ..math.floor(hum.MaxHealth)
- manag.Text = "Mana: " ..math.floor(mana)
- if mana <= 250 then
- mana = mana + 0.25
- end
- if RootPart.Velocity.y > 1 and hit == nil then
- Anim = "Jump"
- if attack == false then
- handleweld.Part0 = torso
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(2.5),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(50)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(-50)), 0.3)
- handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, -1.5, -1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 82))), 0.3)
- weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 82))), 0.3)
- weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 82))), 0.3)
- end
- else
- if RootPart.Velocity.y < -1 and hit == nil then
- Anim = "Fall"
- if attack == false then
- handleweld.Part0 = torso
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(2.5),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(90)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(-90)), 0.3)
- handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, -1.5, -1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 82))), 0.3)
- weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 82))), 0.3)
- weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 82))), 0.3)
- end
- else
- if Torsovelocity < 1 and hit ~= nil then
- Anim = "Idle"
- if attack == false then
- change = 1
- handleweld.Part0 = torso
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10 - 5 * math.cos(sine / 32))), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10 + 5 * math.cos(sine / 32))), 0.3)
- handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, -1.5, -1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 82))), 0.3)
- weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 82))), 0.3)
- weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 82))), 0.3)
- end
- else
- if Torsovelocity > 2 and hit ~= nil then
- Anim = "Walk"
- if attack == false then
- handleweld.Part0 = torso
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 2.5))* angles(math.rad(15),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0 + 45 * math.cos(sine / 5)), math.rad(0), math.rad(10)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0 - 45 * math.cos(sine / 5)), math.rad(0), math.rad(-10)), 0.3)
- handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, -1.5, -1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 82))), 0.3)
- weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 82))), 0.3)
- weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 82))), 0.3)
- end
- end
- end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement