SHOW:
|
|
- or go back to the newest paste.
| 1 | local s = Instance.new("Sound")
| |
| 2 | ||
| 3 | s.Name = "Sound" | |
| 4 | s.SoundId = "http://www.roblox.com/asset/?id=410310822" | |
| 5 | s.Volume = 2 | |
| 6 | s.Looped = false | |
| 7 | s.archivable = false | |
| 8 | ||
| 9 | s.Parent = game.Workspace | |
| 10 | ||
| 11 | wait(1) | |
| 12 | ||
| 13 | s:play() | |
| 14 | Player=game:GetService("Players").LocalPlayer
| |
| 15 | Character=Player.Character | |
| 16 | PlayerGui=Player.PlayerGui | |
| 17 | Backpack=Player.Backpack | |
| 18 | Torso=Character.Torso | |
| 19 | Head=Character.Head | |
| 20 | Humanoid=Character.Humanoid | |
| 21 | LeftArm=Character["Left Arm"] | |
| 22 | LeftLeg=Character["Left Leg"] | |
| 23 | RightArm=Character["Right Arm"] | |
| 24 | RightLeg=Character["Right Leg"] | |
| 25 | cam=game.Workspace.CurrentCamera | |
| 26 | LS=Torso["Left Shoulder"] | |
| 27 | LH=Torso["Left Hip"] | |
| 28 | RS=Torso["Right Shoulder"] | |
| 29 | RH=Torso["Right Hip"] | |
| 30 | Face = Head.face | |
| 31 | Neck=Torso.Neck | |
| 32 | it=Instance.new | |
| 33 | attacktype=1 | |
| 34 | vt=Vector3.new | |
| 35 | cf=CFrame.new | |
| 36 | euler=CFrame.fromEulerAnglesXYZ | |
| 37 | angles=CFrame.Angles | |
| 38 | cloaked=false | |
| 39 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 40 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 41 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
| 42 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
| 43 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
| 44 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
| 45 | RootPart=Character.HumanoidRootPart | |
| 46 | RootJoint=RootPart.RootJoint | |
| 47 | RootCF=euler(-1.57,0,3.14) | |
| 48 | attack = false | |
| 49 | bounce=false | |
| 50 | cooldown=false | |
| 51 | deeznuts=false | |
| 52 | attackdebounce = false | |
| 53 | deb=false | |
| 54 | equipped=true | |
| 55 | hand=false | |
| 56 | MMouse=nil | |
| 57 | combo=0 | |
| 58 | mana=0 | |
| 59 | trispeed=.2 | |
| 60 | attackmode='none' | |
| 61 | local idle=0 | |
| 62 | local Anim="Idle" | |
| 63 | local Effects={}
| |
| 64 | local gun=false | |
| 65 | local shoot=false | |
| 66 | player=nil | |
| 67 | mana=0 | |
| 68 | cam = workspace.CurrentCamera | |
| 69 | ZTarget = nil | |
| 70 | RocketTarget = nil | |
| 71 | local m = Instance.new("Model",Character)
| |
| 72 | m.Name = "WeaponModel" | |
| 73 | ||
| 74 | mouse=Player:GetMouse() | |
| 75 | --save shoulders | |
| 76 | RSH, LSH=nil, nil | |
| 77 | --welds | |
| 78 | RW, LW=Instance.new("Weld"), Instance.new("Weld")
| |
| 79 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
| 80 | LH=Torso["Left Hip"] | |
| 81 | RH=Torso["Right Hip"] | |
| 82 | TorsoColor=Torso.BrickColor | |
| 83 | function NoOutline(Part) | |
| 84 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
| 85 | end | |
| 86 | player=Player | |
| 87 | ch=Character | |
| 88 | RSH=ch.Torso["Right Shoulder"] | |
| 89 | LSH=ch.Torso["Left Shoulder"] | |
| 90 | -- | |
| 91 | RSH.Parent=nil | |
| 92 | LSH.Parent=nil | |
| 93 | -- | |
| 94 | RW.Name="Right Shoulder" | |
| 95 | RW.Part0=ch.Torso | |
| 96 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
| 97 | RW.C1=cf(0, 0.5, 0) | |
| 98 | RW.Part1=ch["Right Arm"] | |
| 99 | RW.Parent=ch.Torso | |
| 100 | -- | |
| 101 | LW.Name="Left Shoulder" | |
| 102 | LW.Part0=ch.Torso | |
| 103 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
| 104 | LW.C1=cf(0, 0.5, 0) | |
| 105 | LW.Part1=ch["Left Arm"] | |
| 106 | LW.Parent=ch.Torso | |
| 107 | ||
| 108 | function swait(num) | |
| 109 | if num==0 or num==nil then | |
| 110 | game:service'RunService'.Heartbeat:wait(0) | |
| 111 | else | |
| 112 | for i=0,num do | |
| 113 | game:service'RunService'.Heartbeat:wait(0) | |
| 114 | end | |
| 115 | end | |
| 116 | end | |
| 117 | ||
| 118 | function nooutline(part) | |
| 119 | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 | |
| 120 | end | |
| 121 | ||
| 122 | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
| 123 | local fp=it("Part")
| |
| 124 | fp.formFactor=formfactor | |
| 125 | fp.Parent=parent | |
| 126 | fp.Reflectance=reflectance | |
| 127 | fp.Transparency=transparency | |
| 128 | fp.CanCollide=false | |
| 129 | fp.Locked=true | |
| 130 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
| 131 | fp.Name=name | |
| 132 | fp.Size=size | |
| 133 | fp.Position=Character.Torso.Position | |
| 134 | nooutline(fp) | |
| 135 | fp.Material=material | |
| 136 | fp:BreakJoints() | |
| 137 | return fp | |
| 138 | end | |
| 139 | ||
| 140 | function ppart(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
| 141 | local fp = it("Part")
| |
| 142 | fp.formFactor = formfactor | |
| 143 | fp.Parent = parent | |
| 144 | fp.Reflectance = reflectance | |
| 145 | fp.Transparency = transparency | |
| 146 | fp.CanCollide = false | |
| 147 | fp.Locked=true | |
| 148 | fp.BrickColor = brickcolor | |
| 149 | fp.Name = name | |
| 150 | fp.Size = size | |
| 151 | fp.Position = EffectPart.Position | |
| 152 | NoOutline(fp) | |
| 153 | fp.Material="Neon" | |
| 154 | fp:BreakJoints() | |
| 155 | return fp | |
| 156 | end | |
| 157 | ||
| 158 | function wweld(parent,part0,part1,c0) | |
| 159 | local weld=it("Weld")
| |
| 160 | weld.Parent=parent | |
| 161 | weld.Part0=part0 | |
| 162 | weld.Part1=part1 | |
| 163 | weld.C0=c0 | |
| 164 | return weld | |
| 165 | end | |
| 166 | ||
| 167 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
| 168 | local mesh=it(Mesh) | |
| 169 | mesh.Parent=part | |
| 170 | if Mesh=="SpecialMesh" then | |
| 171 | mesh.MeshType=meshtype | |
| 172 | mesh.MeshId=meshid | |
| 173 | end | |
| 174 | mesh.Offset=offset | |
| 175 | mesh.Scale=scale | |
| 176 | return mesh | |
| 177 | end | |
| 178 | ||
| 179 | function decal(part,face,texture,transparency,shiny,specular,name) | |
| 180 | local d=it("Decal",part)
| |
| 181 | d.Shiny=shiny | |
| 182 | d.Face=face | |
| 183 | d.Specular=specular | |
| 184 | d.Transparency=transparency | |
| 185 | d.Texture=texture | |
| 186 | d.Name=name | |
| 187 | return d | |
| 188 | end | |
| 189 | ||
| 190 | function weld(parent,part0,part1,c0,c1) | |
| 191 | local weld=it("Weld")
| |
| 192 | weld.Parent=parent | |
| 193 | weld.Part0=part0 | |
| 194 | weld.Part1=part1 | |
| 195 | weld.C0=c0 | |
| 196 | weld.C1=c1 | |
| 197 | return weld | |
| 198 | end | |
| 199 | ||
| 200 | ||
| 201 | local function CFrameFromTopBack(at, top, back) | |
| 202 | local right = top:Cross(back) | |
| 203 | return CFrame.new(at.x, at.y, at.z, | |
| 204 | right.x, top.x, back.x, | |
| 205 | right.y, top.y, back.y, | |
| 206 | right.z, top.z, back.z) | |
| 207 | end | |
| 208 | ||
| 209 | function Triangle(a, b, c) | |
| 210 | local edg1 = (c-a):Dot((b-a).unit) | |
| 211 | local edg2 = (a-b):Dot((c-b).unit) | |
| 212 | local edg3 = (b-c):Dot((a-c).unit) | |
| 213 | if edg1 <= (b-a).magnitude and edg1 >= 0 then | |
| 214 | a, b, c = a, b, c | |
| 215 | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then | |
| 216 | a, b, c = b, c, a | |
| 217 | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then | |
| 218 | a, b, c = c, a, b | |
| 219 | else | |
| 220 | assert(false, "unreachable") | |
| 221 | end | |
| 222 | ||
| 223 | local len1 = (c-a):Dot((b-a).unit) | |
| 224 | local len2 = (b-a).magnitude - len1 | |
| 225 | local width = (a + (b-a).unit*len1 - c).magnitude | |
| 226 | ||
| 227 | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) | |
| 228 | ||
| 229 | local list = {}
| |
| 230 | ||
| 231 | local TrailColor = ("Royal purple")
| |
| 232 | ||
| 233 | if len1 > 0.01 then | |
| 234 | local w1 = Instance.new('WedgePart', m)
| |
| 235 | game:GetService("Debris"):AddItem(w1,5)
| |
| 236 | w1.Material = "Neon" | |
| 237 | w1.FormFactor = 'Custom' | |
| 238 | w1.BrickColor = BrickColor.new(TrailColor) | |
| 239 | w1.Transparency = 0 | |
| 240 | w1.Reflectance = 0 | |
| 241 | w1.Material = "Neon" | |
| 242 | w1.CanCollide = false | |
| 243 | NoOutline(w1) | |
| 244 | local sz = Vector3.new(0.2, width, len1) | |
| 245 | w1.Size = sz | |
| 246 | local sp = Instance.new("SpecialMesh",w1)
| |
| 247 | sp.MeshType = "Wedge" | |
| 248 | sp.Scale = Vector3.new(0,1,1) * sz/w1.Size | |
| 249 | w1:BreakJoints() | |
| 250 | w1.Anchored = true | |
| 251 | w1.Parent = workspace | |
| 252 | w1.Transparency = 0.7 | |
| 253 | table.insert(Effects,{w1,"Disappear",.01})
| |
| 254 | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) | |
| 255 | table.insert(list,w1) | |
| 256 | end | |
| 257 | ||
| 258 | if len2 > 0.01 then | |
| 259 | local w2 = Instance.new('WedgePart', m)
| |
| 260 | game:GetService("Debris"):AddItem(w2,5)
| |
| 261 | w2.Material = "Neon" | |
| 262 | w2.FormFactor = 'Custom' | |
| 263 | w2.BrickColor = BrickColor.new(TrailColor) | |
| 264 | w2.Transparency = 0 | |
| 265 | w2.Reflectance = 0 | |
| 266 | w2.Material = "Neon" | |
| 267 | w2.CanCollide = false | |
| 268 | NoOutline(w2) | |
| 269 | local sz = Vector3.new(0.2, width, len2) | |
| 270 | w2.Size = sz | |
| 271 | local sp = Instance.new("SpecialMesh",w2)
| |
| 272 | sp.MeshType = "Wedge" | |
| 273 | sp.Scale = Vector3.new(0,1,1) * sz/w2.Size | |
| 274 | w2:BreakJoints() | |
| 275 | w2.Anchored = true | |
| 276 | w2.Parent = workspace | |
| 277 | w2.Transparency = 0.7 | |
| 278 | table.insert(Effects,{w2,"Disappear",.01})
| |
| 279 | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) | |
| 280 | table.insert(list,w2) | |
| 281 | end | |
| 282 | return unpack(list) | |
| 283 | end | |
| 284 | ||
| 285 | ||
| 286 | so = function(id,par,vol,pit) | |
| 287 | coroutine.resume(coroutine.create(function() | |
| 288 | local sou = Instance.new("Sound",par or workspace)
| |
| 289 | sou.Volume=vol | |
| 290 | sou.Pitch=pit or 1 | |
| 291 | sou.SoundId=id | |
| 292 | swait() | |
| 293 | sou:play() | |
| 294 | game:GetService("Debris"):AddItem(sou,6)
| |
| 295 | end)) | |
| 296 | end | |
| 297 | ||
| 298 | function clerp(a,b,t) | |
| 299 | local qa = {QuaternionFromCFrame(a)}
| |
| 300 | local qb = {QuaternionFromCFrame(b)}
| |
| 301 | local ax, ay, az = a.x, a.y, a.z | |
| 302 | local bx, by, bz = b.x, b.y, b.z | |
| 303 | local _t = 1-t | |
| 304 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
| 305 | end | |
| 306 | ||
| 307 | function QuaternionFromCFrame(cf) | |
| 308 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 309 | local trace = m00 + m11 + m22 | |
| 310 | if trace > 0 then | |
| 311 | local s = math.sqrt(1 + trace) | |
| 312 | local recip = 0.5/s | |
| 313 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
| 314 | else | |
| 315 | local i = 0 | |
| 316 | if m11 > m00 then | |
| 317 | i = 1 | |
| 318 | end | |
| 319 | if m22 > (i == 0 and m00 or m11) then | |
| 320 | i = 2 | |
| 321 | end | |
| 322 | if i == 0 then | |
| 323 | local s = math.sqrt(m00-m11-m22+1) | |
| 324 | local recip = 0.5/s | |
| 325 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
| 326 | elseif i == 1 then | |
| 327 | local s = math.sqrt(m11-m22-m00+1) | |
| 328 | local recip = 0.5/s | |
| 329 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
| 330 | elseif i == 2 then | |
| 331 | local s = math.sqrt(m22-m00-m11+1) | |
| 332 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
| 333 | end | |
| 334 | end | |
| 335 | end | |
| 336 | ||
| 337 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 338 | local xs, ys, zs = x + x, y + y, z + z | |
| 339 | local wx, wy, wz = w*xs, w*ys, w*zs | |
| 340 | local xx = x*xs | |
| 341 | local xy = x*ys | |
| 342 | local xz = x*zs | |
| 343 | local yy = y*ys | |
| 344 | local yz = y*zs | |
| 345 | local zz = z*zs | |
| 346 | 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)) | |
| 347 | end | |
| 348 | ||
| 349 | function QuaternionSlerp(a, b, t) | |
| 350 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
| 351 | local startInterp, finishInterp; | |
| 352 | if cosTheta >= 0.0001 then | |
| 353 | if (1 - cosTheta) > 0.0001 then | |
| 354 | local theta = math.acos(cosTheta) | |
| 355 | local invSinTheta = 1/math.sin(theta) | |
| 356 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
| 357 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 358 | else | |
| 359 | startInterp = 1-t | |
| 360 | finishInterp = t | |
| 361 | end | |
| 362 | else | |
| 363 | if (1+cosTheta) > 0.0001 then | |
| 364 | local theta = math.acos(-cosTheta) | |
| 365 | local invSinTheta = 1/math.sin(theta) | |
| 366 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
| 367 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 368 | else | |
| 369 | startInterp = t-1 | |
| 370 | finishInterp = t | |
| 371 | end | |
| 372 | end | |
| 373 | 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 | |
| 374 | end | |
| 375 | ||
| 376 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
| 377 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
| |
| 378 | end | |
| 379 | ||
| 380 | Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
| 381 | if hit.Parent==nil then | |
| 382 | return | |
| 383 | end | |
| 384 | local h=hit.Parent:FindFirstChild("Humanoid")
| |
| 385 | for _,v in pairs(hit.Parent:children()) do | |
| 386 | if v:IsA("Humanoid") then
| |
| 387 | h=v | |
| 388 | end | |
| 389 | end | |
| 390 | if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
| |
| 391 | h=hit.Parent.Parent:FindFirstChild("Humanoid")
| |
| 392 | end | |
| 393 | if hit.Parent.className=="Hat" then | |
| 394 | hit=hit.Parent.Parent:findFirstChild("Head")
| |
| 395 | end | |
| 396 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
| |
| 397 | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
| |
| 398 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
| 399 | return | |
| 400 | end]] | |
| 401 | -- hs(hit,1.2) | |
| 402 | local c=Instance.new("ObjectValue")
| |
| 403 | c.Name="creator" | |
| 404 | c.Value=game:service("Players").LocalPlayer
| |
| 405 | c.Parent=h | |
| 406 | game:GetService("Debris"):AddItem(c,.5)
| |
| 407 | local Damage=math.random(minim,maxim) | |
| 408 | -- h:TakeDamage(Damage) | |
| 409 | local blocked=false | |
| 410 | local block=hit.Parent:findFirstChild("Block")
| |
| 411 | if block~=nil then | |
| 412 | print(block.className) | |
| 413 | if block.className=="NumberValue" then | |
| 414 | if block.Value>0 then | |
| 415 | blocked=true | |
| 416 | if decreaseblock==nil then | |
| 417 | block.Value=block.Value-1 | |
| 418 | end | |
| 419 | end | |
| 420 | end | |
| 421 | if block.className=="IntValue" then | |
| 422 | if block.Value>0 then | |
| 423 | blocked=true | |
| 424 | if decreaseblock~=nil then | |
| 425 | block.Value=block.Value-1 | |
| 426 | end | |
| 427 | end | |
| 428 | end | |
| 429 | end | |
| 430 | if blocked==false then | |
| 431 | -- h:TakeDamage(Damage) | |
| 432 | h.Health=h.Health-Damage | |
| 433 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color) | |
| 434 | else | |
| 435 | h.Health=h.Health-(Damage/2) | |
| 436 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color)
| |
| 437 | end | |
| 438 | if Type=="Knockdown" then | |
| 439 | local hum=hit.Parent.Humanoid | |
| 440 | hum.PlatformStand=true | |
| 441 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 442 | swait(1) | |
| 443 | HHumanoid.PlatformStand=false | |
| 444 | end),hum) | |
| 445 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
| 446 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
| 447 | local bodvol=Instance.new("BodyVelocity")
| |
| 448 | bodvol.velocity=angle*knockback | |
| 449 | bodvol.P=5000 | |
| 450 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
| 451 | bodvol.Parent=hit | |
| 452 | local rl=Instance.new("BodyAngularVelocity")
| |
| 453 | rl.P=3000 | |
| 454 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
| 455 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
| 456 | rl.Parent=hit | |
| 457 | game:GetService("Debris"):AddItem(bodvol,.5)
| |
| 458 | game:GetService("Debris"):AddItem(rl,.5)
| |
| 459 | elseif Type=="Normal" then | |
| 460 | local vp=Instance.new("BodyVelocity")
| |
| 461 | vp.P=500 | |
| 462 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
| 463 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
| 464 | if KnockbackType==1 then | |
| 465 | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
| 466 | elseif KnockbackType==2 then | |
| 467 | vp.velocity=Property.CFrame.lookVector*knockback | |
| 468 | end | |
| 469 | if knockback>0 then | |
| 470 | vp.Parent=hit.Parent.Torso | |
| 471 | end | |
| 472 | game:GetService("Debris"):AddItem(vp,.5)
| |
| 473 | elseif Type=="Up" then | |
| 474 | local bodyVelocity=Instance.new("BodyVelocity")
| |
| 475 | bodyVelocity.velocity=vt(0,60,0) | |
| 476 | bodyVelocity.P=5000 | |
| 477 | bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
| 478 | bodyVelocity.Parent=hit | |
| 479 | game:GetService("Debris"):AddItem(bodyVelocity,1)
| |
| 480 | local rl=Instance.new("BodyAngularVelocity")
| |
| 481 | rl.P=3000 | |
| 482 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
| 483 | rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30)) | |
| 484 | rl.Parent=hit | |
| 485 | game:GetService("Debris"):AddItem(rl,.5)
| |
| 486 | elseif Type=="Snare" then | |
| 487 | local bp=Instance.new("BodyPosition")
| |
| 488 | bp.P=2000 | |
| 489 | bp.D=100 | |
| 490 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
| 491 | bp.position=hit.Parent.Torso.Position | |
| 492 | bp.Parent=hit.Parent.Torso | |
| 493 | game:GetService("Debris"):AddItem(bp,1)
| |
| 494 | elseif Type=="Target" then | |
| 495 | local Targetting = false | |
| 496 | if Targetting==false then | |
| 497 | ZTarget=hit.Parent.Torso | |
| 498 | coroutine.resume(coroutine.create(function(Part) | |
| 499 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
| |
| 500 | swait(5) | |
| 501 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
| |
| 502 | end),ZTarget) | |
| 503 | local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
| |
| 504 | local targetgui=Instance.new("BillboardGui")
| |
| 505 | targetgui.Parent=ZTarget | |
| 506 | targetgui.Size=UDim2.new(10,100,10,100) | |
| 507 | local targ=Instance.new("ImageLabel")
| |
| 508 | targ.Parent=targetgui | |
| 509 | targ.BackgroundTransparency=1 | |
| 510 | targ.Image="rbxassetid://4834067" | |
| 511 | targ.Size=UDim2.new(1,0,1,0) | |
| 512 | cam.CameraType="Scriptable" | |
| 513 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
| 514 | local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
| 515 | workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
| 516 | Targetting=true | |
| 517 | RocketTarget=ZTarget | |
| 518 | for i=1,Property do | |
| 519 | --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do | |
| 520 | if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then | |
| 521 | swait() | |
| 522 | end | |
| 523 | --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100) | |
| 524 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
| 525 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
| 526 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0) | |
| 527 | end | |
| 528 | Targetting=false | |
| 529 | RocketTarget=nil | |
| 530 | targetgui.Parent=nil | |
| 531 | cam.CameraType="Custom" | |
| 532 | end | |
| 533 | end | |
| 534 | local debounce=Instance.new("BoolValue")
| |
| 535 | debounce.Name="DebounceHit" | |
| 536 | debounce.Parent=hit.Parent | |
| 537 | debounce.Value=true | |
| 538 | game:GetService("Debris"):AddItem(debounce,Delay)
| |
| 539 | c=Instance.new("ObjectValue")
| |
| 540 | c.Name="creator" | |
| 541 | c.Value=Player | |
| 542 | c.Parent=h | |
| 543 | game:GetService("Debris"):AddItem(c,.5)
| |
| 544 | end | |
| 545 | end | |
| 546 | ||
| 547 | ||
| 548 | function ShowDamage(Pos, Text, Time, Color) | |
| 549 | local Rate = (1 / 30) | |
| 550 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
| 551 | local Text = (Text or "") | |
| 552 | local Time = (Time or 2) | |
| 553 | local Color = (Color or Color3.new(1, 0, 0)) | |
| 554 | local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
| |
| 555 | EffectPart.Anchored = true | |
| 556 | local BillboardGui = Instance.new("BillboardGui")
| |
| 557 | BillboardGui.Size = UDim2.new(3, 0, 3, 0) | |
| 558 | BillboardGui.Adornee = EffectPart | |
| 559 | local TextLabel = Instance.new("TextLabel")
| |
| 560 | TextLabel.BackgroundTransparency = 1 | |
| 561 | TextLabel.Size = UDim2.new(1, 0, 1, 0) | |
| 562 | TextLabel.Text = Text | |
| 563 | TextLabel.TextColor3 = Color | |
| 564 | TextLabel.TextScaled = true | |
| 565 | TextLabel.Font = Enum.Font.ArialBold | |
| 566 | TextLabel.Parent = BillboardGui | |
| 567 | BillboardGui.Parent = EffectPart | |
| 568 | game.Debris:AddItem(EffectPart, (Time + 0.1)) | |
| 569 | EffectPart.Parent = game:GetService("Workspace")
| |
| 570 | Delay(0, function() | |
| 571 | local Frames = (Time / Rate) | |
| 572 | for Frame = 1, Frames do | |
| 573 | wait(Rate) | |
| 574 | local Percent = (Frame / Frames) | |
| 575 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
| 576 | TextLabel.TextTransparency = Percent | |
| 577 | end | |
| 578 | if EffectPart and EffectPart.Parent then | |
| 579 | EffectPart:Destroy() | |
| 580 | end | |
| 581 | end) | |
| 582 | end | |
| 583 | ||
| 584 | handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","Handle",Vector3.new(0.200000003, 1.61857152, 0.200000003)) | |
| 585 | handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.995889783, -0.101109691, 0.0468789339, -5.23798153e-005, 0.99999994, -0.000210702419, -6.36925748e-008, -0.000210702419, -0.99999994, -1, -5.23798008e-005, 7.47295417e-008)) | |
| 586 | mesh("CylinderMesh",handle,"","",Vector3.new(0, 0, 0),Vector3.new(0.857142806, 1, 0.857142746))
| |
| 587 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(0.200000003, 0.257142872, 0.911428571)) | |
| 588 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00982296467, -0.128642559, 5.57254982, -1.21753502e-007, -2.87620594e-010, 1, -1, -1.04306673e-006, -1.2175461e-007, 1.04306673e-006, -1, -2.87123214e-010)) | |
| 589 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.571428537, 1, 1))
| |
| 590 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.200000003, 3.74285722, 0.571428657)) | |
| 591 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0100114346, 3.24283266, 2.64644623e-005, -2.98713599e-006, -1.63886575e-008, -1, -1.18017197e-005, -0.99999994, 1.64265153e-008, -0.99999994, 1.18017197e-005, 2.98713007e-006)) | |
| 592 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 1, 1))
| |
| 593 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(0.200000003, 3.74285722, 0.514285743)) | |
| 594 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00896048546, 3.24313331, -6.2584877e-006, -2.62832918e-006, -1.58840017e-008, -1, -1.16825104e-005, -0.99999994, 1.59122848e-008, -0.99999994, 1.16825104e-005, 2.62831986e-006)) | |
| 595 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.571428537, 1, 1))
| |
| 596 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(0.200000003, 0.914285779, 0.254285723)) | |
| 597 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0080575943, -5.57459974, 0.127099097, -7.20826961e-007, -1.18548371e-009, 1, 6.25863322e-007, 1, 1.18891563e-009, -1, 6.25863322e-007, -7.20827984e-007)) | |
| 598 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.571428537, 1, 1))
| |
| 599 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.200000003, 0.942857206, 0.28285715)) | |
| 600 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00858414173, -5.58866072, 0.142816901, -5.41048905e-007, -8.99582631e-010, 1, -5.96046448e-007, 0.99999994, 9.00953978e-010, -0.99999994, -5.96046448e-007, -5.41057148e-007)) | |
| 601 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 1, 1))
| |
| 602 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.200000003, 0.285714328, 0.940000057)) | |
| 603 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.011053443, -0.142930448, 5.58944941, 2.97432763e-007, 3.64387631e-010, 1, -1, 6.25863322e-007, 2.9743137e-007, -6.25863322e-007, -1, 3.63804986e-010)) | |
| 604 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 1, 1))
| |
| 605 | Part=part(Enum.FormFactor.Brick,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(1, 1.20000005, 1)) | |
| 606 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.57627869e-007, -0.809324801, 1.96695328e-006, 6.20105922e-008, 2.27451835e-010, -1, 1.81795622e-006, 1, 2.27856845e-010, 1, -1.81795622e-006, 6.2011928e-008)) | |
| 607 | mesh("SpecialMesh",Part,Enum.MeshType.Head,"",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 0.142857134, 0.285714298))
| |
| 608 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.483492821, 0.539954185, 0.539909601)) | |
| 609 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00226664543, 0.69951874, 1.00827909, 5.41296288e-007, 9.50464596e-010, -1, 0.707107663, -0.707105815, 3.8208583e-007, -0.707105815, -0.707107663, -3.83435292e-007)) | |
| 610 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714179))
| |
| 611 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(0.892679513, 0.539954185, 0.771299422)) | |
| 612 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.19487548, -0.00217807293, 3.74913216e-005, 2.29479338e-006, 1, 7.06279479e-012, -6.20287395e-008, -7.34701189e-012, 1, 1, -2.29479338e-006, 6.20337914e-008)) | |
| 613 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.857145786, 1))
| |
| 614 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.892679513, 0.539954185, 0.771299422)) | |
| 615 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.19487882, -0.00217807293, 4.00543213e-005, 2.0563748e-006, 1, 1.14326326e-011, -6.20178255e-008, -1.28039801e-011, 1, 1, -2.0563748e-006, 6.20228633e-008)) | |
| 616 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.10000002, 0.571431458, 1.10000002))
| |
| 617 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.483492851, 0.539954185, 0.539909601)) | |
| 618 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00595891476, -1.00750566, 1.00747085, -1.81721958e-007, -3.98678424e-010, 1, -0.707107067, 0.707106411, -1.28216811e-007, -0.707106411, -0.707106948, -1.28784094e-007)) | |
| 619 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714179))
| |
| 620 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.483492821, 0.539954185, 0.539909601)) | |
| 621 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00534570217, -1.00757694, -0.698815584, 2.4158129e-007, 4.89748686e-010, -1, -0.707107604, 0.707105875, -1.70486445e-007, 0.707105815, 0.707107544, 1.71177419e-007)) | |
| 622 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714269))
| |
| 623 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.493492872, 0.539954185, 0.539909601)) | |
| 624 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000260472298, 0.6988675, -0.698937058, 3.01447898e-007, 5.80818948e-010, -1, -0.707105994, -0.707107365, -2.13563524e-007, -0.707107365, 0.707106113, -2.12752497e-007)) | |
| 625 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714269))
| |
| 626 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(1.46267962, 0.200000003, 0.200000003)) | |
| 627 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00927072763, -0.0121991634, 1.19311547, 0.999999881, -2.08614802e-006, 1.9306286e-007, -1.93059051e-007, -1.09411957e-007, 1, -2.08616257e-006, -0.999999881, -1.09408283e-007)) | |
| 628 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 629 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(1.06267953, 0.200000003, 0.200000003)) | |
| 630 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.604586363, -0.0121991634, 1.02863288, 0.866026282, 0.499998033, 2.28958157e-007, -1.93872992e-007, -1.22099237e-007, 1, 0.499998033, -0.866026282, -8.79730777e-009)) | |
| 631 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 632 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(1.46267962, 0.200000003, 0.200000003)) | |
| 633 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.03790355, -0.0121991634, 0.588528812, 0.500001669, 0.866024196, 1.74744486e-007, -1.6279435e-007, -1.0777579e-007, 1, 0.866024196, -0.500001669, 8.71042545e-008)) | |
| 634 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 635 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.662679553, 0.200000003, 0.200000003)) | |
| 636 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.39311564, -0.0121991634, -0.00927072763, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007)) | |
| 637 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 638 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(1.46267951, 0.200000003, 0.200000003)) | |
| 639 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.02863288, -0.0121997595, -0.604586482, -0.499998093, 0.866026223, -6.44970513e-008, -1.45620604e-007, -9.60127267e-009, 1, 0.866026223, 0.499998093, 1.30918266e-007)) | |
| 640 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 641 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(1.06267953, 0.200000003, 0.200000003)) | |
| 642 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.588528991, -0.0121992826, -1.03790355, -0.866024137, 0.500001729, -9.11133142e-008, -1.16737233e-007, -1.99774206e-008, 1, 0.500001729, 0.866024137, 7.56750538e-008)) | |
| 643 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 644 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.372464359, 0.762464345, 0.762464285)) | |
| 645 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00338602066, -0.736121356, -0.540583551, 5.41296288e-007, 9.50464596e-010, -1, 0.707107663, -0.707105815, 3.8208583e-007, -0.707105815, -0.707107663, -3.83435292e-007)) | |
| 646 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.895366609, 0.128561974, 0.128542364))
| |
| 647 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.382464379, 0.762464345, 0.762464285)) | |
| 648 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00803625584, -0.737174749, 0.736498654, 3.01447898e-007, 5.80818948e-010, -1, -0.707105994, -0.707107365, -2.13563524e-007, -0.707107365, 0.707106113, -2.12752497e-007)) | |
| 649 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.913885474, 0.128561974, 0.128542408))
| |
| 650 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.40246433, 0.762464345, 0.762464285)) | |
| 651 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00594449043, 0.540397167, 0.737201214, 2.4158129e-007, 4.89748686e-010, -1, -0.707107604, 0.707105875, -1.70486445e-007, 0.707105815, 0.707107544, 1.71177419e-007)) | |
| 652 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.895366609, 0.128561974, 0.128542408))
| |
| 653 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.40246433, 0.762464345, 0.762464285)) | |
| 654 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00681877136, 0.540436149, -0.541088939, -1.81721958e-007, -3.98678424e-010, 1, -0.707107067, 0.707106411, -1.28216811e-007, -0.707106411, -0.707106948, -1.28784094e-007)) | |
| 655 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.895366669, 0.128561974, 0.128542364))
| |
| 656 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(1.26045096, 0.762464345, 0.762464285)) | |
| 657 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.910848916, -0.00147974491, 0.000465214252, 2.29479338e-006, 1, 7.06279479e-012, -6.20287395e-008, -7.34701189e-012, 1, 1, -2.29479338e-006, 6.20337914e-008)) | |
| 658 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.385687381, 0.642712057))
| |
| 659 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(1.26045096, 0.762464345, 0.762464285)) | |
| 660 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.910846829, -0.00147974491, 0.000467300415, 2.0563748e-006, 1, 1.14326326e-011, -6.20178255e-008, -1.28039801e-011, 1, 1, -2.0563748e-006, 6.20228633e-008)) | |
| 661 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.10000002, 0.257125348, 0.706983268))
| |
| 662 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 663 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.98755074e-005, -0.86527884, -0.00526940823, 0.99999994, -3.33786011e-006, -1.61662047e-006, 3.33786011e-006, 0.99999994, -1.75251103e-009, 1.61662604e-006, 1.74897963e-009, 1)) | |
| 664 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.857142806, 0.857145548, 0.857142746))
| |
| 665 | Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Black","Hitbox",Vector3.new(0.650000036, 4.19999981, 0.200000003)) | |
| 666 | Hitboxweld=weld(m,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0107657909, -3.95914412, 0.00325751305, 0.999999821, -0.000211339415, 2.39198562e-006, 0.000211339124, 0.999997795, -6.21902582e-005, -2.38056168e-006, 6.20116552e-005, 0.999992907)) | |
| 667 | EffectPart=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Royal purple","EffectPart",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 668 | EffectPartweld=weld(m,handle,EffectPart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00693154335, 0.014090538, 6.03910685, -5.23798153e-005, -6.36925748e-008, -1, 0.99999994, -0.000210702419, -5.23798008e-005, -0.000210702419, -0.99999994, 7.47295417e-008)) | |
| 669 | mesh("BlockMesh",EffectPart,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 670 | EffectPart2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Black","EffectPart2",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 671 | EffectPart2weld=weld(m,Character["Left Arm"],EffectPart2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.15575993, 0.00814216491, -0.0231294632, -5.23798153e-005, 0.999999821, -0.000210702419, -6.36925748e-008, -0.00021070239, -0.99999994, -1, -5.23797935e-005, 7.47295417e-008)) | |
| 672 | ||
| 673 | DarkRiftF=function(par) | |
| 674 | while lol == true do | |
| 675 | wait() | |
| 676 | local PWN={}
| |
| 677 | for _,v in pairs(game.Workspace:children()) do | |
| 678 | if v.className=="Model" and v:FindFirstChild("Humanoid")~=nil then
| |
| 679 | if v.Humanoid.Health>0 and v:FindFirstChild("Torso")~=nil then
| |
| 680 | table.insert(PWN,v.Torso) | |
| 681 | end | |
| 682 | end | |
| 683 | end | |
| 684 | for _,t in pairs(PWN) do | |
| 685 | local targ=par.Position-t.Position | |
| 686 | local Mag=targ.magnitude | |
| 687 | if not t:IsDescendantOf(Character) and t~=nil and Mag<=50 then | |
| 688 | if Mag<=30 then | |
| 689 | t.Parent.Humanoid:TakeDamage(.5) | |
| 690 | local rl=Instance.new("BodyAngularVelocity")
| |
| 691 | rl.P=3000 | |
| 692 | rl.maxTorque=Vector3.new(500000,500000,500000)*5000 | |
| 693 | rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))/10 | |
| 694 | rl.Parent=t | |
| 695 | game:GetService("Debris"):AddItem(rl,.1)
| |
| 696 | end | |
| 697 | if Mag<=20 then | |
| 698 | t.Parent.Humanoid:TakeDamage(.1) | |
| 699 | else | |
| 700 | local vl=Instance.new("BodyVelocity")
| |
| 701 | vl.P=3000 | |
| 702 | vl.maxForce=Vector3.new(50000000000,50000000000,50000000000) | |
| 703 | vl.velocity=(t.Position-par.Position).unit*-(70/(Mag)) | |
| 704 | vl.Parent=t | |
| 705 | game:GetService("Debris"):AddItem(vl,.1)
| |
| 706 | end | |
| 707 | end | |
| 708 | end | |
| 709 | wait(.08) | |
| 710 | end | |
| 711 | end | |
| 712 | ||
| 713 | function DerpMagic(part,x1,y1,z1,x2,y2,z2,color) | |
| 714 | local msh1 = Instance.new("BlockMesh")
| |
| 715 | msh1.Scale = Vector3.new(0.5,0.5,0.5) | |
| 716 | local S=Instance.new("Part")
| |
| 717 | S.Name="Effect" | |
| 718 | S.Material="Neon" | |
| 719 | S.formFactor=0 | |
| 720 | S.Size=Vector3.new(x1,y1,z1) | |
| 721 | S.BrickColor=color | |
| 722 | S.Reflectance = 0 | |
| 723 | S.TopSurface=0 | |
| 724 | S.BottomSurface=0 | |
| 725 | S.Transparency=0 | |
| 726 | S.Anchored=false | |
| 727 | S.CanCollide=false | |
| 728 | S.CFrame=part.CFrame | |
| 729 | S.Parent=game.Workspace | |
| 730 | msh1.Parent = S | |
| 731 | local W=Instance.new("Weld")
| |
| 732 | W.Parent=S | |
| 733 | W.Part0=S | |
| 734 | W.Part1=part | |
| 735 | W.C0=CFrame.new(x2,y2,z2) * CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 736 | W.Parent=nil | |
| 737 | S.Anchored=true | |
| 738 | coroutine.resume(coroutine.create(function(Part,Weld) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) --[[Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))]] Part.Transparency=i*.1 wait() end Part.Parent=nil Weld.Parent=nil end),S,W) | |
| 739 | end | |
| 740 | ||
| 741 | local function BlackHole(parent,cframe) | |
| 742 | local effectsmsh = Instance.new("SpecialMesh")
| |
| 743 | effectsmsh.MeshId = "http://www.roblox.com/asset/?id=15887356" | |
| 744 | --effectsmsh.Scale = Vector3.new(1,1,2.5) | |
| 745 | effectsmsh.Scale = Vector3.new(3,3,3) | |
| 746 | local effectsg = Instance.new("Part")
| |
| 747 | effectsg.formFactor = 3 | |
| 748 | effectsg.CanCollide = false | |
| 749 | effectsg.Name = "Effect" | |
| 750 | effectsg.Locked = true | |
| 751 | effectsg.Transparency = 1 | |
| 752 | effectsg.Size = Vector3.new(0.2,0.2,0.2) | |
| 753 | effectsg.Parent = parent | |
| 754 | effectsg.BrickColor = BrickColor.new("Royal purple")
| |
| 755 | effectsg.Material="Neon" | |
| 756 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 757 | local Mesh = Instance.new("SpecialMesh")
| |
| 758 | Mesh.Scale = Vector3.new(0.5,0.5,0.5) | |
| 759 | Mesh.MeshType = "Sphere" | |
| 760 | -- Mesh.TextureId="http://www.roblox.com/asset/?id=1529460" | |
| 761 | Part=Instance.new("Part")
| |
| 762 | Part.Name="Effect" | |
| 763 | Part.formFactor=0 | |
| 764 | Part.Size=Vector3.new(1,1,1) | |
| 765 | Part.BrickColor=BrickColor.new("Royal purple")
| |
| 766 | Part.Material="Neon" | |
| 767 | Part.Reflectance = 0 | |
| 768 | Part.TopSurface=0 | |
| 769 | Part.BottomSurface=0 | |
| 770 | Part.Transparency=0 | |
| 771 | Part.Anchored=true | |
| 772 | NoOutline(Part) | |
| 773 | Part.CanCollide=false | |
| 774 | Part.CFrame=cframe | |
| 775 | Part.Parent=parent | |
| 776 | Mesh.Parent = Part | |
| 777 | lol=true | |
| 778 | coroutine.resume(coroutine.create(function() | |
| 779 | DarkRiftF(Part) | |
| 780 | end)) | |
| 781 | for i=0,200 do | |
| 782 | wait() | |
| 783 | DerpMagic(Part,1,i/3,1,0,i/3,0,BrickColor.new("Royal purple"))
| |
| 784 | Mesh.Scale=Mesh.Scale-Vector3.new(0.2,0.2,0.2) | |
| 785 | Part.CFrame=cframe*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 786 | end | |
| 787 | local fff=200 | |
| 788 | for i=0,100 do | |
| 789 | wait() | |
| 790 | DerpMagic(Part,1,fff/3,1,0,fff/3,0,BrickColor.new("Royal purple"))
| |
| 791 | Part.CFrame=cframe*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 792 | end | |
| 793 | for i=0,1,0.05 do | |
| 794 | wait() | |
| 795 | Part.Transparency=Part.Transparency+0.05 | |
| 796 | Mesh.Scale=Mesh.Scale+Vector3.new(1.5,1.5,1.5) | |
| 797 | end | |
| 798 | lol=false | |
| 799 | Part.Parent=nil | |
| 800 | end),nil,nil) | |
| 801 | end | |
| 802 | ||
| 803 | function makeShockwave(height,color,speed,range,pulse) | |
| 804 | local range = range or 2000 | |
| 805 | local p = Instance.new("Part")
| |
| 806 | p.Anchored = true | |
| 807 | p.CanCollide = false | |
| 808 | p.FormFactor = "Custom" | |
| 809 | p.BrickColor = color | |
| 810 | p.Parent = workspace | |
| 811 | local m = Instance.new("SpecialMesh",p)
| |
| 812 | m.MeshId = "rbxassetid://3270017" | |
| 813 | local estimateSurvival = math.floor(range/speed) * 0.03 | |
| 814 | game:GetService("Debris"):AddItem(p,estimateSurvival)
| |
| 815 | Spawn(function () | |
| 816 | for i = 1,range,speed do | |
| 817 | p.Transparency = 1-math.min(0.5,3-(i/500)) | |
| 818 | m.Scale = Vector3.new(i,i,i*height) | |
| 819 | p.CFrame = CFrame.new(Torso.Position) * CFrame.Angles(math.rad(90),0,0) | |
| 820 | wait() | |
| 821 | end | |
| 822 | p:Destroy() | |
| 823 | end) | |
| 824 | end | |
| 825 | ||
| 826 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 827 | local prt=ppart(3,game.Workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 828 | prt.Anchored=true | |
| 829 | prt.CFrame=cframe | |
| 830 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(.1,.1,.1))
| |
| 831 | game:GetService("Debris"):AddItem(prt,2)
| |
| 832 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 833 | for i=0,2,delay do | |
| 834 | wait() | |
| 835 | Part.CFrame=Part.CFrame | |
| 836 | Part.Transparency=i | |
| 837 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 838 | end | |
| 839 | Part.Parent=nil | |
| 840 | end),prt,msh) | |
| 841 | end | |
| 842 | ||
| 843 | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 844 | local prt=ppart(3,game.Workspace,0,1,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 845 | prt.Anchored=true | |
| 846 | prt.CFrame=cframe | |
| 847 | local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 848 | game:GetService("Debris"):AddItem(prt,5)
| |
| 849 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 850 | for i=0,1,delay do | |
| 851 | wait() | |
| 852 | Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 853 | Part.Transparency=i | |
| 854 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 855 | end | |
| 856 | Part.Parent=nil | |
| 857 | end),prt,msh) | |
| 858 | end | |
| 859 | ||
| 860 | local function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent) | |
| 861 | local prt=ppart(3,game.Workspace,0,1,brickcolor,"Effect",vt()) | |
| 862 | if Type~=2 then | |
| 863 | prt.Anchored=true | |
| 864 | end | |
| 865 | prt.CFrame=cframe | |
| 866 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
| |
| 867 | game:GetService("Debris"):AddItem(prt,5)
| |
| 868 | coroutine.resume(coroutine.create(function(Part,Mesh,dur) | |
| 869 | local wld=nil | |
| 870 | if dur==2 then | |
| 871 | wld=weld(Part,Part,parent,euler(0,0,0)*cf(0,0,0)) | |
| 872 | end | |
| 873 | for i=0,1,delay do | |
| 874 | swait() | |
| 875 | if dur==1 then | |
| 876 | Part.CFrame=Part.CFrame | |
| 877 | elseif dur==2 then | |
| 878 | wld.C0=cframe | |
| 879 | end | |
| 880 | Part.Transparency=i | |
| 881 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 882 | end | |
| 883 | Part.Parent=nil | |
| 884 | end),prt,msh,Type) | |
| 885 | end | |
| 886 | ||
| 887 | function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 888 | local prt=ppart(3,game.Workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 889 | prt.Anchored=true | |
| 890 | prt.CFrame=cframe | |
| 891 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
| |
| 892 | game:GetService("Debris"):AddItem(prt,5)
| |
| 893 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 894 | for i=0,1,delay do | |
| 895 | swait() | |
| 896 | Part.CFrame=Part.CFrame*euler(0,0.7,0) | |
| 897 | Part.Transparency=i | |
| 898 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 899 | end | |
| 900 | Part.Parent=nil | |
| 901 | end),prt,msh) | |
| 902 | end | |
| 903 | ||
| 904 | function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 905 | local prt=ppart(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2)) | |
| 906 | prt.Anchored=true | |
| 907 | prt.CFrame=cframe | |
| 908 | local msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
| |
| 909 | game:GetService("Debris"):AddItem(prt,5)
| |
| 910 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 911 | for i=0,1,delay do | |
| 912 | wait() | |
| 913 | Part.CFrame=Part.CFrame | |
| 914 | Part.Transparency=i | |
| 915 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 916 | end | |
| 917 | Part.Parent=nil | |
| 918 | end),prt,msh) | |
| 919 | end | |
| 920 | ||
| 921 | function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 922 | local prt=ppart(3,workspace,0,0,brickcolor,"Effect",vt()) | |
| 923 | prt.Anchored=true | |
| 924 | prt.CFrame=cframe | |
| 925 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
| |
| 926 | game:GetService("Debris"):AddItem(prt,5)
| |
| 927 | table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
| |
| 928 | end | |
| 929 | ||
| 930 | function Blast(parent) | |
| 931 | MagicBlock(BrickColor.new("Black"),parent.CFrame,4,4,4,0.2,0.2,0.2,0.01)
| |
| 932 | MagicWaveThing(BrickColor.new("Black"),parent.CFrame,4,4,4,0.2,0.2,0.2,0.01)
| |
| 933 | end | |
| 934 | ||
| 935 | function ChargeBall(parent,t) | |
| 936 | local counter=0 | |
| 937 | local size=1 | |
| 938 | for i=0,t,1 do | |
| 939 | swait() | |
| 940 | counter=counter+1 | |
| 941 | if counter%10==0 then | |
| 942 | if size==3 then | |
| 943 | MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
| |
| 944 | elseif size==2 then | |
| 945 | MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
| |
| 946 | end | |
| 947 | end | |
| 948 | if counter%5==0 then | |
| 949 | if size==1 then | |
| 950 | MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
| |
| 951 | elseif size==2 then | |
| 952 | MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
| |
| 953 | elseif size==3 then | |
| 954 | MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
| |
| 955 | end | |
| 956 | end | |
| 957 | end | |
| 958 | end | |
| 959 | ||
| 960 | function ChargeBall2(parent,t) | |
| 961 | local counter=0 | |
| 962 | local size=1 | |
| 963 | for i=0,t,1 do | |
| 964 | swait() | |
| 965 | counter=counter+1 | |
| 966 | if counter%10==0 then | |
| 967 | if size==3 then | |
| 968 | MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
| |
| 969 | elseif size==2 then | |
| 970 | MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
| |
| 971 | end | |
| 972 | end | |
| 973 | if counter%5==0 then | |
| 974 | if size==1 then | |
| 975 | MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
| |
| 976 | MagicWave(BrickColor.new("Royal purple"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
| |
| 977 | elseif size==2 then | |
| 978 | MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
| |
| 979 | MagicWave(BrickColor.new("Royal purple"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
| |
| 980 | elseif size==3 then | |
| 981 | MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
| |
| 982 | MagicWave(BrickColor.new("Royal purple"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
| |
| 983 | end | |
| 984 | end | |
| 985 | end | |
| 986 | end | |
| 987 | ||
| 988 | function MagniDamage(Part,dis,mind,maxd,force,knock) | |
| 989 | for _,c in pairs(workspace:children()) do | |
| 990 | local hum=c:findFirstChild("Humanoid")
| |
| 991 | if hum~=nil then | |
| 992 | local head=c:findFirstChild("Torso")
| |
| 993 | if head~=nil then | |
| 994 | local targ=head.Position-Part.Position | |
| 995 | local mag=targ.magnitude | |
| 996 | if mag<=dis and c.Name~=Character.Name then | |
| 997 | Damagefunc(Part,hum.Parent.Torso,mind,maxd,force,knock,RootPart,.2,1) | |
| 998 | end | |
| 999 | end | |
| 1000 | end | |
| 1001 | end | |
| 1002 | end | |
| 1003 | ||
| 1004 | function computeDirection(vec) | |
| 1005 | local lenSquared = vec.magnitude * vec.magnitude | |
| 1006 | local invSqrt = 1 / math.sqrt(lenSquared) | |
| 1007 | return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt) | |
| 1008 | end | |
| 1009 | ||
| 1010 | function attackone() | |
| 1011 | attack = true | |
| 1012 | local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
| |
| 1013 | local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,4222,112222,math.random(5,5),"Normal",RootPart,.2,1) end) | |
| 1014 | local fx=Hitbox.Touched:connect(function(part) | |
| 1015 | local human=part.Parent:findFirstChild("Humanoid")
| |
| 1016 | if human~=nil and bounce==false then | |
| 1017 | bounce=true | |
| 1018 | local rndm=math.random(1,#hitsounds) | |
| 1019 | local r=rndm | |
| 1020 | so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1)
| |
| 1021 | end | |
| 1022 | end) | |
| 1023 | for i = 0,1,0.1 do | |
| 1024 | swait() | |
| 1025 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),0.4) | |
| 1026 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(50)),0.4) | |
| 1027 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(100)),0.4) | |
| 1028 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)),0.4) | |
| 1029 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(0)),0.4) | |
| 1030 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.4) | |
| 1031 | end | |
| 1032 | so("http://www.roblox.com/asset/?id=199145841",handle,1,.9)
| |
| 1033 | for i = 0,1,0.1 do | |
| 1034 | swait() | |
| 1035 | local blcf = Hitbox.CFrame*CFrame.new(0,.5,0) | |
| 1036 | if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then | |
| 1037 | local h = 5 | |
| 1038 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
| 1039 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
| 1040 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
| 1041 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
| 1042 | scfr = blcf | |
| 1043 | elseif not scfr then | |
| 1044 | scfr = blcf | |
| 1045 | end | |
| 1046 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.4) | |
| 1047 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-80)),0.4) | |
| 1048 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4) | |
| 1049 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4) | |
| 1050 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(0)),0.4) | |
| 1051 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),0.4) | |
| 1052 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.4) | |
| 1053 | end | |
| 1054 | attack = false | |
| 1055 | bounce=false | |
| 1056 | scfr=nil | |
| 1057 | fx:disconnect() | |
| 1058 | con:disconnect() | |
| 1059 | end | |
| 1060 | ||
| 1061 | function attacktwo() | |
| 1062 | attack=true | |
| 1063 | local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
| |
| 1064 | local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,4222,112222,math.random(5,5),"Normal",RootPart,.2,1) end) | |
| 1065 | local fx=Hitbox.Touched:connect(function(part) | |
| 1066 | local human=part.Parent:findFirstChild("Humanoid")
| |
| 1067 | if human~=nil and bounce==false then | |
| 1068 | bounce=true | |
| 1069 | local rndm=math.random(1,#hitsounds) | |
| 1070 | local r=rndm | |
| 1071 | so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1)
| |
| 1072 | end | |
| 1073 | end) | |
| 1074 | for i=0,1,.1 do | |
| 1075 | swait() | |
| 1076 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(70)),0.4) | |
| 1077 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-70)),0.4) | |
| 1078 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4) | |
| 1079 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4) | |
| 1080 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(40),math.rad(0)),0.4) | |
| 1081 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(-10)),0.4) | |
| 1082 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.4) | |
| 1083 | end | |
| 1084 | so("http://www.roblox.com/asset/?id=199145887",handle,1,1)
| |
| 1085 | for i = 0,1,0.1 do | |
| 1086 | swait() | |
| 1087 | local blcf = Hitbox.CFrame*CFrame.new(0,.5,0) | |
| 1088 | if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then | |
| 1089 | local h = 5 | |
| 1090 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
| 1091 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
| 1092 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
| 1093 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
| 1094 | scfr = blcf | |
| 1095 | elseif not scfr then | |
| 1096 | scfr = blcf | |
| 1097 | end | |
| 1098 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.4) | |
| 1099 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),0.4) | |
| 1100 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)),0.4) | |
| 1101 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)),0.4) | |
| 1102 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(0)),0.4) | |
| 1103 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-40),math.rad(-10)),0.4) | |
| 1104 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4) | |
| 1105 | end | |
| 1106 | scfr=nil | |
| 1107 | attack=false | |
| 1108 | bounce=false | |
| 1109 | con:disconnect() | |
| 1110 | fx:disconnect() | |
| 1111 | end | |
| 1112 | ||
| 1113 | function attackthree() | |
| 1114 | attack=true | |
| 1115 | local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
| |
| 1116 | local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,6222,152222,math.random(5,5),"Normal",RootPart,.2,1) end) | |
| 1117 | local fx=Hitbox.Touched:connect(function(part) | |
| 1118 | local human=part.Parent:findFirstChild("Humanoid")
| |
| 1119 | if human~=nil and bounce==false then | |
| 1120 | bounce=true | |
| 1121 | local rndm=math.random(1,#hitsounds) | |
| 1122 | local r=rndm | |
| 1123 | so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1)
| |
| 1124 | end | |
| 1125 | end) | |
| 1126 | for i=0,1,.1 do | |
| 1127 | swait() | |
| 1128 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),0.4) | |
| 1129 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.3) | |
| 1130 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.4) | |
| 1131 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25), math.rad(0), math.rad(-30)),0.4) | |
| 1132 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(105),math.rad(0)),0.4) | |
| 1133 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(-10)),0.4) | |
| 1134 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4) | |
| 1135 | end | |
| 1136 | so("http://www.roblox.com/asset/?id=199145913",handle,1,.9)
| |
| 1137 | for i = 0,1,0.1 do | |
| 1138 | swait() | |
| 1139 | local blcf = Hitbox.CFrame*CFrame.new(0,.5,0) | |
| 1140 | if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then | |
| 1141 | local h = 5 | |
| 1142 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
| 1143 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
| 1144 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
| 1145 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
| 1146 | scfr = blcf | |
| 1147 | elseif not scfr then | |
| 1148 | scfr = blcf | |
| 1149 | end | |
| 1150 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),0.4) | |
| 1151 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-50)),.3) | |
| 1152 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)),0.4) | |
| 1153 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.4) | |
| 1154 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.4) | |
| 1155 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.4) | |
| 1156 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.4) | |
| 1157 | end | |
| 1158 | attack=false | |
| 1159 | bounce=false | |
| 1160 | scfr=nil | |
| 1161 | con:disconnect() | |
| 1162 | fx:disconnect() | |
| 1163 | end | |
| 1164 | ||
| 1165 | function attackfour() | |
| 1166 | attack = true | |
| 1167 | local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
| |
| 1168 | local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,9222,18222,math.random(20,30),"Normal",RootPart,.2,1) end) | |
| 1169 | local fx=Hitbox.Touched:connect(function(part) | |
| 1170 | local human=part.Parent:findFirstChild("Humanoid")
| |
| 1171 | if human~=nil and bounce==false then | |
| 1172 | bounce=true | |
| 1173 | local rndm=math.random(1,#hitsounds) | |
| 1174 | local r=rndm | |
| 1175 | so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1)
| |
| 1176 | end | |
| 1177 | end) | |
| 1178 | for i = 0,1,0.1 do | |
| 1179 | swait() | |
| 1180 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(-5),math.rad(-60)),.3) | |
| 1181 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.3) | |
| 1182 | RW.C0=clerp(RW.C0,cf(1.5, 0.8, 0.2) * angles(math.rad(5), math.rad(-15), math.rad(112)), 0.3) | |
| 1183 | LW.C0=clerp(LW.C0,cf(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-20)), 0.3) | |
| 1184 | RH.C0=clerp(RH.C0,cf(1.1,-1,0)*angles(math.rad(-5),math.rad(120),math.rad(-8)),.3) | |
| 1185 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(5),math.rad(-60),math.rad(0)),.3) | |
| 1186 | handleweld.C0=clerp(handleweld.C0,cf(0,-.2,.5)*angles(math.rad(50),math.rad(-15),math.rad(0)),.3) | |
| 1187 | end | |
| 1188 | so("http://www.roblox.com/asset/?id=199145433",Hitbox,1,1.1)
| |
| 1189 | local v=it("BodyVelocity",Torso)
| |
| 1190 | v.maxForce=Vector3.new(4e+005,4e+005,4e+005)*1 | |
| 1191 | v.velocity=RootPart.CFrame.lookVector*50 | |
| 1192 | for i = 0,1,0.1 do | |
| 1193 | swait() | |
| 1194 | local blcf = Hitbox.CFrame*cf(0,0,0) | |
| 1195 | if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then | |
| 1196 | local h = 5 | |
| 1197 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
| 1198 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
| 1199 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
| 1200 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
| 1201 | scfr = blcf | |
| 1202 | elseif not scfr then | |
| 1203 | scfr = blcf | |
| 1204 | end | |
| 1205 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(60)),.3) | |
| 1206 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.3) | |
| 1207 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(60), math.rad(100)), 0.3) | |
| 1208 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-15)), 0.3) | |
| 1209 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3) | |
| 1210 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3) | |
| 1211 | handleweld.C0=clerp(handleweld.C0,cf(0,-1,-1)*angles(math.rad(-100),math.rad(0),math.rad(0)),.3) | |
| 1212 | end | |
| 1213 | v.Parent=nil | |
| 1214 | scfr=nil | |
| 1215 | attack = false | |
| 1216 | bounce=false | |
| 1217 | con:disconnect() | |
| 1218 | fx:disconnect() | |
| 1219 | end | |
| 1220 | ||
| 1221 | function LustrisFulgo() | |
| 1222 | attack=true | |
| 1223 | Humanoid.WalkSpeed=0 | |
| 1224 | for i=0,1,0.1 do | |
| 1225 | swait() | |
| 1226 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-15),math.rad(0),math.rad(10)),.3) | |
| 1227 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-25),math.rad(0),math.rad(-10)),.3) | |
| 1228 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(145), math.rad(0), math.rad(7)), 0.3) | |
| 1229 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(4), math.rad(-15)), 0.3) | |
| 1230 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-15),math.rad(90),math.rad(0)),.3) | |
| 1231 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-25),math.rad(-90),math.rad(0)),.3) | |
| 1232 | handleweld.C0=clerp(handleweld.C0,cf(0,0,-.5)*angles(math.rad(-60),math.rad(0),math.rad(0)),.3) | |
| 1233 | end | |
| 1234 | local function boom() | |
| 1235 | local pprt=ppart(3,game.Workspace,0,1,BrickColor.new("Black"),"Effect",vt(1,1,1))
| |
| 1236 | pprt.Anchored=true | |
| 1237 | pprt.CFrame=EffectPart.CFrame | |
| 1238 | game:GetService("Debris"):AddItem(pprt,2)
| |
| 1239 | MagicCircle(BrickColor.new("Black"),EffectPart.CFrame,20,20,20,-0.01,-0.01,-0.01,0.01)
| |
| 1240 | so("http://roblox.com/asset/?id=228343412",EffectPart,1,0.6)
| |
| 1241 | so("http://roblox.com/asset/?id=228343408",EffectPart,1,1.4)
| |
| 1242 | local wave=part(3,game.Workspace,"Neon",0,.7,BrickColor.new("Black"),"Effect",vt(1,1,1))
| |
| 1243 | local waveweld=weld(game.Workspace,handle,wave,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00693154335, 0.014090538, 6.03910685, -5.23798153e-005, -6.36925748e-008, -1, 0.99999994, -0.000210702419, -5.23798008e-005, -0.000210702419, -0.99999994, 7.47295417e-008)) | |
| 1244 | local wavemesh=mesh("SpecialMesh",wave,"Sphere","",vt(0,0,0),vt(1,1,1))
| |
| 1245 | MagniDamage(wave,20,15222,25222,math.random(20,30),"Knockdown",RootPart) | |
| 1246 | for i=0,80 do | |
| 1247 | swait() | |
| 1248 | MagicBlock(BrickColor.new("Black"),EffectPart.CFrame,7,7,7,-0.5,-0.5,-0.5,0.05)
| |
| 1249 | MagicCircle(BrickColor.new("Black"),EffectPart.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,5,0),0.5,1,0.5,0.02,1,0.02,0.05)
| |
| 1250 | wave.Size=vt(1+i,1+i,1+i) | |
| 1251 | wavemesh.Scale=vt(1+i,1+i,1+i) | |
| 1252 | wave.CFrame=EffectPart.CFrame | |
| 1253 | Humanoid.Health=Humanoid.Health+.15 | |
| 1254 | end | |
| 1255 | wave:Destroy() | |
| 1256 | end | |
| 1257 | boom() | |
| 1258 | attack=false | |
| 1259 | Humanoid.WalkSpeed=16 | |
| 1260 | end | |
| 1261 | ||
| 1262 | function LeviterGlomus() | |
| 1263 | attack=true | |
| 1264 | for i=0,1,.1 do | |
| 1265 | swait() | |
| 1266 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(60)),.3) | |
| 1267 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.3) | |
| 1268 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(18), math.rad(-15), math.rad(15)), 0.3) | |
| 1269 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-75), math.rad(0), math.rad(-50)), 0.3) | |
| 1270 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-3),math.rad(65),math.rad(0)),.3) | |
| 1271 | LH.C0=clerp(LH.C0,cf(-1.1,-1,0)*angles(math.rad(-25),math.rad(-110),math.rad(0))*angles(math.rad(-25),math.rad(0),math.rad(0)),.3) | |
| 1272 | handleweld.C0=clerp(handleweld.C0,cf(0,.2,-.3)*angles(math.rad(-35),math.rad(-15),math.rad(0)),.3) | |
| 1273 | end | |
| 1274 | so("http://www.roblox.com/asset/?id=199145659",EffectPart2,1,1)
| |
| 1275 | efprt=part(Enum.FormFactor.Custom,game.Workspace,Enum.Material.Neon,0,0,"Black","BallEffect",Vector3.new(2, 2, 2)) | |
| 1276 | weld(m,Character["Left Arm"],efprt,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.15575993, 0.00814216491, -0.0231294632, -5.23798153e-005, 0.999999821, -0.000210702419, -6.36925748e-008, -0.00021070239, -0.99999994, -1, -5.23797935e-005, 7.47295417e-008)) | |
| 1277 | mesh("SpecialMesh",efprt,"Sphere","",vt(0,0,0),vt(1,1,1))
| |
| 1278 | ChargeBall(EffectPart2,35) | |
| 1279 | for i=0,1,.1 do | |
| 1280 | swait() | |
| 1281 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-60)),.3) | |
| 1282 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.3) | |
| 1283 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-18), math.rad(15), math.rad(15)), 0.3) | |
| 1284 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(75), math.rad(0), math.rad(-65)), 0.3) | |
| 1285 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(110),math.rad(0)),.3) | |
| 1286 | LH.C0=clerp(LH.C0,cf(-1.1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(0)),.3) | |
| 1287 | handleweld.C0=clerp(handleweld.C0,cf(0,.2,-.3)*angles(math.rad(0),math.rad(-15),math.rad(0)),.3) | |
| 1288 | end | |
| 1289 | so("http://www.roblox.com/asset/?id=199145534",EffectPart2,1,1.2)
| |
| 1290 | efprt:BreakJoints() | |
| 1291 | local Target=mouse.Hit.p | |
| 1292 | local direction = Target - handle.Position | |
| 1293 | direction = computeDirection(direction) | |
| 1294 | local pos = handle.Position + (direction * 10.0) | |
| 1295 | efprt.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles(math.pi/2, 0, 0) | |
| 1296 | local floatForce = Instance.new("BodyForce")
| |
| 1297 | floatForce.force = Vector3.new(0, efprt:GetMass() * 196.1, 0.0) | |
| 1298 | floatForce.Parent = efprt | |
| 1299 | efprt.Velocity = direction * 160 | |
| 1300 | efprt.Touched:connect(function(hit) | |
| 1301 | if not hit:IsDescendantOf(Character) then | |
| 1302 | if hit.Name~="Effect" then | |
| 1303 | MagniDamage(efprt,15,12225,22225,math.random(20,30),"Knockdown",RootPart) | |
| 1304 | floatForce.Parent=nil | |
| 1305 | efprt.Anchored=true | |
| 1306 | so("http://www.roblox.com/asset/?id=228343330",hit,1,.8)
| |
| 1307 | Blast(efprt) | |
| 1308 | efprt:Destroy() | |
| 1309 | end | |
| 1310 | end | |
| 1311 | end) | |
| 1312 | game:GetService("Debris"):AddItem(efprt,6)
| |
| 1313 | attack=false | |
| 1314 | end | |
| 1315 | ||
| 1316 | function PortalStorm() | |
| 1317 | Humanoid.WalkSpeed=0 | |
| 1318 | attack=true | |
| 1319 | for i=0,1,.1 do | |
| 1320 | swait() | |
| 1321 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
| 1322 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
| 1323 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(75), math.rad(0), math.rad(-40)), 0.3) | |
| 1324 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(75), math.rad(0), math.rad(40)), 0.3) | |
| 1325 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(5),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 1326 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(5),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 1327 | handleweld.C0=clerp(handleweld.C0,cf(-1,-2.3,-.4)*angles(math.rad(-165),math.rad(-15),math.rad(50)),.3) | |
| 1328 | end | |
| 1329 | so("http://www.roblox.com/asset/?id=199145446",handle,1,1)
| |
| 1330 | ChargeBall2(handle,100) | |
| 1331 | makeShockwave(0.5,BrickColor.new("Royal purple"),30,1000,0)
| |
| 1332 | MagicWave(BrickColor.new("Royal purple"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),2,2,2,.5,.3,.5,0.01)
| |
| 1333 | so("http://www.roblox.com/asset/?id=280247455",game.Workspace,1,1)
| |
| 1334 | wait(2) | |
| 1335 | so("http://www.roblox.com/asset/?id=110284742",game.Workspace,1,0)
| |
| 1336 | delay(0.5,function () | |
| 1337 | MagniDamage(Torso,2000,32225,52220,math.random(50,70),"Knockdown",RootPart) | |
| 1338 | end) | |
| 1339 | Humanoid.Health=Humanoid.Health-0 | |
| 1340 | makeShockwave(4,BrickColor.new("Teal"),10,2000,1)
| |
| 1341 | attack=false | |
| 1342 | Humanoid.WalkSpeed=9 | |
| 1343 | wait(4) | |
| 1344 | Humanoid.WalkSpeed=16 | |
| 1345 | end | |
| 1346 | ||
| 1347 | function SolSiderea() | |
| 1348 | Humanoid.WalkSpeed=0 | |
| 1349 | attack=true | |
| 1350 | so("http://www.roblox.com/asset/?id=280758833",Workspace,1,1.3)
| |
| 1351 | for i=0,1,.1 do | |
| 1352 | swait() | |
| 1353 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 1354 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
| 1355 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(95), math.rad(-10), math.rad(-17)), 0.3) | |
| 1356 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(95), math.rad(10), math.rad(17)), 0.3) | |
| 1357 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 1358 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 1359 | handleweld.C0=clerp(handleweld.C0,cf(0,-2,-.5)*angles(math.rad(0),math.rad(7.5),math.rad(-75)),.3) | |
| 1360 | end | |
| 1361 | for i=0,1,.1 do | |
| 1362 | swait() | |
| 1363 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
| 1364 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-25),math.rad(0),math.rad(0)),.3) | |
| 1365 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(150), math.rad(-5), math.rad(8)), 0.3) | |
| 1366 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(150), math.rad(5), math.rad(-8)), 0.3) | |
| 1367 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-10),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 1368 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-10),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 1369 | handleweld.C0=clerp(handleweld.C0,cf(-1.1,-4,-2)*angles(math.rad(-72),math.rad(8.5),math.rad(-92)),.3) | |
| 1370 | end | |
| 1371 | coroutine.resume(coroutine.create(function() ChargeBall(EffectPart,120) end)) | |
| 1372 | local n=2 | |
| 1373 | local orb=ppart(3,Character,0,1,BrickColor.new("Royal purple"),"Orb",vt())
| |
| 1374 | local omsh=mesh("SpecialMesh",orb,"Sphere","",vt(0,0,0),vt(15,15,15))
| |
| 1375 | local owld=wweld(orb,orb,Torso,cf(-10,-150,0)) | |
| 1376 | for i=1,0.3,-0.01 do | |
| 1377 | wait() | |
| 1378 | orb.Transparency=i | |
| 1379 | omsh.Scale=omsh.Scale+vt(0.5,0.5,0.5) | |
| 1380 | MagicBlock(BrickColor.new("Royal purple"),orb.CFrame,15,15,15,2,2,2,0.1)
| |
| 1381 | local ef=ppart(3,workspace,0,0,BrickColor.new("Royal purple"),"Effect",vt())
| |
| 1382 | ef.Anchored=true | |
| 1383 | local emsh=mesh("SpecialMesh",ef,"Sphere","",vt(0,0,0),vt(2,math.random(1000,1500)/100,2))
| |
| 1384 | local ceef=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,math.random(10,20),0) | |
| 1385 | ef.CFrame=orb.CFrame*ceef | |
| 1386 | game:GetService("Debris"):AddItem(ef,2)
| |
| 1387 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1388 | for i=0,1,0.1 do | |
| 1389 | wait() | |
| 1390 | Part.Transparency=i | |
| 1391 | Part.CFrame=Part.CFrame*cf(0,-1,0) | |
| 1392 | end | |
| 1393 | Part.Parent=nil | |
| 1394 | end),ef,emsh) | |
| 1395 | end | |
| 1396 | local Pos=cf(orb.Position,Player:GetMouse().Hit.p).lookVector | |
| 1397 | wait(.5) | |
| 1398 | orb.Parent=nil | |
| 1399 | wait(1) | |
| 1400 | local hit,pos = rayCast(orb.Position,Pos,1000,Character) | |
| 1401 | local mag=(orb.Position-pos).magnitude | |
| 1402 | BlackHole(game.Workspace,cf(pos)) | |
| 1403 | coroutine.resume(coroutine.create(function() | |
| 1404 | local wave=part(3,game.Workspace,"Neon",0,.7,BrickColor.new("Black"),"Effect",vt(1,1,1))
| |
| 1405 | wweld(game.Workspace,wave,orb,Torso.CFrame) | |
| 1406 | local wavemesh=mesh("SpecialMesh",wave,"Sphere","",vt(0,0,0),vt(1,1,1))
| |
| 1407 | for i=1,100 do | |
| 1408 | swait() | |
| 1409 | wave.Size=vt(1+i,1+i,1+i) | |
| 1410 | wavemesh.Scale=vt(1+i,1+i,1+i) | |
| 1411 | wave.CFrame=cf(pos) | |
| 1412 | end | |
| 1413 | end)) | |
| 1414 | coroutine.resume(coroutine.create(function() | |
| 1415 | for i=0,20 do | |
| 1416 | swait(15) | |
| 1417 | local range = 1500 | |
| 1418 | local p = Instance.new("Part")
| |
| 1419 | p.Anchored = true | |
| 1420 | p.CanCollide = false | |
| 1421 | p.FormFactor = "Custom" | |
| 1422 | p.BrickColor = BrickColor.new("Royal purple")
| |
| 1423 | p.Parent = workspace | |
| 1424 | p.Name="Effect" | |
| 1425 | p.CFrame=cf(pos) | |
| 1426 | local m = Instance.new("SpecialMesh",p)
| |
| 1427 | m.MeshId = "rbxassetid://3270017" | |
| 1428 | local estimateSurvival = math.floor(range/30) * 0.03 | |
| 1429 | game:GetService("Debris"):AddItem(p,estimateSurvival)
| |
| 1430 | Spawn(function () | |
| 1431 | for i = 1,range,30 do | |
| 1432 | p.Transparency = 1-math.min(0.5,3-(i/500)) | |
| 1433 | m.Scale = Vector3.new(i,i,i*0.5) | |
| 1434 | p.CFrame = cf(pos) * CFrame.Angles(math.rad(90),0,0) | |
| 1435 | wait() | |
| 1436 | end | |
| 1437 | p:Destroy() | |
| 1438 | end) | |
| 1439 | end | |
| 1440 | end)) | |
| 1441 | MagicCylinder(BrickColor.new("Royal purple"),CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0),10,mag*5,10,0.5,0,0.5,0.01)
| |
| 1442 | for i=1,2 do | |
| 1443 | end | |
| 1444 | for i=1,5 do | |
| 1445 | tehcf=CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(mag/5)*(i/2),0) | |
| 1446 | end | |
| 1447 | for i=0,5 do | |
| 1448 | tehcf=CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(-mag/5)*(i/2),0) | |
| 1449 | end | |
| 1450 | local ref=ppart(3,workspace,0,1,BrickColor.new("Royal purple"),"Effect",vt())
| |
| 1451 | ref.CFrame=cf(pos) | |
| 1452 | coroutine.resume(coroutine.create(function(Part) | |
| 1453 | wait(1) | |
| 1454 | Part.Parent=nil | |
| 1455 | end),ref) | |
| 1456 | MagniDamage(ref,25,22220,32220,40,"Knockdown",ref) | |
| 1457 | if hit~=nil then | |
| 1458 | Damagefunc(ref,hit,5022,70222,60,"Knockdown",RootPart,0) | |
| 1459 | end | |
| 1460 | local n=2 | |
| 1461 | MagicWave(BrickColor.new("Royal purple"),cf(pos)*euler(0,math.random(-50,50),0),2,2,2,.5,.3,.5,0.01)
| |
| 1462 | swait(75) | |
| 1463 | Humanoid.WalkSpeed=16 | |
| 1464 | attack=false | |
| 1465 | end | |
| 1466 | ||
| 1467 | attacktype=1 | |
| 1468 | mouse.Button1Down:connect(function() | |
| 1469 | if attacktype==1 and attack==false then | |
| 1470 | attacktype=2 | |
| 1471 | attackone() | |
| 1472 | elseif attacktype==2 and attack==false then | |
| 1473 | attacktype=3 | |
| 1474 | attacktwo() | |
| 1475 | elseif attacktype==3 and attack==false then | |
| 1476 | attacktype=4 | |
| 1477 | attackthree() | |
| 1478 | elseif attacktype==4 and attack==false then | |
| 1479 | attacktype=1 | |
| 1480 | attackfour() | |
| 1481 | end | |
| 1482 | end) | |
| 1483 | ||
| 1484 | mouse.KeyDown:connect(function(k) | |
| 1485 | k=k:lower() | |
| 1486 | if attack == false and k == 'e' then | |
| 1487 | LeviterGlomus() | |
| 1488 | ChargeBall(efprt,100) | |
| 1489 | end | |
| 1490 | if attack == false and k == 'q' then | |
| 1491 | LustrisFulgo() | |
| 1492 | end | |
| 1493 | if attack == false and k == 'f' and deeznuts==false then | |
| 1494 | deeznuts=true | |
| 1495 | SolSiderea() | |
| 1496 | deeznuts=false | |
| 1497 | end | |
| 1498 | if attack == false and k == 'r' and cooldown==false then | |
| 1499 | cooldown=true | |
| 1500 | PortalStorm() | |
| 1501 | cooldown=false | |
| 1502 | end | |
| 1503 | end) | |
| 1504 | ||
| 1505 | ||
| 1506 | local sine = 0 | |
| 1507 | local change = 1 | |
| 1508 | local val = 0 | |
| 1509 | ||
| 1510 | while true do | |
| 1511 | swait() | |
| 1512 | sine = sine + change | |
| 1513 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
| 1514 | local velderp=RootPart.Velocity.y | |
| 1515 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
| 1516 | if equipped==true or equipped==false then | |
| 1517 | if attack==false then | |
| 1518 | idle=idle+1 | |
| 1519 | else | |
| 1520 | idle=0 | |
| 1521 | end | |
| 1522 | if idle>=500 then | |
| 1523 | if attack==false then | |
| 1524 | end | |
| 1525 | end | |
| 1526 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
| 1527 | Anim="Jump" | |
| 1528 | if attack==false then | |
| 1529 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 1530 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
| 1531 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(15)), 0.3) | |
| 1532 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-15)), 0.3) | |
| 1533 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-30),math.rad(90),math.rad(20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 1534 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-30),math.rad(-90),math.rad(-20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 1535 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 1536 | end | |
| 1537 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
| 1538 | Anim="Fall" | |
| 1539 | if attack==false then | |
| 1540 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
| 1541 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(13),math.rad(0),math.rad(0)),.3) | |
| 1542 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(20)), 0.3) | |
| 1543 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
| 1544 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 1545 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 1546 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-15),math.rad(0),math.rad(0)),.3) | |
| 1547 | end | |
| 1548 | elseif torvel<1 and hitfloor~=nil then | |
| 1549 | Anim="Idle" | |
| 1550 | if attack==false then | |
| 1551 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-2),math.rad(0),math.rad(15)),.3) | |
| 1552 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(2),math.rad(0),math.rad(-15)),.3) | |
| 1553 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(0)), 0.3) | |
| 1554 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3) | |
| 1555 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-2),math.rad(85),math.rad(0)),.3) | |
| 1556 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-4),math.rad(-95),math.rad(0)),.3) | |
| 1557 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-10),math.rad(-2),math.rad(0)),.2) | |
| 1558 | end | |
| 1559 | elseif torvel>2 and hitfloor~=nil then | |
| 1560 | Anim="Walk" | |
| 1561 | if attack==false then | |
| 1562 | change=3 | |
| 1563 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(-20)),.3) | |
| 1564 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(-5),math.rad(25)),.3) | |
| 1565 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(-25), math.rad(5)), 0.3) | |
| 1566 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30)*math.cos(sine/10), math.rad(5), math.rad(0)), 0.3) | |
| 1567 | RH.C0=clerp(RH.C0,cf(1.1,-.9,0)*angles(math.rad(0),math.rad(110),math.rad(0)),.3) | |
| 1568 | LH.C0=clerp(LH.C0,cf(-1.1,-.9,0)*angles(math.rad(0),math.rad(-70),math.rad(0)),.3) | |
| 1569 | handleweld.C0=clerp(handleweld.C0,cf(0,0,.3)*angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
| 1570 | end | |
| 1571 | end | |
| 1572 | end | |
| 1573 | if #Effects>0 then | |
| 1574 | for e=1,#Effects do | |
| 1575 | if Effects[e]~=nil then | |
| 1576 | local Thing=Effects[e] | |
| 1577 | if Thing~=nil then | |
| 1578 | local Part=Thing[1] | |
| 1579 | local Mode=Thing[2] | |
| 1580 | local Delay=Thing[3] | |
| 1581 | local IncX=Thing[4] | |
| 1582 | local IncY=Thing[5] | |
| 1583 | local IncZ=Thing[6] | |
| 1584 | if Thing[1].Transparency<=1 then | |
| 1585 | if Thing[2]=="Block1" then | |
| 1586 | Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1587 | Mesh=Thing[1].Mesh | |
| 1588 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
| 1589 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
| 1590 | elseif Thing[2]=="Cylinder" then | |
| 1591 | Mesh=Thing[1].Mesh | |
| 1592 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
| 1593 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
| 1594 | elseif Thing[2]=="Blood" then | |
| 1595 | Mesh=Thing[7] | |
| 1596 | Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0) | |
| 1597 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
| 1598 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
| 1599 | elseif Thing[2]=="Elec" then | |
| 1600 | Mesh=Thing[1].Mesh | |
| 1601 | Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9]) | |
| 1602 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
| 1603 | elseif Thing[2]=="Disappear" then | |
| 1604 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
| 1605 | end | |
| 1606 | else | |
| 1607 | Part.Parent=nil | |
| 1608 | table.remove(Effects,e) | |
| 1609 | end | |
| 1610 | end | |
| 1611 | end | |
| 1612 | end | |
| 1613 | end | |
| 1614 | end |