SHOW:
|
|
- or go back to the newest paste.
| 1 | --https://github.com/Mokiros/roblox-FE-compatibility | |
| 2 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 3 | local Player,game,owner = owner,game | |
| 4 | local RealPlayer = Player | |
| 5 | do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
| |
| 6 | ||
| 7 | ||
| 8 | p = game.Players.LocalPlayer | |
| 9 | if p.Name ~= "the770zone" then | |
| 10 | print'Owner Access!' | |
| 11 | end | |
| 12 | if p.Name == "the770zone" then | |
| 13 | char = p.Character | |
| 14 | torso = char.Torso | |
| 15 | neck = char.Torso.Neck | |
| 16 | ||
| 17 | Player=game:GetService("Players").LocalPlayer
| |
| 18 | Character=Player.Character | |
| 19 | PlayerGui=Player.PlayerGui | |
| 20 | Backpack=Player.Backpack | |
| 21 | Torso=Character.Torso | |
| 22 | Head=Character.Head | |
| 23 | Humanoid=Character.Humanoid | |
| 24 | LeftArm=Character["Left Arm"] | |
| 25 | LeftLeg=Character["Left Leg"] | |
| 26 | RightArm=Character["Right Arm"] | |
| 27 | RightLeg=Character["Right Leg"] | |
| 28 | cam=game.Workspace.CurrentCamera | |
| 29 | LS=Torso["Left Shoulder"] | |
| 30 | LH=Torso["Left Hip"] | |
| 31 | RS=Torso["Right Shoulder"] | |
| 32 | RH=Torso["Right Hip"] | |
| 33 | Face = Head.face | |
| 34 | Neck=Torso.Neck | |
| 35 | it=Instance.new | |
| 36 | attacktype=1 | |
| 37 | vt=Vector3.new | |
| 38 | cf=CFrame.new | |
| 39 | euler=CFrame.fromEulerAnglesXYZ | |
| 40 | angles=CFrame.Angles | |
| 41 | cloaked=false | |
| 42 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 43 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 44 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
| 45 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
| 46 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
| 47 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
| 48 | RootPart=Character.HumanoidRootPart | |
| 49 | RootJoint=RootPart.RootJoint | |
| 50 | RootCF=euler(-1.57,0,3.14) | |
| 51 | attack = false | |
| 52 | bounce=false | |
| 53 | cooldown=false | |
| 54 | deeznuts=false | |
| 55 | attackdebounce = false | |
| 56 | deb=false | |
| 57 | equipped=true | |
| 58 | hand=false | |
| 59 | MMouse=nil | |
| 60 | combo=0 | |
| 61 | mana=0 | |
| 62 | trispeed=.2 | |
| 63 | attackmode='none' | |
| 64 | local idle=0 | |
| 65 | local Anim="Idle" | |
| 66 | local Effects={}
| |
| 67 | local gun=false | |
| 68 | local shoot=false | |
| 69 | player=nil | |
| 70 | mana=0 | |
| 71 | cam = workspace.CurrentCamera | |
| 72 | ZTarget = nil | |
| 73 | RocketTarget = nil | |
| 74 | local m = Instance.new("Model",Character)
| |
| 75 | m.Name = "WeaponModel" | |
| 76 | ||
| 77 | mouse=Player:GetMouse() | |
| 78 | --save shoulders | |
| 79 | RSH, LSH=nil, nil | |
| 80 | --welds | |
| 81 | RW, LW=Instance.new("Weld"), Instance.new("Weld")
| |
| 82 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
| 83 | LH=Torso["Left Hip"] | |
| 84 | RH=Torso["Right Hip"] | |
| 85 | TorsoColor=Torso.BrickColor | |
| 86 | function NoOutline(Part) | |
| 87 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
| 88 | end | |
| 89 | player=Player | |
| 90 | ch=Character | |
| 91 | RSH=ch.Torso["Right Shoulder"] | |
| 92 | LSH=ch.Torso["Left Shoulder"] | |
| 93 | -- | |
| 94 | RSH.Parent=nil | |
| 95 | LSH.Parent=nil | |
| 96 | -- | |
| 97 | RW.Name="Right Shoulder" | |
| 98 | RW.Part0=ch.Torso | |
| 99 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
| 100 | RW.C1=cf(0, 0.5, 0) | |
| 101 | RW.Part1=ch["Right Arm"] | |
| 102 | RW.Parent=ch.Torso | |
| 103 | -- | |
| 104 | LW.Name="Left Shoulder" | |
| 105 | LW.Part0=ch.Torso | |
| 106 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
| 107 | LW.C1=cf(0, 0.5, 0) | |
| 108 | LW.Part1=ch["Left Arm"] | |
| 109 | LW.Parent=ch.Torso | |
| 110 | ||
| 111 | function swait(num) | |
| 112 | if num==0 or num==nil then | |
| 113 | game:service'RunService'.Heartbeat:wait(0) | |
| 114 | else | |
| 115 | for i=0,num do | |
| 116 | game:service'RunService'.Heartbeat:wait(0) | |
| 117 | end | |
| 118 | end | |
| 119 | end | |
| 120 | ||
| 121 | ||
| 122 | local Player = game.Players.localPlayer | |
| 123 | local Character = Player.Character | |
| 124 | local red = 255 | |
| 125 | local green = 255 | |
| 126 | local blue = 255 | |
| 127 | local Humanoid = Character.Humanoid | |
| 128 | local mouse = Player:GetMouse() | |
| 129 | local m = Instance.new("Model", Character)
| |
| 130 | m.Name = "WeaponModel" | |
| 131 | local LeftArm = Character["Left Arm"] | |
| 132 | local RightArm = Character["Right Arm"] | |
| 133 | local LeftLeg = Character["Left Leg"] | |
| 134 | local RightLeg = Character["Right Leg"] | |
| 135 | local Head = Character.Head | |
| 136 | local Torso = Character.Torso | |
| 137 | local cam = game.Workspace.CurrentCamera | |
| 138 | local RootPart = Character.HumanoidRootPart | |
| 139 | local RootJoint = RootPart.RootJoint | |
| 140 | local equipped = false | |
| 141 | local attack = false | |
| 142 | local Anim = "Idle" | |
| 143 | local idle = 0 | |
| 144 | local attacktype = 1 | |
| 145 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 146 | local velocity = RootPart.Velocity.y | |
| 147 | local sine = 0 | |
| 148 | local change = 1 | |
| 149 | local grabbed = false | |
| 150 | local cn = CFrame.new | |
| 151 | local mr = math.rad | |
| 152 | local angles = CFrame.Angles | |
| 153 | local ud = UDim2.new | |
| 154 | local c3 = Color3.new | |
| 155 | local lim = 0 | |
| 156 | local st = 0 | |
| 157 | local necko = cn(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 158 | local attacktype = 1 | |
| 159 | local ZTarget, RocketTarget = nil, nil | |
| 160 | local euler = CFrame.fromEulerAnglesXYZ | |
| 161 | function clerp(a,b,t) | |
| 162 | local qa = {QuaternionFromCFrame(a)}
| |
| 163 | local qb = {QuaternionFromCFrame(b)}
| |
| 164 | local ax, ay, az = a.x, a.y, a.z | |
| 165 | local bx, by, bz = b.x, b.y, b.z | |
| 166 | local _t = 1-t | |
| 167 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
| 168 | end | |
| 169 | ||
| 170 | function QuaternionFromCFrame(cf) | |
| 171 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 172 | local trace = m00 + m11 + m22 | |
| 173 | if trace > 0 then | |
| 174 | local s = math.sqrt(1 + trace) | |
| 175 | local recip = 0.5/s | |
| 176 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
| 177 | else | |
| 178 | local i = 0 | |
| 179 | if m11 > m00 then | |
| 180 | i = 1 | |
| 181 | end | |
| 182 | if m22 > (i == 0 and m00 or m11) then | |
| 183 | i = 2 | |
| 184 | end | |
| 185 | if i == 0 then | |
| 186 | local s = math.sqrt(m00-m11-m22+1) | |
| 187 | local recip = 0.5/s | |
| 188 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
| 189 | elseif i == 1 then | |
| 190 | local s = math.sqrt(m11-m22-m00+1) | |
| 191 | local recip = 0.5/s | |
| 192 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
| 193 | elseif i == 2 then | |
| 194 | local s = math.sqrt(m22-m00-m11+1) | |
| 195 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
| 196 | end | |
| 197 | end | |
| 198 | end | |
| 199 | ||
| 200 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 201 | local xs, ys, zs = x + x, y + y, z + z | |
| 202 | local wx, wy, wz = w*xs, w*ys, w*zs | |
| 203 | local xx = x*xs | |
| 204 | local xy = x*ys | |
| 205 | local xz = x*zs | |
| 206 | local yy = y*ys | |
| 207 | local yz = y*zs | |
| 208 | local zz = z*zs | |
| 209 | return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) | |
| 210 | end | |
| 211 | ||
| 212 | function QuaternionSlerp(a, b, t) | |
| 213 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
| 214 | local startInterp, finishInterp; | |
| 215 | if cosTheta >= 0.0001 then | |
| 216 | if (1 - cosTheta) > 0.0001 then | |
| 217 | local theta = math.acos(cosTheta) | |
| 218 | local invSinTheta = 1/math.sin(theta) | |
| 219 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
| 220 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 221 | else | |
| 222 | startInterp = 1-t | |
| 223 | finishInterp = t | |
| 224 | end | |
| 225 | else | |
| 226 | if (1+cosTheta) > 0.0001 then | |
| 227 | local theta = math.acos(-cosTheta) | |
| 228 | local invSinTheta = 1/math.sin(theta) | |
| 229 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
| 230 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 231 | else | |
| 232 | startInterp = t-1 | |
| 233 | finishInterp = t | |
| 234 | end | |
| 235 | end | |
| 236 | return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp | |
| 237 | end | |
| 238 | rayCast = function(Position, Direction, Range, Ignore) | |
| 239 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
| |
| 240 | end | |
| 241 | local v = game.Players.localPlayer | |
| 242 | local torso = v.Character.Torso | |
| 243 | ||
| 244 | plr = game.Players.LocalPlayer | |
| 245 | char = game.Players.LocalPlayer.Character | |
| 246 | hum = game.Players.LocalPlayer.Character.Humanoid | |
| 247 | t = game.Players.LocalPlayer.Character.Torso | |
| 248 | h = game.Players.LocalPlayer.Character.Head | |
| 249 | ra = game.Players.LocalPlayer.Character["Right Arm"] | |
| 250 | la = game.Players.LocalPlayer.Character["Left Arm"] | |
| 251 | rl = game.Players.LocalPlayer.Character["Right Leg"] | |
| 252 | ll = game.Players.LocalPlayer.Character["Left Leg"] | |
| 253 | tors = Character.Torso | |
| 254 | lleg = Character["Left Leg"] | |
| 255 | root = Character.HumanoidRootPart | |
| 256 | hed = Character.Head | |
| 257 | rleg = Character["Right Leg"] | |
| 258 | rarm = Character["Right Arm"] | |
| 259 | larm = Character["Left Arm"] | |
| 260 | bsize1 = NumberSequenceKeypoint.new(3,3,3) | |
| 261 | bsize2 = NumberSequenceKeypoint.new(10,10,10) | |
| 262 | local Effects = {}
| |
| 263 | attack = false | |
| 264 | local attacking = false | |
| 265 | vt = Vector3.new | |
| 266 | bc = BrickColor.new | |
| 267 | br = BrickColor.random | |
| 268 | it = Instance.new | |
| 269 | cf = CFrame.new | |
| 270 | euler = CFrame.fromEulerAnglesXYZ | |
| 271 | angles = CFrame.Angles | |
| 272 | matr = math.random | |
| 273 | local colororg = BrickColor.new("Dark indigo") -- set color u like
| |
| 274 | local meshtype = "Sphere" -- only for specialmesh | |
| 275 | mouse = plr:GetMouse() | |
| 276 | ||
| 277 | ||
| 278 | Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
| 279 | if hit.Parent==nil then | |
| 280 | return | |
| 281 | end | |
| 282 | h=hit.Parent:FindFirstChild("Humanoid")
| |
| 283 | for _,v in pairs(hit.Parent:children()) do | |
| 284 | if v:IsA("Humanoid") then
| |
| 285 | h=v | |
| 286 | end | |
| 287 | end | |
| 288 | if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
| |
| 289 | h=hit.Parent.Parent:FindFirstChild("Humanoid")
| |
| 290 | end | |
| 291 | if hit.Parent.className=="Hat" then | |
| 292 | hit=hit.Parent.Parent:findFirstChild("Head")
| |
| 293 | end | |
| 294 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
| |
| 295 | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
| |
| 296 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
| 297 | return | |
| 298 | end]] | |
| 299 | -- hs(hit,1.2) | |
| 300 | c=Instance.new("ObjectValue")
| |
| 301 | c.Name="creator" | |
| 302 | c.Value=game:service("Players").LocalPlayer
| |
| 303 | c.Parent=h | |
| 304 | game:GetService("Debris"):AddItem(c,.5)
| |
| 305 | Damage=math.random(minim,maxim) | |
| 306 | -- h:TakeDamage(Damage) | |
| 307 | blocked=false | |
| 308 | block=hit.Parent:findFirstChild("Block")
| |
| 309 | if block~=nil then | |
| 310 | print(block.className) | |
| 311 | if block.className=="NumberValue" then | |
| 312 | if block.Value>0 then | |
| 313 | blocked=true | |
| 314 | if decreaseblock==nil then | |
| 315 | block.Value=block.Value-1 | |
| 316 | end | |
| 317 | end | |
| 318 | end | |
| 319 | if block.className=="IntValue" then | |
| 320 | if block.Value>0 then | |
| 321 | blocked=true | |
| 322 | if decreaseblock~=nil then | |
| 323 | block.Value=block.Value-1 | |
| 324 | end | |
| 325 | end | |
| 326 | end | |
| 327 | end | |
| 328 | if blocked==false then | |
| 329 | -- h:TakeDamage(Damage) | |
| 330 | h.Health=h.Health-Damage | |
| 331 | showDamage(hit.Parent,Damage,3,TorsoColor) | |
| 332 | else | |
| 333 | h.Health=h.Health-(Damage/2) | |
| 334 | showDamage(hit.Parent,Damage/2,3,BrickColor.new("Bright blue"))
| |
| 335 | end | |
| 336 | if Type=="Knockdown" then | |
| 337 | hum=hit.Parent.Humanoid | |
| 338 | hum.PlatformStand=true | |
| 339 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 340 | swait(1) | |
| 341 | HHumanoid.PlatformStand=false | |
| 342 | end),hum) | |
| 343 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
| 344 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
| 345 | local bodvol=Instance.new("BodyVelocity")
| |
| 346 | bodvol.velocity=angle*knockback | |
| 347 | bodvol.P=5000 | |
| 348 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
| 349 | bodvol.Parent=hit | |
| 350 | rl=Instance.new("BodyAngularVelocity")
| |
| 351 | rl.P=3000 | |
| 352 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
| 353 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
| 354 | rl.Parent=hit | |
| 355 | game:GetService("Debris"):AddItem(bodvol,.5)
| |
| 356 | game:GetService("Debris"):AddItem(rl,.5)
| |
| 357 | elseif Type=="Normal" then | |
| 358 | vp=Instance.new("BodyVelocity")
| |
| 359 | vp.P=500 | |
| 360 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
| 361 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
| 362 | if KnockbackType==1 then | |
| 363 | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
| 364 | elseif KnockbackType==2 then | |
| 365 | vp.velocity=Property.CFrame.lookVector*knockback | |
| 366 | end | |
| 367 | if knockback>0 then | |
| 368 | vp.Parent=hit.Parent.Torso | |
| 369 | end | |
| 370 | game:GetService("Debris"):AddItem(vp,.5)
| |
| 371 | elseif Type=="Up" then | |
| 372 | local bodyVelocity=Instance.new("BodyVelocity")
| |
| 373 | bodyVelocity.velocity=vt(0,10,0) | |
| 374 | bodyVelocity.P=1000 | |
| 375 | bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009) | |
| 376 | bodyVelocity.Parent=hit | |
| 377 | game:GetService("Debris"):AddItem(bodyVelocity,1)
| |
| 378 | rl=Instance.new("BodyAngularVelocity")
| |
| 379 | rl.P=3000 | |
| 380 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
| 381 | rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) | |
| 382 | rl.Parent=hit | |
| 383 | game:GetService("Debris"):AddItem(rl,.5)
| |
| 384 | elseif Type=="Snare" then | |
| 385 | bp=Instance.new("BodyPosition")
| |
| 386 | bp.P=2000 | |
| 387 | bp.D=100 | |
| 388 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
| 389 | bp.position=hit.Parent.Torso.Position | |
| 390 | bp.Parent=hit.Parent.Torso | |
| 391 | game:GetService("Debris"):AddItem(bp,1)
| |
| 392 | elseif Type=="Target" then | |
| 393 | if Targetting==false then | |
| 394 | ZTarget=hit.Parent.Torso | |
| 395 | coroutine.resume(coroutine.create(function(Part) | |
| 396 | swait(5) | |
| 397 | end),ZTarget) | |
| 398 | TargHum=ZTarget.Parent:findFirstChild("Humanoid")
| |
| 399 | targetgui=Instance.new("BillboardGui")
| |
| 400 | targetgui.Parent=ZTarget | |
| 401 | targetgui.Size=UDim2.new(10,100,10,100) | |
| 402 | targ=Instance.new("ImageLabel")
| |
| 403 | targ.Parent=targetgui | |
| 404 | targ.BackgroundTransparency=1 | |
| 405 | targ.Image="rbxassetid://4834067" | |
| 406 | targ.Size=UDim2.new(1,0,1,0) | |
| 407 | cam.CameraType="Scriptable" | |
| 408 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
| 409 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
| 410 | workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
| 411 | Targetting=true | |
| 412 | RocketTarget=ZTarget | |
| 413 | for i=1,Property do | |
| 414 | --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do | |
| 415 | if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then | |
| 416 | swait() | |
| 417 | end | |
| 418 | --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100) | |
| 419 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
| 420 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
| 421 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0) | |
| 422 | end | |
| 423 | Targetting=false | |
| 424 | RocketTarget=nil | |
| 425 | targetgui.Parent=nil | |
| 426 | cam.CameraType="Custom" | |
| 427 | end | |
| 428 | end | |
| 429 | debounce=Instance.new("BoolValue")
| |
| 430 | debounce.Name="DebounceHit" | |
| 431 | debounce.Parent=hit.Parent | |
| 432 | debounce.Value=true | |
| 433 | game:GetService("Debris"):AddItem(debounce,Delay)
| |
| 434 | c=Instance.new("ObjectValue")
| |
| 435 | c.Name="creator" | |
| 436 | c.Value=Player | |
| 437 | c.Parent=h | |
| 438 | game:GetService("Debris"):AddItem(c,.5)
| |
| 439 | CRIT=false | |
| 440 | hitDeb=true | |
| 441 | AttackPos=6 | |
| 442 | end | |
| 443 | end | |
| 444 | ||
| 445 | showDamage=function(Char,Dealt,du,Color) | |
| 446 | m=Instance.new("Model")
| |
| 447 | m.Name="" | |
| 448 | h=Instance.new("Humanoid")
| |
| 449 | h.Health=0 | |
| 450 | h.MaxHealth=0 | |
| 451 | h.Parent=m | |
| 452 | c=Instance.new("Part")
| |
| 453 | c.Transparency=0 | |
| 454 | c.Material = "Neon" | |
| 455 | c.BrickColor=bc("Bright red")
| |
| 456 | c.Name="Head" | |
| 457 | c.TopSurface=0 | |
| 458 | c.BottomSurface=0 | |
| 459 | CV="Hot pink" | |
| 460 | ||
| 461 | local txt = Instance.new("BillboardGui", c)
| |
| 462 | txt.Adornee = c | |
| 463 | txt.Name = "_status" | |
| 464 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
| 465 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
| 466 | local text = Instance.new("TextLabel", txt)
| |
| 467 | text.Size = UDim2.new(10, 0, 7, 0) | |
| 468 | text.FontSize = "Size24" | |
| 469 | text.TextScaled = true | |
| 470 | text.TextTransparency = 0 | |
| 471 | text.BackgroundTransparency = 1 | |
| 472 | text.TextTransparency = 0 | |
| 473 | text.TextStrokeTransparency = 0 | |
| 474 | if Dealt < 12 then | |
| 475 | text.Font = "Highway" | |
| 476 | elseif Dealt < 20 then | |
| 477 | text.Font = "SourceSansBold" | |
| 478 | elseif Dealt >= 20 then | |
| 479 | text.Font = "Fantasy" | |
| 480 | end | |
| 481 | text.TextStrokeColor3 = BrickColor.new("Really black").Color
| |
| 482 | local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
| |
| 483 | v=Instance.new("Part")
| |
| 484 | v.Name = "ColorBrick" | |
| 485 | v.Parent=c | |
| 486 | v.FormFactor="Symmetric" | |
| 487 | v.Anchored=true | |
| 488 | v.CanCollide=false | |
| 489 | v.BottomSurface="Smooth" | |
| 490 | v.TopSurface="Smooth" | |
| 491 | v.Size=Vector3.new(10,5,3) | |
| 492 | v.Transparency=1 | |
| 493 | v.CFrame=c.CFrame | |
| 494 | v.BrickColor=BrickColor.new(CV) | |
| 495 | v.Transparency=1 | |
| 496 | if Dealt < 12 then | |
| 497 | text.TextColor3 = BrickColor.new("White").Color
| |
| 498 | elseif Dealt < 20 then | |
| 499 | text.TextColor3 = BrickColor.new("Bright yellow").Color
| |
| 500 | elseif Dealt >= 20 then | |
| 501 | text.TextColor3 = BrickColor.new("Really red").Color
| |
| 502 | end | |
| 503 | v.Shape="Block" | |
| 504 | text.Text = tostring(Dealt).. "!" | |
| 505 | local dam = Instance.new("Sound",c)
| |
| 506 | local rndm=math.random(1,#hitsounds) | |
| 507 | local r=rndm | |
| 508 | dam.SoundId = "http://www.roblox.com/asset/?id="..hitsounds[r] | |
| 509 | dam.Volume = 1.25 | |
| 510 | dam.Pitch = 1 | |
| 511 | dam:Play() | |
| 512 | c.formFactor="Plate" | |
| 513 | c.Transparency = 0.99 | |
| 514 | c.Size=Vector3.new(1,.4,1) | |
| 515 | ms=Instance.new("CylinderMesh")
| |
| 516 | ms.Scale=Vector3.new(.8,.8,.8) | |
| 517 | if CRIT==true then | |
| 518 | ms.Scale=Vector3.new(1,1.25,1) | |
| 519 | end | |
| 520 | ms.Parent=c | |
| 521 | c.Reflectance=0 | |
| 522 | Instance.new("BodyGyro").Parent=c
| |
| 523 | c.Parent=m | |
| 524 | if Char:findFirstChild("Head")~=nil then
| |
| 525 | c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
| 526 | elseif Char.Parent:findFirstChild("Head")~=nil then
| |
| 527 | c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
| 528 | end | |
| 529 | f=Instance.new("BodyPosition")
| |
| 530 | f.P=2000 | |
| 531 | f.D=100 | |
| 532 | f.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
| 533 | f.position=c.Position+Vector3.new(0,3,0) | |
| 534 | f.Parent=c | |
| 535 | game:GetService("Debris"):AddItem(m,.5+du)
| |
| 536 | c.CanCollide=false | |
| 537 | m.Parent=workspace | |
| 538 | c.CanCollide=false | |
| 539 | wait(1) | |
| 540 | for l = 0, 9 do | |
| 541 | text.TextTransparency = text.TextTransparency + 0.1 | |
| 542 | text.TextStrokeTransparency = text.TextStrokeTransparency + 0.1 | |
| 543 | wait() | |
| 544 | end | |
| 545 | end | |
| 546 | ||
| 547 | ---------------- Weapon model | |
| 548 | ||
| 549 | local handle = Instance.new("Part")
| |
| 550 | handle.Parent = Character | |
| 551 | handle.Size = Vector3.new(0.225, 0.225, 0.225) | |
| 552 | handle.Archivable = true | |
| 553 | handle.Transparency = 0 | |
| 554 | handle.BrickColor = BrickColor.new("Really red")
| |
| 555 | handle.Material = "Neon" | |
| 556 | local handlmesh = Instance.new("BlockMesh",handle)
| |
| 557 | handlmesh.Scale = Vector3.new(0.75,0.75,32.5) | |
| 558 | local weld1 = Instance.new("Weld")
| |
| 559 | weld1.Parent = handle | |
| 560 | weld1.Part0 = rarm | |
| 561 | weld1.Part1 = handle | |
| 562 | weld1.C1 = CFrame.new(0, 1, 0.25*1.5)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)) | |
| 563 | local handle2 = Instance.new("Part")
| |
| 564 | handle2.Parent = Character | |
| 565 | handle2.Size = Vector3.new(0.3, 0.3, 0.75) | |
| 566 | handle2.Archivable = true | |
| 567 | handle2.Transparency = 0 | |
| 568 | handle2.BrickColor = BrickColor.new("Really red")
| |
| 569 | handle2.Material = "Neon" | |
| 570 | local weld12 = Instance.new("Weld")
| |
| 571 | weld12.Parent = handle2 | |
| 572 | weld12.Part0 = rarm | |
| 573 | weld12.Part1 = handle2 | |
| 574 | weld12.C1 = CFrame.new(0, 1, -2.5*1.45)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)) | |
| 575 | local handle3 = Instance.new("Part")
| |
| 576 | handle3.Parent = Character | |
| 577 | handle3.Size = Vector3.new(0.275, 0.275, 0.75) | |
| 578 | handle3.Archivable = true | |
| 579 | handle3.Transparency = 0 | |
| 580 | handle3.BrickColor = BrickColor.new("Really red")
| |
| 581 | handle3.Material = "Neon" | |
| 582 | local weld13 = Instance.new("Weld")
| |
| 583 | weld13.Parent = handle3 | |
| 584 | weld13.Part0 = rarm | |
| 585 | weld13.Part1 = handle3 | |
| 586 | weld13.C1 = CFrame.new(0, 1, 2.5*1.5)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)) | |
| 587 | local blade = Instance.new("Part")
| |
| 588 | blade.Parent = Character | |
| 589 | blade.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 590 | blade.Archivable = true | |
| 591 | blade.Transparency = 0 | |
| 592 | blade.CanCollide = false | |
| 593 | blade.BrickColor = BrickColor.new("Really red")
| |
| 594 | blade.Material = "Neon" | |
| 595 | local msh = Instance.new("SpecialMesh",blade)
| |
| 596 | msh.Scale = vt(0.25,1.25*5,3*5) | |
| 597 | msh.MeshType = "Wedge" | |
| 598 | local weld1a = Instance.new("Weld")
| |
| 599 | weld1a.Parent = blade | |
| 600 | weld1a.Part0 = rarm | |
| 601 | weld1a.Part1 = blade | |
| 602 | weld1a.C1 = CFrame.new(0, -3.05, 2.65)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(0)) | |
| 603 | local bladeefo = Instance.new("ParticleEmitter",blade)
| |
| 604 | bladeefo.Texture = "http://www.roblox.com/asset/?id=296874871" | |
| 605 | bladeefo.LightEmission = 1 | |
| 606 | bladeefo.LockedToPart = true | |
| 607 | bladeefo.Color = ColorSequence.new(BrickColor.new("Really red").Color)
| |
| 608 | bladeefo.Rate = 900 | |
| 609 | bladeefo.VelocitySpread = 900000000000 | |
| 610 | bladeefo.Lifetime = NumberRange.new(0.25) | |
| 611 | bladeefo.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1.25,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 612 | bladeefo.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0.85,0)})
| |
| 613 | bladeefo.Rotation = NumberRange.new(-500,500) | |
| 614 | bladeefo.RotSpeed = NumberRange.new(-500,500) | |
| 615 | bladeefo.Speed = NumberRange.new(5,7.5) | |
| 616 | ||
| 617 | local bld2 = blade:Clone() | |
| 618 | bld2.Parent = Character | |
| 619 | local bld2eff = bld2.ParticleEmitter | |
| 620 | local weld2a = bld2.Weld | |
| 621 | weld2a.C1 = CFrame.new(0, -3.55, 3.15)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(0)) | |
| 622 | local bld3 = blade:Clone() | |
| 623 | bld3.Parent = Character | |
| 624 | local bld3eff = bld3.ParticleEmitter | |
| 625 | local weld3a = bld3.Weld | |
| 626 | weld3a.C1 = CFrame.new(0, -4.05, 3.65)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(0)) | |
| 627 | local bld4 = blade:Clone() | |
| 628 | bld4.Parent = Character | |
| 629 | local bld4eff = bld4.ParticleEmitter | |
| 630 | local weld4a = bld4.Weld | |
| 631 | weld4a.C1 = CFrame.new(0, -4.55, 4.15)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)) | |
| 632 | ----- lol | |
| 633 | handle.CanCollide = false | |
| 634 | handle2.CanCollide = false | |
| 635 | handle3.CanCollide = false | |
| 636 | ---- | |
| 637 | ||
| 638 | function attackone() | |
| 639 | attack = true | |
| 640 | for i = 0,1,0.1 do | |
| 641 | swait() | |
| 642 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 643 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.3) | |
| 644 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(90), math.rad(10)), 0.3) | |
| 645 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(120), math.rad(0), math.rad(-10)), 0.3) | |
| 646 | end | |
| 647 | wait(0.15) | |
| 648 | local slas = Instance.new("Sound",blade)
| |
| 649 | slas.SoundId = "rbxassetid://92597296" | |
| 650 | slas.Volume = 2.5 | |
| 651 | slas.Pitch = 0.74 | |
| 652 | slas:Play() | |
| 653 | local slas2 = Instance.new("Sound",blade)
| |
| 654 | slas2.SoundId = "rbxassetid://92597369" | |
| 655 | slas2.Volume = 1.5 | |
| 656 | slas2.Pitch = 0.5 | |
| 657 | slas2:Play() | |
| 658 | local hit = blade.Touched:connect(function(hit) | |
| 659 | Damagefunc(hit,3,7,5,"Normal",root,.2,1) | |
| 660 | end) | |
| 661 | local hit2 = bld2.Touched:connect(function(hit) | |
| 662 | Damagefunc(hit,3,7,5,"Normal",root,.2,1) | |
| 663 | end) | |
| 664 | local hit3 = bld3.Touched:connect(function(hit) | |
| 665 | Damagefunc(hit,3,7,5,"Normal",root,.2,1) | |
| 666 | end) | |
| 667 | local hit4 = bld4.Touched:connect(function(hit) | |
| 668 | Damagefunc(hit,3,7,5,"Normal",root,.2,1) | |
| 669 | end) | |
| 670 | for i = 0,1,0.1 do | |
| 671 | swait() | |
| 672 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.3) | |
| 673 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.3) | |
| 674 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.25) * angles(math.rad(180), math.rad(180), math.rad(-120)), 0.3) | |
| 675 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.3) | |
| 676 | end | |
| 677 | attack = false | |
| 678 | hit:disconnect() | |
| 679 | hit2:disconnect() | |
| 680 | hit3:disconnect() | |
| 681 | hit4:disconnect() | |
| 682 | wait(3) | |
| 683 | slas:Destroy() | |
| 684 | slas2:Destroy() | |
| 685 | end | |
| 686 | ||
| 687 | function attacktwo() | |
| 688 | attack = true | |
| 689 | for i = 0,1,0.1 do | |
| 690 | swait() | |
| 691 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 692 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(90)),.3) | |
| 693 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(-90), math.rad(10)), 0.3) | |
| 694 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(120), math.rad(0), math.rad(-10)), 0.3) | |
| 695 | end | |
| 696 | wait(0.15) | |
| 697 | local slas = Instance.new("Sound",blade)
| |
| 698 | slas.SoundId = "rbxassetid://28144425" | |
| 699 | slas.Volume = 2.5 | |
| 700 | slas.Pitch = 0.95 | |
| 701 | slas:Play() | |
| 702 | local hit = blade.Touched:connect(function(hit) | |
| 703 | Damagefunc(hit,3,7,5,"Normal",root,.2,1) | |
| 704 | end) | |
| 705 | local hit2 = bld2.Touched:connect(function(hit) | |
| 706 | Damagefunc(hit,3,7,5,"Normal",root,.2,1) | |
| 707 | end) | |
| 708 | local hit3 = bld3.Touched:connect(function(hit) | |
| 709 | Damagefunc(hit,3,7,5,"Normal",root,.2,1) | |
| 710 | end) | |
| 711 | local hit4 = bld4.Touched:connect(function(hit) | |
| 712 | Damagefunc(hit,3,7,5,"Normal",root,.2,1) | |
| 713 | end) | |
| 714 | for i = 0,1,0.1 do | |
| 715 | swait() | |
| 716 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 717 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.3) | |
| 718 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.25) * angles(math.rad(0), math.rad(-90), math.rad(-90)), 0.3) | |
| 719 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-10)), 0.3) | |
| 720 | end | |
| 721 | attack = false | |
| 722 | hit:disconnect() | |
| 723 | hit2:disconnect() | |
| 724 | hit3:disconnect() | |
| 725 | hit4:disconnect() | |
| 726 | wait(3) | |
| 727 | slas:Destroy() | |
| 728 | end | |
| 729 | ||
| 730 | function attackthree() | |
| 731 | attack = true | |
| 732 | local swin = Instance.new("Sound",blade)
| |
| 733 | swin.SoundId = "rbxassetid://92597296" | |
| 734 | swin.Volume = 5 | |
| 735 | swin.Pitch = 0.75 | |
| 736 | swin:Play() | |
| 737 | for i = 0,1,0.1 do | |
| 738 | swait() | |
| 739 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 740 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(90)),.3) | |
| 741 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(-90), math.rad(10)), 0.3) | |
| 742 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(120), math.rad(0), math.rad(-10)), 0.3) | |
| 743 | end | |
| 744 | wait(0.15) | |
| 745 | local hit = blade.Touched:connect(function(hit) | |
| 746 | Damagefunc(hit,3,7,5,"Normal",root,.2,1) | |
| 747 | end) | |
| 748 | local hit2 = bld2.Touched:connect(function(hit) | |
| 749 | Damagefunc(hit,3,7,5,"Normal",root,.2,1) | |
| 750 | end) | |
| 751 | local hit3 = bld3.Touched:connect(function(hit) | |
| 752 | Damagefunc(hit,3,7,5,"Normal",root,.2,1) | |
| 753 | end) | |
| 754 | local hit4 = bld4.Touched:connect(function(hit) | |
| 755 | Damagefunc(hit,3,7,5,"Normal",root,.2,1) | |
| 756 | end) | |
| 757 | for z = 0,2 do | |
| 758 | local slas = Instance.new("Sound",blade)
| |
| 759 | slas.SoundId = "rbxassetid://92597369" | |
| 760 | slas.Volume = 1.5 | |
| 761 | slas.Pitch = 1 | |
| 762 | slas:Play() | |
| 763 | local swin2 = Instance.new("Sound",blade)
| |
| 764 | swin2.SoundId = "rbxassetid://92597296" | |
| 765 | swin2.Volume = 5 | |
| 766 | swin2.Pitch = 1.25 | |
| 767 | swin2:Play() | |
| 768 | local swin3 = Instance.new("Sound",blade)
| |
| 769 | swin3.SoundId = "rbxassetid://92597296" | |
| 770 | swin3.Volume = 2.5 | |
| 771 | swin3.Pitch = 0.95 | |
| 772 | swin3:Play() | |
| 773 | for i = 0,1,0.5 do | |
| 774 | swait() | |
| 775 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(60)),.3) | |
| 776 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
| 777 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.25) * angles(math.rad(0), math.rad(-90), math.rad(-90)), 0.3) | |
| 778 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-10)), 0.3) | |
| 779 | end | |
| 780 | for i = 0,1,0.5 do | |
| 781 | swait() | |
| 782 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(120)),.3) | |
| 783 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
| 784 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.25) * angles(math.rad(0), math.rad(-90), math.rad(-90)), 0.3) | |
| 785 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-10)), 0.3) | |
| 786 | end | |
| 787 | for i = 0,1,0.5 do | |
| 788 | swait() | |
| 789 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(180)),.3) | |
| 790 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
| 791 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.25) * angles(math.rad(0), math.rad(-90), math.rad(-90)), 0.3) | |
| 792 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-10)), 0.3) | |
| 793 | end | |
| 794 | for i = 0,1,0.5 do | |
| 795 | swait() | |
| 796 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(240)),.3) | |
| 797 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
| 798 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.25) * angles(math.rad(0), math.rad(-90), math.rad(-90)), 0.3) | |
| 799 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-10)), 0.3) | |
| 800 | end | |
| 801 | for i = 0,1,0.5 do | |
| 802 | swait() | |
| 803 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(300)),.3) | |
| 804 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
| 805 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.25) * angles(math.rad(0), math.rad(-90), math.rad(-90)), 0.3) | |
| 806 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-10)), 0.3) | |
| 807 | end | |
| 808 | for i = 0,1,0.5 do | |
| 809 | swait() | |
| 810 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(360)),.3) | |
| 811 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
| 812 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.25) * angles(math.rad(0), math.rad(-90), math.rad(-90)), 0.3) | |
| 813 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-10)), 0.3) | |
| 814 | end | |
| 815 | slas:Destroy() | |
| 816 | swin2:Destroy() | |
| 817 | swin3:Destroy() | |
| 818 | end | |
| 819 | attack = false | |
| 820 | hit:disconnect() | |
| 821 | hit2:disconnect() | |
| 822 | hit3:disconnect() | |
| 823 | hit4:disconnect() | |
| 824 | wait(3) | |
| 825 | end | |
| 826 | ||
| 827 | function attackfour() | |
| 828 | attack = true | |
| 829 | for i = 0,1,0.1 do | |
| 830 | swait() | |
| 831 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-100)),.3) | |
| 832 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(100)),.3) | |
| 833 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(30), math.rad(-40), math.rad(10)), 0.3) | |
| 834 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3) | |
| 835 | end | |
| 836 | wait(0.05) | |
| 837 | local swin = Instance.new("Sound",blade)
| |
| 838 | swin.SoundId = "rbxassetid://92597296" | |
| 839 | swin.Volume = 2.5 | |
| 840 | swin.Pitch = 0.75 | |
| 841 | swin:Play() | |
| 842 | for i = 0,1,0.1 do | |
| 843 | swait() | |
| 844 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 845 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(90)),.3) | |
| 846 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(30), math.rad(-40), math.rad(10)), 0.3) | |
| 847 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.3) | |
| 848 | end | |
| 849 | local lb = Instance.new("Part")
| |
| 850 | lb.Parent = char | |
| 851 | lb.Material = "Neon" | |
| 852 | lb.BrickColor = BrickColor.new("Really red")
| |
| 853 | lb.CanCollide = false | |
| 854 | lb.Shape = "Ball" | |
| 855 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*5 | |
| 856 | lb.CFrame = lb.CFrame - vt(0,0.5,0) | |
| 857 | lb.Anchored = true | |
| 858 | lb.Size = vt(3,3,3) | |
| 859 | local thing = Instance.new("SpecialMesh",lb)
| |
| 860 | thing.MeshType = meshtype | |
| 861 | local hitcircle = lb.Touched:connect(function(hit) | |
| 862 | Damagefunc(hit,7,14,5,"Normal",root,.2,1) | |
| 863 | end) | |
| 864 | local sa = Instance.new("Sound",lb)
| |
| 865 | sa.SoundId = "rbxassetid://233091205" | |
| 866 | sa.Volume = 1.25 | |
| 867 | sa.Pitch = 1 | |
| 868 | sa:Play() | |
| 869 | local tra = Instance.new("ParticleEmitter",lb)
| |
| 870 | tra.Texture = "rbxassetid://296874871" | |
| 871 | tra.LightEmission = 0.95 | |
| 872 | tra.Color = ColorSequence.new(lb.BrickColor.Color) | |
| 873 | tra.Rate = 1000 | |
| 874 | tra.Lifetime = NumberRange.new(1) | |
| 875 | tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 876 | tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 877 | tra.Speed = NumberRange.new(10,25) | |
| 878 | tra.Rotation = NumberRange.new(-500,500) | |
| 879 | tra.VelocitySpread = 90000 | |
| 880 | tra.RotSpeed = NumberRange.new(-500,500) | |
| 881 | for i = 0, 24 do | |
| 882 | wait() | |
| 883 | thing.Scale = thing.Scale + vt(0.1,0.1,0.1) | |
| 884 | lb.Size = lb.Size + vt(0.1,0.1,0.1) | |
| 885 | lb.Transparency = lb.Transparency + 0.05 | |
| 886 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*5 | |
| 887 | lb.CFrame = lb.CFrame - vt(0,0.5,0) | |
| 888 | end | |
| 889 | attack = false | |
| 890 | hitcircle:disconnect() | |
| 891 | tra.Rate = 0 | |
| 892 | wait(5) | |
| 893 | lb:Destroy() | |
| 894 | swin:Destroy() | |
| 895 | end | |
| 896 | ||
| 897 | local hold = false | |
| 898 | function do1() | |
| 899 | attack = true | |
| 900 | for i = 0,1,0.1 do | |
| 901 | swait() | |
| 902 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 903 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(90)),.3) | |
| 904 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(30), math.rad(-40), math.rad(10)), 0.3) | |
| 905 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(-10), math.rad(-90)), 0.3) | |
| 906 | end | |
| 907 | local lb = Instance.new("Part")
| |
| 908 | lb.Parent = char | |
| 909 | lb.Material = "Neon" | |
| 910 | lb.BrickColor = BrickColor.new("Really red")
| |
| 911 | lb.CanCollide = false | |
| 912 | lb.Shape = "Ball" | |
| 913 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*5 | |
| 914 | lb.Anchored = true | |
| 915 | lb.Size = vt(0.2,0.2,0.2) | |
| 916 | local thing = Instance.new("SpecialMesh",lb)
| |
| 917 | thing.MeshType = meshtype | |
| 918 | local tra = Instance.new("ParticleEmitter",lb)
| |
| 919 | tra.Texture = "rbxassetid://296874871" | |
| 920 | tra.LightEmission = 0.95 | |
| 921 | tra.Color = ColorSequence.new(lb.BrickColor.Color) | |
| 922 | tra.Rate = 1000 | |
| 923 | tra.Lifetime = NumberRange.new(0.25) | |
| 924 | tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,12.5,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 925 | tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0.95,0)})
| |
| 926 | tra.Speed = NumberRange.new(0) | |
| 927 | tra.Rotation = NumberRange.new(-500,500) | |
| 928 | tra.VelocitySpread = 90000 | |
| 929 | tra.LockedToPart = true | |
| 930 | tra.RotSpeed = NumberRange.new(-500,500) | |
| 931 | local saz = Instance.new("Sound",lb)
| |
| 932 | saz.SoundId = "rbxassetid://192410062" | |
| 933 | saz.Volume = 1.5 | |
| 934 | saz.Pitch = 1 | |
| 935 | saz:Play() | |
| 936 | for i = 0, 24 do | |
| 937 | wait() | |
| 938 | lb.Size = lb.Size + vt(0.15,0.15,0.15) | |
| 939 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*5 | |
| 940 | end | |
| 941 | while wait() do | |
| 942 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*5 | |
| 943 | if hold == false then | |
| 944 | break | |
| 945 | end | |
| 946 | end | |
| 947 | lb.Touched:connect(function(hit) | |
| 948 | Damagefunc(hit,10,25,5,"Normal",root,.2,1) | |
| 949 | end) | |
| 950 | tra.Rate = 0 | |
| 951 | lb.Anchored = false | |
| 952 | local sa = Instance.new("Sound",lb)
| |
| 953 | sa.SoundId = "rbxassetid://233091205" | |
| 954 | sa.Volume = 1.25 | |
| 955 | sa.Pitch = 1 | |
| 956 | sa:Play() | |
| 957 | local trail = Instance.new("ParticleEmitter",lb)
| |
| 958 | trail.Texture = "rbxassetid://296874871" | |
| 959 | trail.LightEmission = 0.95 | |
| 960 | trail.Color = ColorSequence.new(lb.BrickColor.Color) | |
| 961 | trail.Rate = 10000 | |
| 962 | trail.Lifetime = NumberRange.new(1.5) | |
| 963 | trail.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 964 | trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.95,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 965 | trail.Speed = NumberRange.new(0,0) | |
| 966 | trail.Rotation = NumberRange.new(-500,500) | |
| 967 | trail.RotSpeed = NumberRange.new(-500,500) | |
| 968 | local bv = Instance.new("BodyVelocity")
| |
| 969 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 970 | bv.velocity = mouse.Hit.lookVector *100 | |
| 971 | bv.Parent = lb | |
| 972 | wait(0.1) | |
| 973 | attack = false | |
| 974 | wait(10) | |
| 975 | lb:Destroy() | |
| 976 | end | |
| 977 | ||
| 978 | function do2() | |
| 979 | attack = true | |
| 980 | for i = 0,1,0.1 do | |
| 981 | swait() | |
| 982 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 983 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 984 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(60), math.rad(90)), 0.3) | |
| 985 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 986 | end | |
| 987 | local touched = false | |
| 988 | local over = false | |
| 989 | local delay = false | |
| 990 | local spart = Instance.new("Part",char)
| |
| 991 | local thing = Instance.new("SpecialMesh",spart)
| |
| 992 | thing.MeshType = meshtype | |
| 993 | spart.Size = vt(1,1,1) | |
| 994 | spart.Anchored = true | |
| 995 | spart.BrickColor = BrickColor.new("Really red")
| |
| 996 | spart.Transparency = 0.5 | |
| 997 | spart.CanCollide = false | |
| 998 | spart.Material = "Neon" | |
| 999 | spart.CFrame = hed.CFrame + Vector3.new(0,-1,0) | |
| 1000 | local pt1e = NumberSequenceKeypoint.new(0,2,0) | |
| 1001 | local pt2e = NumberSequenceKeypoint.new(1,0.5,0) | |
| 1002 | local effecto = Instance.new("ParticleEmitter",spart)
| |
| 1003 | effecto.Texture = "rbxassetid://296874871" | |
| 1004 | effecto.LightEmission = 1 | |
| 1005 | effecto.LockedToPart = true | |
| 1006 | effecto.Color = ColorSequence.new(BrickColor.new("Really red").Color)
| |
| 1007 | effecto.Rate = 10000 | |
| 1008 | effecto.VelocitySpread = 900000000000 | |
| 1009 | effecto.Lifetime = NumberRange.new(0.25) | |
| 1010 | effecto.Size = NumberSequence.new({pt1e,pt2e})
| |
| 1011 | effecto.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 1012 | effecto.Speed = NumberRange.new(10,25) | |
| 1013 | effecto.Rotation = NumberRange.new(-500,500) | |
| 1014 | effecto.RotSpeed = NumberRange.new(-500,500) | |
| 1015 | spart.CFrame = tors.CFrame + Vector3.new(0,0.1,0) | |
| 1016 | local tick2 = Instance.new("Sound",spart)
| |
| 1017 | tick2.SoundId = "rbxassetid://233091205" | |
| 1018 | tick2.Volume = 2.5 | |
| 1019 | tick2.Pitch = 1 | |
| 1020 | tick2:Play() | |
| 1021 | spart.CFrame = hed.CFrame + Vector3.new(0,-1,0) | |
| 1022 | spart.Anchored = false | |
| 1023 | spart.Size = vt(0.75,12.5,12.5) | |
| 1024 | spart.CFrame = hed.CFrame + Vector3.new(0,-1,0) | |
| 1025 | local bv = Instance.new("BodyVelocity")
| |
| 1026 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 1027 | bv.velocity = hed.CFrame.lookVector * 175 | |
| 1028 | bv.Parent = spart | |
| 1029 | spart.Touched:connect(function(hit) | |
| 1030 | local saveposition = spart.CFrame | |
| 1031 | local effector2 = Instance.new("ParticleEmitter",spart)
| |
| 1032 | effector2.Texture = "rbxassetid://296874871" | |
| 1033 | effector2.LightEmission = 1 | |
| 1034 | effector2.Color = ColorSequence.new(BrickColor.new("Really red").Color)
| |
| 1035 | effector2.Rate = 10000 | |
| 1036 | effector2.Lifetime = NumberRange.new(0.25) | |
| 1037 | effector2.VelocitySpread = 999999999999999 | |
| 1038 | effector2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 1039 | effector2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 1040 | effector2.Speed = NumberRange.new(50) | |
| 1041 | effector2.Rotation = NumberRange.new(-500,500) | |
| 1042 | effector2.RotSpeed = NumberRange.new(-500,500) | |
| 1043 | Damagefunc(hit,12,22,-20,"Normal",root,.2,1) | |
| 1044 | over = true | |
| 1045 | wait(0.25) | |
| 1046 | effector2.Rate = 0 | |
| 1047 | wait(0.25) | |
| 1048 | effector2:Destroy() | |
| 1049 | end) | |
| 1050 | for i = 0,1,0.1 do | |
| 1051 | swait() | |
| 1052 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 1053 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 1054 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(-90), math.rad(90)), 0.3) | |
| 1055 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 1056 | end | |
| 1057 | attack = false | |
| 1058 | wait(5) | |
| 1059 | effecto.Rate = 0 | |
| 1060 | wait(1.5) | |
| 1061 | spart:Destroy() | |
| 1062 | end | |
| 1063 | ||
| 1064 | function do3() | |
| 1065 | attack = true | |
| 1066 | local lb = Instance.new("Part")
| |
| 1067 | lb.Parent = char | |
| 1068 | lb.Material = "Neon" | |
| 1069 | lb.BrickColor = BrickColor.new("Really red")
| |
| 1070 | lb.CanCollide = false | |
| 1071 | lb.Shape = "Ball" | |
| 1072 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*5 | |
| 1073 | lb.Anchored = true | |
| 1074 | lb.Size = vt(0.2,0.2,0.2) | |
| 1075 | local thing = Instance.new("SpecialMesh",lb)
| |
| 1076 | thing.MeshType = meshtype | |
| 1077 | hum.WalkSpeed = 0 | |
| 1078 | for i = 0,1,0.75 do | |
| 1079 | swait() | |
| 1080 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
| 1081 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
| 1082 | thing.Scale = thing.Scale + vt(4.5,4.5,0) | |
| 1083 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 1084 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 1085 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3) | |
| 1086 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 1087 | end | |
| 1088 | for i = 0,1,0.75 do | |
| 1089 | swait() | |
| 1090 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
| 1091 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
| 1092 | thing.Scale = thing.Scale + vt(4.5,4.5,0) | |
| 1093 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 1094 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 1095 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(30), math.rad(30), math.rad(90)), 0.3) | |
| 1096 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 1097 | end | |
| 1098 | for i = 0,1,0.75 do | |
| 1099 | swait() | |
| 1100 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
| 1101 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
| 1102 | thing.Scale = thing.Scale + vt(4.5,4.5,0) | |
| 1103 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 1104 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 1105 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(60), math.rad(30), math.rad(90)), 0.3) | |
| 1106 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 1107 | end | |
| 1108 | for i = 0,1,0.75 do | |
| 1109 | swait() | |
| 1110 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
| 1111 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
| 1112 | thing.Scale = thing.Scale + vt(4.5,4.5,0) | |
| 1113 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 1114 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 1115 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(30), math.rad(90)), 0.3) | |
| 1116 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 1117 | end | |
| 1118 | for i = 0,1,0.75 do | |
| 1119 | swait() | |
| 1120 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
| 1121 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
| 1122 | thing.Scale = thing.Scale + vt(4.5,4.5,0) | |
| 1123 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 1124 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 1125 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(120), math.rad(30), math.rad(90)), 0.3) | |
| 1126 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 1127 | end | |
| 1128 | for i = 0,1,0.75 do | |
| 1129 | swait() | |
| 1130 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
| 1131 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
| 1132 | thing.Scale = thing.Scale + vt(4.5,4.5,0) | |
| 1133 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 1134 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 1135 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(180), math.rad(30), math.rad(90)), 0.3) | |
| 1136 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 1137 | end | |
| 1138 | for i = 0,1,0.75 do | |
| 1139 | swait() | |
| 1140 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
| 1141 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
| 1142 | thing.Scale = thing.Scale + vt(4.5,4.5,0) | |
| 1143 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 1144 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 1145 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(240), math.rad(30), math.rad(90)), 0.3) | |
| 1146 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 1147 | end | |
| 1148 | for i = 0,1,0.75 do | |
| 1149 | swait() | |
| 1150 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
| 1151 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
| 1152 | thing.Scale = thing.Scale + vt(4.5,4.5,0) | |
| 1153 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 1154 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 1155 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(300), math.rad(30), math.rad(90)), 0.3) | |
| 1156 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 1157 | end | |
| 1158 | local touched = false | |
| 1159 | local rotationval = 1 | |
| 1160 | local delay = false | |
| 1161 | local distance = 3.55 | |
| 1162 | local spart = Instance.new("Part",t)
| |
| 1163 | local tick4 = Instance.new("Sound",t)
| |
| 1164 | tick4.SoundId = "rbxassetid://228343271" | |
| 1165 | tick4.Volume = 2.5 | |
| 1166 | tick4.Pitch = 0.9 | |
| 1167 | local tick2 = Instance.new("Sound",t)
| |
| 1168 | tick2.SoundId = "rbxassetid://233091205" | |
| 1169 | tick2.Volume = 5 | |
| 1170 | tick2.Pitch = 1 | |
| 1171 | tick2:Play() | |
| 1172 | spart.Size = vt(10,10,1) | |
| 1173 | spart.BrickColor = BrickColor.new("Really red")
| |
| 1174 | spart.Transparency = 0.35 | |
| 1175 | spart.CanCollide = false | |
| 1176 | spart.Anchored = true | |
| 1177 | spart.Material = "Neon" | |
| 1178 | spart.CFrame = hed.CFrame + Vector3.new(0,0.1,0) | |
| 1179 | wait(0.05) | |
| 1180 | spart.Touched:connect(function(hit) | |
| 1181 | local effector2 = Instance.new("ParticleEmitter",spart)
| |
| 1182 | effector2.Texture = "http://www.roblox.com/asset/?id=296874871" | |
| 1183 | effector2.LightEmission = 1 | |
| 1184 | effector2.Color = ColorSequence.new(BrickColor.new("Really red").Color)
| |
| 1185 | effector2.Rate = 10000 | |
| 1186 | effector2.Lifetime = NumberRange.new(0.25) | |
| 1187 | effector2.VelocitySpread = 999999999999999 | |
| 1188 | effector2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 1189 | effector2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 1190 | effector2.Speed = NumberRange.new(50) | |
| 1191 | effector2.Rotation = NumberRange.new(-500,500) | |
| 1192 | effector2.RotSpeed = NumberRange.new(-500,500) | |
| 1193 | Damagefunc(hit,5,15,-20,"Normal",root,.2,1) | |
| 1194 | wait(0.25) | |
| 1195 | effector2.Rate = 0 | |
| 1196 | wait(0.25) | |
| 1197 | end) | |
| 1198 | tick4:Play() | |
| 1199 | for x = 0, 9 do | |
| 1200 | for i = 0,1,0.75 do | |
| 1201 | swait() | |
| 1202 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
| 1203 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
| 1204 | distance = distance + 1*5 | |
| 1205 | rotationval = rotationval - 0.125 | |
| 1206 | spart.Size = spart.Size + Vector3.new(0,0,2*5) | |
| 1207 | spart.CFrame = hed.CFrame*CFrame.Angles(0,0,rotationval) + hed.CFrame.lookVector*distance | |
| 1208 | spart.CFrame = spart.CFrame + Vector3.new(0,-1.5,0) | |
| 1209 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 1210 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 1211 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3) | |
| 1212 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 1213 | end | |
| 1214 | for i = 0,1,0.75 do | |
| 1215 | swait() | |
| 1216 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
| 1217 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
| 1218 | distance = distance + 1*5 | |
| 1219 | rotationval = rotationval - 0.125 | |
| 1220 | spart.Size = spart.Size + Vector3.new(0,0,2*5) | |
| 1221 | spart.CFrame = hed.CFrame*CFrame.Angles(0,0,rotationval) + hed.CFrame.lookVector*distance | |
| 1222 | spart.CFrame = spart.CFrame + Vector3.new(0,-1.5,0) | |
| 1223 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 1224 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 1225 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(30), math.rad(30), math.rad(90)), 0.3) | |
| 1226 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 1227 | end | |
| 1228 | for i = 0,1,0.75 do | |
| 1229 | swait() | |
| 1230 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
| 1231 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
| 1232 | distance = distance + 1*5 | |
| 1233 | rotationval = rotationval - 0.125 | |
| 1234 | spart.Size = spart.Size + Vector3.new(0,0,2*5) | |
| 1235 | spart.CFrame = hed.CFrame*CFrame.Angles(0,0,rotationval) + hed.CFrame.lookVector*distance | |
| 1236 | spart.CFrame = spart.CFrame + Vector3.new(0,-1.5,0) | |
| 1237 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 1238 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 1239 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(60), math.rad(30), math.rad(90)), 0.3) | |
| 1240 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 1241 | end | |
| 1242 | for i = 0,1,0.75 do | |
| 1243 | swait() | |
| 1244 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
| 1245 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
| 1246 | distance = distance + 1*5 | |
| 1247 | rotationval = rotationval - 0.125 | |
| 1248 | spart.Size = spart.Size + Vector3.new(0,0,2*5) | |
| 1249 | spart.CFrame = hed.CFrame*CFrame.Angles(0,0,rotationval) + hed.CFrame.lookVector*distance | |
| 1250 | spart.CFrame = spart.CFrame + Vector3.new(0,-1.5,0) | |
| 1251 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 1252 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 1253 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(30), math.rad(90)), 0.3) | |
| 1254 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 1255 | end | |
| 1256 | for i = 0,1,0.75 do | |
| 1257 | swait() | |
| 1258 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
| 1259 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
| 1260 | distance = distance + 1*5 | |
| 1261 | rotationval = rotationval - 0.125 | |
| 1262 | spart.Size = spart.Size + Vector3.new(0,0,2*5) | |
| 1263 | spart.CFrame = hed.CFrame*CFrame.Angles(0,0,rotationval) + hed.CFrame.lookVector*distance | |
| 1264 | spart.CFrame = spart.CFrame + Vector3.new(0,-1.5,0) | |
| 1265 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 1266 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 1267 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(120), math.rad(30), math.rad(90)), 0.3) | |
| 1268 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 1269 | end | |
| 1270 | for i = 0,1,0.75 do | |
| 1271 | swait() | |
| 1272 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
| 1273 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
| 1274 | distance = distance + 1*5 | |
| 1275 | rotationval = rotationval - 0.125 | |
| 1276 | spart.Size = spart.Size + Vector3.new(0,0,2*5) | |
| 1277 | spart.CFrame = hed.CFrame*CFrame.Angles(0,0,rotationval) + hed.CFrame.lookVector*distance | |
| 1278 | spart.CFrame = spart.CFrame + Vector3.new(0,-1.5,0) | |
| 1279 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 1280 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 1281 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(180), math.rad(30), math.rad(90)), 0.3) | |
| 1282 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 1283 | end | |
| 1284 | for i = 0,1,0.75 do | |
| 1285 | swait() | |
| 1286 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
| 1287 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
| 1288 | distance = distance + 1*5 | |
| 1289 | rotationval = rotationval - 0.125 | |
| 1290 | spart.Size = spart.Size + Vector3.new(0,0,2*5) | |
| 1291 | spart.CFrame = hed.CFrame*CFrame.Angles(0,0,rotationval) + hed.CFrame.lookVector*distance | |
| 1292 | spart.CFrame = spart.CFrame + Vector3.new(0,-1.5,0) | |
| 1293 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 1294 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 1295 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(240), math.rad(30), math.rad(90)), 0.3) | |
| 1296 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 1297 | end | |
| 1298 | for i = 0,1,0.75 do | |
| 1299 | swait() | |
| 1300 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
| 1301 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
| 1302 | distance = distance + 1*5 | |
| 1303 | rotationval = rotationval - 0.125 | |
| 1304 | spart.Size = spart.Size + Vector3.new(0,0,2*5) | |
| 1305 | spart.CFrame = hed.CFrame*CFrame.Angles(0,0,rotationval) + hed.CFrame.lookVector*distance | |
| 1306 | spart.CFrame = spart.CFrame + Vector3.new(0,-1.5,0) | |
| 1307 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 1308 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 1309 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(300), math.rad(30), math.rad(90)), 0.3) | |
| 1310 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 1311 | end | |
| 1312 | end | |
| 1313 | spart:Destroy() | |
| 1314 | hum.WalkSpeed = 16 | |
| 1315 | attack = false | |
| 1316 | for i = 0, 24 do | |
| 1317 | lb.Transparency = lb.Transparency + 0.05 | |
| 1318 | thing.Scale = thing.Scale - vt(4.5,4.5,0) | |
| 1319 | wait() | |
| 1320 | end | |
| 1321 | lb:Destroy() | |
| 1322 | end | |
| 1323 | ||
| 1324 | function DeleteParent(parent) | |
| 1325 | for i,v in pairs(parent:children()) do | |
| 1326 | if v:IsA("Part") then
| |
| 1327 | v:Destroy() | |
| 1328 | end | |
| 1329 | end | |
| 1330 | end | |
| 1331 | ||
| 1332 | ||
| 1333 | function do4() | |
| 1334 | hum.WalkSpeed = 0 | |
| 1335 | attack = true | |
| 1336 | for i = 0,1,0.1 do | |
| 1337 | swait() | |
| 1338 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 1339 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
| 1340 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3) | |
| 1341 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-180)), 0.3) | |
| 1342 | end | |
| 1343 | local shur = Instance.new("Part",char)
| |
| 1344 | local gahd = Instance.new("Sound",shur)
| |
| 1345 | gahd.SoundId = "rbxassetid://136007472" | |
| 1346 | gahd.Volume = 2.5 | |
| 1347 | gahd.Pitch = 0.7 | |
| 1348 | gahd:Play() | |
| 1349 | shur.Transparency = 1 | |
| 1350 | shur.Material = "Neon" | |
| 1351 | shur.BrickColor = bc("Bright red")
| |
| 1352 | shur.Anchored = true | |
| 1353 | shur.CFrame = tors.CFrame + vt(0,-2.5,0) | |
| 1354 | shur.Size = vt(1,0.2,1) | |
| 1355 | shur.CanCollide = false | |
| 1356 | local dec = Instance.new("Decal",shur)
| |
| 1357 | dec.Texture = "http://www.roblox.com/asset/?id=359972668" | |
| 1358 | dec.Face = "Top" | |
| 1359 | local dec2 = dec:Clone() | |
| 1360 | dec2.Parent = shur | |
| 1361 | dec2.Face = "Bottom" | |
| 1362 | local Meshshur = Instance.new("CylinderMesh",shur)
| |
| 1363 | Meshshur.Scale = vt(0,1,0) | |
| 1364 | local value1 = 1*2.5 | |
| 1365 | game:service'RunService'.RenderStepped:connect(function() | |
| 1366 | shur.CFrame = shur.CFrame*CFrame.Angles(0,0.05,0) | |
| 1367 | end) | |
| 1368 | for i = 0, 50 do | |
| 1369 | Meshshur.Scale = Meshshur.Scale + vt(value1,0,value1) | |
| 1370 | value1 = value1 - 0.015*2.5 | |
| 1371 | wait() | |
| 1372 | end | |
| 1373 | local lb = Instance.new("Part")
| |
| 1374 | lb.Parent = char | |
| 1375 | lb.Material = "Neon" | |
| 1376 | lb.BrickColor = BrickColor.new("Really red")
| |
| 1377 | lb.CanCollide = false | |
| 1378 | lb.Shape = "Ball" | |
| 1379 | lb.Position = larm.Position | |
| 1380 | lb.CFrame = lb.CFrame + vt(0,1.5,0) | |
| 1381 | lb.Anchored = true | |
| 1382 | lb.Size = vt(0.2,0.2,0.2) | |
| 1383 | local thing = Instance.new("SpecialMesh",lb)
| |
| 1384 | thing.MeshType = meshtype | |
| 1385 | local tra = Instance.new("ParticleEmitter",lb)
| |
| 1386 | tra.Texture = "rbxassetid://296874871" | |
| 1387 | tra.LightEmission = 0.95 | |
| 1388 | tra.Color = ColorSequence.new(lb.BrickColor.Color) | |
| 1389 | tra.Rate = 1000 | |
| 1390 | tra.Lifetime = NumberRange.new(0.25) | |
| 1391 | tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,25,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 1392 | tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 1393 | tra.Speed = NumberRange.new(0) | |
| 1394 | tra.Rotation = NumberRange.new(-500,500) | |
| 1395 | tra.VelocitySpread = 90000 | |
| 1396 | tra.LockedToPart = true | |
| 1397 | tra.RotSpeed = NumberRange.new(-500,500) | |
| 1398 | local tran = Instance.new("ParticleEmitter",lb)
| |
| 1399 | tran.Texture = "rbxassetid://296874871" | |
| 1400 | tran.LightEmission = 0.95 | |
| 1401 | tran.Color = ColorSequence.new(lb.BrickColor.Color) | |
| 1402 | tran.Rate = 0 | |
| 1403 | tran.Lifetime = NumberRange.new(1) | |
| 1404 | tran.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,25,0)})
| |
| 1405 | tran.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 1406 | tran.Speed = NumberRange.new(25,50) | |
| 1407 | tran.Rotation = NumberRange.new(-500,500) | |
| 1408 | tran.VelocitySpread = 90000 | |
| 1409 | tran.LockedToPart = true | |
| 1410 | tran.RotSpeed = NumberRange.new(-500,500) | |
| 1411 | local saz = Instance.new("Sound",lb)
| |
| 1412 | saz.SoundId = "rbxassetid://192410062" | |
| 1413 | saz.Volume = 7.5 | |
| 1414 | saz.Pitch = 1 | |
| 1415 | saz:Play() | |
| 1416 | for i = 0, 59 do | |
| 1417 | wait() | |
| 1418 | lb.Size = lb.Size + vt(0.5,0.5,0.5) | |
| 1419 | lb.CFrame = lb.CFrame + vt(0,0.275,0) | |
| 1420 | end | |
| 1421 | local savepoint = Instance.new("Part",lb)
| |
| 1422 | savepoint.CFrame = lb.CFrame | |
| 1423 | savepoint.Transparency = 1 | |
| 1424 | savepoint.CanCollide = false | |
| 1425 | savepoint.Anchored = true | |
| 1426 | for i = 0, 29 do | |
| 1427 | shur.CFrame = shur.CFrame*CFrame.Angles(0,0.05,0) | |
| 1428 | lb.CFrame = savepoint.CFrame | |
| 1429 | lb.Size = lb.Size - vt(0.75,0.75,0.75) | |
| 1430 | local lba = Instance.new("Part")
| |
| 1431 | lba.Parent = lb | |
| 1432 | lba.Material = "Neon" | |
| 1433 | lba.BrickColor = BrickColor.new("Really red")
| |
| 1434 | lba.CanCollide = false | |
| 1435 | lba.Shape = "Ball" | |
| 1436 | lba.CFrame = lb.CFrame | |
| 1437 | lba.Size = vt(6,6,6) | |
| 1438 | local thinga = Instance.new("SpecialMesh",lba)
| |
| 1439 | thinga.MeshType = meshtype | |
| 1440 | lba.Touched:connect(function(hit) | |
| 1441 | Damagefunc(hit,22,29,5,"Normal",root,.2,1) | |
| 1442 | end) | |
| 1443 | local sa = Instance.new("Sound",lb)
| |
| 1444 | sa.SoundId = "rbxassetid://233091205" | |
| 1445 | sa.Volume = 1.25 | |
| 1446 | sa.Pitch = 0.75 | |
| 1447 | sa:Play() | |
| 1448 | local trail = Instance.new("ParticleEmitter",lba)
| |
| 1449 | trail.Texture = "rbxassetid://296874871" | |
| 1450 | trail.LightEmission = 0.95 | |
| 1451 | trail.Color = ColorSequence.new(lb.BrickColor.Color) | |
| 1452 | trail.Rate = 10000 | |
| 1453 | trail.Lifetime = NumberRange.new(1.5) | |
| 1454 | trail.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 1455 | trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 1456 | trail.Speed = NumberRange.new(0,0) | |
| 1457 | trail.Rotation = NumberRange.new(-500,500) | |
| 1458 | trail.RotSpeed = NumberRange.new(-500,500) | |
| 1459 | local bv = Instance.new("BodyVelocity")
| |
| 1460 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 1461 | bv.velocity = mouse.Hit.lookVector *100 | |
| 1462 | bv.Parent = lba | |
| 1463 | wait(0.25) | |
| 1464 | end | |
| 1465 | tra.Rate = 0 | |
| 1466 | tran.Rate = 9000 | |
| 1467 | local sar = Instance.new("Sound",lb)
| |
| 1468 | sar.SoundId = "rbxassetid://233091205" | |
| 1469 | sar.Volume = 2.5 | |
| 1470 | sar.Pitch = 0.5 | |
| 1471 | sar:Play() | |
| 1472 | local hit = lb.Touched:connect(function(hit) | |
| 1473 | Damagefunc(hit,40,50,5,"Normal",root,.2,1) | |
| 1474 | end) | |
| 1475 | for i = 0, 44 do | |
| 1476 | lb.Size = lb.Size + vt(3,3,3) | |
| 1477 | lb.CFrame = savepoint.CFrame | |
| 1478 | lb.Transparency = lb.Transparency + 0.025 | |
| 1479 | wait() | |
| 1480 | end | |
| 1481 | tran.Rate = 0 | |
| 1482 | hit:disconnect() | |
| 1483 | attack = false | |
| 1484 | hum.WalkSpeed = 16 | |
| 1485 | for i = 0, 100 do | |
| 1486 | dec.Transparency = dec.Transparency + 0.015 | |
| 1487 | dec2.Transparency = dec.Transparency | |
| 1488 | Meshshur.Scale = Meshshur.Scale + vt(value1,0,value1) | |
| 1489 | value1 = value1 - 0.015*2.5 | |
| 1490 | wait(0) | |
| 1491 | end | |
| 1492 | shur:Destroy() | |
| 1493 | wait(10) | |
| 1494 | lb:Destroy() | |
| 1495 | end | |
| 1496 | ||
| 1497 | function doSpecial() | |
| 1498 | hum.WalkSpeed = 0 | |
| 1499 | attack = true | |
| 1500 | local ff = Instance.new("ForceField",char)
| |
| 1501 | for i = 0,1,0.1 do | |
| 1502 | swait() | |
| 1503 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 1504 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
| 1505 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3) | |
| 1506 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-180)), 0.3) | |
| 1507 | end | |
| 1508 | local shur = Instance.new("Part",char)
| |
| 1509 | local gahd = Instance.new("Sound",char)
| |
| 1510 | gahd.SoundId = "rbxassetid://136007472" | |
| 1511 | gahd.Volume = 1 | |
| 1512 | gahd.Pitch = 0.7 | |
| 1513 | gahd:Play() | |
| 1514 | shur.Transparency = 1 | |
| 1515 | shur.Material = "Neon" | |
| 1516 | shur.BrickColor = bc("Bright red")
| |
| 1517 | shur.Anchored = true | |
| 1518 | shur.CFrame = tors.CFrame + vt(0,-2.5,0) | |
| 1519 | shur.Size = vt(1,0.2,1) | |
| 1520 | shur.CanCollide = false | |
| 1521 | local dec = Instance.new("Decal",shur)
| |
| 1522 | dec.Texture = "http://www.roblox.com/asset/?id=359972668" | |
| 1523 | dec.Face = "Top" | |
| 1524 | local dec2 = dec:Clone() | |
| 1525 | dec2.Parent = shur | |
| 1526 | dec2.Face = "Bottom" | |
| 1527 | local Meshshur = Instance.new("CylinderMesh",shur)
| |
| 1528 | Meshshur.Scale = vt(0,1,0) | |
| 1529 | local value1 = 1*5 | |
| 1530 | game:service'RunService'.RenderStepped:connect(function() | |
| 1531 | shur.CFrame = shur.CFrame*CFrame.Angles(0,0.05,0) | |
| 1532 | end) | |
| 1533 | for i = 0, 50 do | |
| 1534 | Meshshur.Scale = Meshshur.Scale + vt(value1,0,value1) | |
| 1535 | value1 = value1 - 0.015*5 | |
| 1536 | wait() | |
| 1537 | end | |
| 1538 | local ex = Instance.new("Sound",char)
| |
| 1539 | ex.SoundId = "rbxassetid://197161452" | |
| 1540 | ex.Volume = 1 | |
| 1541 | ex.Pitch = 1 | |
| 1542 | ex:Play() | |
| 1543 | local ex2 = Instance.new("Sound",char)
| |
| 1544 | ex2.SoundId = "rbxassetid://197161452" | |
| 1545 | ex2.Volume = 0.75 | |
| 1546 | ex2.Pitch = 0.85 | |
| 1547 | ex2:Play() | |
| 1548 | local ex3 = Instance.new("Sound",char)
| |
| 1549 | ex3.SoundId = "rbxassetid://197161452" | |
| 1550 | ex3.Volume = 0.5 | |
| 1551 | ex3.Pitch = 0.65 | |
| 1552 | ex3:Play() | |
| 1553 | local ex4 = Instance.new("Sound",char)
| |
| 1554 | ex4.SoundId = "rbxassetid://446876721" | |
| 1555 | ex4.Volume = 1 | |
| 1556 | ex4.Pitch = 0.5 | |
| 1557 | ex4:Play() | |
| 1558 | local ex5 = Instance.new("Sound",char)
| |
| 1559 | ex5.SoundId = "rbxassetid://446876721" | |
| 1560 | ex5.Volume = 1.5 | |
| 1561 | ex5.Pitch = 0.5 | |
| 1562 | ex5:Play() | |
| 1563 | local seen = Instance.new("Sound",char)
| |
| 1564 | seen.SoundId = "rbxassetid://445796828" | |
| 1565 | seen.Pitch = 0.75 | |
| 1566 | seen.Volume = 1.75 | |
| 1567 | seen.Looped = true | |
| 1568 | seen:Play() | |
| 1569 | local las = Instance.new("Part")
| |
| 1570 | local expld = Instance.new("Explosion", las)
| |
| 1571 | expld.BlastPressure = 1 | |
| 1572 | las.Parent = char | |
| 1573 | las.Material = "Neon" | |
| 1574 | las.BrickColor = BrickColor.new("Really red")
| |
| 1575 | las.CanCollide = false | |
| 1576 | las.Shape = "Ball" | |
| 1577 | las.Transparency = 0 | |
| 1578 | las.Size = vt(60,60,60) | |
| 1579 | las.CFrame = shur.CFrame | |
| 1580 | las.Anchored = true | |
| 1581 | expld.BlastRadius = 9999999999 | |
| 1582 | expld.Position = las.Position | |
| 1583 | local thing = Instance.new("SpecialMesh",las)
| |
| 1584 | thing.MeshType = "Sphere" | |
| 1585 | thing.Scale = vt(1,0.1,1) | |
| 1586 | local bo = Instance.new("Part")
| |
| 1587 | bo.Parent = las | |
| 1588 | bo.Material = "Neon" | |
| 1589 | bo.BrickColor = BrickColor.new("Really red")
| |
| 1590 | bo.CanCollide = false | |
| 1591 | bo.Shape = "Ball" | |
| 1592 | bo.Transparency = 0 | |
| 1593 | bo.Size = vt(1,1,1) | |
| 1594 | bo.CFrame = shur.CFrame | |
| 1595 | bo.Anchored = true | |
| 1596 | local thingbo = Instance.new("SpecialMesh",bo)
| |
| 1597 | thingbo.MeshType = "Sphere" | |
| 1598 | thingbo.Scale = vt(90,90,90) | |
| 1599 | local boim = Instance.new("Part")
| |
| 1600 | boim.Parent = las | |
| 1601 | boim.Material = "Neon" | |
| 1602 | boim.BrickColor = BrickColor.new("Really red")
| |
| 1603 | boim.CanCollide = false | |
| 1604 | boim.Shape = "Ball" | |
| 1605 | boim.Transparency = 1 | |
| 1606 | boim.Size = vt(150,150,150) | |
| 1607 | boim.CFrame = shur.CFrame | |
| 1608 | boim.Anchored = true | |
| 1609 | local boim2 = Instance.new("Part")
| |
| 1610 | boim2.Parent = las | |
| 1611 | boim2.Material = "Neon" | |
| 1612 | boim2.BrickColor = BrickColor.new("Really red")
| |
| 1613 | boim2.CanCollide = false | |
| 1614 | boim2.Shape = "Ball" | |
| 1615 | boim2.Transparency = 0.65 | |
| 1616 | boim2.Size = vt(1,1,1) | |
| 1617 | boim2.CFrame = shur.CFrame | |
| 1618 | boim2.Anchored = true | |
| 1619 | local boimmsh = Instance.new("SpecialMesh",boim2)
| |
| 1620 | boimmsh.MeshType = "FileMesh" | |
| 1621 | boimmsh.Scale = vt(165,165,165) | |
| 1622 | local shock = Instance.new("Part")
| |
| 1623 | shock.Parent = las | |
| 1624 | shock.Material = "Neon" | |
| 1625 | shock.BrickColor = BrickColor.new("Really red")
| |
| 1626 | shock.CanCollide = false | |
| 1627 | shock.Shape = "Ball" | |
| 1628 | shock.Transparency = 0.25 | |
| 1629 | shock.CFrame = shur.CFrame | |
| 1630 | shock.Anchored = true | |
| 1631 | shock.Size = vt(0.2,0.2,0.2) | |
| 1632 | local thingshock = Instance.new("SpecialMesh",shock)
| |
| 1633 | thingshock.MeshType = "FileMesh" | |
| 1634 | thingshock.Scale = vt(50,25,50) | |
| 1635 | thingshock.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 1636 | local shock2 = Instance.new("Part")
| |
| 1637 | shock2.Parent = las | |
| 1638 | shock2.Material = "Neon" | |
| 1639 | shock2.BrickColor = BrickColor.new("Really red")
| |
| 1640 | shock2.CanCollide = false | |
| 1641 | shock2.Shape = "Ball" | |
| 1642 | shock2.Transparency = 0.5 | |
| 1643 | shock2.CFrame = shur.CFrame | |
| 1644 | shock2.Anchored = true | |
| 1645 | shock2.Size = vt(0.2,0.2,0.2) | |
| 1646 | local thingshock2 = Instance.new("SpecialMesh",shock2)
| |
| 1647 | thingshock2.MeshType = "FileMesh" | |
| 1648 | thingshock2.Scale = vt(85,20,85) | |
| 1649 | thingshock2.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 1650 | local shock3 = Instance.new("Part")
| |
| 1651 | shock3.Parent = las | |
| 1652 | shock3.Material = "Neon" | |
| 1653 | shock3.BrickColor = BrickColor.new("Really red")
| |
| 1654 | shock3.CanCollide = false | |
| 1655 | shock3.Shape = "Ball" | |
| 1656 | shock3.Transparency = 0.75 | |
| 1657 | shock3.CFrame = shur.CFrame | |
| 1658 | shock3.Anchored = true | |
| 1659 | shock3.Size = vt(0.2,0.2,0.2) | |
| 1660 | local thingshock3 = Instance.new("SpecialMesh",shock3)
| |
| 1661 | thingshock3.MeshType = "FileMesh" | |
| 1662 | thingshock3.Scale = vt(100,15,100) | |
| 1663 | thingshock3.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 1664 | local scaleval = 5 | |
| 1665 | game:service'RunService'.RenderStepped:connect(function() | |
| 1666 | scaleval = scaleval - 0.035 | |
| 1667 | boim.CFrame = shur.CFrame | |
| 1668 | bo.Transparency = bo.Transparency + 0.0055 | |
| 1669 | boimmsh.Scale = boimmsh.Scale + vt(1,1,1) | |
| 1670 | boim2.Transparency = boim2.Transparency + 0.00125 | |
| 1671 | thingbo.Scale = thingbo.Scale + vt(scaleval,scaleval,scaleval) | |
| 1672 | shock.CFrame = shock.CFrame*CFrame.Angles(0,0.1,0) | |
| 1673 | shock2.CFrame = shock2.CFrame*CFrame.Angles(0,-0.1,0) | |
| 1674 | shock3.CFrame = shock3.CFrame*CFrame.Angles(0,0.1,0) | |
| 1675 | las.CFrame = shur.CFrame + vt(math.random(-1,1),0,math.random(-1,1)) | |
| 1676 | thing.Scale = thing.Scale + vt(0,5,0) | |
| 1677 | end) | |
| 1678 | for i = 0, 15 do | |
| 1679 | local sa = Instance.new("Sound",char)
| |
| 1680 | sa.SoundId = "rbxassetid://233091205" | |
| 1681 | sa.Volume = 0.85 | |
| 1682 | sa.Pitch = 0.85 | |
| 1683 | sa:Play() | |
| 1684 | local lb = Instance.new("Part")
| |
| 1685 | lb.Parent = las | |
| 1686 | lb.Material = "Neon" | |
| 1687 | lb.BrickColor = BrickColor.new("Really red")
| |
| 1688 | lb.CanCollide = false | |
| 1689 | lb.Shape = "Ball" | |
| 1690 | lb.CFrame = shur.CFrame | |
| 1691 | lb.Anchored = true | |
| 1692 | lb.Size = vt(0.2,0.2,0.2) | |
| 1693 | local thing = Instance.new("SpecialMesh",lb)
| |
| 1694 | thing.MeshType = "FileMesh" | |
| 1695 | thing.Scale = vt(50,25,50) | |
| 1696 | thing.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 1697 | local lb3 = Instance.new("Part")
| |
| 1698 | lb3.Parent = las | |
| 1699 | lb3.Material = "Neon" | |
| 1700 | lb3.BrickColor = BrickColor.new("Really red")
| |
| 1701 | lb3.CanCollide = false | |
| 1702 | lb3.Shape = "Ball" | |
| 1703 | lb3.CFrame = shur.CFrame | |
| 1704 | lb3.Anchored = true | |
| 1705 | lb3.Size = vt(0.2,0.2,0.2) | |
| 1706 | local thing3 = Instance.new("SpecialMesh",lb3)
| |
| 1707 | thing3.MeshType = "FileMesh" | |
| 1708 | thing3.Scale = vt(50,30,50) | |
| 1709 | thing3.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 1710 | local lb2 = Instance.new("Part")
| |
| 1711 | lb2.Parent = las | |
| 1712 | lb2.Material = "Neon" | |
| 1713 | lb2.BrickColor = BrickColor.new("Really red")
| |
| 1714 | lb2.CanCollide = false | |
| 1715 | lb2.Shape = "Ball" | |
| 1716 | lb2.CFrame = shur.CFrame | |
| 1717 | lb2.Anchored = true | |
| 1718 | lb2.Size = vt(0.2,0.2,0.2) | |
| 1719 | local thing2 = Instance.new("SpecialMesh",lb2)
| |
| 1720 | thing2.MeshType = "FileMesh" | |
| 1721 | thing2.Scale = vt(50,40,50) | |
| 1722 | thing2.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 1723 | local ring = Instance.new("Part")
| |
| 1724 | ring.Parent = las | |
| 1725 | ring.Material = "Neon" | |
| 1726 | ring.BrickColor = BrickColor.new("Really red")
| |
| 1727 | ring.CanCollide = false | |
| 1728 | ring.Shape = "Ball" | |
| 1729 | ring.CFrame = shur.CFrame | |
| 1730 | ring.CFrame = ring.CFrame*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1731 | ring.Anchored = true | |
| 1732 | ring.Size = vt(0.2,0.2,0.2) | |
| 1733 | local thingring = Instance.new("SpecialMesh",ring)
| |
| 1734 | thingring.MeshType = "FileMesh" | |
| 1735 | thingring.Scale = vt(150,150,50) | |
| 1736 | thingring.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 1737 | local ring2 = Instance.new("Part")
| |
| 1738 | ring2.Parent = las | |
| 1739 | ring2.Material = "Neon" | |
| 1740 | ring2.BrickColor = BrickColor.new("Really red")
| |
| 1741 | ring2.CanCollide = false | |
| 1742 | ring2.Shape = "Ball" | |
| 1743 | ring2.CFrame = shur.CFrame | |
| 1744 | ring2.CFrame = ring2.CFrame*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1745 | ring2.Anchored = true | |
| 1746 | ring2.Size = vt(0.2,0.2,0.2) | |
| 1747 | local thingring2 = Instance.new("SpecialMesh",ring2)
| |
| 1748 | thingring2.MeshType = "FileMesh" | |
| 1749 | thingring2.Scale = vt(150,150,50) | |
| 1750 | thingring2.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 1751 | local circle = Instance.new("Part")
| |
| 1752 | circle.Parent = las | |
| 1753 | circle.Material = "Neon" | |
| 1754 | circle.BrickColor = BrickColor.new("Really red")
| |
| 1755 | circle.CanCollide = false | |
| 1756 | circle.Shape = "Ball" | |
| 1757 | circle.Transparency = 0 | |
| 1758 | circle.Size = vt(125,125,125) | |
| 1759 | circle.CFrame = shur.CFrame | |
| 1760 | circle.Anchored = true | |
| 1761 | local smooth = game:service'RunService'.RenderStepped:connect(function() | |
| 1762 | sa.Volume = sa.Volume - 0.025 | |
| 1763 | thingring.Scale = thingring.Scale + vt(1,1,0) | |
| 1764 | ring.Transparency = ring.Transparency + 0.025 | |
| 1765 | thingring2.Scale = thingring2.Scale + vt(1,1,0) | |
| 1766 | ring2.Transparency = ring2.Transparency + 0.025 | |
| 1767 | circle.Size = circle.Size + vt(1,1,1) | |
| 1768 | circle.Transparency = circle.Transparency + 0.025 | |
| 1769 | circle.CFrame = shur.CFrame | |
| 1770 | lb.CFrame = lb.CFrame*CFrame.Angles(0,-0.05,0) | |
| 1771 | thing.Scale = thing.Scale + vt(5,0,5) | |
| 1772 | lb.Transparency = lb.Transparency + 0.025 | |
| 1773 | lb2.CFrame = lb2.CFrame*CFrame.Angles(0,0.05,0) | |
| 1774 | thing2.Scale = thing2.Scale + vt(3.5,0,3.5) | |
| 1775 | lb2.Transparency = lb2.Transparency + 0.025 | |
| 1776 | lb3.CFrame = lb3.CFrame*CFrame.Angles(0,-0.05,0) | |
| 1777 | thing3.Scale = thing3.Scale + vt(2.5,0,2.5) | |
| 1778 | lb3.Transparency = lb3.Transparency + 0.025 | |
| 1779 | end) | |
| 1780 | wait(1) | |
| 1781 | lb:Destroy() | |
| 1782 | lb2:Destroy() | |
| 1783 | lb3:Destroy() | |
| 1784 | circle:Destroy() | |
| 1785 | ring:Destroy() | |
| 1786 | ring2:Destroy() | |
| 1787 | sa:Destroy() | |
| 1788 | smooth:disconnect() | |
| 1789 | end | |
| 1790 | attack = false | |
| 1791 | hum.WalkSpeed = 16 | |
| 1792 | ex:Destroy() | |
| 1793 | ex2:Destroy() | |
| 1794 | ex3:Destroy() | |
| 1795 | ex4:Destroy() | |
| 1796 | ex5:Destroy() | |
| 1797 | for i = 0, 100 do | |
| 1798 | seen.Volume = seen.Volume - 0.05 | |
| 1799 | thing.Scale = thing.Scale - vt(0.01,0,0.01) | |
| 1800 | thingshock.Scale = thingshock.Scale - vt(1,0,1) | |
| 1801 | thingshock2.Scale = thingshock2.Scale - vt(1,0,1) | |
| 1802 | thingshock3.Scale = thingshock3.Scale - vt(1,0,1) | |
| 1803 | las.Transparency = las.Transparency + 0.025 | |
| 1804 | shock.Transparency = shock.Transparency + 0.025 | |
| 1805 | shock2.Transparency = shock2.Transparency + 0.025 | |
| 1806 | shock3.Transparency = shock3.Transparency + 0.025 | |
| 1807 | dec.Transparency = dec.Transparency + 0.015 | |
| 1808 | dec2.Transparency = dec.Transparency | |
| 1809 | Meshshur.Scale = Meshshur.Scale + vt(value1,0,value1) | |
| 1810 | value1 = value1 - 0.015*5 | |
| 1811 | wait(0) | |
| 1812 | end | |
| 1813 | shur:Destroy() | |
| 1814 | gahd:Destroy() | |
| 1815 | ff:Destroy() | |
| 1816 | las:Destroy() | |
| 1817 | end | |
| 1818 | ||
| 1819 | attackcombo = 0 | |
| 1820 | ||
| 1821 | mouse.Button1Down:connect(function() | |
| 1822 | if hold == false then | |
| 1823 | if attack == false and attackcombo == 0 then | |
| 1824 | attackcombo = 1 | |
| 1825 | attackone() | |
| 1826 | elseif attack == false and attackcombo == 1 then | |
| 1827 | attackcombo = 2 | |
| 1828 | attacktwo() | |
| 1829 | elseif attack == false and attackcombo == 2 then | |
| 1830 | attackcombo = 3 | |
| 1831 | attackthree() | |
| 1832 | elseif attack == false and attackcombo == 3 then | |
| 1833 | attackcombo = 0 | |
| 1834 | attackfour() | |
| 1835 | end | |
| 1836 | end | |
| 1837 | if attack == true and hold == true then | |
| 1838 | hold = false | |
| 1839 | end | |
| 1840 | end) | |
| 1841 | mouse.KeyDown:connect(function(key) | |
| 1842 | if key == "z" and attack == false and hold == false then | |
| 1843 | hold = true | |
| 1844 | do1() | |
| 1845 | elseif key == "x" and attack == false then | |
| 1846 | do2() | |
| 1847 | elseif key == "c" and attack == false then | |
| 1848 | do3() | |
| 1849 | elseif key == "v" and attack == false then | |
| 1850 | do4() | |
| 1851 | elseif key == "q" and attack == false and plr.Name == "elementman124" then | |
| 1852 | doSpecial() | |
| 1853 | end | |
| 1854 | end) | |
| 1855 | char.Humanoid.Animator.Parent = nil | |
| 1856 | ||
| 1857 | game:GetService("RunService").Stepped:connect(function()
| |
| 1858 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 1859 | velocity = RootPart.Velocity.y | |
| 1860 | sine = sine + change | |
| 1861 | local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character) | |
| 1862 | if equipped == true or equipped == false then | |
| 1863 | if RootPart.Velocity.y > 1 and hit == nil then | |
| 1864 | Anim = "Jump" | |
| 1865 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 1866 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 1867 | if attack == false then | |
| 1868 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 1869 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
| 1870 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(25)), 0.3) | |
| 1871 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(-25)), 0.3) | |
| 1872 | end | |
| 1873 | else | |
| 1874 | if RootPart.Velocity.y < -1 and hit == nil then | |
| 1875 | Anim = "Fall" | |
| 1876 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 1877 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 1878 | if attack == false then | |
| 1879 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 1880 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(2.5),math.rad(0),math.rad(0)),.3) | |
| 1881 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(25)), 0.3) | |
| 1882 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(-25)), 0.3) | |
| 1883 | end | |
| 1884 | else | |
| 1885 | if Torsovelocity < 1 and hit ~= nil then | |
| 1886 | Anim = "Idle" | |
| 1887 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(-20),math.rad(0)),.3) | |
| 1888 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 1889 | if attack == false then | |
| 1890 | change = 1 | |
| 1891 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 32))* angles(math.rad(0),math.rad(0),math.rad(10)),.3) | |
| 1892 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-10)),.3) | |
| 1893 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(90), math.rad(10 - 2.5 * math.cos(sine / 32))), 0.3) | |
| 1894 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10 + 2.5 * math.cos(sine / 32))), 0.3) | |
| 1895 | end | |
| 1896 | else | |
| 1897 | if Torsovelocity > 2 and hit ~= nil then | |
| 1898 | Anim = "Walk" | |
| 1899 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 50 * math.cos(sine / 6))),.3) | |
| 1900 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 50 * math.cos(sine / 6))),.3) | |
| 1901 | if attack == false then | |
| 1902 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 2.5))* angles(math.rad(15),math.rad(0),math.rad(0)),.3) | |
| 1903 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
| 1904 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(75 + 1.5 * math.cos(sine / 5)), math.rad(75), math.rad(10)), 0.3) | |
| 1905 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0 - 25 * math.cos(sine / 5)), math.rad(0), math.rad(-10)), 0.3) | |
| 1906 | end | |
| 1907 | end | |
| 1908 | end | |
| 1909 | end | |
| 1910 | end | |
| 1911 | end | |
| 1912 | end) | |
| 1913 | end |