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