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