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