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