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