Advertisement
tomonaoboys

Purity thing?

Dec 3rd, 2017
449
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 23.46 KB | None | 0 0
  1. --purity thing
  2. --I tried to make an normal idk
  3. 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
  4. local PL=Players.LocalPlayer local Mouse=PL:GetMouse()local OnGround=false local SS=game:GetService("SoundService")Effects={}
  5. local PC=PL.Character local Humanoid=PC:FindFirstChildOfClass("Humanoid")local ded=false local FT=0
  6. local Camera=workspace.CurrentCamera local WalkSpeed=0 local JumpPower=0 local name=""
  7. 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
  8. 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
  9. 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
  10. 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
  11. 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
  12. function mov(part,vec3)local j=Instance.new("BodyVelocity",part)j.MaxForce=Vector3.new(1/0,1/0,1/0)j.Velocity=vec3 end
  13. function rot(part,vec3,pow)local j=Instance.new("BodyAngularVelocity",part)j.MaxTorque=Vector3.new(pow,pow,pow)j.AngularVelocity=vec3 return j end
  14. 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
  15. 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
  16. local Create=LoadLibrary("RbxUtility").Create local RunService=game:GetService("RunService")
  17. 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
  18. local newMotor=function(part0, part1, c0, c1)local w=Create('Motor'){Parent=part0,Part0=part0,Part1=part1,C0=c0,C1=c1}return w end
  19. 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)
  20. 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))
  21. 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
  22. 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
  23. 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
  24. 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
  25. 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")returnelse 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
  26. local Active=false local Stand=false local eFol=Instance.new("Folder",workspace)eFol.Name="Effects"
  27. Humanoid.died:connect(function()ded=true end)
  28. --WARNING : This script doesn't allow to attack and become godmode. this string makes you creating / editing scripts easily bit.
  29.  
  30. if 1 then --Engine ? anyway by tomonaoboys maybe
  31. PierceForceField = false E_MainColor=Color3.fromRGB(40,160,255)
  32. local AutomaticRegen=true local HealthRValue=.02
  33. local Players=game:GetService("Players")
  34. local ply=Players.LocalPlayer
  35. local chr=ply.Character
  36. local humanoid=chr:FindFirstChildOfClass("Humanoid")
  37. local DVal=Instance.new("NumberValue",humanoid)DVal.Name="Defense"
  38. local Defense=1
  39. local Mouse=ply:GetMouse()
  40. local rs=game:GetService("RunService").RenderStepped
  41. local DCoolDowns={}local Debri=function(itm,t)game:GetService("Debris"):AddItem(itm,t)end
  42. function sw(n)if n==nil then rs:wait()else for i=1,n do rs:wait()end end return true end
  43. function tDamage(CF,Range,Dam,DRand,DC,K,KH,Guide)--CFrame or Part , Range , Damage , DCoolDown , Knockback , Knockback Hold ,Knockback Guide
  44.     if typeof(CF)=="Instance"then CF=CF.CFrame end
  45.     local FinalD=math.random(Dam-DRand,Dam+DRand)
  46.     for i,m in pairs(workspace:GetChildren())do
  47.         if m:IsA("Model")and m~=chr then
  48.             local DCFlg=false
  49.             for i=1,#DCoolDowns do
  50.                 if DCoolDowns[i].Model==m then DCFlg=true end
  51.             end
  52.             if m:FindFirstChild("HumanoidRootPart")and not DCFlg then
  53.                 local hp=m.HumanoidRootPart
  54.                 if m:FindFirstChildOfClass("Humanoid")and(CF.p-hp.CFrame.p).magnitude<=Range then
  55.                     local hum=m:FindFirstChildOfClass("Humanoid")local Guard=false
  56.                     if hum:FindFirstChild("Defense")then if hum.Defense:IsA("NumberValue")then
  57.                         FinalD=math.ceil(FinalD/(hum.Defense.Value/5+.8))
  58.                     end end FinalD=FinalD+math.random(0,1)
  59.                     if m:FindFirstChildOfClass("ForceField")and not PierceForceField then
  60.                         Guard=true
  61.                     end
  62.                     if not Guard then hum.Health=hum.Health-FinalD end
  63.                     if DC~=nil then table.insert(DCoolDowns,{Model=m,Time=DC})end
  64.                     if hum.Health~=0 then if K then
  65.                         if KH==nil then KH=1/2 end
  66.                         if Guide then
  67.                             local j=Instance.new("BodyVelocity",hp)j.MaxForce=Vector3.new(100,100,100)*10000
  68.                             j.Velocity=CFrame.new(hp.CFrame.p,CF.p).lookVector*K
  69.                             Debri(j,KH)
  70.                         else
  71.                             local j=Instance.new("BodyVelocity",hp)j.MaxForce=Vector3.new(100,100,100)*10000
  72.                             j.Velocity=K
  73.                             Debri(j,KH)
  74.                         end
  75.                     end end
  76.                     local dp=Instance.new("Part",workspace)dp.Transparency=1 dp.CanCollide=false dp.Anchored=true dp.Size=Vector3.new()dp.CFrame=hp.CFrame
  77.                     local b=Instance.new("BillboardGui",dp)b.Size=UDim2.new(100,0,2,0)b.AlwaysOnTop=true b.MaxDistance=100
  78.                     local d=Instance.new("TextLabel",b)d.Size=UDim2.new(1,0,1,0)d.TextScaled=true d.BackgroundTransparency=1 d.TextStrokeTransparency=0
  79.                     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
  80.                     spawn(function()local j=Instance.new("BodyVelocity",dp)j.MaxForce=Vector3.new(1/0,1/0,1/0)
  81.                         for i=1,50 do
  82.                             if dp.Parent then dp.Anchored=true
  83.                             if i<25 then
  84.                                 dp.CFrame=dp.CFrame+Vector3.new(0,.1,0)
  85.                             else
  86.                                 d.TextTransparency=i/25-1
  87.                                 d.TextStrokeTransparency=i/25-1
  88.                             end
  89.                             sw()
  90.                             end
  91.                         end dp:Destroy()
  92.                     end)
  93.                 end
  94.             end
  95.         end
  96.     end
  97. end
  98. spawn(function()if chr:FindFirstChild("Health")then chr.Health:Destroy()end
  99. local hs=Instance.new("ScreenGui",ply:FindFirstChildOfClass("PlayerGui"))
  100. 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
  101. HFrame.BackgroundColor3=Color3.new()HFrame.BorderSizePixel=0
  102. local HPBar1=Instance.new("TextLabel",HFrame)HPBar1.Size=UDim2.new(1,0,1,0)HPBar1.Text=" Health"HPBar1.TextStrokeTransparency=0
  103. HPBar1.TextScaled=true HPBar1.TextXAlignment="Left"HPBar1.TextColor3=Color3.new(.5,1,.5)HPBar1.BackgroundTransparency=1 HPBar1.ZIndex=3
  104. 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
  105. 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
  106. HPBar3.BackgroundTransparency=.5 local AR=0
  107. 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)
  108. wst.BorderSizePixel=0 wst.BackgroundTransparency=.5 wst.Font="ArialBold"wst.TextScaled=1
  109. 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)
  110. dft.BorderSizePixel=0 dft.BackgroundTransparency=.5 dft.Font="ArialBold"dft.TextScaled=1
  111. while sw()do
  112.     if AutomaticRegen and humanoid.Health>0 then
  113.         humanoid.Health=humanoid.Health+HealthRValue
  114.     end
  115.     for i=1,#DCoolDowns do
  116.         if DCoolDowns[i]~=nil then
  117.             if DCoolDowns[i].Model.Parent then
  118.                 if DCoolDowns[i].Time>0 then
  119.                     DCoolDowns[i].Time=DCoolDowns[i].Time-1
  120.                 else
  121.                     table.remove(DCoolDowns,i)
  122.                 end
  123.             else
  124.                 table.remove(DCoolDowns,i)
  125.             end
  126.         end
  127.     end
  128.     --HPScreen
  129.     if hs.Parent then
  130.         HPBar2.Size=UDim2.new(humanoid.Health/humanoid.MaxHealth,0,1,0)
  131.         HPBar3.Size=UDim2.new(HPBar3.Size.X.Scale*(1-.1)+(HPBar2.Size.X.Scale*.1),0,1,0)
  132.         HPBar1.Text=" Health "..tostring(math.floor(humanoid.Health*10)/10).."/"..tostring(math.floor(humanoid.MaxHealth))
  133.         wst.Text="WalkSpeed "..tostring(humanoid.WalkSpeed)
  134.         dft.Text="Defense   "..tostring(Defense)
  135.     end
  136. end
  137. end)
  138. end
  139. --Global Functions that can use easily
  140. --tDamage ( CFrame or Part , Range , Damage , Damage Randomize , DCoolDown , Knockback , Knockback Hold ,Knockback Guide )magnitudedamagelol but has idk
  141. --sw ( number ) this function can use like wait() because it has true returning. if think easily, just small version of swait lol
  142.  
  143. 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
  144. function CreateSword(isLeft,Extra)if Extra==nil then Extra=CFrame.new()end
  145.     local pt=nil
  146.     if isLeft then
  147.         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)
  148.     else
  149.         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)
  150.     end so("rbxassetid://206083364",.1,pt,3)
  151.     local m=Instance.new("SpecialMesh",pt)m.MeshId="rbxassetid://934916502"m.Scale=Vector3.new(.5,.5,.5)
  152.     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)
  153.     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
  154.     local t2=Trail:Clone()t2.Parent=pt t2.Color=ColorSequence.new(Color3.new(1,1,1))t2.Lifetime=.1 return pt
  155. end
  156. function BreakSword()
  157.     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
  158.     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
  159. end
  160. spawn(function()
  161.     local oldpos=HumanoidRootPart.CFrame local wp=0 local switch=false
  162.     RunService.RenderStepped:connect(function()
  163.     if eFol.Parent==nil then eFol=Instance.new("Folder",workspace)eFol.Name="Effects"end
  164.     if not ded then wp=wp+.01 Humanoid.WalkSpeed=WalkSpeed Humanoid.JumpPower=JumpPower
  165.         if not Active then --walk and some
  166.             ua(PC)Stand=false
  167.             Humanoid.PlatformStand=false Humanoid.Sit=false
  168.             WalkSpeed=30 JumpPower=60
  169.             local rhit,rpos=workspace:FindPartOnRay(Ray.new(HumanoidRootPart.CFrame.p,Vector3.new(0,-1,0).unit*3.2),PC,false,false)
  170.             if oldpos.Y~=HumanoidRootPart.CFrame.Y and rhit==nil then
  171.                 OnGround=false
  172.                 if oldpos.Y-HumanoidRootPart.CFrame.Y>0 then
  173.                     PlayAnimationFromTable({CFrame.new(0,0,0)*CFrame.Angles(0,0,0),CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),
  174.                     CFrame.new(1.5,0,0)*CFrame.Angles(0,0,.3),
  175.                     CFrame.new(-1.5,0,0)*CFrame.Angles(0,.3,-.3),
  176.                     CFrame.new(.5,-2,-.1)*CFrame.Angles(-.2,0,0),
  177.                     CFrame.new(-.5,-2,0)*CFrame.Angles(0,0,0)
  178.                     },.3,false)
  179.                 else
  180.                     PlayAnimationFromTable({CFrame.new(0,0,0)*CFrame.Angles(0,0,0),CFrame.new(0,1.5,0)*CFrame.Angles(.03,0,0),
  181.                     CFrame.new(1.5,0,0)*CFrame.Angles(0,0,.1),
  182.                     CFrame.new(-1.5,0,0)*CFrame.Angles(0,.3,-.1),
  183.                     CFrame.new(.5,-2,-.1)*CFrame.Angles(0,0,0),
  184.                     CFrame.new(-.5,-2,0)*CFrame.Angles(0,0,0)
  185.                     },.3,false)
  186.                 end
  187.             else
  188.                 OnGround=true
  189.                 if(oldpos.X~=HumanoidRootPart.CFrame.X)or(oldpos.Z~=HumanoidRootPart.CFrame.Z)then
  190.                     PlayAnimationFromTable({CFrame.new(0,0,0)*CFrame.Angles(-.3,0,0),CFrame.new(0,1.5,0)*CFrame.Angles(.2,0,0),
  191.                     CFrame.new(1.5,0,math.sin(wp*16)/2)*CFrame.Angles(math.sin(-wp*16)/2,0,0),
  192.                     CFrame.new(-1.5,0,-math.sin(wp*16)/2)*CFrame.Angles(-math.sin(-wp*16)/2,0,0),
  193.                     CFrame.new(.5,-2,-math.sin(wp*16)+.1)*CFrame.Angles(-math.sin(-wp*16)-.2,0,0),
  194.                     CFrame.new(-.5,-2,math.sin(wp*16)+.1)*CFrame.Angles(-math.sin(wp*16)-.2,0,0)
  195.                     },.2,false)
  196.                 else
  197.                     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),
  198.                     CFrame.new(1.5,math.cos(wp*5)/9-math.cos(wp*5)/18,0)*CFrame.Angles(math.cos(wp*5)/15,0,0),
  199.                     CFrame.new(-1.5,math.cos(wp*5)/9-math.cos(wp*5)/18,0)*CFrame.Angles(math.cos(wp*5)/15,0,0),
  200.                     CFrame.new(.5,-2,0)*CFrame.Angles(0,0,.1),
  201.                     CFrame.new(-.5,-2,0)*CFrame.Angles(0,0,-.1)
  202.                     },.1,false)
  203.                 end
  204.             end
  205.         end
  206.         if PC:FindFirstChildOfClass("Humanoid")==nil then Humanoid=Instance.new("Humanoid",PC)end
  207.         workspace.CurrentCamera.CameraSubject=Humanoid
  208.         if Stand then Humanoid.WalkSpeed=0 Humanoid.JumpPower=0 end
  209.         --if PC:FindFirstChildOfClass("ForceField")then PC:FindFirstChildOfClass("ForceField").Visible=false else Instance.new("ForceField",PC)end
  210.         oldpos=HumanoidRootPart.CFrame
  211.     end
  212.     PL:FindFirstChildOfClass("Backpack"):ClearAllChildren()for i,c in pairs(PC:GetChildren())do if c:IsA("Part")then c.Locked=true end end
  213.     Humanoid:ClearAllChildren()
  214.     for i=1,#Effects do --Effect Engine
  215.         if Effects[i]~=nil then
  216.             if Effects[i].Part.Parent then
  217.                 if Effects[i].Val==-1 then --extra
  218.                 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
  219.                 if Effects[i].Rotation~=nil then Effects[i].Part.CFrame=Effects[i].Part.CFrame*Effects[i].Rotation end
  220.                 if Effects[i].Move~=nil then Effects[i].Part.CFrame=Effects[i].Part.CFrame+(Effects[i].Move/10)end
  221.                 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
  222.                 elseif Effects[i].Val==-2 then
  223.                     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
  224.                 end
  225.             else
  226.                 table.remove(Effects,i)
  227.             end
  228.         end
  229.     end
  230.     end)
  231. end)
  232. local banim=0
  233. Mouse.Button1Down:connect(function()
  234.     if not Active then Active=true Stand=true
  235.     if banim==0 then local sw=CreateSword()
  236.     for i=1,5 do
  237.         PlayAnimationFromTable({CFrame.new(0,0,0)*CFrame.Angles(0,0,0),
  238.             CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),
  239.             CFrame.new(1.5,0,0)*CFrame.Angles(.5,0,1),
  240.             CFrame.new(-1.5,0,0)*CFrame.Angles(0,0,0),
  241.             CFrame.new(.5,-2,0)*CFrame.Angles(0,0,0),
  242.             CFrame.new(-.5,-2,0)*CFrame.Angles(0,0,0),
  243.         },.7,false)
  244.         wait()
  245.     end
  246.     for i=1,5 do
  247.         PlayAnimationFromTable({CFrame.new(0,0,0)*CFrame.Angles(0,1,0),
  248.             CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),
  249.             CFrame.new(1.5,0,-.5)*CFrame.Angles(0,1,1),
  250.             CFrame.new(-1.5,0,0)*CFrame.Angles(0,0,0),
  251.             CFrame.new(.5,-2,0)*CFrame.Angles(0,0,0),
  252.             CFrame.new(-.5,-2,0)*CFrame.Angles(0,0,0),
  253.         },.6,false)HumanoidRootPart.CFrame=HumanoidRootPart.CFrame*CFrame.new(0,0,-.2)
  254.         tDamage ( sw.CFrame , 3 , 8 , 2 , 5 )
  255.         wait()
  256.     end
  257.     banim=1
  258.     elseif banim==1 then
  259.         local sw=CreateSword()
  260.         for i=1,5 do
  261.         PlayAnimationFromTable({CFrame.new(0,0,0)*CFrame.Angles(0,1,0),
  262.             CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),
  263.             CFrame.new(1.5,0,-.5)*CFrame.Angles(0,1,0),
  264.             CFrame.new(-1.5,0,0)*CFrame.Angles(0,0,0),
  265.             CFrame.new(.5,-2,0)*CFrame.Angles(0,0,0),
  266.             CFrame.new(-.5,-2,0)*CFrame.Angles(0,0,0),
  267.         },.6,false)
  268.         wait()
  269.         end
  270.         for i=1,5 do
  271.         PlayAnimationFromTable({CFrame.new(0,0,-2)*CFrame.Angles(0,1,0),
  272.             CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),
  273.             CFrame.new(1.5,0,-.5)*CFrame.Angles(0,-1,.4),
  274.             CFrame.new(-1.5,0,0)*CFrame.Angles(0,0,0),
  275.             CFrame.new(.5,-2,0)*CFrame.Angles(0,0,0),
  276.             CFrame.new(-.5,-2,0)*CFrame.Angles(0,0,0),
  277.         },.6,false)HumanoidRootPart.CFrame=HumanoidRootPart.CFrame*CFrame.new(0,0,-.5)
  278.         tDamage ( sw.CFrame , 3 , 8 , 2 , 5 )
  279.         wait()
  280.         end
  281.         banim=2
  282.     elseif banim==2 then
  283.         local sw=CreateSword()local sw2=CreateSword(true)JumpPower=0
  284.         for i=1,15 do HumanoidRootPart.CFrame=HumanoidRootPart.CFrame*CFrame.new(0,0,-1)HumanoidRootPart.Anchored=true
  285.         tDamage ( sw.CFrame , 3 , 12 , 2 , 7 )
  286.         tDamage ( sw2.CFrame , 3 , 12 , 2 , 7 )
  287.         PlayAnimationFromTable({CFrame.new(0,0,0)*CFrame.Angles(0,i,0),
  288.             CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),
  289.             CFrame.new(1.5,0,-.5)*CFrame.Angles(0,-math.rad(90),.4),
  290.             CFrame.new(-1.5,0,.5)*CFrame.Angles(0,math.rad(90),.4),
  291.             CFrame.new(.5,-2,0)*CFrame.Angles(0,0,0),
  292.             CFrame.new(-.5,-2,0)*CFrame.Angles(0,0,0),
  293.         },.7,false)wait()
  294.         end
  295.         banim=0
  296.     end
  297.     BreakSword()Active=false Stand=false
  298.     end
  299. end)
  300. Mouse.KeyDown:connect(function(Key)
  301.     if Key=="e"and not Active then
  302.         local mt=Mouse.Target
  303.         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
  304.     end
  305.     if Key=="q"and not Active then
  306.         local mt=Mouse.Target local h=FindHumanoid(mt)
  307.         if h then
  308.         Active=true Stand=true so("rbxassetid://231917794",5,HumanoidRootPart,1)
  309.         for i=1,30 do
  310.             HumanoidRootPart.Anchored=true
  311.             PlayAnimationFromTable({CFrame.new(0,0,0)*CFrame.Angles(0,0,0),CFrame.new(0,1.5,0)*CFrame.Angles(.03,0,0),
  312.             CFrame.new(1.5,0,0)*CFrame.Angles(0,0,.1),
  313.             CFrame.new(-1.5,0,0)*CFrame.Angles(0,.3,-.1),
  314.             CFrame.new(.5,-2,-.1)*CFrame.Angles(0,0,0),
  315.             CFrame.new(-.5,-2,0)*CFrame.Angles(0,0,0)
  316.             },.3,false)HumanoidRootPart.CFrame=HumanoidRootPart.CFrame+Vector3.new(0,15/i,0)wait()
  317.         end
  318.         Active=false for i=1,60 do
  319.         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
  320.         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
  321.         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"
  322.         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)
  323.         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)
  324.         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()
  325.         end
  326.         end
  327.     end
  328. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement