SHOW:
|
|
- or go back to the newest paste.
| 1 | --//====================================================\\-- | |
| 2 | --|| CREATED BY SHACKLUSTER | |
| 3 | --\\====================================================//-- | |
| 4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 5 | local Player,game,owner = owner,game | |
| 6 | local RealPlayer = Player | |
| 7 | do | |
| 8 | local rp = RealPlayer | |
| 9 | script.Parent = rp.Character | |
| 10 | ||
| 11 | --RemoteEvent for communicating | |
| 12 | local Event = Instance.new("RemoteEvent")
| |
| 13 | Event.Name = "UserInput_Event" | |
| 14 | ||
| 15 | --Fake event to make stuff like Mouse.KeyDown work | |
| 16 | local function fakeEvent() | |
| 17 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
| |
| 18 | t.connect = t.Connect | |
| 19 | return t | |
| 20 | end | |
| 21 | ||
| 22 | --Creating fake input objects with fake variables | |
| 23 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 24 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 25 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 26 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 27 | end} | |
| 28 | --Merged 2 functions into one by checking amount of arguments | |
| 29 | CAS.UnbindAction = CAS.BindAction | |
| 30 | ||
| 31 | --This function will trigger the events that have been :Connect()'ed | |
| 32 | local function te(self,ev,...) | |
| 33 | local t = m[ev] | |
| 34 | if t and t._fakeEvent then | |
| 35 | for _,f in pairs(t.Functions) do | |
| 36 | f(...) | |
| 37 | end | |
| 38 | end | |
| 39 | end | |
| 40 | m.TrigEvent = te | |
| 41 | UIS.TrigEvent = te | |
| 42 | ||
| 43 | Event.OnServerEvent:Connect(function(plr,io) | |
| 44 | if plr~=rp then return end | |
| 45 | m.Target = io.Target | |
| 46 | m.Hit = io.Hit | |
| 47 | if not io.isMouse then | |
| 48 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 49 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 50 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 51 | end | |
| 52 | for _,t in pairs(CAS.Actions) do | |
| 53 | for _,k in pairs(t.Keys) do | |
| 54 | if k==io.KeyCode then | |
| 55 | t.Function(t.Name,io.UserInputState,io) | |
| 56 | end | |
| 57 | end | |
| 58 | end | |
| 59 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 60 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 61 | end | |
| 62 | end) | |
| 63 | Event.Parent = NLS([==[ | |
| 64 | local Player = game:GetService("Players").LocalPlayer
| |
| 65 | local Event = script:WaitForChild("UserInput_Event")
| |
| 66 | ||
| 67 | local Mouse = Player:GetMouse() | |
| 68 | local UIS = game:GetService("UserInputService")
| |
| 69 | local input = function(io,a) | |
| 70 | if a then return end | |
| 71 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 72 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
| |
| 73 | end | |
| 74 | UIS.InputBegan:Connect(input) | |
| 75 | UIS.InputEnded:Connect(input) | |
| 76 | ||
| 77 | local h,t | |
| 78 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 79 | --If player is not moving their mouse, client won't fire events | |
| 80 | while wait(1/30) do | |
| 81 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 82 | h,t=Mouse.Hit,Mouse.Target | |
| 83 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 84 | end | |
| 85 | end]==],Player.Character) | |
| 86 | ||
| 87 | ----Sandboxed game object that allows the usage of client-side methods and services | |
| 88 | --Real game object | |
| 89 | local _rg = game | |
| 90 | ||
| 91 | --Metatable for fake service | |
| 92 | local fsmt = {
| |
| 93 | __index = function(self,k) | |
| 94 | local s = rawget(self,"_RealService") | |
| 95 | if s then return s[k] end | |
| 96 | end, | |
| 97 | __newindex = function(self,k,v) | |
| 98 | local s = rawget(self,"_RealService") | |
| 99 | if s then s[k]=v end | |
| 100 | end, | |
| 101 | __call = function(self,...) | |
| 102 | local s = rawget(self,"_RealService") | |
| 103 | if s then return s(...) end | |
| 104 | end | |
| 105 | } | |
| 106 | local function FakeService(t,RealService) | |
| 107 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
| 108 | return setmetatable(t,fsmt) | |
| 109 | end | |
| 110 | ||
| 111 | --Fake game object | |
| 112 | local g = {
| |
| 113 | GetService = function(self,s) | |
| 114 | return self[s] | |
| 115 | end, | |
| 116 | Players = FakeService({
| |
| 117 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
| |
| 118 | },"Players"), | |
| 119 | UserInputService = FakeService(UIS,"UserInputService"), | |
| 120 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
| 121 | } | |
| 122 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
| 123 | g.service = g.GetService | |
| 124 | ||
| 125 | g.RunService = FakeService({
| |
| 126 | RenderStepped = _rg:GetService("RunService").Heartbeat,
| |
| 127 | BindToRenderStep = function(self,name,_,fun) | |
| 128 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
| 129 | end, | |
| 130 | UnbindFromRenderStep = function(self,name) | |
| 131 | self._btrs[name]:Disconnect() | |
| 132 | end, | |
| 133 | },"RunService") | |
| 134 | ||
| 135 | setmetatable(g,{
| |
| 136 | __index=function(self,s) | |
| 137 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
| 138 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
| 139 | end, | |
| 140 | __newindex = fsmt.__newindex, | |
| 141 | __call = fsmt.__call | |
| 142 | }) | |
| 143 | --Changing owner to fake player object to support owner:GetMouse() | |
| 144 | game,owner = g,g.Players.LocalPlayer | |
| 145 | end | |
| 146 | ||
| 147 | --Ruiner Second by tomonaoboys | |
| 148 | --It's remake of Ruiner. but actuary not that. | |
| 149 | script.Parent=nil local name="idk"local Visible=false | |
| 150 | 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
| |
| 151 | local function so(Id,Volume,Parent,spd) | |
| 152 | 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
| |
| 153 | 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
| |
| 154 | end | |
| 155 | end | |
| 156 | local function GetParticleEmitter() | |
| 157 | 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
| |
| 158 | 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
| |
| 159 | end | |
| 160 | end | |
| 161 | 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
| |
| 162 | function rot(part,vec3,pow)local j=Instance.new("BodyAngularVelocity",part)j.MaxTorque=Vector3.new(pow,pow,pow)j.AngularVelocity=vec3 return j end
| |
| 163 | local function CreateWeld(Parent,Part0,Part1,C0)local weld=Instance.new("Weld",Parent)weld.Part0=Part0 weld.Part1=Part1 weld.C0=C0 end
| |
| 164 | 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
| |
| 165 | local Create=LoadLibrary("RbxUtility").Create local RunService=game:GetService("RunService")
| |
| 166 | local function FindHumanoid(Part)local humanoid=nil if tostring(Part.Parent)~=PL.Name and Part.Parent | |
| 167 | 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
| |
| 168 | end return humanoid end | |
| 169 | if 1 then | |
| 170 | SwordModel=Instance.new("Model")SwordModel.Name="RuinSword"
| |
| 171 | local Center=CreatePart0("Center",Vector3.new(),Color3.new(),"SmoothPlastic",true,0,SwordModel)
| |
| 172 | local mp=CreatePart0("MainPart",Vector3.new(.3,.3,1.2),Color3.new(),"SmoothPlastic",false,0,SwordModel)CreateWeld(Center,mp,Center,CFrame.new())
| |
| 173 | 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))
| |
| 174 | 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)
| |
| 175 | local pt=CreatePart0("Part",Vector3.new(.35,.65,.2),BrickColor.Black(),"SmoothPlastic",false,0,SwordModel)CreateWeld(neon,pt,neon,CFrame.new(0,0,2))
| |
| 176 | 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))
| |
| 177 | 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))
| |
| 178 | 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))
| |
| 179 | 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))
| |
| 180 | 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))
| |
| 181 | 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))
| |
| 182 | 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))
| |
| 183 | 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))
| |
| 184 | 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))
| |
| 185 | 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))
| |
| 186 | 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))
| |
| 187 | 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)
| |
| 188 | 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))
| |
| 189 | tr.Lifetime=.1 tr.Texture="rbxassetid://1120188157"SwordModel.PrimaryPart=neon | |
| 190 | end | |
| 191 | if 1 then | |
| 192 | LanceModel=Instance.new("Model")LanceModel.Name="Lance"
| |
| 193 | local Center=CreatePart0("Center",Vector3.new(),Color3.new(),"SmoothPlastic",true,0,LanceModel)
| |
| 194 | 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))
| |
| 195 | for i=1,11 do | |
| 196 | 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))
| |
| 197 | end | |
| 198 | for i=1,72 do | |
| 199 | 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)))
| |
| 200 | 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)))
| |
| 201 | end | |
| 202 | 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))
| |
| 203 | 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)
| |
| 204 | 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))
| |
| 205 | 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())
| |
| 206 | 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))
| |
| 207 | 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)))
| |
| 208 | LanceModel.PrimaryPart=mp | |
| 209 | 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)
| |
| 210 | 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))
| |
| 211 | tr.Lifetime=.3 tr.Texture="rbxassetid://1120188157" | |
| 212 | 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)
| |
| 213 | 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())
| |
| 214 | tr.Lifetime=.3 tr.Texture="rbxassetid://1120188157"tr.FaceCamera=true | |
| 215 | end | |
| 216 | local function GetHitBox(Model)if Model~=nil then | |
| 217 | local pt=Instance.new("Part")pt.CanCollide=false pt.Transparency=1 pt.Name="Hitbox"
| |
| 218 | pt.Size=Vector3.new(.25,.55,4.2)CreateWeld(Model.PrimaryPart,pt,Model.PrimaryPart,CFrame.new())pt.Parent=Model return pt end | |
| 219 | end | |
| 220 | local function GetLanceHitBox(Model)if Model~=nil then | |
| 221 | local pt=Instance.new("Part")pt.CanCollide=false pt.Transparency=1 pt.Name="Hitbox"
| |
| 222 | pt.Size=Vector3.new(17,.6,.6)CreateWeld(Model.PrimaryPart,pt,Model.PrimaryPart,CFrame.new(1,0,0))pt.Parent=Model return pt end | |
| 223 | end | |
| 224 | local function ClearHitBox(Model)if Model~=nil then local p=Model:GetChildren() | |
| 225 | for i=1,#p do | |
| 226 | if p.Name=="Hitbox"then p:Destroy()end | |
| 227 | end end | |
| 228 | end | |
| 229 | ||
| 230 | function idkX()local Ghost=false local SwordEquipped=false local Center=nil local WSpeed=30 local normalattack=0 local sword=nil local LanceEquipped=false | |
| 231 | local Active=false local Stand=false local GDCharge=0 local Lance=nil | |
| 232 | local PC=PL.Character local Humanoid=PC:FindFirstChildOfClass("Humanoid")local Torso=PC["Torso"]local CCamera=workspace.CurrentCamera
| |
| 233 | local HumanoidRootPart=PC["HumanoidRootPart"] | |
| 234 | 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
| |
| 235 | 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"]
| |
| 236 | 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"
| |
| 237 | local efcfol=Instance.new("Model",workspace)efcfol.Name="Effects"
| |
| 238 | local function CreatePart1(Size,Color,Material,Collide,Transparency,Parent,Mesh) | |
| 239 | 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
| |
| 240 | return part end | |
| 241 | 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
| |
| 242 | 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
| |
| 243 | 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
| |
| 244 | 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
| |
| 245 | 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)) | |
| 246 | 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)) | |
| 247 | 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
| |
| 248 | local newMotor=function(part0, part1, c0, c1)local w=Create('Motor'){Parent=part0,Part0=part0,Part1=part1,C0=c0,C1=c1}return w end
| |
| 249 | 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
| |
| 250 | ||
| 251 | 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) | |
| 252 | local function clerp(a, b, t)return a:lerp(b, t)end | |
| 253 | local RootPart=PC.HumanoidRootPart | |
| 254 | local RootJoint=RootPart.RootJoint | |
| 255 | 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)) | |
| 256 | 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)) | |
| 257 | 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 | |
| 258 | local larmc1=LW.C1 local rlegc1=RH.C1 local llegc1=LH.C1 local resetc1=false | |
| 259 | local function PlayAnimationFromTable(table, speed, bool) | |
| 260 | RootJoint.C0=clerp(RootJoint.C0, table[1], speed) | |
| 261 | Torso.Neck.C0=clerp(Torso.Neck.C0, table[2], speed) | |
| 262 | 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) | |
| 263 | if bool then | |
| 264 | if resetc1 == false then | |
| 265 | resetc1=true | |
| 266 | RootJoint.C1=RootJoint.C1 | |
| 267 | Torso.Neck.C1=Torso.Neck.C1 | |
| 268 | RW.C1=rarmc1 | |
| 269 | LW.C1=larmc1 | |
| 270 | RH.C1=rlegc1 | |
| 271 | LH.C1=llegc1 | |
| 272 | end | |
| 273 | end | |
| 274 | end | |
| 275 | 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"
| |
| 276 | local sys=coroutine.create(function() | |
| 277 | local shield={}
| |
| 278 | for i=1,16 do | |
| 279 | shield[i]=Instance.new("Attachment",HumanoidRootPart)shield[i].Name="this should be used to shield"
| |
| 280 | end | |
| 281 | local lift=.3 local cols=ColorSequence.new(Color3.new(.25,0,.5),Color3.new(0,0,0),Color3.new(0,0,0)) | |
| 282 | for i=1,15 do | |
| 283 | 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
| |
| 284 | end | |
| 285 | 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
| |
| 286 | local rotm=rotmain.Weld | |
| 287 | local PC=PL.Character | |
| 288 | local Phm=nil | |
| 289 | if PC:FindFirstChildOfClass("Humanoid")~=nil then Phm=PC:FindFirstChildOfClass("Humanoid")end
| |
| 290 | local countmc=0 | |
| 291 | local BillBoard2=Instance.new("BillboardGui",workspace)BillBoard2.StudsOffsetWorldSpace=Vector3.new(0,3,0)BillBoard2.Parent=HumanoidRootPart BillBoard2.Size=UDim2.new(1,0,1,0)
| |
| 292 | 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
| |
| 293 | TLabel2.BorderSizePixel=0 TLabel2.TextStrokeTransparency=0 TLabel2.TextColor3=Color3.fromRGB(256,256,256)BillBoard2.AlwaysOnTop=true | |
| 294 | --[[local Lance=LanceModel:Clone()Lance.Parent=PC | |
| 295 | CreateWeld(PC,Lance.Center,RightArm,CFrame.new(0,1,0))]]-- | |
| 296 | RunService:BindToRenderStep("System",32,function()
| |
| 297 | 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
| |
| 298 | if not SwordEquipped then Center=nil sword=nil end if not Active then WSpeed=30 end | |
| 299 | if LanceEquipped then if not Active then WSpeed=5 end else Lance=nil end | |
| 300 | for i=1,16 do | |
| 301 | shield[i].Position=CFrame.Angles(0,math.rad(i*22.5),0)*CFrame.Angles(countmc/40,0,0)*CFrame.new(0,0,4).p | |
| 302 | end | |
| 303 | if PC.Parent==workspace then Ghost=false end if not Ghost then PC.Parent=workspace end | |
| 304 | rotm.C0=CFrame.new(-.7,0,0)*CFrame.Angles(countmc/100,0,0) | |
| 305 | CCamera.FieldOfView=70 | |
| 306 | 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"
| |
| 307 | 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)
| |
| 308 | debri(shi,.05)shi.Parent=model2 | |
| 309 | local r=Ray.new(Torso.Position,(CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90),0).p).unit*10) | |
| 310 | local idk,pos=workspace:FindPartOnRay(r,PC,false,true) | |
| 311 | AmagiccirclePart.Size=Vector3.new(6,0.1,6)ua(PC)AmagiccirclePart.Parent=nil | |
| 312 | AmagiccirclePart.CFrame=CFrame.new(pos)AmagiccirclePart.Orientation=Vector3.new(0,countmc,0)countmc=countmc+5 | |
| 313 | AmagiccirclePart.Parent=PC AmagiccirclePart.Transparency=1 AmagiccirclePart.Anchored=true AmagiccirclePart.CanCollide=false | |
| 314 | if PC:FindFirstChildOfClass("Humanoid")~=nil then Phm=PC:FindFirstChildOfClass("Humanoid")else Phm=Instance.new("Humanoid",PC)Humanoid=Phm end
| |
| 315 | workspace.CurrentCamera.CameraSubject=Phm | |
| 316 | if PC:FindFirstChildOfClass("ForceField")then PC:FindFirstChildOfClass("ForceField").Visible=false else Instance.new("ForceField",PC)end
| |
| 317 | 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 | |
| 318 | PL:FindFirstChildOfClass("Backpack"):ClearAllChildren()Phm.Sit=false Phm.HealthDisplayType="AlwaysOff"
| |
| 319 | 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
| |
| 320 | 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
| |
| 321 | 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
| |
| 322 | 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
| |
| 323 | 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
| |
| 324 | 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
| |
| 325 | end) | |
| 326 | end) | |
| 327 | Mouse.KeyDown:connect(function(key) | |
| 328 | 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 | |
| 329 | 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 | |
| 330 | end) | |
| 331 | local walk=coroutine.create(function()local c=0 | |
| 332 | while wait()do | |
| 333 | if not Active then | |
| 334 | c=c+.5 | |
| 335 | if not LanceEquipped then | |
| 336 | if walkW or walkA or walkS or walkD then | |
| 337 | GDCharge=GDCharge+1 | |
| 338 | PlayAnimationFromTable({
| |
| 339 | CFrame.new(0, 0, 0) * CFrame.Angles(-.6, 0, 0), | |
| 340 | CFrame.new(0, 1.5, 0) * CFrame.Angles(0,0, 0), | |
| 341 | CFrame.new(1.5, 0, .5) * CFrame.Angles(math.rad(-45), 0,math.rad(15)), | |
| 342 | CFrame.new(-1.5, 0, math.sin(c)*-2) * CFrame.Angles(math.sin(c)*2,0,0), | |
| 343 | CFrame.new(.5, -2,-math.sin(c)*2.6) * CFrame.Angles(math.sin(c)*2.6,0,0), | |
| 344 | CFrame.new(-.5, -2,-math.sin(-c)*2.6) * CFrame.Angles(math.sin(-c)*2.6, 0, 0), | |
| 345 | },.1,false) | |
| 346 | else | |
| 347 | GDCharge=0 Ghost=false | |
| 348 | if SwordEquipped then | |
| 349 | PlayAnimationFromTable({
| |
| 350 | CFrame.new(0, 0, 0) * CFrame.Angles(0, -.4, 0), | |
| 351 | CFrame.new(0, 1.5, 0) * CFrame.Angles(0, .4, 0), | |
| 352 | CFrame.new(1.5, 0, .4) * CFrame.Angles(-.3+math.sin(c/5)/20, -1.3+math.sin(c/5)/10, 0), | |
| 353 | CFrame.new(-1.5, 0, 0) * CFrame.Angles(0, .3, -.5), | |
| 354 | CFrame.new(.6, -2, 0) * CFrame.Angles(0, 0, .2), | |
| 355 | CFrame.new(-.5, -2, 0) * CFrame.Angles(0, 0, -.2), | |
| 356 | },.1,false) | |
| 357 | else | |
| 358 | PlayAnimationFromTable({CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
| |
| 359 | CFrame.new(0, 1.5, 0) * CFrame.Angles(0, 0, 0), | |
| 360 | CFrame.new(1.5, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 361 | CFrame.new(-1.5, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 362 | CFrame.new(.5, -2, 0) * CFrame.Angles(0, 0, 0), | |
| 363 | CFrame.new(-.5, -2, 0) * CFrame.Angles(0, 0, 0), | |
| 364 | },.1,false)end | |
| 365 | end | |
| 366 | else | |
| 367 | GDCharge=0 Ghost=false | |
| 368 | if walkW or walkA or walkS or walkD then | |
| 369 | PlayAnimationFromTable({
| |
| 370 | CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 371 | CFrame.new(0, 1.5, 0) * CFrame.Angles(0,0, 0), | |
| 372 | CFrame.new(1.5, 0, -.4) * CFrame.Angles(.5+math.sin(c/5)/40, .9+math.sin(c/5)/40, 1), | |
| 373 | CFrame.new(-1.5, 0, math.sin(-c/10)) * CFrame.Angles(math.sin(c/10),0,0), | |
| 374 | CFrame.new(.5, -2,-math.sin(c/10)) * CFrame.Angles(math.sin(c/10),0,0), | |
| 375 | CFrame.new(-.5, -2,-math.sin(-c/10)) * CFrame.Angles(math.sin(-c/10), 0, 0), | |
| 376 | },.1,false) | |
| 377 | else | |
| 378 | PlayAnimationFromTable({
| |
| 379 | CFrame.new(0, 0, 0) * CFrame.Angles(0, -.4, 0), | |
| 380 | CFrame.new(0, 1.5, 0) * CFrame.Angles(0, .4, 0), | |
| 381 | CFrame.new(1.5, 0, -.4) * CFrame.Angles(.5+math.sin(c/5)/40, -.4+math.sin(c/5)/40, 0), | |
| 382 | CFrame.new(-1.5, 0, 0) * CFrame.Angles(0, .3, -.5), | |
| 383 | CFrame.new(.6, -2, 0) * CFrame.Angles(0, 0, .2), | |
| 384 | CFrame.new(-.5, -2, 0) * CFrame.Angles(0, 0, -.2), | |
| 385 | },.1,false) | |
| 386 | end | |
| 387 | end | |
| 388 | end | |
| 389 | end | |
| 390 | end) | |
| 391 | coroutine.resume(sys)coroutine.resume(walk) | |
| 392 | game:GetService("UserInputService").InputBegan:connect(function(Key, Gpe)
| |
| 393 | if PC.Parent and not Ghost then | |
| 394 | if not Gpe then | |
| 395 | if Key.KeyCode==Enum.KeyCode.E and GDCharge>60 and not Ghost and not Active then | |
| 396 | Ghost=true PC.Parent=workspace.CurrentCamera local Number=0 | |
| 397 | RunService:BindToRenderStep("GhostDash",15,function()
| |
| 398 | if Number%5==0 then | |
| 399 | local part=CreatePart1(Vector3.new(),Color3.new(),"Neon",false,0,workspace,"Sphere")local m=part.Mesh part.Anchored=true | |
| 400 | local pos=AmagiccirclePart.CFrame part.CFrame=pos | |
| 401 | 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
| |
| 402 | if not Ghost or not PC or not PC.Parent or GDCharge<60 then RunService:UnbindFromRenderStep("GhostDash")end
| |
| 403 | Number=Number+1 | |
| 404 | end) | |
| 405 | elseif Key.KeyCode==Enum.KeyCode.G and not Active then | |
| 406 | local ray = Ray.new((Torso.CFrame+Vector3.new(0,10,0)).p,(Mouse.Hit.p - Torso.Position-Vector3.new(0,10,0)).unit * 2000) | |
| 407 | local idk, position = workspace:FindPartOnRay(ray, PC, false, true) | |
| 408 | local distance = ((Torso.CFrame+Vector3.new(0,10,0)).p - position).magnitude | |
| 409 | local beam=Instance.new("Part",model2)beam.CanCollide=false beam.Material="Neon"beam.Anchored=true a(beam)
| |
| 410 | beam.Color=Color3.new(0,0,0) | |
| 411 | beam.Size=Vector3.new(1,1,distance) | |
| 412 | beam.CFrame = CFrame.new((Torso.CFrame+Vector3.new(0,10,0)).p, position) * CFrame.new(0, 0, -distance / 2) | |
| 413 | 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) | |
| 414 | local mesh=part.Mesh | |
| 415 | part.CFrame=pos part.Anchored=true | |
| 416 | part.Touched:connect(function(pt) | |
| 417 | local hum=FindHumanoid(pt) | |
| 418 | if hum then | |
| 419 | pt.Position=pt.Position | |
| 420 | local pa=GetParticleEmitter()pa.Speed=NumberRange.new(0)pa.Lifetime=NumberRange.new(1)pa.Transparency=NumberSequence.new(0,1)pa.Rate=100 | |
| 421 | pa.Acceleration=Vector3.new(0,5,0) | |
| 422 | pa.Texture="rbxassetid://410256160"pa.Color=ColorSequence.new(Color3.new(.1,0,.7),Color3.new(0,1,1)) | |
| 423 | pa.Parent=pt | |
| 424 | hum.Health=-1 | |
| 425 | hum.MaxHealth=-1 | |
| 426 | spawn(function()wait(5)pa.Enabled=false for i=1,40 do pt.Anchored=true pt.Transparency=i/40 wait()end pt:Remove()end) | |
| 427 | end | |
| 428 | end) | |
| 429 | for i=1,60 do | |
| 430 | if beam.Parent then beam.Transparency=i/30 end | |
| 431 | mesh.Scale=Vector3.new(1+i/12,1+i/12,1+i/12)part.Transparency=i/60 | |
| 432 | wait() | |
| 433 | end | |
| 434 | beam:Remove() | |
| 435 | part:Remove() | |
| 436 | elseif Key.KeyCode==Enum.KeyCode.R and not Active and SwordEquipped then | |
| 437 | local m=Instance.new("Model",workspace)m.Name="The Hell Master's Jail"
| |
| 438 | local Position=Mouse.Hit | |
| 439 | if PC:FindFirstChild("RuinSword")then BreakSword()end SwordEquipped=false
| |
| 440 | for i=1,50 do | |
| 441 | 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)) | |
| 442 | 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 | |
| 443 | 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) | |
| 444 | 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) | |
| 445 | wait()end debri(m,30) | |
| 446 | elseif Key.KeyCode==Enum.KeyCode.K and not Active and not LanceEquipped then normalattack=0 | |
| 447 | if SwordEquipped then BreakSword()SwordEquipped=false print("Removed Sword")
| |
| 448 | else | |
| 449 | sword=SwordModel:Clone()sword.Parent=PC CreateWeld(sword,sword.Center,RightArm,CFrame.new(0,1,0))Center=sword.Center SwordEquipped=true print("Equipped Sword")
| |
| 450 | end | |
| 451 | elseif Key.KeyCode==Enum.KeyCode.M and not Active and not SwordEquipped then normalattack=1 | |
| 452 | if LanceEquipped then | |
| 453 | BreakLance()LanceEquipped=false | |
| 454 | else | |
| 455 | Lance=LanceModel:Clone()Lance.Parent=PC | |
| 456 | CreateWeld(PC,Lance.Center,RightArm,CFrame.new(0,1,1.5))LanceEquipped=true | |
| 457 | end | |
| 458 | elseif Key.KeyCode==Enum.KeyCode.L and not Active then | |
| 459 | --if Visible then Visible=false print("Disabled")if workspace.CurrentCamera:FindFirstChild("Visibler")then workspace.CurrentCamera.Visibler:Remove()end else Visible=false print("Enabled")end
| |
| 460 | end | |
| 461 | end | |
| 462 | end | |
| 463 | end) | |
| 464 | Mouse.Button1Down:connect(function() | |
| 465 | if PL.Character==PC then | |
| 466 | if SwordEquipped and not Active then | |
| 467 | Active=true WSpeed=8 | |
| 468 | local count=0 | |
| 469 | if normalattack==0 then | |
| 470 | so("rbxassetid://978101945",10,workspace,.25)
| |
| 471 | local hb=GetHitBox(sword) | |
| 472 | 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) | |
| 473 | RunService:BindToRenderStep("SwordAttack",0,function()
| |
| 474 | count=count+1 | |
| 475 | PlayAnimationFromTable({CFrame.new(0, 0, 0) * CFrame.Angles(0, count/6, 0),
| |
| 476 | CFrame.new(0, 1.5, 0) * CFrame.Angles(0, 0, 0), | |
| 477 | CFrame.new(1.5, 0, 0) * CFrame.Angles(0, count/15, 1.5), | |
| 478 | CFrame.new(-1.5, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 479 | CFrame.new(.5, -2, 0) * CFrame.Angles(0, 0, 0), | |
| 480 | CFrame.new(-.5, -2, 0) * CFrame.Angles(0, 0, 0), | |
| 481 | },1,false) | |
| 482 | if count>=20 then Active=false RunService:UnbindFromRenderStep("SwordAttack")ClearHitBox(sword)
| |
| 483 | 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)) | |
| 484 | local j=shoot(s.Neon,s.Neon.Position-Vector3.new(0,-50,0),-250)local hit=false | |
| 485 | 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) | |
| 486 | 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) | |
| 487 | end | |
| 488 | end) | |
| 489 | elseif normalattack==1 then | |
| 490 | ||
| 491 | elseif normalattack==2 then | |
| 492 | ||
| 493 | end | |
| 494 | elseif LanceEquipped and not Active then | |
| 495 | Active=true WSpeed=8 | |
| 496 | local count=0 | |
| 497 | if normalattack==0 then | |
| 498 | so("rbxassetid://978101945",10,workspace,.2)
| |
| 499 | 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) | |
| 500 | RunService:BindToRenderStep("LanceAttack",0,function()
| |
| 501 | count=count+1 | |
| 502 | PlayAnimationFromTable({CFrame.new(0, 0, 0) * CFrame.Angles(0, count/6, 0),
| |
| 503 | CFrame.new(0, 1.5, 0) * CFrame.Angles(0, 0, 0), | |
| 504 | CFrame.new(1.5, 0, 0) * CFrame.Angles(0, count/20, 1.5), | |
| 505 | CFrame.new(-1.5, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 506 | CFrame.new(.5, -2, 0) * CFrame.Angles(0, 0, 0), | |
| 507 | CFrame.new(-.5, -2, 0) * CFrame.Angles(0, 0, 0), | |
| 508 | },1,false) | |
| 509 | if count%31==0 then so("rbxassetid://978101945",10,workspace,.2)end
| |
| 510 | if count>=60 then Active=false RunService:UnbindFromRenderStep("LanceAttack")ClearHitBox(Lance)
| |
| 511 | end | |
| 512 | end)normalattack=1 | |
| 513 | elseif normalattack==1 then | |
| 514 | so("rbxassetid://978101945",10,workspace,.5)
| |
| 515 | 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) | |
| 516 | PlayAnimationFromTable({CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
| |
| 517 | CFrame.new(0, 1.5, 0) * CFrame.Angles(0, 0, 0), | |
| 518 | CFrame.new(1.5, 0, 0) * CFrame.Angles(2.6, 0, 0), | |
| 519 | CFrame.new(-1.5, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 520 | CFrame.new(.5, -2, 0) * CFrame.Angles(0, 0, 0), | |
| 521 | CFrame.new(-.5, -2, 0) * CFrame.Angles(0, 0, 0), | |
| 522 | },1,false) | |
| 523 | RunService:BindToRenderStep("LanceAttack",0,function()
| |
| 524 | count=count+1 | |
| 525 | PlayAnimationFromTable({CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(20), 0),
| |
| 526 | CFrame.new(0, 1.5, 0) * CFrame.Angles(0, 0, 0), | |
| 527 | CFrame.new(1.5, 0, 0) * CFrame.Angles(-.2, 0, 0), | |
| 528 | CFrame.new(-1.5, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 529 | CFrame.new(.5, -2, 0) * CFrame.Angles(0, 0, 0), | |
| 530 | CFrame.new(-.5, -2, 0) * CFrame.Angles(0, 0, 0), | |
| 531 | },.1,false) | |
| 532 | if count>=60 then Active=false RunService:UnbindFromRenderStep("LanceAttack")ClearHitBox(Lance)
| |
| 533 | end | |
| 534 | end)normalattack=0 | |
| 535 | end | |
| 536 | end | |
| 537 | end | |
| 538 | end) | |
| 539 | end | |
| 540 | if PL.Character then idkX()end | |
| 541 | PL.CharacterAdded:connect(function()spawn(function()wait(.5)idkX()end)end) | |
| 542 | local function humanoidvisibler(model,vib,tr) | |
| 543 | local ch=model:GetChildren() | |
| 544 | for i=1,#ch do | |
| 545 | if ch[i]:IsA("Part")and tostring(ch[i])~="HumanoidRootPart"then
| |
| 546 | 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
| |
| 547 | CreateWeld(p,p,ch[i],CFrame.new(0,0,0))p.Parent=vib | |
| 548 | 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
| |
| 549 | tb.Text="" | |
| 550 | 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" | |
| 551 | local sc2=sc:Clone()sc2.Parent=p sc2.Face="Left"local sc2=sc:Clone()sc2.Parent=p sc2.Face="Right" | |
| 552 | end | |
| 553 | end | |
| 554 | end | |
| 555 | local function v_find(parent,vib,tr) | |
| 556 | if parent:FindFirstChildOfClass("Humanoid")and tostring(parent)~=PL.Name then humanoidvisibler(parent,vib,tr)end
| |
| 557 | local c=parent:GetChildren()for i=1,#c do v_find(c[i],vib,tr)end | |
| 558 | end | |
| 559 | local nu=0 | |
| 560 | spawn(function() | |
| 561 | while true do | |
| 562 | if Visible then | |
| 563 | local vib=Instance.new("Model",workspace.CurrentCamera)vib.Name="Visibler"
| |
| 564 | v_find(workspace,vib,.7) | |
| 565 | end | |
| 566 | wait(2) | |
| 567 | if workspace.CurrentCamera:FindFirstChild("Visibler")then workspace.CurrentCamera.Visibler:Remove()end
| |
| 568 | end | |
| 569 | end) |