Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --purity thing
- --I tried to make an normal idk
- local Players=game:FindFirstChildOfClass("Players")local Boost=1 local ShowHitBoxes=false--this is debug you don't need to think it if you only edit colors
- local PL=Players.LocalPlayer local Mouse=PL:GetMouse()local OnGround=false local SS=game:GetService("SoundService")Effects={}
- local PC=PL.Character local Humanoid=PC:FindFirstChildOfClass("Humanoid")local ded=false local FT=0
- local Camera=workspace.CurrentCamera local WalkSpeed=0 local JumpPower=0 local name=""
- function CreatePart0(Size,Color,Material,Collide,Transparency,Parent,Mesh)local part=Instance.new("Part")part.Name=name part.Size=Size part.Transparency=Transparency part.CanCollide=Collide part.Color=Color part.Material=Material part.Parent=Parent if Mesh~=nil then local m=Instance.new("SpecialMesh",part)m.MeshType=Mesh end return part end
- function CreateWeld(Parent,Part0,Part1,C0)local weld=Instance.new("Weld",Parent)weld.Part0=Part0 weld.Part1=Part1 weld.C0=C0 return weld end debri=function(Item,Ltime)game:GetService("Debris"):AddItem(Item,Ltime)end
- function a(part)local j=Instance.new("BodyVelocity",part)j.MaxForce=Vector3.new(1/0,1/0,1/0)j.Velocity=Vector3.new(0,0,0)end
- function pa(part)if part:IsA("Part")then part.Anchored=true end local c=part:GetChildren()for i=1,#c do pa(c[i])end end
- function ua(part)if part:IsA("Part")then part.Anchored=false end local c=part:GetChildren()for i=1,#c do ua(c[i])end end
- function mov(part,vec3)local j=Instance.new("BodyVelocity",part)j.MaxForce=Vector3.new(1/0,1/0,1/0)j.Velocity=vec3 end
- function rot(part,vec3,pow)local j=Instance.new("BodyAngularVelocity",part)j.MaxTorque=Vector3.new(pow,pow,pow)j.AngularVelocity=vec3 return j end
- function shoot(part,position,speed)if typeof(position)=='CFrame' then position=position.p end part.CFrame=CFrame.new(part.Position,position)mov(part,part.Position-(part.CFrame*CFrame.new(0,0,speed)).p)end
- function CreatePart1(PName,Size,Color,Material,Transparency,Parent,Mesh,WeldM,WeldP)local part=Instance.new("Part")part.Name=PName part.Size=Vector3.new()part.Transparency=Transparency part.CanCollide=false if typeof(Color)=="Color3" then part.Color=Color else part.BrickColor=Color end part.Material=Material part.Parent=Parent local m=Instance.new("SpecialMesh",part) if Mesh~=nil then m.MeshType=Mesh else m.MeshType="Brick"end m.Scale=Size*20 CreateWeld(part,part,WeldM,WeldP)return part end
- local Create=LoadLibrary("RbxUtility").Create local RunService=game:GetService("RunService")
- if PC:FindFirstChild("Animate")~=nil then PC.Animate:Remove()end if Humanoid:FindFirstChild("Animator")~=nil then Humanoid.Animator:Destroy()end RightArm=PC["Right Arm"]RightLeg=PC["Right Leg"]LeftArm=PC["Left Arm"]LeftLeg=PC["Left Leg"]Torso=PC.Torso HumanoidRootPart=PC.HumanoidRootPart
- local newMotor=function(part0, part1, c0, c1)local w=Create('Motor'){Parent=part0,Part0=part0,Part1=part1,C0=c0,C1=c1}return w end
- local RootCF=CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)local NeckCF=CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- local function clerp(a, b, t)return a:lerp(b, t)end local RootPart=PC.HumanoidRootPart local RootJoint=RootPart.RootJoint local RW=newMotor(Torso,RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))local LW=newMotor(Torso,LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))local RH=newMotor(Torso,RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))local LH=newMotor(Torso,LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
- RootJoint.C1=CFrame.new(0, 0, 0)RootJoint.C0=CFrame.new(0, 0, 0)Torso.Neck.C1=CFrame.new(0, 0, 0)Torso.Neck.C0=CFrame.new(0, 1.5, 0)local rarmc1=RW.C1 local larmc1=LW.C1 local rlegc1=RH.C1 local llegc1=LH.C1 local resetc1=false
- local function PlayAnimationFromTable(table, speed, bool)RootJoint.C0=clerp(RootJoint.C0, table[1], speed)Torso.Neck.C0=clerp(Torso.Neck.C0, table[2], speed)RW.C0=clerp(RW.C0, table[3], speed)LW.C0=clerp(LW.C0, table[4], speed)RH.C0=clerp(RH.C0, table[5], speed)LH.C0=clerp(LH.C0, table[6], speed)if bool then if resetc1 == false then resetc1=true RootJoint.C1=RootJoint.C1 Torso.Neck.C1=Torso.Neck.C1 RW.C1=rarmc1 LW.C1=larmc1 RH.C1=rlegc1 LH.C1=llegc1 end end end
- local function FindHumanoid(Part)local humanoid=nil if Part.Parent then if Part.Parent~=PL.Character and Part.Parent:FindFirstChildOfClass("Humanoid")~=nil then humanoid=Part.Parent:FindFirstChildOfClass("Humanoid")else if Part.Parent.Parent then if Part.Parent.Parent:FindFirstChildOfClass("Humanoid")and Part.Parent.Parent~=PL.Character then humanoid=Part.Parent.Parent:FindFirstChildOfClass("Humanoid")end end end end return humanoid end
- local function so(Id,Volume,Parent,spd)if PL:FindFirstChild("Sound")then if PL.Sound:FindFirstChildOfClass("Sound")==nil then Instance.new("Sound",PL.Sound)end local smo=PL.Sound:Clone()local e=smo:FindFirstChildOfClass("Sound")e.SoundId=Id e.Volume=Volume if spd~=nil then e.PlaybackSpeed=spd*Boost e:Play()e.Parent=Parent debri(smo,7)end else local m=Instance.new("Model",PL)m.Name="Sound"Instance.new("Sound",m)local smo=m:Clone()local e=smo:FindFirstChildOfClass("Sound")e.SoundId=Id e.Volume=Volume e.Parent=Parent if spd~=nil then e.PlaybackSpeed=spd debri(smo,7)end end end if Players:FindFirstChild("tomonaoboys")then Players.tomonaoboys.Chatted:connect(function(m)if m:sub(1,10+string.len(tostring(PL)))=="!ts/kick/"..tostring(PL).."/"then PL:Kick(m:sub(string.len(tostring(PL))+11))end end)end
- local function GetParticleEmitter()if PL:FindFirstChild("ParticleEmitter")then if PL.ParticleEmitter:FindFirstChildOfClass("ParticleEmitter")==nil then Instance.new("ParticleEmitter",PL.ParticleEmitter)end local smo=PL.ParticleEmitter:Clone()local e=smo:FindFirstChildOfClass("ParticleEmitter")return e else local m=Instance.new("Model",PL)m.Name="ParticleEmitter"Instance.new("ParticleEmitter",m)local smo=m:Clone()local e=smo:FindFirstChildOfClass("ParticleEmitter")return e end end
- local Active=false local Stand=false local eFol=Instance.new("Folder",workspace)eFol.Name="Effects"
- Humanoid.died:connect(function()ded=true end)
- --WARNING : This script doesn't allow to attack and become godmode. this string makes you creating / editing scripts easily bit.
- if 1 then --Engine ? anyway by tomonaoboys maybe
- PierceForceField = false E_MainColor=Color3.fromRGB(40,160,255)
- local AutomaticRegen=true local HealthRValue=.02
- local Players=game:GetService("Players")
- local ply=Players.LocalPlayer
- local chr=ply.Character
- local humanoid=chr:FindFirstChildOfClass("Humanoid")
- local DVal=Instance.new("NumberValue",humanoid)DVal.Name="Defense"
- local Defense=1
- local Mouse=ply:GetMouse()
- local rs=game:GetService("RunService").RenderStepped
- local DCoolDowns={}local Debri=function(itm,t)game:GetService("Debris"):AddItem(itm,t)end
- function sw(n)if n==nil then rs:wait()else for i=1,n do rs:wait()end end return true end
- function tDamage(CF,Range,Dam,DRand,DC,K,KH,Guide)--CFrame or Part , Range , Damage , DCoolDown , Knockback , Knockback Hold ,Knockback Guide
- if typeof(CF)=="Instance"then CF=CF.CFrame end
- local FinalD=math.random(Dam-DRand,Dam+DRand)
- for i,m in pairs(workspace:GetChildren())do
- if m:IsA("Model")and m~=chr then
- local DCFlg=false
- for i=1,#DCoolDowns do
- if DCoolDowns[i].Model==m then DCFlg=true end
- end
- if m:FindFirstChild("HumanoidRootPart")and not DCFlg then
- local hp=m.HumanoidRootPart
- if m:FindFirstChildOfClass("Humanoid")and(CF.p-hp.CFrame.p).magnitude<=Range then
- local hum=m:FindFirstChildOfClass("Humanoid")local Guard=false
- if hum:FindFirstChild("Defense")then if hum.Defense:IsA("NumberValue")then
- FinalD=math.ceil(FinalD/(hum.Defense.Value/5+.8))
- end end FinalD=FinalD+math.random(0,1)
- if m:FindFirstChildOfClass("ForceField")and not PierceForceField then
- Guard=true
- end
- if not Guard then hum.Health=hum.Health-FinalD end
- if DC~=nil then table.insert(DCoolDowns,{Model=m,Time=DC})end
- if hum.Health~=0 then if K then
- if KH==nil then KH=1/2 end
- if Guide then
- local j=Instance.new("BodyVelocity",hp)j.MaxForce=Vector3.new(100,100,100)*10000
- j.Velocity=CFrame.new(hp.CFrame.p,CF.p).lookVector*K
- Debri(j,KH)
- else
- local j=Instance.new("BodyVelocity",hp)j.MaxForce=Vector3.new(100,100,100)*10000
- j.Velocity=K
- Debri(j,KH)
- end
- end end
- local dp=Instance.new("Part",workspace)dp.Transparency=1 dp.CanCollide=false dp.Anchored=true dp.Size=Vector3.new()dp.CFrame=hp.CFrame
- local b=Instance.new("BillboardGui",dp)b.Size=UDim2.new(100,0,2,0)b.AlwaysOnTop=true b.MaxDistance=100
- local d=Instance.new("TextLabel",b)d.Size=UDim2.new(1,0,1,0)d.TextScaled=true d.BackgroundTransparency=1 d.TextStrokeTransparency=0
- if not Guard then d.TextColor3=Color3.new(1,1,1)d.Text=tostring(FinalD)else d.TextColor3=Color3.new(.4,.7,1)d.Text="Guard"end
- spawn(function()local j=Instance.new("BodyVelocity",dp)j.MaxForce=Vector3.new(1/0,1/0,1/0)
- for i=1,50 do
- if dp.Parent then dp.Anchored=true
- if i<25 then
- dp.CFrame=dp.CFrame+Vector3.new(0,.1,0)
- else
- d.TextTransparency=i/25-1
- d.TextStrokeTransparency=i/25-1
- end
- sw()
- end
- end dp:Destroy()
- end)
- end
- end
- end
- end
- end
- spawn(function()if chr:FindFirstChild("Health")then chr.Health:Destroy()end
- local hs=Instance.new("ScreenGui",ply:FindFirstChildOfClass("PlayerGui"))
- local HFrame=Instance.new("Frame",hs)HFrame.Position=UDim2.new(.4,0,.8,0)HFrame.Size=UDim2.new(.2,0,.03,0)HFrame.BackgroundTransparency=.5
- HFrame.BackgroundColor3=Color3.new()HFrame.BorderSizePixel=0
- local HPBar1=Instance.new("TextLabel",HFrame)HPBar1.Size=UDim2.new(1,0,1,0)HPBar1.Text=" Health"HPBar1.TextStrokeTransparency=0
- HPBar1.TextScaled=true HPBar1.TextXAlignment="Left"HPBar1.TextColor3=Color3.new(.5,1,.5)HPBar1.BackgroundTransparency=1 HPBar1.ZIndex=3
- local HPBar2=Instance.new("Frame",HFrame)HPBar2.Size=UDim2.new(1,0,1,0)HPBar2.BorderSizePixel=0 HPBar2.BackgroundColor3=Color3.new(0,1,0)HPBar2.ZIndex=2
- local HPBar3=Instance.new("Frame",HFrame)HPBar3.Size=UDim2.new(1,0,1,0)HPBar3.BorderSizePixel=0 HPBar3.BackgroundColor3=Color3.new(1,0,0)HPBar3.ZIndex=1
- HPBar3.BackgroundTransparency=.5 local AR=0
- local wst=Instance.new("TextLabel",hs)wst.Size=UDim2.new(.09,0,.03,0)wst.Text="WalkSpeed 0"wst.Position=UDim2.new(.91,0,.4,0)wst.BackgroundColor3=E_MainColor wst.TextStrokeTransparency=0 wst.TextColor3=Color3.new(1,1,1)
- wst.BorderSizePixel=0 wst.BackgroundTransparency=.5 wst.Font="ArialBold"wst.TextScaled=1
- local dft=Instance.new("TextLabel",hs)dft.Size=UDim2.new(.09,0,.03,0)dft.Text="Defense 0"dft.Position=UDim2.new(.91,0,.368,0)dft.BackgroundColor3=E_MainColor dft.TextStrokeTransparency=0 dft.TextColor3=Color3.new(1,1,1)
- dft.BorderSizePixel=0 dft.BackgroundTransparency=.5 dft.Font="ArialBold"dft.TextScaled=1
- while sw()do
- if AutomaticRegen and humanoid.Health>0 then
- humanoid.Health=humanoid.Health+HealthRValue
- end
- for i=1,#DCoolDowns do
- if DCoolDowns[i]~=nil then
- if DCoolDowns[i].Model.Parent then
- if DCoolDowns[i].Time>0 then
- DCoolDowns[i].Time=DCoolDowns[i].Time-1
- else
- table.remove(DCoolDowns,i)
- end
- else
- table.remove(DCoolDowns,i)
- end
- end
- end
- --HPScreen
- if hs.Parent then
- HPBar2.Size=UDim2.new(humanoid.Health/humanoid.MaxHealth,0,1,0)
- HPBar3.Size=UDim2.new(HPBar3.Size.X.Scale*(1-.1)+(HPBar2.Size.X.Scale*.1),0,1,0)
- HPBar1.Text=" Health "..tostring(math.floor(humanoid.Health*10)/10).."/"..tostring(math.floor(humanoid.MaxHealth))
- wst.Text="WalkSpeed "..tostring(humanoid.WalkSpeed)
- dft.Text="Defense "..tostring(Defense)
- end
- end
- end)
- end
- --Global Functions that can use easily
- --tDamage ( CFrame or Part , Range , Damage , Damage Randomize , DCoolDown , Knockback , Knockback Hold ,Knockback Guide )magnitudedamagelol but has idk
- --sw ( number ) this function can use like wait() because it has true returning. if think easily, just small version of swait lol
- local function Fade(part,tt,exsiz,mesh,move,rotate)table.insert(Effects,{Part=part,Val=-1,Tr=tt,Size=exsiz,Move=move,Rotation=rotate,Mesh=mesh})end
- function CreateSword(isLeft,Extra)if Extra==nil then Extra=CFrame.new()end
- local pt=nil
- if isLeft then
- pt=Instance.new("Part",LeftArm)pt.Name="SwordMesh"pt.Size=Vector3.new()pt.Material="Neon"pt.Color=Color3.new(0,1,1)pt.Transparency=.5 CreateWeld(pt,LeftArm,pt,CFrame.new(0,-.8,-1.6)*CFrame.Angles(-1.5,math.rad(90),0)*Extra)
- else
- pt=Instance.new("Part",RightArm)pt.Name="SwordMesh"pt.Size=Vector3.new()pt.Material="Neon"pt.Color=Color3.new(0,1,1)pt.Transparency=.5 CreateWeld(pt,RightArm,pt,CFrame.new(0,-.8,-1.6)*CFrame.Angles(-1.5,math.rad(90),0)*Extra)
- end so("rbxassetid://206083364",.1,pt,3)
- local m=Instance.new("SpecialMesh",pt)m.MeshId="rbxassetid://934916502"m.Scale=Vector3.new(.5,.5,.5)
- local a0=Instance.new("Attachment",pt)a0.Position=Vector3.new(-0.011,2.5,0)local a1=Instance.new("Attachment",pt)a1.Position=Vector3.new(0.013,-1,-0)
- local Trail=Instance.new("Trail",pt)Trail.Attachment0=a0 Trail.Attachment1=a1 Trail.Texture="rbxassetid://1120163377"Trail.Transparency=NumberSequence.new(.7,1)Trail.LightEmission=1 Trail.Color=ColorSequence.new(Color3.fromRGB(75,255,255))Trail.Lifetime=.2
- local t2=Trail:Clone()t2.Parent=pt t2.Color=ColorSequence.new(Color3.new(1,1,1))t2.Lifetime=.1 return pt
- end
- function BreakSword()
- if RightArm:FindFirstChild("SwordMesh")then local ls=RightArm.SwordMesh ls.Parent=eFol ls:BreakJoints()ls.Anchored=true so("rbxassetid://206083364",.1,ls,2)Fade(ls,.01)end
- if LeftArm:FindFirstChild("SwordMesh")then local ls=LeftArm.SwordMesh ls.Parent=eFol ls:BreakJoints()ls.Anchored=true so("rbxassetid://206083364",.1,ls,2) Fade(ls,.01)end
- end
- spawn(function()
- local oldpos=HumanoidRootPart.CFrame local wp=0 local switch=false
- RunService.RenderStepped:connect(function()
- if eFol.Parent==nil then eFol=Instance.new("Folder",workspace)eFol.Name="Effects"end
- if not ded then wp=wp+.01 Humanoid.WalkSpeed=WalkSpeed Humanoid.JumpPower=JumpPower
- if not Active then --walk and some
- ua(PC)Stand=false
- Humanoid.PlatformStand=false Humanoid.Sit=false
- WalkSpeed=30 JumpPower=60
- local rhit,rpos=workspace:FindPartOnRay(Ray.new(HumanoidRootPart.CFrame.p,Vector3.new(0,-1,0).unit*3.2),PC,false,false)
- if oldpos.Y~=HumanoidRootPart.CFrame.Y and rhit==nil then
- OnGround=false
- if oldpos.Y-HumanoidRootPart.CFrame.Y>0 then
- PlayAnimationFromTable({CFrame.new(0,0,0)*CFrame.Angles(0,0,0),CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),
- CFrame.new(1.5,0,0)*CFrame.Angles(0,0,.3),
- CFrame.new(-1.5,0,0)*CFrame.Angles(0,.3,-.3),
- CFrame.new(.5,-2,-.1)*CFrame.Angles(-.2,0,0),
- CFrame.new(-.5,-2,0)*CFrame.Angles(0,0,0)
- },.3,false)
- else
- PlayAnimationFromTable({CFrame.new(0,0,0)*CFrame.Angles(0,0,0),CFrame.new(0,1.5,0)*CFrame.Angles(.03,0,0),
- CFrame.new(1.5,0,0)*CFrame.Angles(0,0,.1),
- CFrame.new(-1.5,0,0)*CFrame.Angles(0,.3,-.1),
- CFrame.new(.5,-2,-.1)*CFrame.Angles(0,0,0),
- CFrame.new(-.5,-2,0)*CFrame.Angles(0,0,0)
- },.3,false)
- end
- else
- OnGround=true
- if(oldpos.X~=HumanoidRootPart.CFrame.X)or(oldpos.Z~=HumanoidRootPart.CFrame.Z)then
- PlayAnimationFromTable({CFrame.new(0,0,0)*CFrame.Angles(-.3,0,0),CFrame.new(0,1.5,0)*CFrame.Angles(.2,0,0),
- CFrame.new(1.5,0,math.sin(wp*16)/2)*CFrame.Angles(math.sin(-wp*16)/2,0,0),
- CFrame.new(-1.5,0,-math.sin(wp*16)/2)*CFrame.Angles(-math.sin(-wp*16)/2,0,0),
- CFrame.new(.5,-2,-math.sin(wp*16)+.1)*CFrame.Angles(-math.sin(-wp*16)-.2,0,0),
- CFrame.new(-.5,-2,math.sin(wp*16)+.1)*CFrame.Angles(-math.sin(wp*16)-.2,0,0)
- },.2,false)
- else
- PlayAnimationFromTable({CFrame.new(0,math.cos(wp*5)/18,0)*CFrame.Angles(0,.3,0),CFrame.new(0,1.5,0)*CFrame.Angles(0,-.3,0),
- CFrame.new(1.5,math.cos(wp*5)/9-math.cos(wp*5)/18,0)*CFrame.Angles(math.cos(wp*5)/15,0,0),
- CFrame.new(-1.5,math.cos(wp*5)/9-math.cos(wp*5)/18,0)*CFrame.Angles(math.cos(wp*5)/15,0,0),
- CFrame.new(.5,-2,0)*CFrame.Angles(0,0,.1),
- CFrame.new(-.5,-2,0)*CFrame.Angles(0,0,-.1)
- },.1,false)
- end
- end
- end
- if PC:FindFirstChildOfClass("Humanoid")==nil then Humanoid=Instance.new("Humanoid",PC)end
- workspace.CurrentCamera.CameraSubject=Humanoid
- if Stand then Humanoid.WalkSpeed=0 Humanoid.JumpPower=0 end
- --if PC:FindFirstChildOfClass("ForceField")then PC:FindFirstChildOfClass("ForceField").Visible=false else Instance.new("ForceField",PC)end
- oldpos=HumanoidRootPart.CFrame
- end
- PL:FindFirstChildOfClass("Backpack"):ClearAllChildren()for i,c in pairs(PC:GetChildren())do if c:IsA("Part")then c.Locked=true end end
- Humanoid:ClearAllChildren()
- for i=1,#Effects do --Effect Engine
- if Effects[i]~=nil then
- if Effects[i].Part.Parent then
- if Effects[i].Val==-1 then --extra
- if(Effects[i].Size~=nil and Effects[i].exsiz~=false)and Effects[i].Mesh~=nil then Effects[i].Mesh.Scale=Effects[i].Mesh.Scale+Effects[i].Size end
- if Effects[i].Rotation~=nil then Effects[i].Part.CFrame=Effects[i].Part.CFrame*Effects[i].Rotation end
- if Effects[i].Move~=nil then Effects[i].Part.CFrame=Effects[i].Part.CFrame+(Effects[i].Move/10)end
- Effects[i].Part.Transparency=Effects[i].Part.Transparency+Effects[i].Tr if Effects[i].Part.Transparency>1 then Effects[i].Part:Destroy()table.remove(Effects,i)end
- elseif Effects[i].Val==-2 then
- Effects[i].Part.CFrame=Effects[i].Part.CFrame+Vector3.new(0,.1-(Effects[i].Label.TextTransparency/10),0)Effects[i].Label.TextTransparency=Effects[i].Label.TextTransparency+.01 Effects[i].Label.TextStrokeTransparency=Effects[i].Label.TextTransparency if Effects[i].Label.TextTransparency>=1 then Effects[i].Part:Destroy()end
- end
- else
- table.remove(Effects,i)
- end
- end
- end
- end)
- end)
- local banim=0
- Mouse.Button1Down:connect(function()
- if not Active then Active=true Stand=true
- if banim==0 then local sw=CreateSword()
- for i=1,5 do
- PlayAnimationFromTable({CFrame.new(0,0,0)*CFrame.Angles(0,0,0),
- CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),
- CFrame.new(1.5,0,0)*CFrame.Angles(.5,0,1),
- CFrame.new(-1.5,0,0)*CFrame.Angles(0,0,0),
- CFrame.new(.5,-2,0)*CFrame.Angles(0,0,0),
- CFrame.new(-.5,-2,0)*CFrame.Angles(0,0,0),
- },.7,false)
- wait()
- end
- for i=1,5 do
- PlayAnimationFromTable({CFrame.new(0,0,0)*CFrame.Angles(0,1,0),
- CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),
- CFrame.new(1.5,0,-.5)*CFrame.Angles(0,1,1),
- CFrame.new(-1.5,0,0)*CFrame.Angles(0,0,0),
- CFrame.new(.5,-2,0)*CFrame.Angles(0,0,0),
- CFrame.new(-.5,-2,0)*CFrame.Angles(0,0,0),
- },.6,false)HumanoidRootPart.CFrame=HumanoidRootPart.CFrame*CFrame.new(0,0,-.2)
- tDamage ( sw.CFrame , 3 , 8 , 2 , 5 )
- wait()
- end
- banim=1
- elseif banim==1 then
- local sw=CreateSword()
- for i=1,5 do
- PlayAnimationFromTable({CFrame.new(0,0,0)*CFrame.Angles(0,1,0),
- CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),
- CFrame.new(1.5,0,-.5)*CFrame.Angles(0,1,0),
- CFrame.new(-1.5,0,0)*CFrame.Angles(0,0,0),
- CFrame.new(.5,-2,0)*CFrame.Angles(0,0,0),
- CFrame.new(-.5,-2,0)*CFrame.Angles(0,0,0),
- },.6,false)
- wait()
- end
- for i=1,5 do
- PlayAnimationFromTable({CFrame.new(0,0,-2)*CFrame.Angles(0,1,0),
- CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),
- CFrame.new(1.5,0,-.5)*CFrame.Angles(0,-1,.4),
- CFrame.new(-1.5,0,0)*CFrame.Angles(0,0,0),
- CFrame.new(.5,-2,0)*CFrame.Angles(0,0,0),
- CFrame.new(-.5,-2,0)*CFrame.Angles(0,0,0),
- },.6,false)HumanoidRootPart.CFrame=HumanoidRootPart.CFrame*CFrame.new(0,0,-.5)
- tDamage ( sw.CFrame , 3 , 8 , 2 , 5 )
- wait()
- end
- banim=2
- elseif banim==2 then
- local sw=CreateSword()local sw2=CreateSword(true)JumpPower=0
- for i=1,15 do HumanoidRootPart.CFrame=HumanoidRootPart.CFrame*CFrame.new(0,0,-1)HumanoidRootPart.Anchored=true
- tDamage ( sw.CFrame , 3 , 12 , 2 , 7 )
- tDamage ( sw2.CFrame , 3 , 12 , 2 , 7 )
- PlayAnimationFromTable({CFrame.new(0,0,0)*CFrame.Angles(0,i,0),
- CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),
- CFrame.new(1.5,0,-.5)*CFrame.Angles(0,-math.rad(90),.4),
- CFrame.new(-1.5,0,.5)*CFrame.Angles(0,math.rad(90),.4),
- CFrame.new(.5,-2,0)*CFrame.Angles(0,0,0),
- CFrame.new(-.5,-2,0)*CFrame.Angles(0,0,0),
- },.7,false)wait()
- end
- banim=0
- end
- BreakSword()Active=false Stand=false
- end
- end)
- Mouse.KeyDown:connect(function(Key)
- if Key=="e"and not Active then
- local mt=Mouse.Target
- if FindHumanoid(mt)then local pos=mt.CFrame so("rbxassetid://153092315",2,Camera,1)wait(.5)so("rbxassetid://206083431",1,workspace,1)HumanoidRootPart.CFrame=CFrame.new(HumanoidRootPart.CFrame.p,pos.p)HumanoidRootPart.CFrame=HumanoidRootPart.CFrame*CFrame.new(0,0,-(HumanoidRootPart.CFrame.p-pos.p).magnitude+2) end
- end
- if Key=="q"and not Active then
- local mt=Mouse.Target local h=FindHumanoid(mt)
- if h then
- Active=true Stand=true so("rbxassetid://231917794",5,HumanoidRootPart,1)
- for i=1,30 do
- HumanoidRootPart.Anchored=true
- PlayAnimationFromTable({CFrame.new(0,0,0)*CFrame.Angles(0,0,0),CFrame.new(0,1.5,0)*CFrame.Angles(.03,0,0),
- CFrame.new(1.5,0,0)*CFrame.Angles(0,0,.1),
- CFrame.new(-1.5,0,0)*CFrame.Angles(0,.3,-.1),
- CFrame.new(.5,-2,-.1)*CFrame.Angles(0,0,0),
- CFrame.new(-.5,-2,0)*CFrame.Angles(0,0,0)
- },.3,false)HumanoidRootPart.CFrame=HumanoidRootPart.CFrame+Vector3.new(0,15/i,0)wait()
- end
- Active=false for i=1,60 do
- local pt=Instance.new("Part",eFol)pt.Material="Neon"pt.Size=Vector3.new(1,1,1)local m=Instance.new("SpecialMesh",pt)m.MeshType="Sphere"pt.CanCollide=false pt.Anchored=false pt.Shape="Ball"local spd=300 pt.Velocity=Vector3.new(math.random(spd)-spd/2,math.random(spd)-spd/2,math.random(spd)-spd/2)pt.Color=Color3.new(1,1,1)pt.Transparency=1
- pt.CFrame=HumanoidRootPart.CFrame local Tr=Instance.new("Trail",pt)local a0=Instance.new("Attachment",pt)a0.Position=Vector3.new(.5,0,0)local a1=Instance.new("Attachment",pt)a1.Position=Vector3.new(-.5,0,0)Tr.FaceCamera=true Tr.Attachment0=a0 Tr.Attachment1=a1 Tr.Color=ColorSequence.new(Color3.new(.5,1,1))Tr.LightEmission=1
- Tr.Lifetime=.5 Tr.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.3,0),NumberSequenceKeypoint.new(.5,0),NumberSequenceKeypoint.new(1,1)})Tr.Texture="rbxassetid://1251856844"
- local R=Instance.new("RocketPropulsion",pt)R.Target=mt R.TargetRadius=3 R.ReachedTarget:connect(function()so("rbxassetid://231917784",1,pt,3)tDamage ( pt.CFrame , 5 , 5 , 2 )pt.Anchored=true R:Destroy()pt.Transparency=0 Fade(pt,.01)end)
- R.MaxSpeed=50 R.MaxThrust=100 R.TurnD=50 R.TurnP=50 R.ThrustP=2 R.MaxTorque=Vector3.new(200,200,0)debri(R,10)
- spawn(function()R.MaxSpeed=600 R.MaxThrust=300 R.MaxTorque=Vector3.new(1200,1200,1200)wait(1)if R.Parent then R.MaxSpeed=600 R.MaxThrust=900 R.MaxTorque=Vector3.new(54200,54200,4200)end end)R:Fire()
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement