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