SHOW:
|
|
- or go back to the newest paste.
| 1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 2 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 3 | local RealPlayer = Player | |
| 4 | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer end
| |
| 5 | ||
| 6 | --Ruiner Second by tomonaoboys | |
| 7 | --It's remake of Ruiner. but actuary not that. | |
| 8 | script.Parent=nil local name="idk"local Visible=false | |
| 9 | local Players=game:FindFirstChildOfClass("Players")local PL=Players.LocalPlayer local Mouse=PL:GetMouse()local debri=function(Item,Ltime)game:GetService("Debris"):AddItem(Item,Ltime)end
| |
| 10 | local function so(Id,Volume,Parent,spd) | |
| 11 | 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 e:Play()e.Parent=Parent debri(smo,7)end
| |
| 12 | 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
| |
| 13 | end | |
| 14 | end | |
| 15 | local function GetParticleEmitter() | |
| 16 | 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
| |
| 17 | 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
| |
| 18 | end | |
| 19 | end | |
| 20 | function mov(part,vec3)local j=Instance.new("BodyVelocity",part)j.MaxForce=Vector3.new(1/0,1/0,1/0)j.Velocity=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)return mov(part,part.Position-(part.CFrame*CFrame.new(0,0,speed)).p)end
| |
| 21 | function rot(part,vec3,pow)local j=Instance.new("BodyAngularVelocity",part)j.MaxTorque=Vector3.new(pow,pow,pow)j.AngularVelocity=vec3 return j end
| |
| 22 | local function CreateWeld(Parent,Part0,Part1,C0)local weld=Instance.new("Weld",Parent)weld.Part0=Part0 weld.Part1=Part1 weld.C0=C0 end
| |
| 23 | function CreatePart0(PName,Size,Color,Material,Collide,Transparency,Parent,Mesh)local part=Instance.new("Part")part.Name=PName part.Size=Size part.Transparency=Transparency part.CanCollide=Collide if typeof(Color)=="Color3" then part.Color=Color else part.BrickColor=Color end part.Material=Material part.Parent=Parent if Mesh~=nil then local m=Instance.new("SpecialMesh",part)m.MeshType=Mesh end return part end
| |
| 24 | local Create=LoadLibrary("RbxUtility").Create local RunService=game:GetService("RunService")
| |
| 25 | local function FindHumanoid(Part)local humanoid=nil if tostring(Part.Parent)~=PL.Name and Part.Parent | |
| 26 | then if 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.Name~=PL.Name then humanoid=Part.Parent.Parent:FindFirstChildOfClass("Humanoid")end end end
| |
| 27 | end return humanoid end | |
| 28 | if 1 then | |
| 29 | SwordModel=Instance.new("Model")SwordModel.Name="RuinSword"
| |
| 30 | local Center=CreatePart0("Center",Vector3.new(),Color3.new(),"SmoothPlastic",true,0,SwordModel)
| |
| 31 | local mp=CreatePart0("MainPart",Vector3.new(.3,.3,1.2),Color3.new(),"SmoothPlastic",false,0,SwordModel)CreateWeld(Center,mp,Center,CFrame.new())
| |
| 32 | local neon=CreatePart0("Neon",Vector3.new(.15,.45,4),Color3.new(.25,0,.5),"Neon",true,0,SwordModel)CreateWeld(mp,neon,mp,CFrame.new(0,0,-2.6))
| |
| 33 | local pt=CreatePart0("Part",Vector3.new(),Color3.new(),"Neon",false,0,SwordModel)CreateWeld(mp,pt,mp,CFrame.Angles(0,math.rad(45),math.rad(0))*CFrame.new(0,0,.7))local m=Instance.new("SpecialMesh",pt)m.MeshId="rbxassetid://569102850"m.Scale=Vector3.new(.015,.01,.015)
| |
| 34 | local pt=CreatePart0("Part",Vector3.new(.35,.65,.2),BrickColor.Black(),"SmoothPlastic",false,0,SwordModel)CreateWeld(neon,pt,neon,CFrame.new(0,0,2))
| |
| 35 | local pt=CreatePart0("Part",Vector3.new(.35,.65,.65),BrickColor.Black(),"SmoothPlastic",false,0,SwordModel,"Wedge")CreateWeld(neon,pt,neon,CFrame.Angles(0,math.rad(180),0)*CFrame.new(0,0,1.6))
| |
| 36 | local pt=CreatePart0("Part",Vector3.new(.35,.325,.325),BrickColor.Black(),"SmoothPlastic",false,0,SwordModel,"Wedge")CreateWeld(neon,pt,neon,CFrame.Angles(0,0,math.rad(180))*CFrame.new(0,-.15,1.45))
| |
| 37 | local pt=CreatePart0("Part",Vector3.new(.35,.325,.325),BrickColor.Black(),"SmoothPlastic",false,0,SwordModel,"Wedge")CreateWeld(neon,pt,neon,CFrame.Angles(math.rad(180),0,0)*CFrame.new(0,-.15,1.125))
| |
| 38 | local pt=CreatePart0("Part",Vector3.new(.35,.65,.65),BrickColor.Black(),"SmoothPlastic",false,0,SwordModel,"Wedge")CreateWeld(neon,pt,neon,CFrame.Angles(0,0,0)*CFrame.new(0,0,.975))
| |
| 39 | local pt=CreatePart0("Part",Vector3.new(.351,.15,4),BrickColor.Black(),"SmoothPlastic",false,0,SwordModel)CreateWeld(neon,pt,neon,CFrame.Angles(0,0,0)*CFrame.new(0,.25,0))
| |
| 40 | local pt=CreatePart0("Part",Vector3.new(.35,.325,.325),BrickColor.Black(),"SmoothPlastic",false,0,SwordModel,"Wedge")CreateWeld(neon,pt,neon,CFrame.Angles(0,0,math.rad(180))*CFrame.new(0,-.15,.225))
| |
| 41 | local pt=CreatePart0("Part",Vector3.new(.35,.325,1),BrickColor.Black(),"SmoothPlastic",false,0,SwordModel)CreateWeld(neon,pt,neon,CFrame.Angles(0,0,0)*CFrame.new(0,-.15,-.425))
| |
| 42 | local pt=CreatePart0("Part",Vector3.new(.35,.65,.65),BrickColor.Black(),"SmoothPlastic",false,0,SwordModel,"Wedge")CreateWeld(neon,pt,neon,CFrame.Angles(0,math.rad(180),0)*CFrame.new(0,0,.325))
| |
| 43 | local pt=CreatePart0("Part",Vector3.new(.35,.325,.325),BrickColor.Black(),"SmoothPlastic",false,0,SwordModel,"Wedge")CreateWeld(neon,pt,neon,CFrame.Angles(math.rad(180),0,0)*CFrame.new(0,-.15,-1.0875))
| |
| 44 | local pt=CreatePart0("Part",Vector3.new(.351,.655,.655),BrickColor.Black(),"SmoothPlastic",false,0,SwordModel,"Wedge")CreateWeld(neon,pt,neon,CFrame.Angles(0,math.rad(180),math.rad(180))*CFrame.new(0,0,-2.325))
| |
| 45 | local pt=CreatePart0("Part",Vector3.new(.351,.655,.655),BrickColor.Black(),"SmoothPlastic",false,0,SwordModel,"Wedge")CreateWeld(neon,pt,neon,CFrame.Angles(0,0,0)*CFrame.new(0,0,-1.675))
| |
| 46 | local a0=Instance.new("Attachment",Center)a0.Position=Vector3.new(0,.2,.6)local a1=Instance.new("Attachment",Center)a1.Position=Vector3.new(0,.2,5)
| |
| 47 | local tr=Instance.new("Trail",SwordModel)tr.Attachment0=a1 tr.Attachment1=a0 tr.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(.1,0,0),NumberSequenceKeypoint.new(1,1,0)})tr.LightEmission=1 tr.Color=ColorSequence.new(Color3.new(.3,0,1))
| |
| 48 | tr.Lifetime=.1 tr.Texture="rbxassetid://1120188157"SwordModel.PrimaryPart=neon | |
| 49 | end | |
| 50 | if 1 then | |
| 51 | LanceModel=Instance.new("Model")LanceModel.Name="Lance"
| |
| 52 | local Center=CreatePart0("Center",Vector3.new(),Color3.new(),"SmoothPlastic",true,0,LanceModel)
| |
| 53 | local mp=CreatePart0("MainPart",Vector3.new(15,.3,.3),BrickColor.Black(),"SmoothPlastic",false,0,LanceModel,"Cylinder")CreateWeld(Center,mp,Center,CFrame.new(5,0,0)*CFrame.Angles(0,math.rad(90),0))
| |
| 54 | for i=1,11 do | |
| 55 | local pt=CreatePart0("Part",Vector3.new(.025,.301,0.301),Color3.new(.2,0,.66),"Neon",false,0,LanceModel,"Cylinder")CreateWeld(Center,pt,Center,CFrame.new(i/2-3,0,0)*CFrame.Angles(0,math.rad(90),0))
| |
| 56 | end | |
| 57 | for i=1,72 do | |
| 58 | local pt=CreatePart0("Part",Vector3.new(.1,.1,9),Color3.new(.2,0,.66),"Neon",false,0,LanceModel)CreateWeld(Center,pt,Center,CFrame.Angles(0,math.rad(10),0)*CFrame.new(1,0,5)*CFrame.Angles(0,0,math.rad(i*10)))
| |
| 59 | local pt=CreatePart0("Part",Vector3.new(.05,.41,9),BrickColor.Black(),"SmoothPlastic",false,0,LanceModel)CreateWeld(Center,pt,Center,CFrame.Angles(0,math.rad(10),0)*CFrame.new(1,0,5)*CFrame.Angles(0,0,math.rad(i*5)))
| |
| 60 | end | |
| 61 | local pt=CreatePart0("Part",Vector3.new(2,.65,.65),BrickColor.Black(),"SmoothPlastic",false,0,LanceModel,"Cylinder")CreateWeld(Center,pt,Center,CFrame.new(10,0,0)*CFrame.Angles(0,math.rad(90),0))
| |
| 62 | local pt=CreatePart0("Spike",Vector3.new(),BrickColor.Black(),"SmoothPlastic",false,0,LanceModel)CreateWeld(Center,pt,Center,CFrame.Angles(math.rad(90),math.rad(270),0)*CFrame.new(11,0,0)*CFrame.Angles(0,math.rad(90),0))local m=Instance.new("SpecialMesh",pt)m.MeshId="rbxassetid://1033714"m.Scale=Vector3.new(.325,4,.325)m.Offset=Vector3.new(0,1.5,0)
| |
| 63 | local btm=CreatePart0("Bottom",Vector3.new(1,1,1),Color3.new(),"Neon",false,0,LanceModel,"Sphere")CreateWeld(Center,btm,Center,CFrame.new(0,0,-3))
| |
| 64 | local pt=CreatePart0("Part",Vector3.new(0,1,1),Color3.new(.2,0,.66),"Neon",false,0,LanceModel,"Cylinder")CreateWeld(btm,pt,btm,CFrame.new())
| |
| 65 | local pt=CreatePart0("Part",Vector3.new(0,1,1),Color3.new(.2,0,.66),"Neon",false,0,LanceModel,"Cylinder")CreateWeld(btm,pt,btm,CFrame.new()*CFrame.Angles(0,math.rad(90),0))
| |
| 66 | local pt=CreatePart0("Part",Vector3.new(0,1,1),Color3.new(.2,0,.66),"Neon",false,0,LanceModel,"Cylinder")CreateWeld(btm,pt,btm,CFrame.new()*CFrame.Angles(0,0,math.rad(90)))
| |
| 67 | LanceModel.PrimaryPart=mp | |
| 68 | local a0=Instance.new("Attachment",Center)a0.Position=Vector3.new(0,0,2.5)local a1=Instance.new("Attachment",Center)a1.Position=Vector3.new(0,0,-14)
| |
| 69 | local tr=Instance.new("Trail",LanceModel)tr.Attachment0=a1 tr.Attachment1=a0 tr.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(.025,0,0),NumberSequenceKeypoint.new(1,1,0)})tr.LightEmission=1 tr.Color=ColorSequence.new(Color3.new(.3,0,1))
| |
| 70 | tr.Lifetime=.3 tr.Texture="rbxassetid://1120188157" | |
| 71 | local a0=Instance.new("Attachment",btm)a0.Position=Vector3.new(.5,0,0)local a1=Instance.new("Attachment",btm)a1.Position=Vector3.new(-.5,0,0)
| |
| 72 | local tr=Instance.new("Trail",LanceModel)tr.Attachment0=a1 tr.Attachment1=a0 tr.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(.025,0,0),NumberSequenceKeypoint.new(1,1,0)})tr.Color=ColorSequence.new(Color3.new())
| |
| 73 | tr.Lifetime=.3 tr.Texture="rbxassetid://1120188157"tr.FaceCamera=true | |
| 74 | end | |
| 75 | local function GetHitBox(Model)if Model~=nil then | |
| 76 | local pt=Instance.new("Part")pt.CanCollide=false pt.Transparency=1 pt.Name="Hitbox"
| |
| 77 | pt.Size=Vector3.new(.25,.55,4.2)CreateWeld(Model.PrimaryPart,pt,Model.PrimaryPart,CFrame.new())pt.Parent=Model return pt end | |
| 78 | end | |
| 79 | local function GetLanceHitBox(Model)if Model~=nil then | |
| 80 | local pt=Instance.new("Part")pt.CanCollide=false pt.Transparency=1 pt.Name="Hitbox"
| |
| 81 | pt.Size=Vector3.new(17,.6,.6)CreateWeld(Model.PrimaryPart,pt,Model.PrimaryPart,CFrame.new(1,0,0))pt.Parent=Model return pt end | |
| 82 | end | |
| 83 | local function ClearHitBox(Model)if Model~=nil then local p=Model:GetChildren() | |
| 84 | for i=1,#p do | |
| 85 | if p.Name=="Hitbox"then p:Destroy()end | |
| 86 | end end | |
| 87 | end | |
| 88 | ||
| 89 | function idkX()local Ghost=false local SwordEquipped=false local Center=nil local WSpeed=30 local normalattack=0 local sword=nil local LanceEquipped=false | |
| 90 | local Active=false local Stand=false local GDCharge=0 local Lance=nil | |
| 91 | local PC=PL.Character local Humanoid=PC:FindFirstChildOfClass("Humanoid")local Torso=PC["Torso"]local CCamera=workspace.CurrentCamera
| |
| 92 | local HumanoidRootPart=PC["HumanoidRootPart"] | |
| 93 | local function PlaySound(soundid,volume,speed)spawn(function()local s=Instance.new("Sound",workspace)s.SoundId=soundid s.PlayOnRemove=true s.Volume=volume if speed~=nil then s.PlaybackSpeed=speed end s:Play()wait(5)s.Volume=0 s:Remove()end)end
| |
| 94 | if PC:FindFirstChild("Animate")~=nil then PC.Animate:Remove()end if Humanoid:FindFirstChild("Animator")~=nil then Humanoid.Animator:Destroy()end local RightArm=PC["Right Arm"]local RightLeg=PC["Right Leg"]local LeftArm=PC["Left Arm"]local LeftLeg=PC["Left Leg"]local Head=PC["Head"]
| |
| 95 | local model=Instance.new("Model",PC)model.Name="Gauntlet"Instance.new("Model",model).Name="Effect"local model2=Instance.new("Model",model.Effect)model2.Name="Effect"
| |
| 96 | local efcfol=Instance.new("Model",workspace)efcfol.Name="Effects"
| |
| 97 | local function CreatePart1(Size,Color,Material,Collide,Transparency,Parent,Mesh) | |
| 98 | local part=Instance.new("Part")part.Name=name part.Size=Size part.Transparency=Transparency part.CanCollide=Collide part.Color=Color part.Material=Material if Parent~="model"then part.Parent=Parent else part.Parent=model2 end if Mesh~=nil then local m=Instance.new("SpecialMesh",part)m.MeshType=Mesh end
| |
| 99 | return part end | |
| 100 | local 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
| |
| 101 | local 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
| |
| 102 | local function ua(part)if part:IsA("Part")then part.Anchored=false end if part~=model2 then local c=part:GetChildren()for i=1,#c do ua(c[i])end end end
| |
| 103 | local function mov(part,vec3)local j=Instance.new("BodyVelocity",part)j.MaxForce=Vector3.new(1/0,1/0,1/0)j.Velocity=vec3 end
| |
| 104 | local sw=CreatePart1(Vector3.new(1.01,1,1.01),Color3.new(),"SmoothPlastic",false,0,model)CreateWeld(sw,RightArm,sw,CFrame.new(0,-.25,0)) | |
| 105 | local rotmain=CreatePart1(Vector3.new(.5,.5,.5),Color3.new(),"SmoothPlastic",false,1,model)local rotm=CreateWeld(rotmain,rotmain,sw,CFrame.new(0,5,0)) | |
| 106 | for i=1,8 do local sw=CreatePart1(Vector3.new(.5,.5,.5),Color3.new(.4,.4,.4),"SmoothPlastic",false,0,model)CreateWeld(sw,sw,rotmain,CFrame.new(0,1,0)*CFrame.Angles(math.rad(i*45),0,0))local m=Instance.new("SpecialMesh",sw)m.MeshId="rbxassetid://569102850"m.Scale=Vector3.new(.01,.01,.01)end
| |
| 107 | local newMotor=function(part0, part1, c0, c1)local w=Create('Motor'){Parent=part0,Part0=part0,Part1=part1,C0=c0,C1=c1}return w end
| |
| 108 | local function BreakSword()if PC:FindFirstChild("RuinSword")then local rs=PC.RuinSword rs:Destroy()end end local function BreakLance()if PC:FindFirstChild("Lance")then local l=PC.Lance l:Destroy()end end
| |
| 109 | ||
| 110 | 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) | |
| 111 | local function clerp(a, b, t)return a:lerp(b, t)end | |
| 112 | local RootPart=PC.HumanoidRootPart | |
| 113 | local RootJoint=RootPart.RootJoint | |
| 114 | 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)) | |
| 115 | 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)) | |
| 116 | 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 | |
| 117 | local larmc1=LW.C1 local rlegc1=RH.C1 local llegc1=LH.C1 local resetc1=false | |
| 118 | local function PlayAnimationFromTable(table, speed, bool) | |
| 119 | RootJoint.C0=clerp(RootJoint.C0, table[1], speed) | |
| 120 | Torso.Neck.C0=clerp(Torso.Neck.C0, table[2], speed) | |
| 121 | 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) | |
| 122 | if bool then | |
| 123 | if resetc1 == false then | |
| 124 | resetc1=true | |
| 125 | RootJoint.C1=RootJoint.C1 | |
| 126 | Torso.Neck.C1=Torso.Neck.C1 | |
| 127 | RW.C1=rarmc1 | |
| 128 | LW.C1=larmc1 | |
| 129 | RH.C1=rlegc1 | |
| 130 | LH.C1=llegc1 | |
| 131 | end | |
| 132 | end | |
| 133 | end | |
| 134 | local AmagiccirclePart=Instance.new("Part",PC) AmagiccirclePart.Transparency=1 AmagiccirclePart.CanCollide=false AmagiccirclePart.Anchored=true local AmcDecal=Instance.new("Decal",AmagiccirclePart)AmcDecal.Face="Top"AmcDecal.Texture="rbxassetid://352539051"
| |
| 135 | local sys=coroutine.create(function() | |
| 136 | local shield={}
| |
| 137 | for i=1,16 do | |
| 138 | shield[i]=Instance.new("Attachment",HumanoidRootPart)shield[i].Name="this should be used to shield"
| |
| 139 | end | |
| 140 | local lift=.3 local cols=ColorSequence.new(Color3.new(.25,0,.5),Color3.new(0,0,0),Color3.new(0,0,0)) | |
| 141 | for i=1,15 do | |
| 142 | local tr=Instance.new("Trail",PC)tr.Attachment0=shield[i]tr.Attachment1=shield[i+1]tr.Transparency=NumberSequence.new(0,1)tr.Lifetime=lift tr.Color=cols
| |
| 143 | end | |
| 144 | local tr=Instance.new("Trail",PC)tr.Attachment0=shield[1]tr.Attachment1=shield[16]tr.Transparency=NumberSequence.new(0,1)tr.Lifetime=lift tr.Color=cols
| |
| 145 | local rotm=rotmain.Weld | |
| 146 | local PC=PL.Character | |
| 147 | local Phm=nil | |
| 148 | if PC:FindFirstChildOfClass("Humanoid")~=nil then Phm=PC:FindFirstChildOfClass("Humanoid")end
| |
| 149 | local countmc=0 | |
| 150 | local BillBoard2=Instance.new("BillboardGui",workspace)BillBoard2.StudsOffsetWorldSpace=Vector3.new(0,3,0)BillBoard2.Parent=HumanoidRootPart BillBoard2.Size=UDim2.new(1,0,1,0)
| |
| 151 | local TLabel2=Instance.new("TextLabel",BillBoard2)TLabel2.Text=tostring(PL)TLabel2.Font="Bodoni"TLabel2.TextSize=20 TLabel2.Size=UDim2.new(1,0,1,0) TLabel2.BackgroundTransparency=1
| |
| 152 | TLabel2.BorderSizePixel=0 TLabel2.TextStrokeTransparency=0 TLabel2.TextColor3=Color3.fromRGB(256,256,256)BillBoard2.AlwaysOnTop=true | |
| 153 | --[[local Lance=LanceModel:Clone()Lance.Parent=PC | |
| 154 | CreateWeld(PC,Lance.Center,RightArm,CFrame.new(0,1,0))]]-- | |
| 155 | RunService:BindToRenderStep("System",32,function()
| |
| 156 | if not PC.Parent or not PC or PL.Character~=PC then RunService:UnbindFromRenderStep("System")PC:Destroy()end if not PC.Parent then RunService:UnbindFromRenderStep("System")PC:Destroy()end
| |
| 157 | if not SwordEquipped then Center=nil sword=nil end if not Active then WSpeed=30 end | |
| 158 | if LanceEquipped then if not Active then WSpeed=5 end else Lance=nil end | |
| 159 | for i=1,16 do | |
| 160 | shield[i].Position=CFrame.Angles(0,math.rad(i*22.5),0)*CFrame.Angles(countmc/40,0,0)*CFrame.new(0,0,4).p | |
| 161 | end | |
| 162 | if PC.Parent==workspace then Ghost=false end if not Ghost then PC.Parent=workspace end | |
| 163 | rotm.C0=CFrame.new(-.7,0,0)*CFrame.Angles(countmc/100,0,0) | |
| 164 | CCamera.FieldOfView=70 | |
| 165 | local shi=Instance.new("Part")shi.CanCollide=false shi.Transparency=1 shi.Shape="Ball"shi.Size=Vector3.new(8)shi.Position=HumanoidRootPart.CFrame.p+Vector3.new(0,.05,0)shi.Name="idk"
| |
| 166 | shi.Touched:connect(function(t)local hum=FindHumanoid(t)if hum then if hum.Health~=0 then hum.Health=nil so("rbxassetid://260433721",10,t,1)t:Remove()hum.Parent:BreakJoints()end end end)
| |
| 167 | debri(shi,.05)shi.Parent=model2 | |
| 168 | local r=Ray.new(Torso.Position,(CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90),0).p).unit*10) | |
| 169 | local idk,pos=workspace:FindPartOnRay(r,PC,false,true) | |
| 170 | AmagiccirclePart.Size=Vector3.new(6,0.1,6)ua(PC)AmagiccirclePart.Parent=nil | |
| 171 | AmagiccirclePart.CFrame=CFrame.new(pos)AmagiccirclePart.Orientation=Vector3.new(0,countmc,0)countmc=countmc+5 | |
| 172 | AmagiccirclePart.Parent=PC AmagiccirclePart.Transparency=1 AmagiccirclePart.Anchored=true AmagiccirclePart.CanCollide=false | |
| 173 | if PC:FindFirstChildOfClass("Humanoid")~=nil then Phm=PC:FindFirstChildOfClass("Humanoid")else Phm=Instance.new("Humanoid",PC)Humanoid=Phm end
| |
| 174 | workspace.CurrentCamera.CameraSubject=Phm | |
| 175 | if PC:FindFirstChildOfClass("ForceField")then PC:FindFirstChildOfClass("ForceField").Visible=false else Instance.new("ForceField",PC)end
| |
| 176 | Phm.MaxHealth=(1/0)/(1/0)Phm.Health=(1/0)/(1/0)Phm.PlatformStand=false Phm.Name=""if Stand then Phm.WalkSpeed=0 else Phm.WalkSpeed=WSpeed end Phm.JumpPower=50 | |
| 177 | PL:FindFirstChildOfClass("Backpack"):ClearAllChildren()Phm.Sit=false Phm.HealthDisplayType="AlwaysOff"
| |
| 178 | local child=PC.Torso:GetChildren()for i=1,#child do if not child[i]:IsA("Motor6D")and not child[i]:IsA("Motor")and not child[i]:IsA("Attachment")then child[i]:Destroy()end end
| |
| 179 | if PC:FindFirstChild("Left Arm")then local child=PC["Left Arm"]:GetChildren()for i=1,#child do if not child[i]:IsA("Attachment")then child[i]:Destroy()end end end
| |
| 180 | if PC:FindFirstChild("Left Leg")then local child=PC["Left Leg"]:GetChildren()for i=1,#child do if not child[i]:IsA("Attachment")then child[i]:Destroy()end end end
| |
| 181 | if PC:FindFirstChild("Right Arm")then local child=PC["Right Arm"]:GetChildren()for i=1,#child do if not child[i]:IsA("Attachment")then child[i]:Destroy()end end end
| |
| 182 | if PC:FindFirstChild("Right Leg")then local child=PC["Right Leg"]:GetChildren()for i=1,#child do if not child[i]:IsA("Attachment")then child[i]:Destroy()end end end
| |
| 183 | local child=PC.Head:GetChildren()for i=1,#child do if not child[i]:IsA("SpecialMesh")and not child[i]:IsA("Weld")and not child[i]:IsA("Attachment")and child[i].Name~="face"then child[i]:Destroy()end end
| |
| 184 | end) | |
| 185 | end) | |
| 186 | Mouse.KeyDown:connect(function(key) | |
| 187 | if key=="w"then walkW=true Mouse.KeyUp:connect(function(key)if key=="w" then walkW=false end end)end if key=="s"then walkS=true Mouse.KeyUp:connect(function(key)if key=="s" then walkS=false end end)end | |
| 188 | if key=="a"then walkA=true Mouse.KeyUp:connect(function(key)if key=="a" then walkA=false end end)end if key=="d"then walkD=true Mouse.KeyUp:connect(function(key)if key=="d" then walkD=false end end)end | |
| 189 | end) | |
| 190 | local walk=coroutine.create(function()local c=0 | |
| 191 | while wait()do | |
| 192 | if not Active then | |
| 193 | c=c+.5 | |
| 194 | if not LanceEquipped then | |
| 195 | if walkW or walkA or walkS or walkD then | |
| 196 | GDCharge=GDCharge+1 | |
| 197 | PlayAnimationFromTable({
| |
| 198 | CFrame.new(0, 0, 0) * CFrame.Angles(-.6, 0, 0), | |
| 199 | CFrame.new(0, 1.5, 0) * CFrame.Angles(0,0, 0), | |
| 200 | CFrame.new(1.5, 0, .5) * CFrame.Angles(math.rad(-45), 0,math.rad(15)), | |
| 201 | CFrame.new(-1.5, 0, math.sin(c)*-2) * CFrame.Angles(math.sin(c)*2,0,0), | |
| 202 | CFrame.new(.5, -2,-math.sin(c)*2.6) * CFrame.Angles(math.sin(c)*2.6,0,0), | |
| 203 | CFrame.new(-.5, -2,-math.sin(-c)*2.6) * CFrame.Angles(math.sin(-c)*2.6, 0, 0), | |
| 204 | },.1,false) | |
| 205 | else | |
| 206 | GDCharge=0 Ghost=false | |
| 207 | if SwordEquipped then | |
| 208 | PlayAnimationFromTable({
| |
| 209 | CFrame.new(0, 0, 0) * CFrame.Angles(0, -.4, 0), | |
| 210 | CFrame.new(0, 1.5, 0) * CFrame.Angles(0, .4, 0), | |
| 211 | CFrame.new(1.5, 0, .4) * CFrame.Angles(-.3+math.sin(c/5)/20, -1.3+math.sin(c/5)/10, 0), | |
| 212 | CFrame.new(-1.5, 0, 0) * CFrame.Angles(0, .3, -.5), | |
| 213 | CFrame.new(.6, -2, 0) * CFrame.Angles(0, 0, .2), | |
| 214 | CFrame.new(-.5, -2, 0) * CFrame.Angles(0, 0, -.2), | |
| 215 | },.1,false) | |
| 216 | else | |
| 217 | PlayAnimationFromTable({CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
| |
| 218 | CFrame.new(0, 1.5, 0) * CFrame.Angles(0, 0, 0), | |
| 219 | CFrame.new(1.5, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 220 | CFrame.new(-1.5, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 221 | CFrame.new(.5, -2, 0) * CFrame.Angles(0, 0, 0), | |
| 222 | CFrame.new(-.5, -2, 0) * CFrame.Angles(0, 0, 0), | |
| 223 | },.1,false)end | |
| 224 | end | |
| 225 | else | |
| 226 | GDCharge=0 Ghost=false | |
| 227 | if walkW or walkA or walkS or walkD then | |
| 228 | PlayAnimationFromTable({
| |
| 229 | CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 230 | CFrame.new(0, 1.5, 0) * CFrame.Angles(0,0, 0), | |
| 231 | CFrame.new(1.5, 0, -.4) * CFrame.Angles(.5+math.sin(c/5)/40, .9+math.sin(c/5)/40, 1), | |
| 232 | CFrame.new(-1.5, 0, math.sin(-c/10)) * CFrame.Angles(math.sin(c/10),0,0), | |
| 233 | CFrame.new(.5, -2,-math.sin(c/10)) * CFrame.Angles(math.sin(c/10),0,0), | |
| 234 | CFrame.new(-.5, -2,-math.sin(-c/10)) * CFrame.Angles(math.sin(-c/10), 0, 0), | |
| 235 | },.1,false) | |
| 236 | else | |
| 237 | PlayAnimationFromTable({
| |
| 238 | CFrame.new(0, 0, 0) * CFrame.Angles(0, -.4, 0), | |
| 239 | CFrame.new(0, 1.5, 0) * CFrame.Angles(0, .4, 0), | |
| 240 | CFrame.new(1.5, 0, -.4) * CFrame.Angles(.5+math.sin(c/5)/40, -.4+math.sin(c/5)/40, 0), | |
| 241 | CFrame.new(-1.5, 0, 0) * CFrame.Angles(0, .3, -.5), | |
| 242 | CFrame.new(.6, -2, 0) * CFrame.Angles(0, 0, .2), | |
| 243 | CFrame.new(-.5, -2, 0) * CFrame.Angles(0, 0, -.2), | |
| 244 | },.1,false) | |
| 245 | end | |
| 246 | end | |
| 247 | end | |
| 248 | end | |
| 249 | end) | |
| 250 | coroutine.resume(sys)coroutine.resume(walk) | |
| 251 | game:GetService("UserInputService").InputBegan:connect(function(Key, Gpe)
| |
| 252 | if PC.Parent and not Ghost then | |
| 253 | if not Gpe then | |
| 254 | if Key.KeyCode==Enum.KeyCode.E and GDCharge>60 and not Ghost and not Active then | |
| 255 | Ghost=true PC.Parent=workspace.CurrentCamera local Number=0 | |
| 256 | RunService:BindToRenderStep("GhostDash",15,function()
| |
| 257 | if Number%5==0 then | |
| 258 | local part=CreatePart1(Vector3.new(),Color3.new(),"Neon",false,0,workspace,"Sphere")local m=part.Mesh part.Anchored=true | |
| 259 | local pos=AmagiccirclePart.CFrame part.CFrame=pos | |
| 260 | RunService:BindToRenderStep("Effect:GD"..tostring(Number),0,function()part.Transparency=part.Transparency+.01 m.Scale=m.Scale+Vector3.new(2,0,2)if part.Transparency>=1 then part:Remove()RunService:UnbindFromRenderStep("Effect:GD"..tostring(Number))end end)end
| |
| 261 | if not Ghost or not PC or not PC.Parent or GDCharge<60 then RunService:UnbindFromRenderStep("GhostDash")end
| |
| 262 | Number=Number+1 | |
| 263 | end) | |
| 264 | elseif Key.KeyCode==Enum.KeyCode.G and not Active then | |
| 265 | local ray = Ray.new((Torso.CFrame+Vector3.new(0,10,0)).p,(Mouse.Hit.p - Torso.Position-Vector3.new(0,10,0)).unit * 2000) | |
| 266 | local idk, position = workspace:FindPartOnRay(ray, PC, false, true) | |
| 267 | local distance = ((Torso.CFrame+Vector3.new(0,10,0)).p - position).magnitude | |
| 268 | local beam=Instance.new("Part",model2)beam.CanCollide=false beam.Material="Neon"beam.Anchored=true a(beam)
| |
| 269 | beam.Color=Color3.new(0,0,0) | |
| 270 | beam.Size=Vector3.new(1,1,distance) | |
| 271 | beam.CFrame = CFrame.new((Torso.CFrame+Vector3.new(0,10,0)).p, position) * CFrame.new(0, 0, -distance / 2) | |
| 272 | local part=CreatePart1(Vector3.new(15,15,15),Color3.new(0,0,0),"Neon",false,0,"model","Sphere")local pos=CFrame.new(position)a(part) | |
| 273 | local mesh=part.Mesh | |
| 274 | part.CFrame=pos part.Anchored=true | |
| 275 | part.Touched:connect(function(pt) | |
| 276 | local hum=FindHumanoid(pt) | |
| 277 | if hum then | |
| 278 | pt.Position=pt.Position | |
| 279 | local pa=GetParticleEmitter()pa.Speed=NumberRange.new(0)pa.Lifetime=NumberRange.new(1)pa.Transparency=NumberSequence.new(0,1)pa.Rate=100 | |
| 280 | pa.Acceleration=Vector3.new(0,5,0) | |
| 281 | pa.Texture="rbxassetid://410256160"pa.Color=ColorSequence.new(Color3.new(.1,0,.7),Color3.new(0,1,1)) | |
| 282 | pa.Parent=pt | |
| 283 | hum.Health=-1 | |
| 284 | hum.MaxHealth=-1 | |
| 285 | spawn(function()wait(5)pa.Enabled=false for i=1,40 do pt.Anchored=true pt.Transparency=i/40 wait()end pt:Remove()end) | |
| 286 | end | |
| 287 | end) | |
| 288 | for i=1,60 do | |
| 289 | if beam.Parent then beam.Transparency=i/30 end | |
| 290 | mesh.Scale=Vector3.new(1+i/12,1+i/12,1+i/12)part.Transparency=i/60 | |
| 291 | wait() | |
| 292 | end | |
| 293 | beam:Remove() | |
| 294 | part:Remove() | |
| 295 | elseif Key.KeyCode==Enum.KeyCode.R and not Active and SwordEquipped then | |
| 296 | local m=Instance.new("Model",workspace)m.Name="The Hell Master's Jail"
| |
| 297 | local Position=Mouse.Hit | |
| 298 | if PC:FindFirstChild("RuinSword")then BreakSword()end SwordEquipped=false
| |
| 299 | for i=1,50 do | |
| 300 | local s=SwordModel:Clone()s.Parent=m s.Neon.CFrame=CFrame.new(Position.p+Vector3.new(math.random(20)-10,100,math.random(20)-10))s.Neon.CFrame=s.Neon.CFrame*CFrame.Angles(math.rad(270),math.rad(360),math.random(360)) | |
| 301 | local j=shoot(s.Neon,Position.p+Vector3.new(math.random(8)-4,math.random(8)-4,math.random(8)-4),300+math.random(200))local hit=false | |
| 302 | s.Neon.Touched:connect(function(pt)if tostring(pt.Parent)~="RuinSword"then local h=FindHumanoid(pt)if h~=nil then h.Health=nil h.MaxHealth=nil end if hit==false then hit=true j:Destroy()s.Center.RotVelocity=Vector3.new()s.Center.Velocity=Vector3.new()pa(s)pt.Anchored=true if pt.Name~="Base"and pt.Name~="Baseplate"then pt.CFrame=pt.CFrame-Vector3.new(0,.25,0)end end end end) | |
| 303 | s.Center.Touched:connect(function(pt)if tostring(pt.Parent)~="RuinSword"then local h=FindHumanoid(pt)if h~=nil then h.Health=nil h.MaxHealth=nil end if hit==false then hit=true j:Destroy()s.Center.RotVelocity=Vector3.new()s.Center.Velocity=Vector3.new()pa(s)pt.Anchored=true if pt.Name~="Base"and pt.Name~="Baseplate"then pt.CFrame=pt.CFrame-Vector3.new(0,.25,0)end end end end) | |
| 304 | wait()end debri(m,30) | |
| 305 | elseif Key.KeyCode==Enum.KeyCode.K and not Active and not LanceEquipped then normalattack=0 | |
| 306 | if SwordEquipped then BreakSword()SwordEquipped=false print("Removed Sword")
| |
| 307 | else | |
| 308 | sword=SwordModel:Clone()sword.Parent=PC CreateWeld(sword,sword.Center,RightArm,CFrame.new(0,1,0))Center=sword.Center SwordEquipped=true print("Equipped Sword")
| |
| 309 | end | |
| 310 | elseif Key.KeyCode==Enum.KeyCode.M and not Active and not SwordEquipped then normalattack=1 | |
| 311 | if LanceEquipped then | |
| 312 | BreakLance()LanceEquipped=false | |
| 313 | else | |
| 314 | Lance=LanceModel:Clone()Lance.Parent=PC | |
| 315 | CreateWeld(PC,Lance.Center,RightArm,CFrame.new(0,1,1.5))LanceEquipped=true | |
| 316 | end | |
| 317 | elseif Key.KeyCode==Enum.KeyCode.L and not Active then | |
| 318 | --if Visible then Visible=false print("Disabled")if workspace.CurrentCamera:FindFirstChild("Visibler")then workspace.CurrentCamera.Visibler:Remove()end else Visible=false print("Enabled")end
| |
| 319 | end | |
| 320 | end | |
| 321 | end | |
| 322 | end) | |
| 323 | Mouse.Button1Down:connect(function() | |
| 324 | if PL.Character==PC then | |
| 325 | if SwordEquipped and not Active then | |
| 326 | Active=true WSpeed=8 | |
| 327 | local count=0 | |
| 328 | if normalattack==0 then | |
| 329 | so("rbxassetid://978101945",10,workspace,.25)
| |
| 330 | local hb=GetHitBox(sword) | |
| 331 | hb.Touched:connect(function(pt)local h=FindHumanoid(pt)if h then h.MaxHealth=nil spawn(function()pt.Anchored=true pt.CanCollide=false for i=0,1,.1 do pt.Transparency=i wait()end pt:Destroy()end)end end) | |
| 332 | RunService:BindToRenderStep("SwordAttack",0,function()
| |
| 333 | count=count+1 | |
| 334 | PlayAnimationFromTable({CFrame.new(0, 0, 0) * CFrame.Angles(0, count/6, 0),
| |
| 335 | CFrame.new(0, 1.5, 0) * CFrame.Angles(0, 0, 0), | |
| 336 | CFrame.new(1.5, 0, 0) * CFrame.Angles(0, count/15, 1.5), | |
| 337 | CFrame.new(-1.5, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 338 | CFrame.new(.5, -2, 0) * CFrame.Angles(0, 0, 0), | |
| 339 | CFrame.new(-.5, -2, 0) * CFrame.Angles(0, 0, 0), | |
| 340 | },1,false) | |
| 341 | if count>=20 then Active=false RunService:UnbindFromRenderStep("SwordAttack")ClearHitBox(sword)
| |
| 342 | local s=SwordModel:Clone()s.Parent=workspace s.Neon.CFrame=CFrame.new(Mouse.Hit.p+Vector3.new(0,100,0))s.Neon.CFrame=s.Neon.CFrame*CFrame.Angles(math.rad(270),math.rad(180),math.random(360)) | |
| 343 | local j=shoot(s.Neon,s.Neon.Position-Vector3.new(0,-50,0),-250)local hit=false | |
| 344 | s.Neon.Touched:connect(function(pt)local h=FindHumanoid(pt)if h~=nil then h.Health=nil h.MaxHealth=nil end if hit==false then hit=true j:Destroy()s.Center.RotVelocity=Vector3.new()s.Center.Velocity=Vector3.new()pa(s)debri(s,10)end end) | |
| 345 | s.Center.Touched:connect(function(pt)local h=FindHumanoid(pt)if h~=nil then h.Health=nil h.MaxHealth=nil end if hit==false then hit=true j:Destroy()s.Center.RotVelocity=Vector3.new()s.Center.Velocity=Vector3.new()pa(s)debri(s,10)end end) | |
| 346 | end | |
| 347 | end) | |
| 348 | elseif normalattack==1 then | |
| 349 | ||
| 350 | elseif normalattack==2 then | |
| 351 | ||
| 352 | end | |
| 353 | elseif LanceEquipped and not Active then | |
| 354 | Active=true WSpeed=8 | |
| 355 | local count=0 | |
| 356 | if normalattack==0 then | |
| 357 | so("rbxassetid://978101945",10,workspace,.2)
| |
| 358 | GetLanceHitBox(Lance).Touched:connect(function(pt)local h=FindHumanoid(pt)if h then h.MaxHealth=nil spawn(function()pt.Anchored=true pt.CanCollide=false for i=0,1,.1 do pt.Transparency=i wait()end pt:Destroy()end)end end) | |
| 359 | RunService:BindToRenderStep("LanceAttack",0,function()
| |
| 360 | count=count+1 | |
| 361 | PlayAnimationFromTable({CFrame.new(0, 0, 0) * CFrame.Angles(0, count/6, 0),
| |
| 362 | CFrame.new(0, 1.5, 0) * CFrame.Angles(0, 0, 0), | |
| 363 | CFrame.new(1.5, 0, 0) * CFrame.Angles(0, count/20, 1.5), | |
| 364 | CFrame.new(-1.5, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 365 | CFrame.new(.5, -2, 0) * CFrame.Angles(0, 0, 0), | |
| 366 | CFrame.new(-.5, -2, 0) * CFrame.Angles(0, 0, 0), | |
| 367 | },1,false) | |
| 368 | if count%31==0 then so("rbxassetid://978101945",10,workspace,.2)end
| |
| 369 | if count>=60 then Active=false RunService:UnbindFromRenderStep("LanceAttack")ClearHitBox(Lance)
| |
| 370 | end | |
| 371 | end)normalattack=1 | |
| 372 | elseif normalattack==1 then | |
| 373 | so("rbxassetid://978101945",10,workspace,.5)
| |
| 374 | GetLanceHitBox(Lance).Touched:connect(function(pt)local h=FindHumanoid(pt)if h then h.MaxHealth=nil spawn(function()pt.Anchored=true pt.CanCollide=false for i=0,1,.1 do pt.Transparency=i wait()end pt:Destroy()end)end end) | |
| 375 | PlayAnimationFromTable({CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
| |
| 376 | CFrame.new(0, 1.5, 0) * CFrame.Angles(0, 0, 0), | |
| 377 | CFrame.new(1.5, 0, 0) * CFrame.Angles(2.6, 0, 0), | |
| 378 | CFrame.new(-1.5, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 379 | CFrame.new(.5, -2, 0) * CFrame.Angles(0, 0, 0), | |
| 380 | CFrame.new(-.5, -2, 0) * CFrame.Angles(0, 0, 0), | |
| 381 | },1,false) | |
| 382 | RunService:BindToRenderStep("LanceAttack",0,function()
| |
| 383 | count=count+1 | |
| 384 | PlayAnimationFromTable({CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(20), 0),
| |
| 385 | CFrame.new(0, 1.5, 0) * CFrame.Angles(0, 0, 0), | |
| 386 | CFrame.new(1.5, 0, 0) * CFrame.Angles(-.2, 0, 0), | |
| 387 | CFrame.new(-1.5, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 388 | CFrame.new(.5, -2, 0) * CFrame.Angles(0, 0, 0), | |
| 389 | CFrame.new(-.5, -2, 0) * CFrame.Angles(0, 0, 0), | |
| 390 | },.1,false) | |
| 391 | if count>=60 then Active=false RunService:UnbindFromRenderStep("LanceAttack")ClearHitBox(Lance)
| |
| 392 | end | |
| 393 | end)normalattack=0 | |
| 394 | end | |
| 395 | end | |
| 396 | end | |
| 397 | end) | |
| 398 | end | |
| 399 | if PL.Character then idkX()end | |
| 400 | PL.CharacterAdded:connect(function()spawn(function()wait(.5)idkX()end)end) | |
| 401 | local function humanoidvisibler(model,vib,tr) | |
| 402 | local ch=model:GetChildren() | |
| 403 | for i=1,#ch do | |
| 404 | if ch[i]:IsA("Part")and tostring(ch[i])~="HumanoidRootPart"then
| |
| 405 | local p=Instance.new("Part") p.Size=ch[i].Size p.Transparency=1 p.Color=ch[i].Color p.CanCollide=false p.CFrame=ch[i].CFrame
| |
| 406 | CreateWeld(p,p,ch[i],CFrame.new(0,0,0))p.Parent=vib | |
| 407 | local sc=Instance.new("SurfaceGui",p)sc.AlwaysOnTop=true local tb=Instance.new("TextBox",sc)tb.Size=UDim2.new(1,0,1,0)tb.BorderSizePixel=0 tb.BackgroundTransparency=tr tb.BackgroundColor3=ch[i].Color
| |
| 408 | tb.Text="" | |
| 409 | local sc2=sc:Clone()sc2.Parent=p sc2.Face="Top"local sc2=sc:Clone()sc2.Parent=p sc2.Face="Back"local sc2=sc:Clone()sc2.Parent=p sc2.Face="Bottom" | |
| 410 | local sc2=sc:Clone()sc2.Parent=p sc2.Face="Left"local sc2=sc:Clone()sc2.Parent=p sc2.Face="Right" | |
| 411 | end | |
| 412 | end | |
| 413 | end | |
| 414 | local function v_find(parent,vib,tr) | |
| 415 | if parent:FindFirstChildOfClass("Humanoid")and tostring(parent)~=PL.Name then humanoidvisibler(parent,vib,tr)end
| |
| 416 | local c=parent:GetChildren()for i=1,#c do v_find(c[i],vib,tr)end | |
| 417 | end | |
| 418 | local nu=0 | |
| 419 | spawn(function() | |
| 420 | while true do | |
| 421 | if Visible then | |
| 422 | local vib=Instance.new("Model",workspace.CurrentCamera)vib.Name="Visibler"
| |
| 423 | v_find(workspace,vib,.7) | |
| 424 | end | |
| 425 | wait(2) | |
| 426 | if workspace.CurrentCamera:FindFirstChild("Visibler")then workspace.CurrentCamera.Visibler:Remove()end
| |
| 427 | end | |
| 428 | end) |