SHOW:
|
|
- or go back to the newest paste.
1 | credits to WaverlyCole for making the fe script | |
2 | ||
3 | this is how to do it: | |
4 | ||
5 | 1: go to www.pastebin.com and make a new paste then copy and paste the script under the desc | |
6 | ||
7 | 2: Then Paste the non fe script where it says [[Paste ur raw script link here]] (dont remove the [ and ] ) | |
8 | ||
9 | 3: Go all the way down and click Create. Then click raw then copy the raw fe link and paste it in Void Sb. Remember to use h/ not hl/. | |
10 | like this, h/(link here) | |
11 | ||
12 | local ScriptLink = [[----------------- | |
13 | --some sin thing-- | |
14 | -------------------------------------------------------------- | |
15 | --By CKbackup (Sugarie Saffron), credits to original creator-- | |
16 | -------------------------------------------------------------- | |
17 | ||
18 | ||
19 | - | Character= |
19 | + | Character |
20 | ||
21 | - | PlayerGui= |
21 | + | PlayerGui |
22 | ||
23 | Backpack=Player.Backpack | |
24 | Torso=Character.Torso | |
25 | Head=Character.Head | |
26 | Humanoid=Character:FindFirstChildOfClass("Humanoid") | |
27 | m=Instance.new('Model',Character) | |
28 | LeftArm=Character["Left Arm"] | |
29 | LeftLeg=Character["Left Leg"] | |
30 | RightArm=Character["Right Arm"] | |
31 | RightLeg=Character["Right Leg"] | |
32 | LS=Torso["Left Shoulder"] | |
33 | LH=Torso["Left Hip"] | |
34 | RS=Torso["Right Shoulder"] | |
35 | RH=Torso["Right Hip"] | |
36 | Face = Head.face | |
37 | Neck=Torso.Neck | |
38 | it=Instance.new | |
39 | attacktype=1 | |
40 | vt=Vector3.new | |
41 | cf=CFrame.new | |
42 | euler=CFrame.fromEulerAnglesXYZ | |
43 | angles=CFrame.Angles | |
44 | cloaked=false | |
45 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
46 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
47 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
48 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
49 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
50 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
51 | RootPart=Character.HumanoidRootPart | |
52 | RootJoint=RootPart.RootJoint | |
53 | RootCF=euler(-1.57,0,3.14) | |
54 | attack = false | |
55 | attackdebounce = false | |
56 | deb=false | |
57 | equipped=true | |
58 | hand=false | |
59 | MMouse=nil | |
60 | combo=0 | |
61 | trispeed=1 | |
62 | pathtrans=.7 | |
63 | attackmode='none' | |
64 | local idle=0 | |
65 | local Anim="Idle" | |
66 | local Effects={} | |
67 | local gun=false | |
68 | local shoot=false | |
69 | player=nil | |
70 | cloak=false | |
71 | lightcolor='Royal purple' | |
72 | ||
73 | local Color1=Torso.BrickColor | |
74 | ||
75 | mouse=Player:GetMouse() | |
76 | --save shoulders | |
77 | RSH, LSH=nil, nil | |
78 | --welds | |
79 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
80 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
81 | LH=Torso["Left Hip"] | |
82 | RH=Torso["Right Hip"] | |
83 | TorsoColor=BrickColor.new("Royal purple") | |
84 | function NoOutline(Part) | |
85 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
86 | end | |
87 | player=Player | |
88 | ch=Character | |
89 | RSH=ch.Torso["Right Shoulder"] | |
90 | LSH=ch.Torso["Left Shoulder"] | |
91 | -- | |
92 | RSH.Parent=nil | |
93 | LSH.Parent=nil | |
94 | -- | |
95 | RW.Name="Right Shoulder" | |
96 | RW.Part0=ch.Torso | |
97 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
98 | RW.C1=cf(0, 0.5, 0) | |
99 | RW.Part1=ch["Right Arm"] | |
100 | RW.Parent=ch.Torso | |
101 | -- | |
102 | LW.Name="Left Shoulder" | |
103 | LW.Part0=ch.Torso | |
104 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
105 | LW.C1=cf(0, 0.5, 0) | |
106 | LW.Part1=ch["Left Arm"] | |
107 | LW.Parent=ch.Torso | |
108 | ||
109 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
110 | local fp=it("Part") | |
111 | fp.formFactor=formfactor | |
112 | fp.Parent=parent | |
113 | fp.Reflectance=reflectance | |
114 | fp.Transparency=transparency | |
115 | fp.CanCollide=false | |
116 | fp.Locked=true | |
117 | fp.BrickColor=brickcolor | |
118 | fp.Name=name | |
119 | fp.Size=size | |
120 | fp.Position=Torso.Position | |
121 | NoOutline(fp) | |
122 | fp.Material="Neon" | |
123 | fp:BreakJoints() | |
124 | return fp | |
125 | end | |
126 | ||
127 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
128 | local mesh=it(Mesh) | |
129 | mesh.Parent=part | |
130 | if Mesh=="SpecialMesh" then | |
131 | mesh.MeshType=meshtype | |
132 | if meshid~="nil" then | |
133 | mesh.MeshId="rbxassetid://"..meshid | |
134 | end | |
135 | end | |
136 | mesh.Offset=offset | |
137 | mesh.Scale=scale | |
138 | return mesh | |
139 | end | |
140 | ||
141 | function weld(parent,part0,part1,c0) | |
142 | local weld=it("Weld") | |
143 | weld.Parent=parent | |
144 | weld.Part0=part0 | |
145 | weld.Part1=part1 | |
146 | weld.C0=c0 | |
147 | return weld | |
148 | end | |
149 | ||
150 | local Color1=Torso.BrickColor | |
151 | ||
152 | local bodvel=Instance.new("BodyVelocity") | |
153 | local bg=Instance.new("BodyGyro") | |
154 | ||
155 | ArtificialHB = Instance.new("BindableEvent", script) | |
156 | ArtificialHB.Name = "Heartbeat" | |
157 | script:WaitForChild("Heartbeat") | |
158 | frame = 0.015 | |
159 | tf = 0 | |
160 | allowframeloss = false | |
161 | tossremainder = false | |
162 | lastframe = tick() | |
163 | script.Heartbeat:Fire() | |
164 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
165 | tf = tf + s | |
166 | if tf >= frame then | |
167 | if allowframeloss then | |
168 | script.Heartbeat:Fire() | |
169 | lastframe = tick() | |
170 | else | |
171 | for i = 1, math.floor(tf / frame) do | |
172 | script.Heartbeat:Fire() | |
173 | end | |
174 | lastframe = tick() | |
175 | end | |
176 | if tossremainder then | |
177 | tf = 0 | |
178 | else | |
179 | tf = tf - frame * math.floor(tf / frame) | |
180 | end | |
181 | end | |
182 | end) | |
183 | function swait(num) | |
184 | if num == 0 or num == nil then | |
185 | ArtificialHB.Event:wait(0) | |
186 | else | |
187 | for i = 0, num do | |
188 | ArtificialHB.Event:wait(0) | |
189 | end | |
190 | end | |
191 | end | |
192 | ||
193 | ||
194 | function so(id,par,pit,vol) | |
195 | local sou = Instance.new("Sound", par or workspace) | |
196 | if par == Character then | |
197 | sou.Parent = Torso | |
198 | end | |
199 | sou.Volume = vol | |
200 | sou.Pitch = pit or 1 | |
201 | sou.SoundId = "rbxassetid://" .. id | |
202 | sou.PlayOnRemove = true | |
203 | sou:Destroy() | |
204 | end | |
205 | ||
206 | function clerp(a,b,t) | |
207 | local qa = {QuaternionFromCFrame(a)} | |
208 | local qb = {QuaternionFromCFrame(b)} | |
209 | local ax, ay, az = a.x, a.y, a.z | |
210 | local bx, by, bz = b.x, b.y, b.z | |
211 | local _t = 1-t | |
212 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
213 | end | |
214 | ||
215 | function QuaternionFromCFrame(cf) | |
216 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
217 | local trace = m00 + m11 + m22 | |
218 | if trace > 0 then | |
219 | local s = math.sqrt(1 + trace) | |
220 | local recip = 0.5/s | |
221 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
222 | else | |
223 | local i = 0 | |
224 | if m11 > m00 then | |
225 | i = 1 | |
226 | end | |
227 | if m22 > (i == 0 and m00 or m11) then | |
228 | i = 2 | |
229 | end | |
230 | if i == 0 then | |
231 | local s = math.sqrt(m00-m11-m22+1) | |
232 | local recip = 0.5/s | |
233 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
234 | elseif i == 1 then | |
235 | local s = math.sqrt(m11-m22-m00+1) | |
236 | local recip = 0.5/s | |
237 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
238 | elseif i == 2 then | |
239 | local s = math.sqrt(m22-m00-m11+1) | |
240 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
241 | end | |
242 | end | |
243 | end | |
244 | ||
245 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
246 | local xs, ys, zs = x + x, y + y, z + z | |
247 | local wx, wy, wz = w*xs, w*ys, w*zs | |
248 | local xx = x*xs | |
249 | local xy = x*ys | |
250 | local xz = x*zs | |
251 | local yy = y*ys | |
252 | local yz = y*zs | |
253 | local zz = z*zs | |
254 | return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) | |
255 | end | |
256 | ||
257 | function QuaternionSlerp(a, b, t) | |
258 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
259 | local startInterp, finishInterp; | |
260 | if cosTheta >= 0.0001 then | |
261 | if (1 - cosTheta) > 0.0001 then | |
262 | local theta = math.acos(cosTheta) | |
263 | local invSinTheta = 1/math.sin(theta) | |
264 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
265 | finishInterp = math.sin(t*theta)*invSinTheta | |
266 | else | |
267 | startInterp = 1-t | |
268 | finishInterp = t | |
269 | end | |
270 | else | |
271 | if (1+cosTheta) > 0.0001 then | |
272 | local theta = math.acos(-cosTheta) | |
273 | local invSinTheta = 1/math.sin(theta) | |
274 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
275 | finishInterp = math.sin(t*theta)*invSinTheta | |
276 | else | |
277 | startInterp = t-1 | |
278 | finishInterp = t | |
279 | end | |
280 | end | |
281 | return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp | |
282 | end | |
283 | ||
284 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
285 | return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
286 | end | |
287 | ||
288 | function SkullEffect(brickcolor,cframe,x1,y1,z1,delay) | |
289 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
290 | prt.Anchored=true | |
291 | prt.CFrame=cframe | |
292 | local msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://4770583",vt(0,0,0),vt(x1,y1,z1)) | |
293 | --rbxassetid://4770560 | |
294 | game:GetService("Debris"):AddItem(prt,2) | |
295 | CF=prt.CFrame | |
296 | coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) | |
297 | for i=0,1,0.2 do | |
298 | swait() | |
299 | Part.CFrame=CF*cf(0,0,-0.4) | |
300 | end | |
301 | for i=0,1,delay do | |
302 | swait() | |
303 | --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5) | |
304 | Mesh.Scale=Mesh.Scale | |
305 | end | |
306 | for i=0,1,0.1 do | |
307 | swait() | |
308 | Part.Transparency=i | |
309 | end | |
310 | Part:Destroy() | |
311 | end),prt,msh,CF) | |
312 | end | |
313 | ||
314 | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
315 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
316 | prt.Anchored=true | |
317 | prt.CFrame=cframe | |
318 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
319 | game:GetService("Debris"):AddItem(prt,5) | |
320 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
321 | for i=0,1,delay do | |
322 | swait() | |
323 | Part.CFrame=Part.CFrame*euler(math.random(0,360),math.random(0,360),math.random(0,360)) | |
324 | Part.Transparency=i | |
325 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
326 | end | |
327 | Part:Destroy() | |
328 | end),prt,msh) | |
329 | end | |
330 | ||
331 | function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
332 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
333 | prt.Anchored=false | |
334 | prt.CFrame=cframe | |
335 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
336 | local wld=weld(prt,prt,Parent,cframe) | |
337 | game:GetService("Debris"):AddItem(prt,5) | |
338 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
339 | for i=0,1,delay do | |
340 | swait() | |
341 | Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe | |
342 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
343 | Part.Transparency=i | |
344 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
345 | end | |
346 | Part:Destroy() | |
347 | end),prt,msh,wld) | |
348 | end | |
349 | ||
350 | function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
351 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
352 | prt.Material = "Neon" | |
353 | prt.Anchored=false | |
354 | prt.CFrame=cframe | |
355 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
356 | local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0)) | |
357 | game:GetService("Debris"):AddItem(prt,5) | |
358 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
359 | for i=0,1,delay do | |
360 | swait() | |
361 | Weld.C0=euler(i*20,0,0) | |
362 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
363 | Part.Transparency=i | |
364 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
365 | end | |
366 | Part:Destroy() | |
367 | end),prt,msh,wld) | |
368 | end | |
369 | ||
370 | function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
371 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
372 | prt.Material = "Neon" | |
373 | prt.Anchored=true | |
374 | prt.CFrame=cframe | |
375 | local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
376 | game:GetService("Debris"):AddItem(prt,2) | |
377 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
378 | for i=0,1,delay do | |
379 | swait() | |
380 | Part.CFrame=Part.CFrame | |
381 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
382 | local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
383 | prt2.Anchored=true | |
384 | prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
385 | local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5)) | |
386 | game:GetService("Debris"):AddItem(prt2,2) | |
387 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
388 | for i=0,1,0.1 do | |
389 | swait() | |
390 | Part.CFrame=Part.CFrame*cf(0,0.5,0) | |
391 | end | |
392 | Part:Destroy() | |
393 | end),prt2,msh2) | |
394 | end | |
395 | for i=0,1,delay*2 do | |
396 | swait() | |
397 | Part.CFrame=Part.CFrame | |
398 | Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i) | |
399 | end | |
400 | Part:Destroy() | |
401 | end),prt,msh) | |
402 | end | |
403 | ||
404 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
405 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
406 | prt.Anchored=true | |
407 | prt.CFrame=cframe | |
408 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
409 | game:GetService("Debris"):AddItem(prt,2) | |
410 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
411 | for i=0,1,delay do | |
412 | swait() | |
413 | Part.CFrame=Part.CFrame | |
414 | Part.Transparency=i | |
415 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
416 | end | |
417 | Part:Destroy() | |
418 | end),prt,msh) | |
419 | end | |
420 | ||
421 | function MagicRing(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3) | |
422 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
423 | prt.Anchored=true | |
424 | prt.CFrame=cframe*euler(x2,y2,z2) | |
425 | --"rbxassetid://168892465" | |
426 | local msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://3270017",vt(0,0,0),vt(x1,y1,z1)) | |
427 | game:GetService("Debris"):AddItem(prt,2) | |
428 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
429 | for i=0,1,0.03 do | |
430 | swait() | |
431 | Part.CFrame=Part.CFrame | |
432 | Part.Transparency=i | |
433 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
434 | end | |
435 | Part:Destroy() | |
436 | end),prt,msh) | |
437 | end | |
438 | ||
439 | function BreakEffect(brickcolor,cframe,x1,y1,z1) | |
440 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
441 | prt.Anchored=true | |
442 | prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
443 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
444 | game:GetService("Debris"):AddItem(prt,2) | |
445 | coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) | |
446 | CF=Part.CFrame | |
447 | Numbb=0 | |
448 | randnumb=math.random()/10 | |
449 | rand1=math.random()/10 | |
450 | for i=0,1,rand1 do | |
451 | swait() | |
452 | CF=CF*cf(0,math.random()/2,0) | |
453 | --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0) | |
454 | Part.CFrame=CF*euler(Numbb,0,0) | |
455 | Part.Transparency=i | |
456 | Numbb=Numbb+randnumb | |
457 | end | |
458 | Part:Destroy() | |
459 | end),prt,CF,Numbb,randnumb) | |
460 | end | |
461 | ||
462 | function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
463 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
464 | prt.Anchored=true | |
465 | prt.CFrame=cframe | |
466 | msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://1051557",vt(0,0,0),vt(x1,y1,z1)) | |
467 | game:GetService("Debris"):AddItem(prt,5) | |
468 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
469 | for i=0,1,delay do | |
470 | swait() | |
471 | Part.CFrame=Part.CFrame*euler(0,0.7,0) | |
472 | Part.Transparency=i | |
473 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
474 | end | |
475 | Part:Destroy() | |
476 | end),prt,msh) | |
477 | end | |
478 | ||
479 | function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
480 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
481 | prt.Anchored=true | |
482 | prt.CFrame=cframe | |
483 | msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://20329976",vt(0,0,0),vt(x1,y1,z1)) | |
484 | game:GetService("Debris"):AddItem(prt,2) | |
485 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
486 | for i=0,1,delay do | |
487 | swait() | |
488 | Part.CFrame=Part.CFrame*cf(0,y3/2,0) | |
489 | Part.Transparency=i | |
490 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
491 | end | |
492 | Part:Destroy() | |
493 | end),prt,msh) | |
494 | end | |
495 | ||
496 | function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay) | |
497 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
498 | prt.Anchored=true | |
499 | prt.CFrame=cframe*cf(x,y,z) | |
500 | msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1)) | |
501 | game:GetService("Debris"):AddItem(prt,5) | |
502 | coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee) | |
503 | local num=math.random() | |
504 | local num2=math.random(-3,2)+math.random() | |
505 | local numm=0 | |
506 | for i=0,1,delay*2 do | |
507 | swait() | |
508 | Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0) | |
509 | Part.Transparency=i | |
510 | numm=numm+0.01 | |
511 | end | |
512 | Part:Destroy() | |
513 | Mesh:Destroy() | |
514 | end),prt,msh,x,y,z) | |
515 | end | |
516 | ||
517 | function puncheff(par) | |
518 | so(386946017,par,math.random(80,120)/100,1) | |
519 | MagicCircle(BrickColor.new("Alder"), par.CFrame, 1, 1, 1, 1, 1, 1, 0.05) | |
520 | end | |
521 | ||
522 | Damagefunc=function(hit,efft,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
523 | if hit.Parent==nil then | |
524 | return | |
525 | end | |
526 | local torsy = (hit.Parent:findFirstChild("Torso") or hit.Parent:findFirstChild("UpperTorso")) | |
527 | h=hit.Parent:FindFirstChildOfClass("Humanoid") | |
528 | for _,v in pairs(hit.Parent:children()) do | |
529 | if v:IsA("Humanoid") then | |
530 | h=v | |
531 | end | |
532 | end | |
533 | if hit.Parent.Parent:FindFirstChild("Head")~=nil then | |
534 | h=hit.Parent.Parent:FindFirstChildOfClass("Humanoid") | |
535 | end | |
536 | if hit.Parent.className=="Hat" then | |
537 | hit=hit.Parent.Parent:findFirstChild("Head") | |
538 | end | |
539 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Head")~=nil then | |
540 | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end | |
541 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
542 | return | |
543 | end]] | |
544 | -- hs(hit,1.2) | |
545 | c=Instance.new("ObjectValue") | |
546 | c.Name="creator" | |
547 | c.Value=game:service("Players").LocalPlayer | |
548 | c.Parent=h | |
549 | game:GetService("Debris"):AddItem(c,.5) | |
550 | Damage=math.random(minim,maxim) | |
551 | -- h:TakeDamage(Damage) | |
552 | blocked=false | |
553 | block=hit.Parent:findFirstChild("Block") | |
554 | if block~=nil then | |
555 | print(block.className) | |
556 | if block.className=="NumberValue" then | |
557 | if block.Value>0 then | |
558 | blocked=true | |
559 | if decreaseblock==nil then | |
560 | block.Value=block.Value-1 | |
561 | end | |
562 | end | |
563 | end | |
564 | if block.className=="IntValue" then | |
565 | if block.Value>0 then | |
566 | blocked=true | |
567 | if decreaseblock~=nil then | |
568 | block.Value=block.Value-1 | |
569 | end | |
570 | end | |
571 | end | |
572 | end | |
573 | if efft == "Blunt" then | |
574 | puncheff(hit) | |
575 | end | |
576 | h.MaxHealth = 100 | |
577 | h.Health=h.Health-Damage | |
578 | showDamage(hit.Parent,Damage,.5,TorsoColor) | |
579 | if Type=="Knockdown" then | |
580 | local hum=hit.Parent:FindFirstChildOfClass("Humanoid") | |
581 | hum.PlatformStand=true | |
582 | coroutine.resume(coroutine.create(function(HHumanoid) | |
583 | swait(30) | |
584 | HHumanoid.PlatformStand=false | |
585 | end),hum) | |
586 | local bodvol=Instance.new("BodyVelocity") | |
587 | bodvol.velocity=RootPart.CFrame.lookVector*knockback | |
588 | bodvol.P=50000 | |
589 | bodvol.maxForce=Vector3.new(5000, 0, 5000) * 5000000000 | |
590 | bodvol.Parent=torsy | |
591 | torsy.CFrame = CFrame.new(torsy.Position)*CFrame.Angles(math.rad(90),0,0) | |
592 | game:GetService("Debris"):AddItem(bodvol,.5) | |
593 | elseif Type=="Normal" then | |
594 | vp=Instance.new("BodyVelocity") | |
595 | vp.P=500 | |
596 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
597 | vp.velocity=Character.Torso.CFrame.lookVector*knockback | |
598 | -- if KnockbackType==1 then | |
599 | -- vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
600 | -- elseif KnockbackType==2 then | |
601 | -- vp.velocity=Property.CFrame.lookVector*knockback | |
602 | -- end | |
603 | if knockback>0 then | |
604 | vp.Parent=torsy | |
605 | end | |
606 | game:GetService("Debris"):AddItem(vp,.5) | |
607 | elseif Type=="Up" then | |
608 | local bodyVelocity=Instance.new("BodyVelocity") | |
609 | bodyVelocity.velocity=vt(0,10,0) | |
610 | bodyVelocity.P=1000 | |
611 | bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009) | |
612 | bodyVelocity.Parent=hit | |
613 | game:GetService("Debris"):AddItem(bodyVelocity,1) | |
614 | rl=Instance.new("BodyAngularVelocity") | |
615 | rl.P=3000 | |
616 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
617 | rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) | |
618 | rl.Parent=hit | |
619 | game:GetService("Debris"):AddItem(rl,.5) | |
620 | elseif Type=="Snare" then | |
621 | bp=Instance.new("BodyPosition") | |
622 | bp.P=2000 | |
623 | bp.D=100 | |
624 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
625 | bp.position=torsy.Position | |
626 | bp.Parent=torsy | |
627 | game:GetService("Debris"):AddItem(bp,1) | |
628 | elseif Type=="Target" then | |
629 | if Targetting==false then | |
630 | ZTarget=torsy | |
631 | coroutine.resume(coroutine.create(function(Part) | |
632 | so("15666462",Part,1,1.5) | |
633 | swait(5) | |
634 | so("15666462",Part,1,1.5) | |
635 | end),ZTarget) | |
636 | TargHum=ZTarget.Parent:FindFirstChildOfClass("Humanoid") | |
637 | targetgui=Instance.new("BillboardGui") | |
638 | targetgui.Parent=ZTarget | |
639 | targetgui.Size=UDim2.new(10,100,10,100) | |
640 | targ=Instance.new("ImageLabel") | |
641 | targ.Parent=targetgui | |
642 | targ.BackgroundTransparency=1 | |
643 | targ.Image="rbxassetid://4834067" | |
644 | targ.Size=UDim2.new(1,0,1,0) | |
645 | cam.CameraType="Scriptable" | |
646 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
647 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
648 | workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
649 | Targetting=true | |
650 | RocketTarget=ZTarget | |
651 | for i=1,Property do | |
652 | --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do | |
653 | if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then | |
654 | swait() | |
655 | end | |
656 | --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100) | |
657 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
658 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
659 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0) | |
660 | end | |
661 | Targetting=false | |
662 | RocketTarget=nil | |
663 | targetgui:Destroy() | |
664 | cam.CameraType="Custom" | |
665 | end | |
666 | end | |
667 | debounce=Instance.new("BoolValue") | |
668 | debounce.Name="DebounceHit" | |
669 | debounce.Parent=hit.Parent | |
670 | debounce.Value=true | |
671 | game:GetService("Debris"):AddItem(debounce,Delay) | |
672 | c=Instance.new("ObjectValue") | |
673 | c.Name="creator" | |
674 | c.Value=Player | |
675 | c.Parent=h | |
676 | game:GetService("Debris"):AddItem(c,.5) | |
677 | CRIT=false | |
678 | hitDeb=true | |
679 | AttackPos=6 | |
680 | end | |
681 | end | |
682 | ||
683 | function showDamage(Dude, Text, Time, Color) | |
684 | coroutine.resume(coroutine.create(function() | |
685 | local naeeym2 = Instance.new("BillboardGui",Dude) | |
686 | naeeym2.Size = UDim2.new(0,100,0,40) | |
687 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
688 | naeeym2.Adornee = Dude.Head | |
689 | naeeym2.Name = "TalkingBillBoard" | |
690 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
691 | tecks2.BackgroundTransparency = 1 | |
692 | tecks2.BorderSizePixel = 0 | |
693 | tecks2.Text = Text | |
694 | tecks2.Font = "Fantasy" | |
695 | tecks2.TextSize = 24 | |
696 | tecks2.TextStrokeTransparency = 0 | |
697 | tecks2.TextColor3 = Color3.new(.8,0,1) | |
698 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
699 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
700 | swait(10) | |
701 | for i = 0,1,.05 do | |
702 | swait() | |
703 | tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0) | |
704 | tecks2.TextStrokeTransparency = i | |
705 | tecks2.TextTransparency = i | |
706 | end | |
707 | naeeym2:Destroy() | |
708 | end)) | |
709 | end | |
710 | ||
711 | Player=game:GetService('Players').LocalPlayer | |
712 | Character=Player.Character | |
713 | Mouse=Player:GetMouse() | |
714 | m=Instance.new('Model',Character) | |
715 | ||
716 | ||
717 | local function weldBetween(a, b) | |
718 | local weldd = Instance.new("ManualWeld") | |
719 | weldd.Part0 = a | |
720 | weldd.Part1 = b | |
721 | weldd.C0 = CFrame.new() | |
722 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
723 | weldd.Parent = a | |
724 | return weldd | |
725 | end | |
726 | ||
727 | it=Instance.new | |
728 | ||
729 | function nooutline(part) | |
730 | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 | |
731 | end | |
732 | ||
733 | function parta(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
734 | local fp=it("Part") | |
735 | fp.formFactor=formfactor | |
736 | fp.Parent=parent | |
737 | fp.Reflectance=reflectance | |
738 | fp.Transparency=transparency | |
739 | fp.CanCollide=false | |
740 | fp.Locked=true | |
741 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
742 | fp.Name=name | |
743 | fp.Size=size | |
744 | fp.Position=Character.Torso.Position | |
745 | nooutline(fp) | |
746 | fp.Material=material | |
747 | fp:BreakJoints() | |
748 | return fp | |
749 | end | |
750 | ||
751 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
752 | local mesh=it(Mesh) | |
753 | mesh.Parent=part | |
754 | if Mesh=="SpecialMesh" then | |
755 | mesh.MeshType=meshtype | |
756 | mesh.MeshId=meshid | |
757 | end | |
758 | mesh.Offset=offset | |
759 | mesh.Scale=scale | |
760 | return mesh | |
761 | end | |
762 | ||
763 | function weld(parent,part0,part1,c0,c1) | |
764 | local weld=it("Weld") | |
765 | weld.Parent=parent | |
766 | weld.Part0=part0 | |
767 | weld.Part1=part1 | |
768 | weld.C0=c0 | |
769 | weld.C1=c1 | |
770 | return weld | |
771 | end | |
772 | ||
773 | local modelzorz=Instance.new("Model") | |
774 | modelzorz.Parent=Character | |
775 | modelzorz.Name="Claw1" | |
776 | ||
777 | Handle=parta(Enum.FormFactor.Custom,modelzorz,Enum.Material.Neon,0,1,TorsoColor,"Handle",Vector3.new(4,4,1)) | |
778 | Handleweld=weld(m,Character["Torso"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.74455023, 0.843135834, 3.31332064, 0.866820872, 0.000393055088, -0.498619556, 0.129048944, -0.966104209, 0.223582461, -0.481630623, -0.258152217, -0.837489963)) | |
779 | Gear=parta(Enum.FormFactor.Custom,modelzorz,Enum.Material.SmoothPlastic,0,1,"Really black","Part",Vector3.new(4.29999971, 4.30000019, 1)) | |
780 | Gearweld=weld(modelzorz,Handle,Gear,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0552597046, -0.0398271084, -0.0363032818, 0.999988854, -3.23429704e-005, 0.00164097548, 3.37436795e-005, 0.999994695, -0.000689953566, -0.00164103508, 0.000689953566, 0.999993086)) | |
781 | ||
782 | local modelzorz2=Instance.new("Model") | |
783 | modelzorz2.Parent=Character | |
784 | modelzorz2.Name="Claw2" | |
785 | ||
786 | Handle2=parta(Enum.FormFactor.Custom,modelzorz2,Enum.Material.Neon,0,1,TorsoColor,"Handle",Vector3.new(4,4,1)) | |
787 | Handle2weld=weld(modelzorz2,Character["Torso"],Handle2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.65693045, 1.66835713, 2.9684639, 0.866025746, 0.129405379, 0.482963592, -3.67555799e-006, -0.965926409, 0.258817136, 0.499999553, -0.224144042, -0.836516559)) | |
788 | Gear2=parta(Enum.FormFactor.Custom,modelzorz2,Enum.Material.SmoothPlastic,0,1,"Really black","Part",Vector3.new(4.29999971, 4.30000019, 1)) | |
789 | Gear2weld=weld(modelzorz2,Handle2,Gear2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.049841404, 0.049908638, 2.78949738e-005, 0.999990344, -5.01424074e-006, -1.49011612e-007, 5.28991222e-006, 0.999994934, 2.98023224e-008, 2.38418579e-007, -1.63912773e-007, 0.999994636)) | |
790 | ||
791 | local modelzorz3=Instance.new("Model") | |
792 | modelzorz3.Parent=Character | |
793 | modelzorz3.Name="Eye" | |
794 | ||
795 | handle=parta(Enum.FormFactor.Custom,modelzorz3,Enum.Material.SmoothPlastic,0,1,TorsoColor,"Handle",Vector3.new(1,6,6)) | |
796 | handleweld=weld(modelzorz3,Character["Torso"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.22326851, -3.5562191, -0.038143158, 0, 0, 1, 0, 1, 0, -1, 0, 0)) | |
797 | ||
798 | New = function(Object, Parent, Name, Data) | |
799 | local Object = Instance.new(Object) | |
800 | for Index, Value in pairs(Data or {}) do | |
801 | Object[Index] = Value | |
802 | end | |
803 | Object.Parent = Parent | |
804 | Object.Name = Name | |
805 | return Object | |
806 | end | |
807 | ||
808 | Gear2 = New("Part",modelzorz2,"Gear2",{BrickColor = BrickColor.new("Really black"),Size = Vector3.new(5, 7, 5),CFrame = CFrame.new(68.5, 2.5, -42.5, 0, 0, -1, -1, 0, 0, 0, 1, 0),CanCollide = false,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
809 | Mesh = New("SpecialMesh",Gear2,"Mesh",{Offset = Vector3.new(0, 0, -1),Scale = Vector3.new(25, 25, 25),MeshId = "rbxassetid://92052865",MeshType = Enum.MeshType.FileMesh,}) | |
810 | Weld = New("ManualWeld",Gear2,"Weld",{Part0 = Gear2,Part1 = Handle2,C0 = CFrame.new(0, 0, 0, 0, -1, 0, 0, 0, 1, -1, 0, 0),C1 = CFrame.new(0, 3.57627869e-06, 2.99999237, 0.999991357, -6.94066244e-08, 4.63798642e-07, 6.63525327e-07, -0.999994934, -2.62497252e-07, 2.04890966e-08, 2.84217094e-13, -0.999997139),}) | |
811 | Gear = New("Part",modelzorz,"Gear",{BrickColor = BrickColor.new("Really black"),Size = Vector3.new(5, 7, 5),CFrame = CFrame.new(78.5, 2.5, -42.5, 0, 0, 1, 1, 0, 0, 0, 1, 0),CanCollide = false,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
812 | Mesh = New("SpecialMesh",Gear,"Mesh",{Offset = Vector3.new(0, 0, -1),Scale = Vector3.new(25, 25, 25),MeshId = "rbxassetid://92053026",MeshType = Enum.MeshType.FileMesh,}) | |
813 | Weld = New("ManualWeld",Gear,"Weld",{Part0 = Gear,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0),C1 = CFrame.new(0, 3.57627869e-06, 2.99999237, 0.999991357, -6.94066244e-08, 4.63798642e-07, 6.63525327e-07, -0.999994934, -2.62497252e-07, 2.04890966e-08, 2.84217094e-13, -0.999997139),}) | |
814 | DragonHead = New("Part",modelzorz3,"DragonHead",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(72.5999985, 5.5999999, -63.5999985, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
815 | Mesh = New("SpecialMesh",DragonHead,"Mesh",{Scale = Vector3.new(5, 5, 5),MeshId = "rbxassetid://420164161",MeshType = Enum.MeshType.FileMesh,}) | |
816 | Weld = New("ManualWeld",DragonHead,"Weld",{Part0 = DragonHead,Part1 = handle,C1 = CFrame.new(-4, 0, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0),}) | |
817 | EyePart = New("Part",modelzorz3,"EyePart",{BrickColor = BrickColor.new("Royal purple"),Material = Enum.Material.Neon,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(70.0999985, 8.60000038, -63.5999985, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.384314, 0.145098, 0.819608),}) | |
818 | Mesh = New("SpecialMesh",EyePart,"Mesh",{Scale = Vector3.new(1, 1, 2),MeshId = "rbxassetid://420164161",MeshType = Enum.MeshType.Sphere,}) | |
819 | Weld = New("ManualWeld",EyePart,"Weld",{Part0 = EyePart,Part1 = handle,C1 = CFrame.new(-4, 3.00000048, 2.5, 0, 0, 1, 0, 1, 0, -1, -0, -0),}) | |
820 | EyePart = New("Part",modelzorz3,"EyePart",{BrickColor = BrickColor.new("Royal purple"),Material = Enum.Material.Neon,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(75.0999985, 8.60000038, -63.5999985, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.384314, 0.145098, 0.819608),}) | |
821 | Mesh = New("SpecialMesh",EyePart,"Mesh",{Scale = Vector3.new(1, 1, 2),MeshId = "rbxassetid://420164161",MeshType = Enum.MeshType.Sphere,}) | |
822 | Weld = New("ManualWeld",EyePart,"Weld",{Part0 = EyePart,Part1 = handle,C1 = CFrame.new(-4, 3.00000048, -2.5, 0, 0, 1, 0, 1, 0, -1, -0, -0),}) | |
823 | EyePart = New("Part",modelzorz3,"EyePart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(70.0999985, 8.60000038, -64.0999985, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
824 | Mesh = New("SpecialMesh",EyePart,"Mesh",{Scale = Vector3.new(0.899999976, 0.899999976, 0.5),MeshId = "rbxassetid://420164161",MeshType = Enum.MeshType.Sphere,}) | |
825 | Weld = New("ManualWeld",EyePart,"Weld",{Part0 = EyePart,Part1 = handle,C1 = CFrame.new(-4.5, 3.00000048, 2.5, 0, 0, 1, 0, 1, 0, -1, -0, -0),}) | |
826 | EyePart = New("Part",modelzorz3,"EyePart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(75.0999985, 8.60000038, -64.0999985, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
827 | Mesh = New("SpecialMesh",EyePart,"Mesh",{Scale = Vector3.new(0.899999976, 0.899999976, 0.5),MeshId = "rbxassetid://420164161",MeshType = Enum.MeshType.Sphere,}) | |
828 | Weld = New("ManualWeld",EyePart,"Weld",{Part0 = EyePart,Part1 = handle,C1 = CFrame.new(-4.5, 3.00000048, -2.5, 0, 0, 1, 0, 1, 0, -1, -0, -0),}) | |
829 | ||
830 | ||
831 | local moosick = it("Sound",Character) | |
832 | moosick.SoundId = "rbxassetid://608726256" | |
833 | --142653441, 175067863 | |
834 | moosick.Name = "moosick" | |
835 | moosick.Looped = true | |
836 | moosick.Volume = 1 | |
837 | ||
838 | anim = Character:findFirstChild("Animate") | |
839 | if anim then | |
840 | anim:Destroy() | |
841 | end | |
842 | ||
843 | local pemit = Instance.new("ParticleEmitter") | |
844 | pemit.Color = ColorSequence.new(Color3.new(.5,0,1)) | |
845 | pemit.Lifetime = NumberRange.new(1) | |
846 | pemit.Acceleration = Vector3.new(0,20,0) | |
847 | pemit.EmissionDirection = "Front" | |
848 | pemit.Size = NumberSequence.new(1,0) | |
849 | pemit.Speed = NumberRange.new(10) | |
850 | pemit.LightEmission = 1 | |
851 | pemit.Rate = 500 | |
852 | pemit.Rotation = NumberRange.new(0,360) | |
853 | pemit.RotSpeed = NumberRange.new(150) | |
854 | pemit.Texture = "rbxasset://textures/particles/smoke_main.dds" | |
855 | pemit.Enabled = false | |
856 | ||
857 | local pe1 = pemit:Clone() | |
858 | pe1.Parent = Handle | |
859 | local pe2 = pemit:Clone() | |
860 | pe2.Parent = Handle2 | |
861 | local pe3 = pemit:Clone() | |
862 | pe3.Parent = handle | |
863 | pe3.EmissionDirection = "Right" | |
864 | pe3.Rate = 1000 | |
865 | ||
866 | local light = Instance.new("PointLight", Character.Torso) | |
867 | light.Color = TorsoColor.Color | |
868 | light.Brightness = 5 | |
869 | light.Range = 15 | |
870 | light.Enabled = false | |
871 | ||
872 | local Footsteps = it("Sound",Character.Torso) | |
873 | Footsteps.SoundId = "rbxassetid://142665235" | |
874 | Footsteps.Looped = true | |
875 | Footsteps.Pitch = 0.8 | |
876 | Footsteps.Volume = 0.3 | |
877 | ||
878 | local Footsteps2 = it("Sound",Character.Torso) | |
879 | Footsteps2.SoundId = "rbxassetid://142665235" | |
880 | Footsteps2.Looped = true | |
881 | Footsteps2.Pitch = 1 | |
882 | Footsteps2.Volume = 0.4 | |
883 | ||
884 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
885 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
886 | prt.Material = Enum.Material.Neon | |
887 | prt.Anchored=true | |
888 | prt.CFrame=cframe | |
889 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
890 | game:GetService("Debris"):AddItem(prt,2) | |
891 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
892 | for i=0,1,delay do | |
893 | swait() | |
894 | Part.CFrame=Part.CFrame | |
895 | Part.Transparency=i | |
896 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
897 | end | |
898 | Part:Destroy() | |
899 | end),prt,msh) | |
900 | end | |
901 | ||
902 | TrailDeb = false | |
903 | ||
904 | function equipanim() | |
905 | attack=true | |
906 | Gear.Transparency = 1 | |
907 | Gear2.Transparency = 1 | |
908 | for i,v in pairs(modelzorz3:children()) do | |
909 | if v:IsA("BasePart") then v.Transparency = 1 end | |
910 | end | |
911 | Humanoid.WalkSpeed = 0 | |
912 | moosick:Play() | |
913 | for i=0,1,0.05 do | |
914 | swait() | |
915 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
916 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
917 | RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3) | |
918 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3) | |
919 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
920 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
921 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
922 | Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(-30),math.rad(0)),.2) | |
923 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.2) | |
924 | end | |
925 | swait(60) | |
926 | for i=0,1,0.05 do | |
927 | swait() | |
928 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
929 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
930 | LW.C0=clerp(LW.C0,cf(-1.2,0.5,.5)*euler(-30,0,-20),.3) | |
931 | RW.C0=clerp(RW.C0,cf(1.2,0.5,.5)*euler(-30,0,20),.3) | |
932 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
933 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
934 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(50),math.rad(0),math.rad(0)),.2) | |
935 | Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(-30),math.rad(0)),.2) | |
936 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.2) | |
937 | end | |
938 | so(136007472,Torso,1,1) | |
939 | swait(30) | |
940 | for i=0,30 do | |
941 | swait(1) | |
942 | MagicRing(BrickColor.new("Alder"), Gear.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))), 20, 20, 2, 1, 1, 1, -1, -1, 0) | |
943 | MagicRing(BrickColor.new("Alder"), Gear2.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))), 20, 20, 2, 1, 1, 1, -1, -1, 0) | |
944 | MagicRing(BrickColor.new("Alder"), DragonHead.CFrame*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50))), 60, 60, 6, 1, 1, 1, -3, -3, 0) | |
945 | end | |
946 | swait(180) | |
947 | so(233096557,Torso,1,5) | |
948 | so(233091205,Torso,1,5) | |
949 | so(150829983,DragonHead,.9,5) | |
950 | MagicCircle(BrickColor.new("Alder"), Gear.CFrame, 10, 10, 10, 1, 1, 1, 0.01) | |
951 | MagicCircle(BrickColor.new("Alder"), Gear2.CFrame, 10, 10, 10, 1, 1, 1, 0.01) | |
952 | MagicCircle(BrickColor.new("Alder"), DragonHead.CFrame, 20, 20, 20, 1, 1, 1, 0.01) | |
953 | Gear.Transparency = 0 | |
954 | Gear2.Transparency = 0 | |
955 | for i,v in pairs(modelzorz3:children()) do | |
956 | if v:IsA("BasePart") and v ~= handle then v.Transparency = 0 end | |
957 | end | |
958 | pe1.Enabled = true | |
959 | pe2.Enabled = true | |
960 | pe3.Enabled = true | |
961 | light.Enabled = true | |
962 | for a=1,300 do | |
963 | handleweld.C0 = cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(50),math.rad(0),math.rad(0)) | |
964 | swait() | |
965 | end | |
966 | attack = false | |
967 | end | |
968 | ||
969 | function attackone() | |
970 | attack=true | |
971 | if TrailDeb == false then | |
972 | TrailDeb = true | |
973 | end | |
974 | coroutine.wrap(function() | |
975 | local Old = Handle.CFrame.p | |
976 | while true do swait() | |
977 | if not TrailDeb then break end | |
978 | local New = Handle.CFrame.p | |
979 | local Mag =(Old -New).magnitude | |
980 | local Dis =(Old +New)/2 | |
981 | local Trail = Instance.new("Part",Character) | |
982 | Trail.Material = "Neon" | |
983 | Trail.Anchored = true | |
984 | Trail.CanCollide = false | |
985 | Trail.BrickColor = TorsoColor | |
986 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
987 | Trail.TopSurface = 0 | |
988 | Trail.BottomSurface = 0 | |
989 | Trail.formFactor = "Custom" | |
990 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
991 | local ms = Instance.new("BlockMesh",Trail) | |
992 | ms.Scale = Vector3.new(1,1,1) | |
993 | local TM = Instance.new("CylinderMesh",Trail) | |
994 | TM.Scale = Vector3.new(20,1,20) | |
995 | Old = New | |
996 | coroutine.wrap(function() | |
997 | for i = 1,0,-0.1 do | |
998 | swait() | |
999 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1000 | end | |
1001 | Trail:remove() | |
1002 | end)() | |
1003 | coroutine.wrap(function() | |
1004 | for i = 1,10 do | |
1005 | swait() | |
1006 | Trail.Transparency = Trail.Transparency +0.1 | |
1007 | end end)()end end)() | |
1008 | con1=Gear.Touched:connect(function(hit) Damagefunc(hit,"Blunt",20,25,20,"Normal",RootPart,.2,1) end) | |
1009 | for i=0,1,0.08 do | |
1010 | swait() | |
1011 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(-10)),.3) | |
1012 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(10)),.3) | |
1013 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3) | |
1014 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3) | |
1015 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
1016 | Handleweld.C0=clerp(Handleweld.C0,cf(-3,1,2)*angles(math.rad(90),math.rad(0),math.rad(0)),.2) | |
1017 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1018 | end | |
1019 | so("231917758",Handle,1,.9) | |
1020 | so("159972643",Torso,1,1) | |
1021 | for i=0,1,0.1 do | |
1022 | swait() | |
1023 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(20)),.3) | |
1024 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3) | |
1025 | RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(80,1.8,1.5),.3) | |
1026 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3) | |
1027 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
1028 | Handleweld.C0=clerp(Handleweld.C0,cf(-4,1,-8)*angles(math.rad(-85),math.rad(0),math.rad(0)),.2) | |
1029 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1030 | end | |
1031 | --dmgstop() | |
1032 | attack=false | |
1033 | con1:disconnect() | |
1034 | if TrailDeb == true then | |
1035 | TrailDeb = false | |
1036 | end | |
1037 | end | |
1038 | ||
1039 | function attacktwo() | |
1040 | attack=true | |
1041 | if TrailDeb == false then | |
1042 | TrailDeb = true | |
1043 | end | |
1044 | coroutine.wrap(function() | |
1045 | local Old = Handle2.CFrame.p | |
1046 | while true do swait() | |
1047 | if not TrailDeb then break end | |
1048 | local New = Handle2.CFrame.p | |
1049 | local Mag =(Old -New).magnitude | |
1050 | local Dis =(Old +New)/2 | |
1051 | local Trail = Instance.new("Part",Character) | |
1052 | Trail.Material = "Neon" | |
1053 | Trail.Anchored = true | |
1054 | Trail.CanCollide = false | |
1055 | Trail.BrickColor = TorsoColor | |
1056 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1057 | Trail.TopSurface = 0 | |
1058 | Trail.BottomSurface = 0 | |
1059 | Trail.formFactor = "Custom" | |
1060 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1061 | local ms = Instance.new("BlockMesh",Trail) | |
1062 | ms.Scale = Vector3.new(1,1,1) | |
1063 | local TM = Instance.new("CylinderMesh",Trail) | |
1064 | TM.Scale = Vector3.new(20,1,20) | |
1065 | Old = New | |
1066 | coroutine.wrap(function() | |
1067 | for i = 1,0,-0.1 do | |
1068 | swait() | |
1069 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1070 | end | |
1071 | Trail:remove() | |
1072 | end)() | |
1073 | coroutine.wrap(function() | |
1074 | for i = 1,10 do | |
1075 | swait() | |
1076 | Trail.Transparency = Trail.Transparency +0.1 | |
1077 | end end)()end end)() | |
1078 | con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,"Blunt",20,25,20,"Normal",RootPart,.2,1) end) | |
1079 | for i=0,1,0.08 do | |
1080 | swait() | |
1081 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(20)),.3) | |
1082 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3) | |
1083 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-30,0,-20),.3) | |
1084 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3) | |
1085 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
1086 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,1,-5)*angles(math.rad(0),math.rad(0),math.rad(20)),.2) | |
1087 | Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1088 | end | |
1089 | so("231917758",Handle2,1,.8) | |
1090 | so("159972627",Torso,1,1) | |
1091 | for i=0,1,0.1 do | |
1092 | swait() | |
1093 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3) | |
1094 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.3) | |
1095 | LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*euler(-30,0,20),.3) | |
1096 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3) | |
1097 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
1098 | Handle2weld.C0=clerp(Handle2weld.C0,cf(10,1,-5)*angles(math.rad(0),math.rad(-80),math.rad(20)),.2) | |
1099 | Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1100 | end | |
1101 | --dmgstop() | |
1102 | attack=false | |
1103 | con1:disconnect() | |
1104 | if TrailDeb == true then | |
1105 | TrailDeb = false | |
1106 | end | |
1107 | end | |
1108 | ||
1109 | function attackthree() | |
1110 | attack=true | |
1111 | if TrailDeb == false then | |
1112 | TrailDeb = true | |
1113 | end | |
1114 | coroutine.wrap(function() | |
1115 | local Old = Handle.CFrame.p | |
1116 | while true do swait() | |
1117 | if not TrailDeb then break end | |
1118 | local New = Handle.CFrame.p | |
1119 | local Mag =(Old -New).magnitude | |
1120 | local Dis =(Old +New)/2 | |
1121 | local Trail = Instance.new("Part",Character) | |
1122 | Trail.Material = "Neon" | |
1123 | Trail.Anchored = true | |
1124 | Trail.CanCollide = false | |
1125 | Trail.BrickColor = TorsoColor | |
1126 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1127 | Trail.TopSurface = 0 | |
1128 | Trail.BottomSurface = 0 | |
1129 | Trail.formFactor = "Custom" | |
1130 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1131 | local ms = Instance.new("BlockMesh",Trail) | |
1132 | ms.Scale = Vector3.new(1,1,1) | |
1133 | local TM = Instance.new("CylinderMesh",Trail) | |
1134 | TM.Scale = Vector3.new(20,1,20) | |
1135 | Old = New | |
1136 | coroutine.wrap(function() | |
1137 | for i = 1,0,-0.1 do | |
1138 | swait() | |
1139 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1140 | end | |
1141 | Trail:remove() | |
1142 | end)() | |
1143 | coroutine.wrap(function() | |
1144 | for i = 1,10 do | |
1145 | swait() | |
1146 | Trail.Transparency = Trail.Transparency +0.1 | |
1147 | end end)()end end)() | |
1148 | con1=Gear.Touched:connect(function(hit) Damagefunc(hit,"Blunt",20,25,30,"Up",RootPart,.2,1) end) | |
1149 | for i=0,1,0.08 do | |
1150 | swait() | |
1151 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
1152 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
1153 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(0.5,-1.3,-0.1),.3) | |
1154 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3) | |
1155 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
1156 | Handleweld.C0=clerp(Handleweld.C0,cf(3,7,-1)*angles(math.rad(20),math.rad(0),math.rad(-120)),.2) | |
1157 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1158 | end | |
1159 | so("231917758",Handle,1,1) | |
1160 | so("159882477",Torso,1,1) | |
1161 | for i=0,1,0.05 do | |
1162 | swait() | |
1163 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1164 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
1165 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
1166 | Handleweld.C0=clerp(Handleweld.C0,cf(2,4,-3)*angles(math.rad(120),math.rad(0),math.rad(-120)),.2) | |
1167 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1168 | RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(2,-1.3,0.1),.3) | |
1169 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3) | |
1170 | end | |
1171 | --dmgstop() | |
1172 | attack=false | |
1173 | con1:disconnect() | |
1174 | if TrailDeb == true then | |
1175 | TrailDeb = false | |
1176 | end | |
1177 | end | |
1178 | ||
1179 | function attackfour() | |
1180 | attack=true | |
1181 | if TrailDeb == false then | |
1182 | TrailDeb = true | |
1183 | end | |
1184 | coroutine.wrap(function() | |
1185 | local Old = Handle2.CFrame.p | |
1186 | while true do swait() | |
1187 | if not TrailDeb then break end | |
1188 | local New = Handle2.CFrame.p | |
1189 | local Mag =(Old -New).magnitude | |
1190 | local Dis =(Old +New)/2 | |
1191 | local Trail = Instance.new("Part",Character) | |
1192 | Trail.Material = "Neon" | |
1193 | Trail.Anchored = true | |
1194 | Trail.CanCollide = false | |
1195 | Trail.BrickColor = TorsoColor | |
1196 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1197 | Trail.TopSurface = 0 | |
1198 | Trail.BottomSurface = 0 | |
1199 | Trail.formFactor = "Custom" | |
1200 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1201 | local ms = Instance.new("BlockMesh",Trail) | |
1202 | ms.Scale = Vector3.new(1,1,1) | |
1203 | local TM = Instance.new("CylinderMesh",Trail) | |
1204 | TM.Scale = Vector3.new(20,1,20) | |
1205 | Old = New | |
1206 | coroutine.wrap(function() | |
1207 | for i = 1,0,-0.1 do | |
1208 | swait() | |
1209 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1210 | end | |
1211 | Trail:remove() | |
1212 | end)() | |
1213 | coroutine.wrap(function() | |
1214 | for i = 1,10 do | |
1215 | swait() | |
1216 | Trail.Transparency = Trail.Transparency +0.1 | |
1217 | end end)()end end)() | |
1218 | coroutine.wrap(function() | |
1219 | local Old = Handle.CFrame.p | |
1220 | while true do swait() | |
1221 | if not TrailDeb then break end | |
1222 | local New = Handle.CFrame.p | |
1223 | local Mag =(Old -New).magnitude | |
1224 | local Dis =(Old +New)/2 | |
1225 | local Trail = Instance.new("Part",Character) | |
1226 | Trail.Material = "Neon" | |
1227 | Trail.Anchored = true | |
1228 | Trail.CanCollide = false | |
1229 | Trail.BrickColor = TorsoColor | |
1230 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1231 | Trail.TopSurface = 0 | |
1232 | Trail.BottomSurface = 0 | |
1233 | Trail.formFactor = "Custom" | |
1234 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1235 | local ms = Instance.new("BlockMesh",Trail) | |
1236 | ms.Scale = Vector3.new(1,1,1) | |
1237 | local TM = Instance.new("CylinderMesh",Trail) | |
1238 | TM.Scale = Vector3.new(20,1,20) | |
1239 | Old = New | |
1240 | coroutine.wrap(function() | |
1241 | for i = 1,0,-0.1 do | |
1242 | swait() | |
1243 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1244 | end | |
1245 | Trail:remove() | |
1246 | end)() | |
1247 | coroutine.wrap(function() | |
1248 | for i = 1,10 do | |
1249 | swait() | |
1250 | Trail.Transparency = Trail.Transparency +0.1 | |
1251 | end end)()end end)() | |
1252 | con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,"Blunt",10,20,math.random(20,40),"Normal",RootPart,.2,1) end) | |
1253 | con2=Gear.Touched:connect(function(hit) Damagefunc(hit,"Blunt",10,20,math.random(20,40),"Normal",RootPart,.2,1) end) | |
1254 | for i=0,1,0.08 do | |
1255 | swait() | |
1256 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*angles(math.rad(40),math.rad(0),math.rad(-40)),.3) | |
1257 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(40)),.3) | |
1258 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(70),math.rad(0),math.rad(-45)),.3) | |
1259 | RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3) | |
1260 | LH.C0=clerp(LH.C0,cf(-1,0.5,0)*euler(0,-1.57,0)*angles(math.rad(-10),math.rad(30),math.rad(-40)),.3) | |
1261 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
1262 | Handleweld.C0=clerp(Handleweld.C0,cf(1.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1263 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-1.5,3,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
1264 | end | |
1265 | if anim then | |
1266 | anim.Disabled=true | |
1267 | end | |
1268 | so("231917758",Torso,1,0.7) | |
1269 | so("159882584",Torso,1,1) | |
1270 | for i=0,1,0.04 do | |
1271 | swait() | |
1272 | Torso.Velocity=RootPart.CFrame.lookVector*50 | |
1273 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(-5),math.rad(0),math.rad(0+360*i)),.3) | |
1274 | RW.C0=clerp(RW.C0,cf(1.2,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
1275 | LW.C0=clerp(LW.C0,cf(-1.2,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
1276 | RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1277 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1278 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
1279 | Handleweld.C0=clerp(Handleweld.C0,cf(3,4,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2) | |
1280 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-3,4,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2) | |
1281 | end | |
1282 | --dmgstop() | |
1283 | attack=false | |
1284 | con1:disconnect() | |
1285 | con2:disconnect() | |
1286 | if anim then | |
1287 | anim.Disabled=false | |
1288 | end | |
1289 | if TrailDeb == true then | |
1290 | TrailDeb = false | |
1291 | end | |
1292 | end | |
1293 | ||
1294 | function BlastEffect(brickcolor, cframe, x1, y1, z1, x2, y2, z2) | |
1295 | local prt = parta(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1296 | prt.Anchored = true | |
1297 | prt.CFrame = cframe | |
1298 | local msh = mesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", vt(0, 0, 0), vt(x1, y1, z1)) | |
1299 | coroutine.resume(coroutine.create(function() | |
1300 | for i = 0, 1, 0.05 do | |
1301 | swait() | |
1302 | prt.Transparency = i | |
1303 | msh.Scale = msh.Scale + vt(x2, y2, z2) | |
1304 | end | |
1305 | prt.Parent = nil | |
1306 | end)) | |
1307 | end | |
1308 | ||
1309 | function MagniDamage(par,efft,magni,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
1310 | for _, c in pairs(workspace:GetDescendants()) do | |
1311 | local hum = c:FindFirstChildOfClass("Humanoid") | |
1312 | if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil then | |
1313 | local head = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso")) | |
1314 | if head ~= nil then | |
1315 | local targ = head.Position - par.Position | |
1316 | local mag = targ.magnitude | |
1317 | if magni >= mag and c.Name ~= Player.Name then | |
1318 | Damagefunc(head,efft,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
1319 | end | |
1320 | end | |
1321 | end | |
1322 | end | |
1323 | end | |
1324 | ||
1325 | function MagicCircle4(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1326 | local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1327 | prt.Anchored = true | |
1328 | prt.CFrame = cframe | |
1329 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1330 | game:GetService("Debris"):AddItem(prt, 2) | |
1331 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1332 | for i = 0, 1, delay do | |
1333 | swait() | |
1334 | Part.CFrame = Part.CFrame | |
1335 | Part.Transparency = i | |
1336 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1337 | end | |
1338 | Part.Parent = nil | |
1339 | end), prt, msh) | |
1340 | end | |
1341 | ||
1342 | function smashdown() | |
1343 | attack=true | |
1344 | ||
1345 | if TrailDeb == false then | |
1346 | TrailDeb = true | |
1347 | end | |
1348 | coroutine.wrap(function() | |
1349 | local Old = Handle2.CFrame.p | |
1350 | while true do swait() | |
1351 | if not TrailDeb then break end | |
1352 | local New = Handle2.CFrame.p | |
1353 | local Mag =(Old -New).magnitude | |
1354 | local Dis =(Old +New)/2 | |
1355 | local Trail = Instance.new("Part",Character) | |
1356 | Trail.Material = "Neon" | |
1357 | Trail.Anchored = true | |
1358 | Trail.CanCollide = false | |
1359 | Trail.BrickColor = TorsoColor | |
1360 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1361 | Trail.TopSurface = 0 | |
1362 | Trail.BottomSurface = 0 | |
1363 | Trail.formFactor = "Custom" | |
1364 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1365 | local ms = Instance.new("BlockMesh",Trail) | |
1366 | ms.Scale = Vector3.new(1,1,1) | |
1367 | local TM = Instance.new("CylinderMesh",Trail) | |
1368 | TM.Scale = Vector3.new(20,1,20) | |
1369 | Old = New | |
1370 | coroutine.wrap(function() | |
1371 | for i = 1,0,-0.1 do | |
1372 | swait() | |
1373 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1374 | end | |
1375 | Trail:remove() | |
1376 | end)() | |
1377 | coroutine.wrap(function() | |
1378 | for i = 1,10 do | |
1379 | swait() | |
1380 | Trail.Transparency = Trail.Transparency +0.1 | |
1381 | end end)()end end)() | |
1382 | coroutine.wrap(function() | |
1383 | local Old = Handle.CFrame.p | |
1384 | while true do swait() | |
1385 | if not TrailDeb then break end | |
1386 | local New = Handle.CFrame.p | |
1387 | local Mag =(Old -New).magnitude | |
1388 | local Dis =(Old +New)/2 | |
1389 | local Trail = Instance.new("Part",Character) | |
1390 | Trail.Material = "Neon" | |
1391 | Trail.Anchored = true | |
1392 | Trail.CanCollide = false | |
1393 | Trail.BrickColor = TorsoColor | |
1394 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1395 | Trail.TopSurface = 0 | |
1396 | Trail.BottomSurface = 0 | |
1397 | Trail.formFactor = "Custom" | |
1398 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1399 | local ms = Instance.new("BlockMesh",Trail) | |
1400 | ms.Scale = Vector3.new(1,1,1) | |
1401 | local TM = Instance.new("CylinderMesh",Trail) | |
1402 | TM.Scale = Vector3.new(20,1,20) | |
1403 | Old = New | |
1404 | coroutine.wrap(function() | |
1405 | for i = 1,0,-0.1 do | |
1406 | swait() | |
1407 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1408 | end | |
1409 | Trail:remove() | |
1410 | end)() | |
1411 | coroutine.wrap(function() | |
1412 | for i = 1,10 do | |
1413 | swait() | |
1414 | Trail.Transparency = Trail.Transparency +0.1 | |
1415 | end end)()end end)() | |
1416 | con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,"Blunt",10,15,100,"Normal",RootPart,.2,1) end) | |
1417 | con2=Gear.Touched:connect(function(hit) Damagefunc(hit,"Blunt",10,15,100,"Normal",RootPart,.2,1) end) | |
1418 | for i=0,1,0.08 do | |
1419 | swait() | |
1420 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1421 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3) | |
1422 | LW.C0=clerp(LW.C0,cf(-1.5,1,0)*euler(math.rad(180),0,0),.3) | |
1423 | RW.C0=clerp(RW.C0,cf(1.5,1,0)*euler(math.rad(180),0,0),.3) | |
1424 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1425 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1426 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(50),math.rad(0),math.rad(0)),.2) | |
1427 | Handleweld.C0=clerp(Handleweld.C0,cf(4,30,10)*angles(math.rad(35),math.rad(0),math.rad(-90)),.2) | |
1428 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,30,10)*angles(math.rad(35),math.rad(0),math.rad(90)),.2) | |
1429 | end | |
1430 | Humanoid.WalkSpeed = 0 | |
1431 | so("231917758",Torso,1,0.7) | |
1432 | so("159882584",Torso,1,1) | |
1433 | for i=0,1,0.08 do | |
1434 | swait() | |
1435 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
1436 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
1437 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(90),0,0),.3) | |
1438 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(90),0,0),.3) | |
1439 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1440 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1441 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-10),math.rad(0),math.rad(0)),.2) | |
1442 | Handleweld.C0=clerp(Handleweld.C0,cf(4,6,-10)*angles(math.rad(-35),math.rad(0),math.rad(-90)),.2) | |
1443 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,6,-10)*angles(math.rad(-35),math.rad(0),math.rad(90)),.2) | |
1444 | end | |
1445 | con1:disconnect() | |
1446 | con2:disconnect() | |
1447 | attack=false | |
1448 | if anim then | |
1449 | anim.Disabled=false | |
1450 | end | |
1451 | if TrailDeb == true then | |
1452 | TrailDeb = false | |
1453 | end | |
1454 | local ref = it("Part",Character) | |
1455 | ref.Size = Vector3.new(0,0,0) | |
1456 | ref.Anchored = true | |
1457 | ref.CanCollide = false | |
1458 | ref.Transparency = 1 | |
1459 | local looky = RootPart.CFrame | |
1460 | for i=1,10 do | |
1461 | ref.CFrame = looky*CFrame.new(0,-2.5,-10*i) | |
1462 | BlastEffect(BrickColor.new("White"),ref.CFrame,1,.2,1,1,0,1) | |
1463 | BlastEffect(BrickColor.new("White"),ref.CFrame,5,1,.5,.1,2,.1) | |
1464 | MagniDamage(ref,"",10,30,35,50,"Knockdown",RootPart,.2,1) | |
1465 | so(178452221,ref,.6,1) | |
1466 | so(192410084,ref,1,1) | |
1467 | swait(5) | |
1468 | end | |
1469 | ref:Destroy() | |
1470 | swait(60) | |
1471 | --dmgstop() | |
1472 | end | |
1473 | ||
1474 | function mudads() | |
1475 | attack=true | |
1476 | so("624164065",Torso,1,3) | |
1477 | print("SUNLIGHT YELLO OVRDREV") | |
1478 | ||
1479 | ||
1480 | if TrailDeb == false then | |
1481 | TrailDeb = true | |
1482 | end | |
1483 | coroutine.wrap(function() | |
1484 | local Old = Handle2.CFrame.p | |
1485 | while true do swait() | |
1486 | if not TrailDeb then break end | |
1487 | local New = Handle2.CFrame.p | |
1488 | local Mag =(Old -New).magnitude | |
1489 | local Dis =(Old +New)/2 | |
1490 | local Trail = Instance.new("Part",Character) | |
1491 | Trail.Material = "Neon" | |
1492 | Trail.Anchored = true | |
1493 | Trail.CanCollide = false | |
1494 | Trail.BrickColor = TorsoColor | |
1495 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1496 | Trail.TopSurface = 0 | |
1497 | Trail.BottomSurface = 0 | |
1498 | Trail.formFactor = "Custom" | |
1499 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1500 | local ms = Instance.new("BlockMesh",Trail) | |
1501 | ms.Scale = Vector3.new(1,1,1) | |
1502 | local TM = Instance.new("CylinderMesh",Trail) | |
1503 | TM.Scale = Vector3.new(20,1,20) | |
1504 | Old = New | |
1505 | coroutine.wrap(function() | |
1506 | for i = 1,0,-0.1 do | |
1507 | swait() | |
1508 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1509 | end | |
1510 | Trail:remove() | |
1511 | end)() | |
1512 | coroutine.wrap(function() | |
1513 | for i = 1,10 do | |
1514 | swait() | |
1515 | Trail.Transparency = Trail.Transparency +0.1 | |
1516 | end end)()end end)() | |
1517 | coroutine.wrap(function() | |
1518 | local Old = Handle.CFrame.p | |
1519 | while true do swait() | |
1520 | if not TrailDeb then break end | |
1521 | local New = Handle.CFrame.p | |
1522 | local Mag =(Old -New).magnitude | |
1523 | local Dis =(Old +New)/2 | |
1524 | local Trail = Instance.new("Part",Character) | |
1525 | Trail.Material = "Neon" | |
1526 | Trail.Anchored = true | |
1527 | Trail.CanCollide = false | |
1528 | Trail.BrickColor = TorsoColor | |
1529 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1530 | Trail.TopSurface = 0 | |
1531 | Trail.BottomSurface = 0 | |
1532 | Trail.formFactor = "Custom" | |
1533 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1534 | local ms = Instance.new("BlockMesh",Trail) | |
1535 | ms.Scale = Vector3.new(1,1,1) | |
1536 | local TM = Instance.new("CylinderMesh",Trail) | |
1537 | TM.Scale = Vector3.new(20,1,20) | |
1538 | Old = New | |
1539 | coroutine.wrap(function() | |
1540 | for i = 1,0,-0.1 do | |
1541 | swait() | |
1542 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1543 | end | |
1544 | Trail:remove() | |
1545 | end)() | |
1546 | coroutine.wrap(function() | |
1547 | for i = 1,10 do | |
1548 | swait() | |
1549 | Trail.Transparency = Trail.Transparency +0.1 | |
1550 | end end)()end end)() | |
1551 | con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,"Blunt",10,15,10,"Normal",RootPart,.05,1) end) | |
1552 | con2=Gear.Touched:connect(function(hit) Damagefunc(hit,"Blunt",10,15,10,"Normal",RootPart,.05,1) end) | |
1553 | Humanoid.WalkSpeed = 16 | |
1554 | so("159882584",Torso,1,1) | |
1555 | for i=0,1,0.08 do | |
1556 | swait() | |
1557 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
1558 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
1559 | LW.C0=clerp(LW.C0,cf(-1.2,1,0)*euler(math.rad(90),math.rad(-90),0),.3) | |
1560 | RW.C0=clerp(RW.C0,cf(1.2,1,0)*euler(math.rad(90),math.rad(90),0),.3) | |
1561 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1562 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1563 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
1564 | Handleweld.C0=clerp(Handleweld.C0,cf(4,2,10)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1565 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,2,10)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1566 | end | |
1567 | for a = 1,20 do | |
1568 | so("231917758",Torso,math.random(6,10)/10,1) | |
1569 | for i=0,1,0.2 do | |
1570 | swait() | |
1571 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
1572 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
1573 | LW.C0=clerp(LW.C0,cf(-1.2,1,-2)*euler(math.rad(90),math.rad(-90),0),.3) | |
1574 | RW.C0=clerp(RW.C0,cf(1.2,1,2)*euler(math.rad(90),math.rad(90),0),.3) | |
1575 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1576 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1577 | handleweld.C0=clerp(handleweld.C0,cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
1578 | Handleweld.C0=clerp(Handleweld.C0,cf(math.random(-10,10),math.random(0,4),-20)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1579 | Handle2weld.C0=clerp(Handle2weld.C0,cf(math.random(-10,10),math.random(0,4),20)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1580 | end | |
1581 | so("231917758",Torso,math.random(6,10)/10,1) | |
1582 | for i=0,1,0.2 do | |
1583 | swait() | |
1584 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
1585 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
1586 | LW.C0=clerp(LW.C0,cf(-1.2,1,2)*euler(math.rad(90),math.rad(-90),0),.3) | |
1587 | RW.C0=clerp(RW.C0,cf(1.2,1,-2)*euler(math.rad(90),math.rad(90),0),.3) | |
1588 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1589 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1590 | handleweld.C0=clerp(handleweld.C0,cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
1591 | Handleweld.C0=clerp(Handleweld.C0,cf(math.random(-10,10),math.random(0,4),20)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1592 | Handle2weld.C0=clerp(Handle2weld.C0,cf(math.random(-10,10),math.random(0,4),-20)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1593 | end | |
1594 | end | |
1595 | con1:disconnect() | |
1596 | con2:disconnect() | |
1597 | --dmgstop() | |
1598 | attack=false | |
1599 | if anim then | |
1600 | anim.Disabled=false | |
1601 | end | |
1602 | if TrailDeb == true then | |
1603 | TrailDeb = false | |
1604 | end | |
1605 | end | |
1606 | ||
1607 | function laser() | |
1608 | attack = true | |
1609 | Humanoid.WalkSpeed = 16 | |
1610 | for i=0,1,0.05 do | |
1611 | swait() | |
1612 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1613 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
1614 | LW.C0=clerp(LW.C0,cf(-1.2,0.5,.5)*euler(-30,0,-20),.3) | |
1615 | RW.C0=clerp(RW.C0,cf(1.2,0.5,.5)*euler(-30,0,20),.3) | |
1616 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1617 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1618 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(50),math.rad(0),math.rad(0)),.2) | |
1619 | Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(-30),math.rad(0)),.2) | |
1620 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.2) | |
1621 | end | |
1622 | local blmod = Instance.new("Model",Character) | |
1623 | for a = 1, 5 do | |
1624 | local blast2 = it("Part",blmod) | |
1625 | blast2.Size = vt(1,1,1) | |
1626 | blast2.BrickColor = TorsoColor | |
1627 | blast2.Material = "Neon" | |
1628 | blast2.Anchored = false | |
1629 | blast2.CanCollide = false | |
1630 | local blwe = Instance.new("Weld",blast2) | |
1631 | blwe.Part0 = DragonHead | |
1632 | blwe.Part1 = blast2 | |
1633 | blwe.C0 = CFrame.new(0, 0, -5) | |
1634 | blwe.C1 = CFrame.fromEulerAnglesXYZ(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)) | |
1635 | local m = Instance.new("BlockMesh", blast2) | |
1636 | m.Scale = Vector3.new(6,6,6) | |
1637 | coroutine.resume(coroutine.create(function() | |
1638 | for i = 0,1,.1 do | |
1639 | blast2.Transparency = 1.2-i | |
1640 | swait() | |
1641 | blwe.C1 = blwe.C1 * CFrame.fromEulerAnglesXYZ(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)) | |
1642 | end | |
1643 | while blast2 do | |
1644 | swait() | |
1645 | blwe.C1 = blwe.C1 * CFrame.fromEulerAnglesXYZ(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)) | |
1646 | end | |
1647 | end)) | |
1648 | end | |
1649 | so(864314263,DragonHead,1,5) | |
1650 | for i=1,150 do | |
1651 | MagicRing(BrickColor.new("Alder"), DragonHead.CFrame * CFrame.new(0,0,-5) * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))), 20, 20, 2, 1, 1, 1, -1, -1, 0) | |
1652 | handleweld.C0 = cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(50),math.rad(0),math.rad(0)) | |
1653 | swait() | |
1654 | end | |
1655 | for i=0,1,0.05 do | |
1656 | swait() | |
1657 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1658 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
1659 | LW.C0=clerp(LW.C0,cf(-1.2,0.5,.5)*euler(-30,0,-20),.3) | |
1660 | RW.C0=clerp(RW.C0,cf(1.2,0.5,.5)*euler(-30,0,20),.3) | |
1661 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1662 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1663 | handleweld.C0=clerp(handleweld.C0,cf(math.random(-1,1),math.random(5,7),math.random(6,8))*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
1664 | Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(-30),math.rad(0)),.2) | |
1665 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.2) | |
1666 | end | |
1667 | so(162246701,DragonHead,1,5) | |
1668 | local frontcf = DragonHead.CFrame * CFrame.new(0,0,-5) | |
1669 | local sannd = Instance.new("Sound",Torso) | |
1670 | sannd.SoundId = "rbxassetid://162246683" | |
1671 | sannd.Looped = true | |
1672 | sannd.Volume = 1 | |
1673 | sannd:Play() | |
1674 | local hitcf = mouse.Hit | |
1675 | local ref = it("Part",Character) | |
1676 | ref.Size = Vector3.new(0,0,0) | |
1677 | ref.Anchored = true | |
1678 | ref.CanCollide = false | |
1679 | ref.Transparency = 1 | |
1680 | local blast = it("Part",blmod) | |
1681 | blast.Size = vt(1,1,(frontcf.p - hitcf.p).magnitude) | |
1682 | blast.BrickColor = TorsoColor | |
1683 | blast.Material = "Neon" | |
1684 | blast.Anchored = true | |
1685 | blast.CanCollide = false | |
1686 | blast.CFrame = CFrame.new((frontcf.p + hitcf.p)/2,frontcf.p) | |
1687 | local m = Instance.new("BlockMesh", blast) | |
1688 | m.Scale = Vector3.new(5,5,1) | |
1689 | for a = 1, 200 do | |
1690 | local frontcf = DragonHead.CFrame * CFrame.new(0,0,-5) | |
1691 | local hitcf = mouse.Hit | |
1692 | ref.CFrame = hitcf | |
1693 | blast.Size = vt(1,1,(frontcf.p - hitcf.p).magnitude) | |
1694 | blast.CFrame = CFrame.new((frontcf.p + hitcf.p)/2,frontcf.p) | |
1695 | MagicBlock(TorsoColor, hitcf, 1, 1, 1, 6, 6, 6, 0.1) | |
1696 | MagniDamage(ref,"",10,5,7,0,"Knockdown",RootPart,.05,1) | |
1697 | handleweld.C0 = cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(-5),math.rad(0),math.rad(0)) | |
1698 | --handleweld.C0 = cf(math.random(-2,2),math.random(4,8),math.random(5,9))*angles(math.rad(-5),math.rad(0),math.rad(0)) | |
1699 | swait(1) | |
1700 | end | |
1701 | for a = 0,1,.05 do | |
1702 | sannd.Volume = a | |
1703 | for _, b in pairs(blmod:GetChildren()) do | |
1704 | b.Transparency = a | |
1705 | end | |
1706 | swait() | |
1707 | end | |
1708 | sannd:Destroy() | |
1709 | blmod:Destroy() | |
1710 | attack = false | |
1711 | end | |
1712 | ||
1713 | function yummy() | |
1714 | attack=true | |
1715 | if TrailDeb == false then | |
1716 | TrailDeb = true | |
1717 | end | |
1718 | coroutine.wrap(function() | |
1719 | local Old = Handle.CFrame.p | |
1720 | while true do swait() | |
1721 | if not TrailDeb then break end | |
1722 | local New = Handle.CFrame.p | |
1723 | local Mag =(Old -New).magnitude | |
1724 | local Dis =(Old +New)/2 | |
1725 | local Trail = Instance.new("Part",Character) | |
1726 | Trail.Material = "Neon" | |
1727 | Trail.Anchored = true | |
1728 | Trail.CanCollide = false | |
1729 | Trail.BrickColor = TorsoColor | |
1730 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1731 | Trail.TopSurface = 0 | |
1732 | Trail.BottomSurface = 0 | |
1733 | Trail.formFactor = "Custom" | |
1734 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1735 | local ms = Instance.new("BlockMesh",Trail) | |
1736 | ms.Scale = Vector3.new(1,1,1) | |
1737 | local TM = Instance.new("CylinderMesh",Trail) | |
1738 | TM.Scale = Vector3.new(20,1,20) | |
1739 | Old = New | |
1740 | coroutine.wrap(function() | |
1741 | for i = 1,0,-0.1 do | |
1742 | swait() | |
1743 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1744 | end | |
1745 | Trail:remove() | |
1746 | end)() | |
1747 | coroutine.wrap(function() | |
1748 | for i = 1,10 do | |
1749 | swait() | |
1750 | Trail.Transparency = Trail.Transparency +0.1 | |
1751 | end end)()end end)() | |
1752 | local grab | |
1753 | local torsy | |
1754 | local ghum | |
1755 | local soaa | |
1756 | for i=0,1,0.05 do | |
1757 | swait() | |
1758 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(-10)),.3) | |
1759 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(10)),.3) | |
1760 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3) | |
1761 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3) | |
1762 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
1763 | Handleweld.C0=clerp(Handleweld.C0,cf(-3,1,2)*angles(math.rad(90),math.rad(0),math.rad(0)),.2) | |
1764 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1765 | end | |
1766 | con1=Gear.Touched:connect(function(hit) | |
1767 | if grab == nil and hit.Parent ~= Character then | |
1768 | torsy = (hit.Parent:findFirstChild("Torso") or hit.Parent:findFirstChild("UpperTorso")) | |
1769 | ghum = hit.Parent:FindFirstChildOfClass("Humanoid") | |
1770 | if ghum ~= nil and torsy ~= nil then | |
1771 | grab=hit.Parent | |
1772 | so(386946017,hit,1,1) | |
1773 | local soaa = it("Sound",grab.Head) | |
1774 | soaa.Volume = 1 | |
1775 | local cho = math.random(1,5) | |
1776 | if cho == 1 then | |
1777 | soaa.SoundId = "rbxassetid://111896685" | |
1778 | elseif cho == 2 then | |
1779 | soaa.SoundId = "rbxassetid://535528169" | |
1780 | elseif cho == 3 then | |
1781 | soaa.SoundId = "rbxassetid://1080363252" | |
1782 | elseif cho == 4 then | |
1783 | soaa.SoundId = "rbxassetid://147758746" | |
1784 | elseif cho == 5 then | |
1785 | soaa.SoundId = "rbxassetid://626777433" | |
1786 | soaa.Volume = .2 | |
1787 | soaa.TimePosition = 1 | |
1788 | end | |
1789 | soaa:Play() | |
1790 | end | |
1791 | end | |
1792 | end) | |
1793 | so("231917758",Handle,1,.9) | |
1794 | so("159972643",Torso,1,1) | |
1795 | for i=0,3,0.1 do | |
1796 | swait() | |
1797 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(20)),.3) | |
1798 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3) | |
1799 | RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(80,1.8,1.5),.3) | |
1800 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3) | |
1801 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
1802 | Handleweld.C0=clerp(Handleweld.C0,cf(-4,1,-8)*angles(math.rad(-85),math.rad(0),math.rad(0)),.2) | |
1803 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1804 | if torsy~=nil then | |
1805 | ghum.PlatformStand = true | |
1806 | torsy.CFrame = Gear.CFrame | |
1807 | end | |
1808 | end | |
1809 | if grab ~= nil then | |
1810 | Humanoid.WalkSpeed = 0 | |
1811 | con1:disconnect() | |
1812 | for i=0,3,0.05 do | |
1813 | swait() | |
1814 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1815 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3) | |
1816 | RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3) | |
1817 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3) | |
1818 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1819 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1820 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(20),math.rad(0),math.rad(0)),.2) | |
1821 | Handleweld.C0=clerp(Handleweld.C0,cf(2,20,-8)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2) | |
1822 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1823 | if torsy~=nil then | |
1824 | ghum.PlatformStand = true | |
1825 | torsy.CFrame = Gear.CFrame | |
1826 | end | |
1827 | end | |
1828 | for i=0,1,0.1 do | |
1829 | swait() | |
1830 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1831 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3) | |
1832 | RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3) | |
1833 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3) | |
1834 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1835 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1836 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(20),math.rad(0),math.rad(0)),.2) | |
1837 | Handleweld.C0=clerp(Handleweld.C0,cf(0,16,5)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2) | |
1838 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1839 | if torsy~=nil then | |
1840 | ghum.PlatformStand = true | |
1841 | torsy.CFrame = Gear.CFrame | |
1842 | end | |
1843 | end | |
1844 | grab:BreakJoints() | |
1845 | for i,v in pairs(grab:children()) do | |
1846 | if v:IsA("BasePart") then | |
1847 | game:service'Debris':AddItem(v,.01) | |
1848 | end | |
1849 | end | |
1850 | local ref = it("Part",Character) | |
1851 | ref.Size = Vector3.new(0,0,0) | |
1852 | ref.Anchored = true | |
1853 | ref.CanCollide = false | |
1854 | ref.Transparency = 1 | |
1855 | ref.CFrame = Gear.CFrame | |
1856 | so(206082327,Gear,1,3) | |
1857 | local partasdeff = Instance.new("ParticleEmitter",ref) | |
1858 | partasdeff.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0)) | |
1859 | partasdeff.LightEmission = .1 | |
1860 | partasdeff.Size = NumberSequence.new(0.2) | |
1861 | partasdeff.Texture = "rbxassetid://771221224" | |
1862 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)}) | |
1863 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
1864 | partasdeff.Transparency = bbb | |
1865 | partasdeff.Size = aaa | |
1866 | partasdeff.ZOffset = .9 | |
1867 | partasdeff.Acceleration = Vector3.new(0, -5, 0) | |
1868 | partasdeff.LockedToPart = false | |
1869 | partasdeff.EmissionDirection = "Back" | |
1870 | partasdeff.Lifetime = NumberRange.new(1, 2) | |
1871 | partasdeff.Rate = 1000 | |
1872 | partasdeff.Rotation = NumberRange.new(-100, 100) | |
1873 | partasdeff.RotSpeed = NumberRange.new(-100, 100) | |
1874 | partasdeff.Speed = NumberRange.new(6) | |
1875 | partasdeff.VelocitySpread = 10000 | |
1876 | partasdeff.Enabled=false | |
1877 | partasdeff:Emit(70) | |
1878 | game:service'Debris':AddItem(ref,5) | |
1879 | swait(90) | |
1880 | so(2767085,DragonHead,1,1) | |
1881 | swait(150) | |
1882 | for i=0,1,0.1 do | |
1883 | swait() | |
1884 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1885 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
1886 | RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3) | |
1887 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3) | |
1888 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1889 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1890 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
1891 | Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2) | |
1892 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1893 | end | |
1894 | so(133966572,DragonHead,.8,2) | |
1895 | for i=1,15 do | |
1896 | for a=1,5 do | |
1897 | handleweld.C0 = cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(-20),math.rad(0),math.rad(0)) | |
1898 | swait() | |
1899 | end | |
1900 | local bo = it("Part",Character) | |
1901 | bo.Size = vt(.2,.6,1) | |
1902 | bo.BrickColor = BrickColor.new("Persimmon") | |
1903 | bo.CFrame = DragonHead.CFrame*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1904 | bo.Velocity = RootPart.CFrame.lookVector*40 | |
1905 | local m = it("SpecialMesh",bo) | |
1906 | m.MeshId = "rbxassetid://305829157" | |
1907 | m.Scale = vt(math.random(9,13)/10,math.random(9,13)/10,math.random(9,13)/10) | |
1908 | coroutine.wrap(function() | |
1909 | swait(300) | |
1910 | for a=0,1,.05 do | |
1911 | swait() | |
1912 | bo.Transparency = a | |
1913 | end | |
1914 | bo:Destroy() | |
1915 | end)() | |
1916 | end | |
1917 | for a=1,5 do | |
1918 | handleweld.C0 = cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(-20),math.rad(0),math.rad(0)) | |
1919 | swait() | |
1920 | end | |
1921 | local bo = it("Part",Character) | |
1922 | bo.Size = vt(1,1,1) | |
1923 | bo.BrickColor = BrickColor.new("Persimmon") | |
1924 | bo.CFrame = DragonHead.CFrame*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1925 | bo.Velocity = RootPart.CFrame.lookVector*40 | |
1926 | local m = it("SpecialMesh",bo) | |
1927 | m.MeshId = "rbxassetid://4770583" | |
1928 | m.Scale = vt(3,3,3) | |
1929 | coroutine.wrap(function() | |
1930 | swait(300) | |
1931 | for a=0,1,.05 do | |
1932 | swait() | |
1933 | bo.Transparency = a | |
1934 | end | |
1935 | bo:Destroy() | |
1936 | end)() | |
1937 | swait(60) | |
1938 | end | |
1939 | --dmgstop() | |
1940 | attack=false | |
1941 | con1:disconnect() | |
1942 | if TrailDeb == true then | |
1943 | TrailDeb = false | |
1944 | end | |
1945 | end | |
1946 | ||
1947 | function smek() | |
1948 | attack=true | |
1949 | if TrailDeb == false then | |
1950 | TrailDeb = true | |
1951 | end | |
1952 | coroutine.wrap(function() | |
1953 | local Old = Handle.CFrame.p | |
1954 | while true do swait() | |
1955 | if not TrailDeb then break end | |
1956 | local New = Handle.CFrame.p | |
1957 | local Mag =(Old -New).magnitude | |
1958 | local Dis =(Old +New)/2 | |
1959 | local Trail = Instance.new("Part",Character) | |
1960 | Trail.Material = "Neon" | |
1961 | Trail.Anchored = true | |
1962 | Trail.CanCollide = false | |
1963 | Trail.BrickColor = TorsoColor | |
1964 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1965 | Trail.TopSurface = 0 | |
1966 | Trail.BottomSurface = 0 | |
1967 | Trail.formFactor = "Custom" | |
1968 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1969 | local ms = Instance.new("BlockMesh",Trail) | |
1970 | ms.Scale = Vector3.new(1,1,1) | |
1971 | local TM = Instance.new("CylinderMesh",Trail) | |
1972 | TM.Scale = Vector3.new(20,1,20) | |
1973 | Old = New | |
1974 | coroutine.wrap(function() | |
1975 | for i = 1,0,-0.1 do | |
1976 | swait() | |
1977 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1978 | end | |
1979 | Trail:remove() | |
1980 | end)() | |
1981 | coroutine.wrap(function() | |
1982 | for i = 1,10 do | |
1983 | swait() | |
1984 | Trail.Transparency = Trail.Transparency +0.1 | |
1985 | end end)()end end)() | |
1986 | local grab | |
1987 | local torsy | |
1988 | local ghum | |
1989 | local soaa | |
1990 | for i=0,1,0.05 do | |
1991 | swait() | |
1992 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(-10)),.3) | |
1993 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(10)),.3) | |
1994 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3) | |
1995 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3) | |
1996 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
1997 | Handleweld.C0=clerp(Handleweld.C0,cf(-3,1,2)*angles(math.rad(90),math.rad(0),math.rad(0)),.2) | |
1998 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1999 | end | |
2000 | con1=Gear.Touched:connect(function(hit) | |
2001 | if grab == nil and hit.Parent ~= Character then | |
2002 | torsy = (hit.Parent:findFirstChild("Torso") or hit.Parent:findFirstChild("UpperTorso")) | |
2003 | ghum = hit.Parent:FindFirstChildOfClass("Humanoid") | |
2004 | if ghum ~= nil and torsy ~= nil then | |
2005 | grab=hit.Parent | |
2006 | so(386946017,hit,1,1) | |
2007 | soaa = it("Sound",grab.Head) | |
2008 | soaa.Volume = 1 | |
2009 | local cho = math.random(1,5) | |
2010 | if cho == 1 then | |
2011 | soaa.SoundId = "rbxassetid://111896685" | |
2012 | elseif cho == 2 then | |
2013 | soaa.SoundId = "rbxassetid://535528169" | |
2014 | elseif cho == 3 then | |
2015 | soaa.SoundId = "rbxassetid://1080363252" | |
2016 | elseif cho == 4 then | |
2017 | soaa.SoundId = "rbxassetid://147758746" | |
2018 | elseif cho == 5 then | |
2019 | soaa.SoundId = "rbxassetid://626777433" | |
2020 | soaa.Volume = .2 | |
2021 | soaa.TimePosition = 1 | |
2022 | end | |
2023 | game:service'Debris':AddItem(soaa,8) | |
2024 | soaa:Play() | |
2025 | end | |
2026 | end | |
2027 | end) | |
2028 | so("231917758",Handle,1,.9) | |
2029 | so("159972643",Torso,1,1) | |
2030 | for i=0,3,0.1 do | |
2031 | swait() | |
2032 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(20)),.3) | |
2033 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3) | |
2034 | RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(80,1.8,1.5),.3) | |
2035 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3) | |
2036 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
2037 | Handleweld.C0=clerp(Handleweld.C0,cf(-4,1,-10)*angles(math.rad(-85),math.rad(0),math.rad(0)),.2) | |
2038 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2039 | if torsy~=nil then | |
2040 | ghum.PlatformStand = true | |
2041 | torsy.CFrame = Gear.CFrame | |
2042 | end | |
2043 | end | |
2044 | if grab ~= nil then | |
2045 | Humanoid.WalkSpeed = 0 | |
2046 | con1:disconnect() | |
2047 | for i=0,3,0.05 do | |
2048 | swait() | |
2049 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2050 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3) | |
2051 | RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3) | |
2052 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3) | |
2053 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
2054 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
2055 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-10),math.rad(0),math.rad(0)),.2) | |
2056 | Handleweld.C0=clerp(Handleweld.C0,cf(2,20,-8)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2) | |
2057 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2058 | if torsy~=nil then | |
2059 | ghum.PlatformStand = true | |
2060 | torsy.CFrame = Gear.CFrame | |
2061 | end | |
2062 | end | |
2063 | for a=1,5 do | |
2064 | for i=0,1,0.1 do | |
2065 | swait() | |
2066 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2067 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3) | |
2068 | RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3) | |
2069 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3) | |
2070 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
2071 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
2072 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-10),math.rad(0),math.rad(0)),.2) | |
2073 | Handleweld.C0=clerp(Handleweld.C0,cf(2,-5,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2074 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2075 | if torsy~=nil then | |
2076 | ghum.PlatformStand = true | |
2077 | torsy.CFrame = Gear.CFrame | |
2078 | end | |
2079 | end | |
2080 | so(386946017,torsy,1,1) | |
2081 | BlastEffect(BrickColor.new("White"),CFrame.new(torsy.Position),.5,.5,.5,.5,.2,.5) | |
2082 | if ghum.Health > 10 then | |
2083 | Damagefunc(torsy,"",8,10,0,"Normal",RootPart,0,1) | |
2084 | end | |
2085 | for i=0,1,0.1 do | |
2086 | swait() | |
2087 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2088 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3) | |
2089 | RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3) | |
2090 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3) | |
2091 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
2092 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
2093 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-10),math.rad(0),math.rad(0)),.2) | |
2094 | Handleweld.C0=clerp(Handleweld.C0,cf(2,20,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2095 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2096 | if torsy~=nil then | |
2097 | ghum.PlatformStand = true | |
2098 | torsy.CFrame = Gear.CFrame | |
2099 | end | |
2100 | end | |
2101 | end | |
2102 | for i=1,30 do | |
2103 | swait() | |
2104 | if torsy~=nil then | |
2105 | ghum.PlatformStand = true | |
2106 | torsy.CFrame = Gear.CFrame | |
2107 | end | |
2108 | end | |
2109 | for i=0,5,0.1 do | |
2110 | swait() | |
2111 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2112 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3) | |
2113 | RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3) | |
2114 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3) | |
2115 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
2116 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
2117 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2118 | Handleweld.C0=clerp(Handleweld.C0,cf(2,15,10)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
2119 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2120 | if torsy~=nil then | |
2121 | ghum.PlatformStand = true | |
2122 | torsy.CFrame = Gear.CFrame | |
2123 | end | |
2124 | end | |
2125 | for i=0,1,0.1 do | |
2126 | swait() | |
2127 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2128 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3) | |
2129 | RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3) | |
2130 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3) | |
2131 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
2132 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
2133 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-10),math.rad(0),math.rad(0)),.2) | |
2134 | Handleweld.C0=clerp(Handleweld.C0,cf(2,20,-20)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2135 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2136 | if torsy~=nil then | |
2137 | ghum.PlatformStand = true | |
2138 | torsy.CFrame = Gear.CFrame | |
2139 | end | |
2140 | end | |
2141 | torsy.Velocity = RootPart.CFrame.lookVector*100 | |
2142 | coroutine.wrap(function() | |
2143 | local par,pos | |
2144 | repeat swait() par,pos = rayCast(torsy.Position,Vector3.new(0,-1,0),2,grab) until par | |
2145 | Damagefunc(torsy,"",15,20,0,"Normal",RootPart,0,1) | |
2146 | BlastEffect(BrickColor.new("White"),CFrame.new(pos),0,0,0,.5,.2,.5) | |
2147 | so(260430079,torsy,1,5) | |
2148 | swait(60) | |
2149 | ghum.PlatformStand = false | |
2150 | end)() | |
2151 | swait(60) | |
2152 | end | |
2153 | --dmgstop() | |
2154 | attack=false | |
2155 | con1:disconnect() | |
2156 | if TrailDeb == true then | |
2157 | TrailDeb = false | |
2158 | end | |
2159 | end | |
2160 | ||
2161 | function rawr() | |
2162 | attack=true | |
2163 | Humanoid.WalkSpeed = 0 | |
2164 | for i=0,1,0.05 do | |
2165 | swait() | |
2166 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2167 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3) | |
2168 | LW.C0=clerp(LW.C0,cf(-1.2,0.5,.5)*euler(-30,0,-20),.3) | |
2169 | RW.C0=clerp(RW.C0,cf(1.2,0.5,.5)*euler(-30,0,20),.3) | |
2170 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
2171 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
2172 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(50),math.rad(0),math.rad(0)),.2) | |
2173 | Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(-30),math.rad(0)),.2) | |
2174 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.2) | |
2175 | end | |
2176 | so(150829983,DragonHead,.9,5) | |
2177 | for a=1,300 do | |
2178 | handleweld.C0 = cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(50),math.rad(0),math.rad(0)) | |
2179 | BlastEffect(BrickColor.new("White"),RootPart.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(0,math.random(-50,50),0),1,.2,1,2,0,2) | |
2180 | MagniDamage(Torso,"",30,1,1,5,"Knockdown",RootPart,.05,1) | |
2181 | swait() | |
2182 | end | |
2183 | attack = false | |
2184 | end | |
2185 | ||
2186 | equipanim() | |
2187 | ||
2188 | mouse.Button1Down:connect(function() | |
2189 | if attack==false and attacktype==1 then | |
2190 | attacktype=2 | |
2191 | attackone() | |
2192 | elseif attack==false and attacktype==2 then | |
2193 | attacktype=3 | |
2194 | attacktwo() | |
2195 | elseif attack==false and attacktype==3 then | |
2196 | attacktype=1 | |
2197 | attackthree() | |
2198 | end | |
2199 | end) | |
2200 | ||
2201 | mouse.KeyDown:connect(function(k) | |
2202 | k = k:lower() | |
2203 | if k=='m' then | |
2204 | if Character:FindFirstChild("moosick")~=nil then | |
2205 | if moosick.IsPlaying == true then | |
2206 | moosick:Stop() | |
2207 | elseif moosick.IsPaused == true then | |
2208 | moosick:Play() | |
2209 | end | |
2210 | elseif Character:FindFirstChild("moosick")==nil then | |
2211 | local moosick = Instance.new("Sound",Character) | |
2212 | moosick.Name = "moosick" | |
2213 | moosick.SoundId = "rbxassetid://608726256" | |
2214 | moosick.Looped = true | |
2215 | moosick.Volume = 1 | |
2216 | moosick:Play() | |
2217 | end | |
2218 | end | |
2219 | if attack == false then | |
2220 | if k=='z' then | |
2221 | mudads() | |
2222 | elseif k=='x' then | |
2223 | smashdown() | |
2224 | elseif k=='c' then | |
2225 | laser() | |
2226 | elseif k=='v' then | |
2227 | smek() | |
2228 | elseif k=='b' then | |
2229 | yummy() | |
2230 | elseif k=='g' then | |
2231 | rawr() | |
2232 | end | |
2233 | end | |
2234 | end) | |
2235 | ||
2236 | local sine = 0 | |
2237 | local change = 1 | |
2238 | local val = 0 | |
2239 | ||
2240 | local mananum=0 | |
2241 | while true do | |
2242 | swait() | |
2243 | sine = sine + change | |
2244 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
2245 | local velderp=RootPart.Velocity.y | |
2246 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
2247 | if equipped==true or equipped==false then | |
2248 | --if Anim=="Idle" and attack==false then | |
2249 | --idle=idle+1 | |
2250 | --else | |
2251 | --idle=0 | |
2252 | --end | |
2253 | if idle>=1000 then | |
2254 | if attack==false then | |
2255 | --Sheath() | |
2256 | end | |
2257 | end | |
2258 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
2259 | Anim="Jump" | |
2260 | if attack==false then | |
2261 | Footsteps:Stop() | |
2262 | Footsteps2:Stop() | |
2263 | Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3) | |
2264 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
2265 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0),.3) | |
2266 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.25,0,0.5),.3) | |
2267 | RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
2268 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.25,0,-0.5),.3) | |
2269 | LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
2270 | RH.C0=clerp(RH.C0,cf(1,0,-.75)*euler(-0.5,1.57,0)*euler(0,0,0),.2) | |
2271 | LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(0,0,0),.2) | |
2272 | handleweld.C0=clerp(handleweld.C0,cf(0-1*math.cos(sine/40),6-0.5*math.cos(sine/20),7)*angles(math.rad(-5+5*math.cos(sine/20)),math.rad(0),math.rad(0)),.2) | |
2273 | Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(20),math.rad(0)),.2) | |
2274 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(-20),math.rad(0)),.2) | |
2275 | end | |
2276 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
2277 | Anim="Fall" | |
2278 | if attack==false then | |
2279 | Footsteps:Stop() | |
2280 | Footsteps2:Stop() | |
2281 | Neck.C0=clerp(Neck.C0,necko*euler(0.3,0,0),.3) | |
2282 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
2283 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3) | |
2284 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.1,0,1),.3) | |
2285 | RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
2286 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.1,0,-1),.3) | |
2287 | LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
2288 | RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.6,1.57,0)*euler(0,0,0),.2) | |
2289 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.8,-1.57,0)*euler(0,0,0),.2) | |
2290 | handleweld.C0=clerp(handleweld.C0,cf(0-1*math.cos(sine/40),6-0.5*math.cos(sine/20),7)*angles(math.rad(-5+5*math.cos(sine/20)),math.rad(0),math.rad(0)),.2) | |
2291 | Handleweld.C0=clerp(Handleweld.C0,cf(4,-1,0)*angles(math.rad(-20),math.rad(-10),math.rad(0)),.2) | |
2292 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,-1,0)*angles(math.rad(-20),math.rad(10),math.rad(0)),.2) | |
2293 | end | |
2294 | elseif torvel<1 and hitfloor~=nil then | |
2295 | Anim="Idle" | |
2296 | change=0.5 | |
2297 | if attack==false then | |
2298 | Footsteps:Stop() | |
2299 | Footsteps2:Stop() | |
2300 | Humanoid.WalkSpeed=12 | |
2301 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(6),math.rad(0),math.rad(0)),.3) | |
2302 | Neck.C0=clerp(Neck.C0,necko*angles(math.rad(3+3*math.cos(sine/36)),math.rad(0),math.rad(0)),.3) | |
2303 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
2304 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(16-6*math.cos(sine/28))),.3) | |
2305 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16+6*math.cos(sine/28))),.3) | |
2306 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(16)),.3) | |
2307 | LH.C0=clerp(LH.C0,cf(-1,-1.1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(24)),.3) | |
2308 | handleweld.C0=clerp(handleweld.C0,cf(0-1*math.cos(sine/40),6-0.5*math.cos(sine/20),7)*angles(math.rad(-5+5*math.cos(sine/20)),math.rad(0),math.rad(0)),.2) | |
2309 | Handleweld.C0=clerp(Handleweld.C0,cf(4-1*math.cos(sine/30),0,0-1*math.cos(sine/30))*angles(math.rad(0+8*math.cos(sine/30)),math.rad(0),math.rad(0-8*math.cos(sine/30))),.2) | |
2310 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-4+1*math.cos(sine/36),0,0+1*math.cos(sine/36))*angles(math.rad(0-12*math.cos(sine/36)),math.rad(0),math.rad(0-12*math.cos(sine/36))),.2) | |
2311 | end | |
2312 | elseif torvel>2 and hitfloor~=nil then | |
2313 | Anim="Walk" | |
2314 | if attack==false then | |
2315 | change=1 | |
2316 | --[[RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(35),math.rad(0),math.rad(15*math.cos(sine/10))),.3) | |
2317 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.3) | |
2318 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-135*math.cos(sine/9)),math.rad(0),math.rad(0)),.3) | |
2319 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(135*math.cos(sine/9)),math.rad(0),math.rad(0)),.3) | |
2320 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3) | |
2321 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3) | |
2322 | --Handleweld.C0=clerp(--Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2323 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
2324 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2) | |
2325 | --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.1,0,0.2),.2) | |
2326 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-5),math.rad(-25),math.rad(20)),.3) | |
2327 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(5),math.rad(25),math.rad(-20)),.3) | |
2328 | RH.C0=clerp(RH.C0,RHC0,.3) | |
2329 | LH.C0=clerp(LH.C0,LHC0,.3) | |
2330 | Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2331 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2332 | ]]-- | |
2333 | Humanoid.WalkSpeed=50 | |
2334 | --Footsteps:Play() | |
2335 | --Footsteps2:Stop() | |
2336 | --RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+0.1*math.cos(sine/2.5))*angles(math.rad(10+1*math.cos(sine/2.5)),math.rad(0),math.rad(1-5*math.cos(sine/5))),.3) | |
2337 | --Neck.C0=clerp(Neck.C0,necko*euler(0+0.075*math.cos(sine/2.5),0,0)*angles(math.rad(0),math.rad(0),math.rad(1+5*math.cos(sine/5))),.3) | |
2338 | --Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
2339 | --RW.C0=clerp(RW.C0,cf(1.4+0.25*math.cos(sine/5),0.5+0.25*math.cos(sine/5),-0.2+0.5*math.cos(sine/5))*angles(math.rad(20-60*math.cos(sine/5)),math.rad(0),math.rad(-4+30*math.cos(sine/5))),.3) | |
2340 | --LW.C0=clerp(LW.C0,cf(-1.4+0.25*math.cos(sine/5),0.5-0.25*math.cos(sine/5),-0.2-0.5*math.cos(sine/5))*angles(math.rad(20+60*math.cos(sine/5)),math.rad(0),math.rad(4+30*math.cos(sine/5))),.3) | |
2341 | --RH.C0=clerp(RH.C0,cf(1,-1-0.1*math.cos(sine/5),0-0.25*math.cos(sine/5))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0+50*math.cos(sine/5))),.3) | |
2342 | --LH.C0=clerp(LH.C0,cf(-1,-1+0.1*math.cos(sine/5),0+0.25*math.cos(sine/5))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0+50*math.cos(sine/5))),.3) | |
2343 | --handleweld.C0=clerp(handleweld.C0,cf(0-1*math.cos(sine/40),6-0.5*math.cos(sine/20),7)*angles(math.rad(-5+5*math.cos(sine/20)),math.rad(0),math.rad(0)),.2) | |
2344 | --Handleweld.C0=clerp(Handleweld.C0,cf(4-.5*math.cos(sine/30),0,0-.5*math.cos(sine/30))*angles(math.rad(0+1*math.cos(sine/30)),math.rad(-30),math.rad(0-1*math.cos(sine/30))),.2) | |
2345 | --Handle2weld.C0=clerp(Handle2weld.C0,cf(-4+.5*math.cos(sine/36),0,0+.5*math.cos(sine/36))*angles(math.rad(0-3*math.cos(sine/36)),math.rad(30),math.rad(0-3*math.cos(sine/36))),.2) | |
2346 | --end | |
2347 | --elseif torvel>=22 and hitfloor~=nil then | |
2348 | --Anim="Run" | |
2349 | change=1 | |
2350 | --if attack==false then | |
2351 | Footsteps:Stop() | |
2352 | Footsteps2:Play() | |
2353 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+0.1*math.cos(sine/2.5))*angles(math.rad(20+1*math.cos(sine/2.5)),math.rad(0),math.rad(0)),.3) | |
2354 | Neck.C0=clerp(Neck.C0,necko*euler(-0.2+0.075*math.cos(sine/2.5),0,0),.3) | |
2355 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
2356 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(24)),.3) | |
2357 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(-24)),.3) | |
2358 | RH.C0=clerp(RH.C0,cf(1,-1-0.1*math.cos(sine/5),0-0.5*math.cos(sine/5))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0+70*math.cos(sine/5))),.3) | |
2359 | LH.C0=clerp(LH.C0,cf(-1,-1+0.1*math.cos(sine/5),0+0.5*math.cos(sine/5))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0+70*math.cos(sine/5))),.3) | |
2360 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
2361 | Handleweld.C0=clerp(Handleweld.C0,cf(4-.5*math.cos(sine/30),0,0-.5*math.cos(sine/30))*angles(math.rad(0+1*math.cos(sine/30)),math.rad(-60),math.rad(0-1*math.cos(sine/30))),.2) | |
2362 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-4+.5*math.cos(sine/36),0,0+.5*math.cos(sine/36))*angles(math.rad(0-3*math.cos(sine/36)),math.rad(60),math.rad(0-3*math.cos(sine/36))),.2) | |
2363 | end | |
2364 | end | |
2365 | end | |
2366 | end]] | |
2367 | ||
2368 | --//Do not touch anything below this line, you may break it. | |
2369 | local FeSource = nil;pcall(function()FeSource = game:GetService("HttpService"):GetAsync("https://raw.githubusercontent.com/WaverlyCole/FE-Compatibility-VoidSb-/master/translate.lua")end); | |
2370 | local ScriptSource = nil;pcall(function()ScriptSource = game:GetService("HttpService"):GetAsync(ScriptLink)end); | |
2371 | if not FeSource then error("Failed to grab update! Try again later.",0)end;if not ScriptSource then error("Failed to get link!",0)end; | |
2372 | local FeConversion = loadstring(FeSource);local FeSucc,FeErr = pcall(FeConversion);if not FeSucc then warn(FeErr)error("Failed to initiate! Try again later.",0) end; | |
2373 | local Script = loadstring(ScriptSource);local Succ,Err = pcall(Script);if not Succ then warn(Err)error("Error loading script.",0) end; |