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