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