SHOW:
|
|
- or go back to the newest paste.
1 | - | Player = game.Players.LocalPlayer |
1 | + | |
2 | - | Character = Player.Character |
2 | + | |
3 | - | local txt = Instance.new("BillboardGui", Character) |
3 | + | |
4 | - | txt.Adornee = Character.Head |
4 | + | |
5 | - | txt.Name = "_status" |
5 | + | |
6 | - | txt.Size = UDim2.new(2, 0, 1.2, 0) |
6 | + | |
7 | - | txt.StudsOffset = Vector3.new(-9, 8, 0) |
7 | + | |
8 | - | local text = Instance.new("TextLabel", txt) |
8 | + | |
9 | - | text.Size = UDim2.new(10, 0, 7, 0) |
9 | + | |
10 | - | text.FontSize = "Size24" |
10 | + | |
11 | - | text.TextScaled = true |
11 | + | |
12 | - | text.TextTransparency = 0 |
12 | + | |
13 | - | text.BackgroundTransparency = 1 |
13 | + | |
14 | - | text.TextTransparency = 0 |
14 | + | |
15 | - | text.TextStrokeTransparency = 0 |
15 | + | |
16 | - | text.Font = "Antique" |
16 | + | |
17 | - | text.TextStrokeColor3 = Color3.new(0,1,0) |
17 | + | |
18 | - | text.Text = "Meme Gun" |
18 | + | |
19 | Neck=Torso.Neck | |
20 | it=Instance.new | |
21 | attacktype=1 | |
22 | vt=Vector3.new | |
23 | cf=CFrame.new | |
24 | euler=CFrame.fromEulerAnglesXYZ | |
25 | angles=CFrame.Angles | |
26 | cloaked=false | |
27 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
28 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
29 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
30 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
31 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
32 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
33 | RootPart=Character.HumanoidRootPart | |
34 | RootJoint=RootPart.RootJoint | |
35 | RootCF=euler(-1.57,0,3.14) | |
36 | attack = false | |
37 | attackdebounce = false | |
38 | deb=false | |
39 | equipped=true | |
40 | hand=false | |
41 | MMouse=nil | |
42 | combo=0 | |
43 | mana=0 | |
44 | trispeed=1 | |
45 | pathtrans=.7 | |
46 | attackmode='none' | |
47 | local idle=0 | |
48 | local Anim="Idle" | |
49 | local Effects={} | |
50 | local gun=false | |
51 | local shoot=false | |
52 | player=nil | |
53 | cloak=false | |
54 | lightcolor='Really red' | |
55 | ||
56 | local Color1=Torso.BrickColor | |
57 | ||
58 | local fengui=it("GuiMain") | |
59 | fengui.Parent=Player.PlayerGui | |
60 | fengui.Name="WeaponGUI" | |
61 | local fenframe=it("Frame") | |
62 | fenframe.Parent=fengui | |
63 | fenframe.BackgroundColor3=Color3.new(255,255,255) | |
64 | fenframe.BackgroundTransparency=1 | |
65 | fenframe.BorderColor3=Color3.new(17,17,17) | |
66 | fenframe.Size=UDim2.new(0.0500000007, 0, 0.100000001, 0) | |
67 | fenframe.Position=UDim2.new(0.4,0,0.1,0) | |
68 | local fenbarmana1=it("TextLabel") | |
69 | fenbarmana1.Parent=fenframe | |
70 | fenbarmana1.Text=" " | |
71 | fenbarmana1.BackgroundTransparency=0 | |
72 | fenbarmana1.BackgroundColor3=Color3.new(0,0,0) | |
73 | fenbarmana1.SizeConstraint="RelativeXY" | |
74 | fenbarmana1.TextXAlignment="Center" | |
75 | fenbarmana1.TextYAlignment="Center" | |
76 | fenbarmana1.Position=UDim2.new(0,0,0,0) | |
77 | fenbarmana1.Size=UDim2.new(4,0,0.2,0) | |
78 | local fenbarmana2=it("TextLabel") | |
79 | fenbarmana2.Parent=fenframe | |
80 | fenbarmana2.Text=" " | |
81 | fenbarmana2.BackgroundTransparency=0 | |
82 | fenbarmana2.BackgroundColor3=Torso.Color | |
83 | fenbarmana2.SizeConstraint="RelativeXY" | |
84 | fenbarmana2.TextXAlignment="Center" | |
85 | fenbarmana2.TextYAlignment="Center" | |
86 | fenbarmana2.Position=UDim2.new(0,0,0,0) | |
87 | fenbarmana2.Size=UDim2.new(4*mana/100,0,0.2,0) | |
88 | local fenbarmana3=it("TextLabel") | |
89 | fenbarmana3.Parent=fenframe | |
90 | fenbarmana3.Text=" " | |
91 | fenbarmana3.BackgroundTransparency=0 | |
92 | fenbarmana3.BackgroundColor3=Color3.new(Col1,Col2,Col3) | |
93 | fenbarmana3.SizeConstraint="RelativeXY" | |
94 | fenbarmana3.TextXAlignment="Center" | |
95 | fenbarmana3.TextYAlignment="Center" | |
96 | fenbarmana3.Position=UDim2.new(0,0,0,0) | |
97 | fenbarmana3.Size=UDim2.new(0,0,0.2,0) | |
98 | local fenbarmana4=it("TextLabel") | |
99 | fenbarmana4.Parent=fenframe | |
100 | fenbarmana4.Text="Energy("..mana..")" | |
101 | fenbarmana4.BackgroundTransparency=1 | |
102 | fenbarmana4.BackgroundColor3=Color3.new(0,0,0) | |
103 | fenbarmana4.SizeConstraint="RelativeXY" | |
104 | fenbarmana4.TextXAlignment="Center" | |
105 | fenbarmana4.TextYAlignment="Center" | |
106 | fenbarmana4.Position=UDim2.new(0,0,-0.3,0) | |
107 | fenbarmana4.Size=UDim2.new(4,0,0.2,0) | |
108 | fenbarmana4.FontSize="Size9" | |
109 | fenbarmana4.TextStrokeTransparency=0 | |
110 | fenbarmana4.TextColor=BrickColor.new("Deep orange") | |
111 | ||
112 | mouse=Player:GetMouse() | |
113 | --save shoulders | |
114 | RSH, LSH=nil, nil | |
115 | --welds | |
116 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
117 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
118 | LH=Torso["Left Hip"] | |
119 | RH=Torso["Right Hip"] | |
120 | TorsoColor=Torso.BrickColor | |
121 | function NoOutline(Part) | |
122 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
123 | end | |
124 | player=Player | |
125 | ch=Character | |
126 | RSH=ch.Torso["Right Shoulder"] | |
127 | LSH=ch.Torso["Left Shoulder"] | |
128 | -- | |
129 | RSH.Parent=nil | |
130 | LSH.Parent=nil | |
131 | -- | |
132 | RW.Name="Right Shoulder" | |
133 | RW.Part0=ch.Torso | |
134 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
135 | RW.C1=cf(0, 0.5, 0) | |
136 | RW.Part1=ch["Right Arm"] | |
137 | RW.Parent=ch.Torso | |
138 | -- | |
139 | LW.Name="Left Shoulder" | |
140 | LW.Part0=ch.Torso | |
141 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
142 | LW.C1=cf(0, 0.5, 0) | |
143 | LW.Part1=ch["Left Arm"] | |
144 | LW.Parent=ch.Torso | |
145 | ||
146 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
147 | local fp=it("Part") | |
148 | fp.formFactor=formfactor | |
149 | fp.Parent=parent | |
150 | fp.Reflectance=reflectance | |
151 | fp.Transparency=transparency | |
152 | fp.CanCollide=false | |
153 | fp.Locked=true | |
154 | fp.BrickColor=brickcolor | |
155 | fp.Name=name | |
156 | fp.Size=size | |
157 | fp.Position=Torso.Position | |
158 | NoOutline(fp) | |
159 | fp.Material="Neon" | |
160 | fp:BreakJoints() | |
161 | return fp | |
162 | end | |
163 | ||
164 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
165 | local mesh=it(Mesh) | |
166 | mesh.Parent=part | |
167 | if Mesh=="SpecialMesh" then | |
168 | mesh.MeshType=meshtype | |
169 | if meshid~="nil" then | |
170 | mesh.MeshId="http://www.roblox.com/asset/?id=439124871"..meshid | |
171 | end | |
172 | end | |
173 | mesh.Offset=offset | |
174 | mesh.Scale=scale | |
175 | return mesh | |
176 | end | |
177 | ||
178 | function weld(parent,part0,part1,c0) | |
179 | local weld=it("Weld") | |
180 | weld.Parent=parent | |
181 | weld.Part0=part0 | |
182 | weld.Part1=part1 | |
183 | weld.C0=c0 | |
184 | return weld | |
185 | end | |
186 | ||
187 | local Color1=Torso.BrickColor | |
188 | ||
189 | local bodvel=Instance.new("BodyVelocity") | |
190 | local bg=Instance.new("BodyGyro") | |
191 | ||
192 | function swait(num) | |
193 | if num==0 or num==nil then | |
194 | game:service'RunService'.Stepped:wait(0) | |
195 | else | |
196 | for i=0,num do | |
197 | game:service'RunService'.Stepped:wait(0) | |
198 | end | |
199 | end | |
200 | end | |
201 | ||
202 | ||
203 | so = function(id,par,vol,pit) | |
204 | coroutine.resume(coroutine.create(function() | |
205 | local sou = Instance.new("Sound",par or workspace) | |
206 | sou.Volume=vol | |
207 | sou.Pitch=pit or 1 | |
208 | sou.SoundId=id | |
209 | swait() | |
210 | sou:play() | |
211 | game:GetService("Debris"):AddItem(sou,6) | |
212 | end)) | |
213 | end | |
214 | ||
215 | function clerp(a,b,t) | |
216 | local qa = {QuaternionFromCFrame(a)} | |
217 | local qb = {QuaternionFromCFrame(b)} | |
218 | local ax, ay, az = a.x, a.y, a.z | |
219 | local bx, by, bz = b.x, b.y, b.z | |
220 | local _t = 1-t | |
221 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
222 | end | |
223 | ||
224 | function QuaternionFromCFrame(cf) | |
225 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
226 | local trace = m00 + m11 + m22 | |
227 | if trace > 0 then | |
228 | local s = math.sqrt(1 + trace) | |
229 | local recip = 0.5/s | |
230 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
231 | else | |
232 | local i = 0 | |
233 | if m11 > m00 then | |
234 | i = 1 | |
235 | end | |
236 | if m22 > (i == 0 and m00 or m11) then | |
237 | i = 2 | |
238 | end | |
239 | if i == 0 then | |
240 | local s = math.sqrt(m00-m11-m22+1) | |
241 | local recip = 0.5/s | |
242 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
243 | elseif i == 1 then | |
244 | local s = math.sqrt(m11-m22-m00+1) | |
245 | local recip = 0.5/s | |
246 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
247 | elseif i == 2 then | |
248 | local s = math.sqrt(m22-m00-m11+1) | |
249 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
250 | end | |
251 | end | |
252 | end | |
253 | ||
254 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
255 | local xs, ys, zs = x + x, y + y, z + z | |
256 | local wx, wy, wz = w*xs, w*ys, w*zs | |
257 | local xx = x*xs | |
258 | local xy = x*ys | |
259 | local xz = x*zs | |
260 | local yy = y*ys | |
261 | local yz = y*zs | |
262 | local zz = z*zs | |
263 | 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)) | |
264 | end | |
265 | ||
266 | function QuaternionSlerp(a, b, t) | |
267 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
268 | local startInterp, finishInterp; | |
269 | if cosTheta >= 0.0001 then | |
270 | if (1 - cosTheta) > 0.0001 then | |
271 | local theta = math.acos(cosTheta) | |
272 | local invSinTheta = 1/math.sin(theta) | |
273 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
274 | finishInterp = math.sin(t*theta)*invSinTheta | |
275 | else | |
276 | startInterp = 1-t | |
277 | finishInterp = t | |
278 | end | |
279 | else | |
280 | if (1+cosTheta) > 0.0001 then | |
281 | local theta = math.acos(-cosTheta) | |
282 | local invSinTheta = 1/math.sin(theta) | |
283 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
284 | finishInterp = math.sin(t*theta)*invSinTheta | |
285 | else | |
286 | startInterp = t-1 | |
287 | finishInterp = t | |
288 | end | |
289 | end | |
290 | 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 | |
291 | end | |
292 | ||
293 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
294 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
295 | end | |
296 | ||
297 | function SkullEffect(brickcolor,cframe,x1,y1,z1,delay) | |
298 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
299 | prt.Anchored=true | |
300 | prt.CFrame=cframe | |
301 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1)) | |
302 | --http://www.roblox.com/asset/?id=4770560 | |
303 | game:GetService("Debris"):AddItem(prt,2) | |
304 | CF=prt.CFrame | |
305 | coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) | |
306 | for i=0,1,0.2 do | |
307 | wait() | |
308 | Part.CFrame=CF*cf(0,0,-0.4) | |
309 | end | |
310 | for i=0,1,delay do | |
311 | wait() | |
312 | --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) | |
313 | Mesh.Scale=Mesh.Scale | |
314 | end | |
315 | for i=0,1,0.1 do | |
316 | wait() | |
317 | Part.Transparency=i | |
318 | end | |
319 | Part.Parent=nil | |
320 | end),prt,msh,CF) | |
321 | end | |
322 | ||
323 | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
324 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
325 | prt.Anchored=true | |
326 | prt.CFrame=cframe | |
327 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
328 | game:GetService("Debris"):AddItem(prt,5) | |
329 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
330 | for i=0,1,delay do | |
331 | wait() | |
332 | Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
333 | Part.Transparency=i | |
334 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
335 | end | |
336 | Part.Parent=nil | |
337 | end),prt,msh) | |
338 | end | |
339 | ||
340 | function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
341 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
342 | prt.Anchored=false | |
343 | prt.CFrame=cframe | |
344 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
345 | local wld=weld(prt,prt,Parent,cframe) | |
346 | game:GetService("Debris"):AddItem(prt,5) | |
347 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
348 | for i=0,1,delay do | |
349 | wait() | |
350 | Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe | |
351 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
352 | Part.Transparency=i | |
353 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
354 | end | |
355 | Part.Parent=nil | |
356 | end),prt,msh,wld) | |
357 | end | |
358 | ||
359 | function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
360 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
361 | prt.Anchored=false | |
362 | prt.CFrame=cframe | |
363 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
364 | local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0)) | |
365 | game:GetService("Debris"):AddItem(prt,5) | |
366 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
367 | for i=0,1,delay do | |
368 | wait() | |
369 | Weld.C0=euler(i*20,0,0) | |
370 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
371 | Part.Transparency=i | |
372 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
373 | end | |
374 | Part.Parent=nil | |
375 | end),prt,msh,wld) | |
376 | end | |
377 | ||
378 | function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
379 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
380 | prt.Anchored=true | |
381 | prt.CFrame=cframe | |
382 | local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
383 | game:GetService("Debris"):AddItem(prt,2) | |
384 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
385 | for i=0,1,delay do | |
386 | wait() | |
387 | Part.CFrame=Part.CFrame | |
388 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
389 | local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
390 | prt2.Anchored=true | |
391 | prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
392 | local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5)) | |
393 | game:GetService("Debris"):AddItem(prt2,2) | |
394 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
395 | for i=0,1,0.1 do | |
396 | wait() | |
397 | Part.CFrame=Part.CFrame*cf(0,0.5,0) | |
398 | end | |
399 | Part.Parent=nil | |
400 | end),prt2,msh2) | |
401 | end | |
402 | for i=0,1,delay*2 do | |
403 | wait() | |
404 | Part.CFrame=Part.CFrame | |
405 | Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i) | |
406 | end | |
407 | Part.Parent=nil | |
408 | end),prt,msh) | |
409 | end | |
410 | ||
411 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
412 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
413 | prt.Anchored=true | |
414 | prt.CFrame=cframe | |
415 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
416 | game:GetService("Debris"):AddItem(prt,2) | |
417 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
418 | for i=0,1,delay do | |
419 | wait() | |
420 | Part.CFrame=Part.CFrame | |
421 | Part.Transparency=i | |
422 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
423 | end | |
424 | Part.Parent=nil | |
425 | end),prt,msh) | |
426 | end | |
427 | ||
428 | function MagicRing(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3) | |
429 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
430 | prt.Anchored=true | |
431 | prt.CFrame=cframe*euler(x2,y2,z2) | |
432 | --"http://www.roblox.com/asset/?id=168892465" | |
433 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1)) | |
434 | game:GetService("Debris"):AddItem(prt,2) | |
435 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
436 | for i=0,1,0.03 do | |
437 | wait() | |
438 | Part.CFrame=Part.CFrame | |
439 | Part.Transparency=i | |
440 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
441 | end | |
442 | Part.Parent=nil | |
443 | end),prt,msh) | |
444 | end | |
445 | ||
446 | function BreakEffect(brickcolor,cframe,x1,y1,z1) | |
447 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
448 | prt.Anchored=true | |
449 | prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
450 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
451 | game:GetService("Debris"):AddItem(prt,2) | |
452 | coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) | |
453 | CF=Part.CFrame | |
454 | Numbb=0 | |
455 | randnumb=math.random()/10 | |
456 | rand1=math.random()/10 | |
457 | for i=0,1,rand1 do | |
458 | wait() | |
459 | CF=CF*cf(0,math.random()/2,0) | |
460 | --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0) | |
461 | Part.CFrame=CF*euler(Numbb,0,0) | |
462 | Part.Transparency=i | |
463 | Numbb=Numbb+randnumb | |
464 | end | |
465 | Part.Parent=nil | |
466 | end),prt,CF,Numbb,randnumb) | |
467 | end | |
468 | ||
469 | function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
470 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
471 | prt.Anchored=true | |
472 | prt.CFrame=cframe | |
473 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1)) | |
474 | game:GetService("Debris"):AddItem(prt,5) | |
475 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
476 | for i=0,1,delay do | |
477 | wait() | |
478 | Part.CFrame=Part.CFrame*euler(0,0.7,0) | |
479 | Part.Transparency=i | |
480 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
481 | end | |
482 | Part.Parent=nil | |
483 | end),prt,msh) | |
484 | end | |
485 | ||
486 | function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
487 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
488 | prt.Anchored=true | |
489 | prt.CFrame=cframe | |
490 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1)) | |
491 | game:GetService("Debris"):AddItem(prt,2) | |
492 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
493 | for i=0,1,delay do | |
494 | wait() | |
495 | Part.CFrame=Part.CFrame*cf(0,y3/2,0) | |
496 | Part.Transparency=i | |
497 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
498 | end | |
499 | Part.Parent=nil | |
500 | end),prt,msh) | |
501 | end | |
502 | ||
503 | function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay) | |
504 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
505 | prt.Anchored=true | |
506 | prt.CFrame=cframe*cf(x,y,z) | |
507 | msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1)) | |
508 | game:GetService("Debris"):AddItem(prt,5) | |
509 | coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee) | |
510 | local num=math.random() | |
511 | local num2=math.random(-3,2)+math.random() | |
512 | local numm=0 | |
513 | for i=0,1,delay*2 do | |
514 | swait() | |
515 | Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0) | |
516 | Part.Transparency=i | |
517 | numm=numm+0.01 | |
518 | end | |
519 | Part.Parent=nil | |
520 | Mesh.Parent=nil | |
521 | end),prt,msh,x,y,z) | |
522 | end | |
523 | ||
524 | Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
525 | if hit.Parent==nil then | |
526 | return | |
527 | end | |
528 | h=hit.Parent:FindFirstChild("Humanoid") | |
529 | for _,v in pairs(hit.Parent:children()) do | |
530 | if v:IsA("Humanoid") then | |
531 | h=v | |
532 | end | |
533 | end | |
534 | if hit.Parent.Parent:FindFirstChild("Torso")~=nil then | |
535 | h=hit.Parent.Parent:FindFirstChild("Humanoid") | |
536 | end | |
537 | if hit.Parent.className=="Hat" then | |
538 | hit=hit.Parent.Parent:findFirstChild("Head") | |
539 | end | |
540 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then | |
541 | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end | |
542 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
543 | return | |
544 | end]] | |
545 | -- hs(hit,1.2) | |
546 | c=Instance.new("ObjectValue") | |
547 | c.Name="creator" | |
548 | c.Value=game:service("Players").LocalPlayer | |
549 | c.Parent=h | |
550 | game:GetService("Debris"):AddItem(c,.5) | |
551 | Damage=math.random(minim,maxim) | |
552 | -- h:TakeDamage(Damage) | |
553 | blocked=false | |
554 | block=hit.Parent:findFirstChild("Block") | |
555 | if block~=nil then | |
556 | print(block.className) | |
557 | if block.className=="NumberValue" then | |
558 | if block.Value>0 then | |
559 | blocked=true | |
560 | if decreaseblock==nil then | |
561 | block.Value=block.Value-1 | |
562 | end | |
563 | end | |
564 | end | |
565 | if block.className=="IntValue" then | |
566 | if block.Value>0 then | |
567 | blocked=true | |
568 | if decreaseblock~=nil then | |
569 | block.Value=block.Value-1 | |
570 | end | |
571 | end | |
572 | end | |
573 | end | |
574 | if blocked==false then | |
575 | -- h:TakeDamage(Damage) | |
576 | h.Health=h.Health-Damage | |
577 | showDamage(hit.Parent,Damage,.5,TorsoColor) | |
578 | else | |
579 | h.Health=h.Health-(Damage/2) | |
580 | showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue")) | |
581 | end | |
582 | if Type=="Knockdown" then | |
583 | hum=hit.Parent.Humanoid | |
584 | hum.PlatformStand=true | |
585 | coroutine.resume(coroutine.create(function(HHumanoid) | |
586 | swait(1) | |
587 | HHumanoid.PlatformStand=false | |
588 | end),hum) | |
589 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
590 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
591 | local bodvol=Instance.new("BodyVelocity") | |
592 | bodvol.velocity=angle*knockback | |
593 | bodvol.P=5000 | |
594 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
595 | bodvol.Parent=hit | |
596 | rl=Instance.new("BodyAngularVelocity") | |
597 | rl.P=3000 | |
598 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
599 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
600 | rl.Parent=hit | |
601 | game:GetService("Debris"):AddItem(bodvol,.5) | |
602 | game:GetService("Debris"):AddItem(rl,.5) | |
603 | elseif Type=="Normal" then | |
604 | vp=Instance.new("BodyVelocity") | |
605 | vp.P=500 | |
606 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
607 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
608 | if KnockbackType==1 then | |
609 | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
610 | elseif KnockbackType==2 then | |
611 | vp.velocity=Property.CFrame.lookVector*knockback | |
612 | end | |
613 | if knockback>0 then | |
614 | vp.Parent=hit.Parent.Torso | |
615 | end | |
616 | game:GetService("Debris"):AddItem(vp,.5) | |
617 | elseif Type=="Up" then | |
618 | local bodyVelocity=Instance.new("BodyVelocity") | |
619 | bodyVelocity.velocity=vt(0,10,0) | |
620 | bodyVelocity.P=1000 | |
621 | bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009) | |
622 | bodyVelocity.Parent=hit | |
623 | game:GetService("Debris"):AddItem(bodyVelocity,1) | |
624 | rl=Instance.new("BodyAngularVelocity") | |
625 | rl.P=3000 | |
626 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
627 | rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) | |
628 | rl.Parent=hit | |
629 | game:GetService("Debris"):AddItem(rl,.5) | |
630 | elseif Type=="Snare" then | |
631 | bp=Instance.new("BodyPosition") | |
632 | bp.P=2000 | |
633 | bp.D=100 | |
634 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
635 | bp.position=hit.Parent.Torso.Position | |
636 | bp.Parent=hit.Parent.Torso | |
637 | game:GetService("Debris"):AddItem(bp,1) | |
638 | elseif Type=="Target" then | |
639 | if Targetting==false then | |
640 | ZTarget=hit.Parent.Torso | |
641 | coroutine.resume(coroutine.create(function(Part) | |
642 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) | |
643 | swait(5) | |
644 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) | |
645 | end),ZTarget) | |
646 | TargHum=ZTarget.Parent:findFirstChild("Humanoid") | |
647 | targetgui=Instance.new("BillboardGui") | |
648 | targetgui.Parent=ZTarget | |
649 | targetgui.Size=UDim2.new(10,100,10,100) | |
650 | targ=Instance.new("ImageLabel") | |
651 | targ.Parent=targetgui | |
652 | targ.BackgroundTransparency=1 | |
653 | targ.Image="rbxassetid://4834067" | |
654 | targ.Size=UDim2.new(1,0,1,0) | |
655 | cam.CameraType="Scriptable" | |
656 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
657 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
658 | workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
659 | Targetting=true | |
660 | RocketTarget=ZTarget | |
661 | for i=1,Property do | |
662 | --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do | |
663 | if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then | |
664 | swait() | |
665 | end | |
666 | --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100) | |
667 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
668 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
669 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0) | |
670 | end | |
671 | Targetting=false | |
672 | RocketTarget=nil | |
673 | targetgui.Parent=nil | |
674 | cam.CameraType="Custom" | |
675 | end | |
676 | end | |
677 | debounce=Instance.new("BoolValue") | |
678 | debounce.Name="DebounceHit" | |
679 | debounce.Parent=hit.Parent | |
680 | debounce.Value=true | |
681 | game:GetService("Debris"):AddItem(debounce,Delay) | |
682 | c=Instance.new("ObjectValue") | |
683 | c.Name="creator" | |
684 | c.Value=Player | |
685 | c.Parent=h | |
686 | game:GetService("Debris"):AddItem(c,.5) | |
687 | CRIT=false | |
688 | hitDeb=true | |
689 | AttackPos=6 | |
690 | end | |
691 | end | |
692 | ||
693 | showDamage=function(Char,Dealt,du,Color) | |
694 | m=Instance.new("Model") | |
695 | m.Name=tostring(Dealt) | |
696 | h=Instance.new("Humanoid") | |
697 | h.Health=0 | |
698 | h.MaxHealth=0 | |
699 | h.Parent=m | |
700 | c=Instance.new("Part") | |
701 | c.Transparency=0 | |
702 | c.BrickColor=TorsoColor | |
703 | c.Name="Head" | |
704 | c.TopSurface=0 | |
705 | c.BottomSurface=0 | |
706 | c.formFactor="Plate" | |
707 | c.Size=Vector3.new(1,.4,1) | |
708 | ms=Instance.new("CylinderMesh") | |
709 | ms.Scale=Vector3.new(.8,.8,.8) | |
710 | so("http://www.roblox.com/asset/?id=199149269",c,1,1) | |
711 | if CRIT==true then | |
712 | ms.Scale=Vector3.new(1,1.25,1) | |
713 | end | |
714 | ms.Parent=c | |
715 | c.Reflectance=0 | |
716 | Instance.new("BodyGyro").Parent=c | |
717 | c.Parent=m | |
718 | if Char:findFirstChild("Head")~=nil then | |
719 | c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
720 | elseif Char.Parent:findFirstChild("Head")~=nil then | |
721 | c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
722 | end | |
723 | f=Instance.new("BodyPosition") | |
724 | f.P=2000 | |
725 | f.D=100 | |
726 | f.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
727 | f.position=c.Position+Vector3.new(0,3,0) | |
728 | f.Parent=c | |
729 | game:GetService("Debris"):AddItem(m,.5+du) | |
730 | c.CanCollide=false | |
731 | m.Parent=workspace | |
732 | c.CanCollide=false | |
733 | end | |
734 | ||
735 | Player=game:GetService('Players').LocalPlayer | |
736 | Character=Player.Character | |
737 | Mouse=Player:GetMouse() | |
738 | m=Instance.new('Model',Character) | |
739 | ||
740 | ||
741 | local function weldBetween(a, b) | |
742 | local weldd = Instance.new("ManualWeld") | |
743 | weldd.Part0 = a | |
744 | weldd.Part1 = b | |
745 | weldd.C0 = CFrame.new() | |
746 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
747 | weldd.Parent = a | |
748 | return weldd | |
749 | end | |
750 | ||
751 | it=Instance.new | |
752 | ||
753 | function nooutline(part) | |
754 | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 | |
755 | end | |
756 | ||
757 | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
758 | local fp=it("Part") | |
759 | fp.formFactor=formfactor | |
760 | fp.Parent=parent | |
761 | fp.Reflectance=reflectance | |
762 | fp.Transparency=transparency | |
763 | fp.CanCollide=false | |
764 | fp.Locked=true | |
765 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
766 | fp.Name=name | |
767 | fp.Size=size | |
768 | fp.Position=Character.Torso.Position | |
769 | nooutline(fp) | |
770 | fp.Material=material | |
771 | fp:BreakJoints() | |
772 | return fp | |
773 | end | |
774 | ||
775 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
776 | local mesh=it(Mesh) | |
777 | mesh.Parent=part | |
778 | if Mesh=="SpecialMesh" then | |
779 | mesh.MeshType=meshtype | |
780 | mesh.MeshId=meshid | |
781 | end | |
782 | mesh.Offset=offset | |
783 | mesh.Scale=scale | |
784 | return mesh | |
785 | end | |
786 | ||
787 | function weld(parent,part0,part1,c0,c1) | |
788 | local weld=it("Weld") | |
789 | weld.Parent=parent | |
790 | weld.Part0=part0 | |
791 | weld.Part1=part1 | |
792 | weld.C0=c0 | |
793 | weld.C1=c1 | |
794 | return weld | |
795 | end | |
796 | ||
797 | local modelzorz=Instance.new("Model") | |
798 | modelzorz.Parent=Character | |
799 | modelzorz.Name="Claw1" | |
800 | ||
801 | Handle=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,TorsoColor,"Handle",Vector3.new(1.20000005, 1.20000005, 1)) | |
802 | Handleweld=weld(m,Character["Torso"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.74455023, 0.843135834, 3.31332064, 0.866820872, 0.000393055088, -0.498619556, 0.129048944, -0.966104209, 0.223582461, -0.481630623, -0.258152217, -0.837489963)) | |
803 | mesh("SpecialMesh",Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
804 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
805 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.89693689, 0.0205960274, 1.83752108, 0.00084605813, 0.865680099, -0.500597, -0.999998748, 2.925843e-005, -0.00163948536, -0.00140464306, 0.500597715, 0.865678906)) | |
806 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
807 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0205993652, 3.97038841, -4.62090921, -0.999998689, 2.810359e-005, -0.00163501501, 0.00158691406, 0.25815019, -0.966103554, 0.0003949448, -0.966104805, -0.258149862)) | |
808 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002)) | |
809 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
810 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.18639517, -0.292996764, 3.91572571, -0.407002717, 0.123095758, -0.905094743, -0.483149111, -0.869928718, 0.098949343, -0.775187671, 0.477568328, 0.413536996)) | |
811 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
812 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.62196398, -0.29297936, 1.11572647, -0.835932732, 0.424737811, -0.347583354, -0.483153641, -0.869926155, 0.0989501327, -0.260344028, 0.250651836, 0.932413459)) | |
813 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
814 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.55920649, -0.210347176, 1.642519, -0.865201712, -0.000320911407, -0.501423895, -2.98991799e-005, -0.999999881, 0.000691637397, -0.501424074, 0.000613339245, 0.865201592)) | |
815 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
816 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.931638, -0.0751047134, 4.50077248, -0.352038473, 0.176153034, -0.919260144, -0.86644727, -0.432817101, 0.248874903, -0.354031444, 0.884103954, 0.304995537)) | |
817 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
818 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.34771347, -0.763819337, 1.31078529, 0.484322906, -0.259408951, -0.835546851, 0.129806682, 0.965767562, -0.224595979, 0.865206063, 0.000317394733, 0.501416266)) | |
819 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
820 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.85524988, -0.0749192238, 1.7092638, -0.499263257, 0.749717236, -0.434350491, -0.866449237, -0.432811975, 0.248876765, -0.00140497088, 0.500597596, 0.865678906)) | |
821 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
822 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.76954031, -0.210381031, 4.2438035, -0.257231236, -0.00066010654, -0.966349661, -3.04505229e-005, -0.999999762, 0.000691249967, -0.966350019, 0.000207226723, 0.257231265)) | |
823 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
824 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.87043977, 0.020611763, 4.62094831, 0.00159165263, 0.258152187, -0.966103137, -0.999998748, 2.89455056e-005, -0.00163969398, -0.000395349402, 0.966104329, 0.258151829)) | |
825 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
826 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.292981744, 4.28636312, -3.9157095, -0.48314926, -0.869928479, 0.0989517197, -0.407004297, 0.123094313, -0.905094087, 0.775186777, -0.477569282, -0.413537562)) | |
827 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002)) | |
828 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
829 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.85442352, -0.763632059, 3.85966015, -0.269319534, -0.183654502, -0.945377231, 0.129806384, 0.96576786, -0.22459501, 0.954262853, -0.183203816, -0.236260682)) | |
830 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
831 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0751276016, 4.03159618, -4.50067854, -0.866445661, -0.432817698, 0.248879611, -0.352042913, 0.176151246, -0.919258773, 0.354030937, -0.884103894, -0.304995805)) | |
832 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002)) | |
833 | Gear=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(4.29999971, 4.30000019, 1)) | |
834 | Gearweld=weld(m,Handle,Gear,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0552597046, -0.0398271084, -0.0363032818, 0.999988854, -3.23429704e-005, 0.00164097548, 3.37436795e-005, 0.999994695, -0.000689953566, -0.00164103508, 0.000689953566, 0.999993086)) | |
835 | mesh("SpecialMesh",Gear,Enum.MeshType.FileMesh,"http://www.roblox.com/asset?id=156292343",Vector3.new(0, 0, 0),Vector3.new(5, 5, 15)) | |
836 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
837 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.210398674, 3.86948943, -4.24380398, -3.15159559e-005, -0.999999881, 0.00069090724, -0.257231474, -0.000659480691, -0.966349721, 0.966349959, -0.000208158046, -0.257231474)) | |
838 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002)) | |
839 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
840 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.763661504, 3.95439076, 3.85964441, -0.129806131, -0.965767682, 0.224596098, -0.269319892, -0.1836555, -0.945376873, 0.954262733, -0.183203891, -0.236260891)) | |
841 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002)) | |
842 | ||
843 | local modelzorz2=Instance.new("Model") | |
844 | modelzorz2.Parent=Character | |
845 | modelzorz2.Name="Claw2" | |
846 | ||
847 | Handle2=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,TorsoColor,"Handle",Vector3.new(1.20000005, 1.20000005, 1)) | |
848 | Handle2weld=weld(m,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)) | |
849 | mesh("SpecialMesh",Handle2,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
850 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
851 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.66774845, 0.445008755, 1.50737095, 0.749997497, 0.500002265, -0.433014721, -0.433012635, 0.866024196, 0.250004709, 0.500004232, -2.02655792e-006, 0.866023183)) | |
852 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
853 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.70916891, 0.288796425, 1.12511444, 0.424947768, 0.836517453, -0.34591651, -0.870010257, 0.482961774, 0.0991482884, 0.250003695, 0.25881803, 0.933012009)) | |
854 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
855 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.24143982, 0.288818121, 3.98402214, 0.123706907, 0.408494055, -0.904339194, -0.870007515, 0.482966691, 0.0991476029, 0.477266878, 0.774516642, 0.415139139)) | |
856 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
857 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.288883209, 4.34139919, -3.98407936, -0.870006502, 0.482969046, 0.099145025, 0.123710275, 0.408492953, -0.904339135, -0.477267861, -0.774515808, -0.415139765)) | |
858 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002)) | |
859 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
860 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.377311707, 3.81443644, -4.17874861, 1.43051147e-006, 1.00000012, 5.58793545e-006, 0.258813858, 5.02169132e-006, -0.965927303, -0.965927362, 2.82377005e-006, -0.258813858)) | |
861 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002)) | |
862 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
863 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.11095357, 0.452475548, 3.33581829, 0.214266971, -0.258726388, -0.941886604, 0.124996454, -0.949091196, 0.289140463, -0.968744338, -0.179685742, -0.171018958)) | |
864 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
865 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.445028067, 4.04179811, -4.22505188, -0.433007121, 0.86602807, 0.250001073, 0.176776409, 0.353552371, -0.918559194, -0.883886516, -0.353548348, -0.306183964)) | |
866 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002)) | |
867 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
868 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.71447492, 0.377288342, 4.1787672, 0.258815825, 7.89761543e-007, -0.965926647, 2.11596489e-006, 1.00000012, 1.35600567e-006, 0.965926886, -2.41398811e-006, 0.258815885)) | |
869 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
870 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.452456236, 4.21090841, 3.33576679, -0.124996543, 0.949091196, -0.289140046, 0.214267105, -0.25872606, -0.941886783, -0.968744338, -0.179685771, -0.171019137)) | |
871 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002)) | |
872 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
873 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.94182658, 0.445016861, 4.22507095, 0.176774979, 0.353554398, -0.918558657, -0.433007926, 0.866026998, 0.250003278, 0.883886337, 0.353548825, 0.306183696)) | |
874 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
875 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.256506443, 3.92671657, -4.59811449, -1.00000024, 2.62260437e-006, 1.4603138e-006, -7.4505806e-007, 0.258819073, -0.965925872, -2.89268792e-006, -0.965925932, -0.258819073)) | |
876 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002)) | |
877 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
878 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.4743073, 0.377253056, 1.63544273, 0.866023183, -4.61935997e-007, -0.500004172, 1.52736902e-006, 1.00000012, 1.65402889e-006, 0.500004232, -2.21282244e-006, 0.866023183)) | |
879 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
880 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.15870619, 0.452619314, 0.758959055, -0.533491194, -0.310006529, -0.786945462, 0.124997422, -0.949090362, 0.289142251, -0.836518347, 0.0558886975, 0.545081377)) | |
881 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
882 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.84976673, 0.256440639, 1.85214663, 6.2584877e-007, 0.866025329, -0.500000298, -1.00000024, 1.72108412e-006, 1.7285347e-006, 2.38418579e-006, 0.500000298, 0.866025329)) | |
883 | Gear2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(4.29999971, 4.30000019, 1)) | |
884 | Gear2weld=weld(m,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)) | |
885 | mesh("SpecialMesh",Gear2,Enum.MeshType.FileMesh,"http://www.roblox.com/asset?id=156292343",Vector3.new(0, 0, 0),Vector3.new(5, 5, 15)) | |
886 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
887 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.82676554, 0.256523609, 4.598104, -1.1920929e-006, 0.258818835, -0.965925872, -1.00000012, 1.46776438e-006, 1.63912773e-006, 1.83098018e-006, 0.965925872, 0.258818835)) | |
888 | ||
889 | local modelzorz3=Instance.new("Model") | |
890 | modelzorz3.Parent=Character | |
891 | modelzorz3.Name="Eye" | |
892 | ||
893 | handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Handle",Vector3.new(1.20000005, 1.20000005, 1.20000005)) | |
894 | handleweld=weld(m,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)) | |
895 | mesh("SpecialMesh",handle,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 3, 1)) | |
896 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.20000005, 1.20000005, 1.20000005)) | |
897 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 1.09672546e-005, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
898 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1.102, 0.950000048, 1.16999996)) | |
899 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.20000005, 1.20000005, 1.20000005)) | |
900 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 1.09672546e-005, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
901 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1.102, 3, 0.863999963)) | |
902 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(3.79999995, 4, 1.39999998)) | |
903 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0999984741, 0, -0.100000381, 0, -1, 0, 0, 0, 1, -1, -0, 0)) | |
904 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(4.77400017, 4.96199989, 4.73800039)) | |
905 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(3.79999995, 4, 1.39999998)) | |
906 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0999984741, 0, -0.100000381, 0, -1, 0, 0, 0, 1, -1, -0, 0)) | |
907 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(4.4920001, 4.70400047, 4.73800039)) | |
908 | Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964)) | |
909 | Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.100013733, -3.48671532, -1.09328079, 1, -2.52891718e-012, -6.81310423e-013, 2.53075664e-012, 0.866021812, 0.500005603, -6.74442273e-013, -0.500005603, 0.866021752)) | |
910 | Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964)) | |
911 | Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.100009918, -3.09970522, 1.40989685, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
912 | Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964)) | |
913 | Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.100009918, -3.09970522, 1.39007568, -0.999999702, 0, 5.96046448e-008, 0, 1, 0, -5.96046448e-008, 0, -0.999999702)) | |
914 | Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964)) | |
915 | Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.100013733, -3.61302567, 0.360752106, 1, -3.69486299e-012, 1.70532143e-012, 3.81851625e-012, 0.707111537, -0.707102001, 1.40679254e-012, 0.70710206, 0.707111537)) | |
916 | local moosick = it("Sound",Character) | |
917 | moosick.SoundId = "rbxassetid://142653441" | |
918 | --142653441, 175067863 | |
919 | moosick.Looped = true | |
920 | moosick.Pitch = 1 | |
921 | moosick.Volume = 0 | |
922 | moosick:Play() | |
923 | ||
924 | anim = Character:findFirstChild("Animate") | |
925 | if anim then | |
926 | anim:Destroy() | |
927 | end | |
928 | ||
929 | local particleemitter = Instance.new("ParticleEmitter", Handle) | |
930 | particleemitter.VelocitySpread = 180 | |
931 | particleemitter.Lifetime = NumberRange.new(0.1) | |
932 | particleemitter.Speed = NumberRange.new(2) | |
933 | particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 5.563)}) | |
934 | particleemitter.RotSpeed = NumberRange.new(-45, 45) | |
935 | particleemitter.Rate = 100 | |
936 | particleemitter.Rotation = NumberRange.new(-45, 45) | |
937 | particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)}) | |
938 | particleemitter.LightEmission = 0 | |
939 | particleemitter.Color = ColorSequence.new(Color3.new(0, 0, 0), Color3.new(0, 0, 0)) | |
940 | ||
941 | local particleemitter = Instance.new("ParticleEmitter", Handle2) | |
942 | particleemitter.VelocitySpread = 180 | |
943 | particleemitter.Lifetime = NumberRange.new(0.1) | |
944 | particleemitter.Speed = NumberRange.new(2) | |
945 | particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 5.563)}) | |
946 | particleemitter.RotSpeed = NumberRange.new(-45, 45) | |
947 | particleemitter.Rate = 100 | |
948 | particleemitter.Rotation = NumberRange.new(-45, 45) | |
949 | particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)}) | |
950 | particleemitter.LightEmission = 0 | |
951 | particleemitter.Color = ColorSequence.new(Color3.new(0, 0, 0), Color3.new(0, 0, 0)) | |
952 | ||
953 | local particleemitter = Instance.new("ParticleEmitter", handle) | |
954 | particleemitter.VelocitySpread = 180 | |
955 | particleemitter.Lifetime = NumberRange.new(0.1) | |
956 | particleemitter.Speed = NumberRange.new(2) | |
957 | particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 7.563)}) | |
958 | particleemitter.RotSpeed = NumberRange.new(-45, 45) | |
959 | particleemitter.Rate = 100 | |
960 | particleemitter.Rotation = NumberRange.new(-45, 45) | |
961 | particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)}) | |
962 | particleemitter.LightEmission = 0.8 | |
963 | particleemitter.Color = ColorSequence.new(Color3.new(0, 0, 0), Color3.new(0, 0, 0)) | |
964 | ||
965 | local light = Instance.new("PointLight", Character.Torso) | |
966 | light.Color = Color3.new(255,255,255) | |
967 | light.Brightness = 5 | |
968 | light.Range = 15 | |
969 | ||
970 | particleemitter.Enabled = true | |
971 | ||
972 | local Footsteps = it("Sound",Character.Torso) | |
973 | Footsteps.SoundId = "rbxassetid://142665235" | |
974 | Footsteps.Looped = true | |
975 | Footsteps.Pitch = 0.8 | |
976 | Footsteps.Volume = 0.3 | |
977 | ||
978 | local Footsteps2 = it("Sound",Character.Torso) | |
979 | Footsteps2.SoundId = "rbxassetid://142665235" | |
980 | Footsteps2.Looped = true | |
981 | Footsteps2.Pitch = 1 | |
982 | Footsteps2.Volume = 0.4 | |
983 | ||
984 | local cam = game.Workspace.CurrentCamera | |
985 | ||
986 | --cam.CameraSubject = Character | |
987 | ||
988 | for i,v in pairs(Head:children()) do | |
989 | if v:IsA("Sound") then | |
990 | v:Destroy() | |
991 | end | |
992 | end | |
993 | ||
994 | mouse.Button1Down:connect(function() | |
995 | if attack==false and attacktype==1 then | |
996 | attacktype=2 | |
997 | attackone() | |
998 | elseif attack==false and attacktype==2 then | |
999 | attacktype=3 | |
1000 | attacktwo() | |
1001 | elseif attack==false and attacktype==3 then | |
1002 | attacktype=4 | |
1003 | attackthree() | |
1004 | elseif attack==false and attacktype==4 then | |
1005 | attacktype=1 | |
1006 | attackfour() | |
1007 | end | |
1008 | end) | |
1009 | ||
1010 | mouse.KeyDown:connect(function(k) | |
1011 | k=k:lower() | |
1012 | if k=='e' then | |
1013 | if attack==false and mana>=20 then | |
1014 | Push() | |
1015 | end | |
1016 | elseif k=='g' then | |
1017 | if attack==false and mana>=50 then | |
1018 | Twirl() | |
1019 | end | |
1020 | elseif k=='v' then | |
1021 | if attack==false and mana>=25 then | |
1022 | MagicJump() | |
1023 | end | |
1024 | elseif k=='q' then | |
1025 | if attack==false then | |
1026 | idle=1000 | |
1027 | end | |
1028 | elseif k=='h' then | |
1029 | if attack==false then | |
1030 | mana=100 | |
1031 | end | |
1032 | elseif k=='y' then | |
1033 | if attack==false and mana>=100 then | |
1034 | Shred() | |
1035 | end | |
1036 | elseif k=='f' then | |
1037 | if attack==false and mana>=40 then | |
1038 | Spin() | |
1039 | end | |
1040 | elseif k=='r' then | |
1041 | if attack==false and mana>=20 then | |
1042 | Clap() | |
1043 | end | |
1044 | elseif k=='t' then | |
1045 | if attack==false then | |
1046 | Hai() | |
1047 | end | |
1048 | elseif k=='0' then | |
1049 | if attack==false then | |
1050 | Humanoid.WalkSpeed=(56) | |
1051 | end | |
1052 | elseif k=='j' then | |
1053 | if attack==false then | |
1054 | Humanoid.Health = 100 | |
1055 | print("Congrats, you commited suicide.") | |
1056 | end | |
1057 | end | |
1058 | end) | |
1059 | ||
1060 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1061 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1062 | prt.Anchored=true | |
1063 | prt.CFrame=cframe | |
1064 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
1065 | game:GetService("Debris"):AddItem(prt,2) | |
1066 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1067 | for i=0,1,delay do | |
1068 | wait() | |
1069 | Part.CFrame=Part.CFrame | |
1070 | Part.Transparency=i | |
1071 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1072 | end | |
1073 | Part.Parent=nil | |
1074 | end),prt,msh) | |
1075 | end | |
1076 | ||
1077 | TrailDeb = false | |
1078 | ||
1079 | function equipanim() | |
1080 | attack=true | |
1081 | Humanoid.WalkSpeed = 0 | |
1082 | if TrailDeb == false then | |
1083 | TrailDeb = true | |
1084 | end | |
1085 | ||
1086 | ||
1087 | coroutine.wrap(function() | |
1088 | local Old = handle.CFrame.p | |
1089 | while wait()do | |
1090 | if not TrailDeb then break end | |
1091 | local New = handle.CFrame.p | |
1092 | local Mag =(Old -New).magnitude | |
1093 | local Dis =(Old +New)/2 | |
1094 | local Trail = Instance.new("Part",Character) | |
1095 | Trail.Material = "Neon" | |
1096 | Trail.Anchored = true | |
1097 | Trail.CanCollide = false | |
1098 | Trail.BrickColor = TorsoColor | |
1099 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1100 | Trail.TopSurface = 0 | |
1101 | Trail.BottomSurface = 0 | |
1102 | Trail.formFactor = "Custom" | |
1103 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1104 | local ms = Instance.new("BlockMesh",Trail) | |
1105 | ms.Scale = Vector3.new(1,1,1) | |
1106 | local TM = Instance.new("CylinderMesh",Trail) | |
1107 | TM.Scale = Vector3.new(1,1,1) | |
1108 | Old = New | |
1109 | coroutine.wrap(function() | |
1110 | for i = 1,0,-0.1 do | |
1111 | wait() | |
1112 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1113 | end | |
1114 | Trail:remove() | |
1115 | end)() | |
1116 | coroutine.wrap(function() | |
1117 | for i = 1,10 do | |
1118 | wait() | |
1119 | Trail.Transparency = Trail.Transparency +0.1 | |
1120 | end end)()end end)() | |
1121 | coroutine.wrap(function() | |
1122 | local Old = Handle.CFrame.p | |
1123 | while wait()do | |
1124 | if not TrailDeb then break end | |
1125 | local New = Handle.CFrame.p | |
1126 | local Mag =(Old -New).magnitude | |
1127 | local Dis =(Old +New)/2 | |
1128 | local Trail = Instance.new("Part",Character) | |
1129 | Trail.Material = "Neon" | |
1130 | Trail.Anchored = true | |
1131 | Trail.CanCollide = false | |
1132 | Trail.BrickColor = TorsoColor | |
1133 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1134 | Trail.TopSurface = 0 | |
1135 | Trail.BottomSurface = 0 | |
1136 | Trail.formFactor = "Custom" | |
1137 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1138 | local ms = Instance.new("BlockMesh",Trail) | |
1139 | ms.Scale = Vector3.new(1,1,1) | |
1140 | local TM = Instance.new("CylinderMesh",Trail) | |
1141 | TM.Scale = Vector3.new(1,1,1) | |
1142 | Old = New | |
1143 | coroutine.wrap(function() | |
1144 | for i = 1,0,-0.1 do | |
1145 | wait() | |
1146 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1147 | end | |
1148 | Trail:remove() | |
1149 | end)() | |
1150 | coroutine.wrap(function() | |
1151 | for i = 1,10 do | |
1152 | wait() | |
1153 | Trail.Transparency = Trail.Transparency +0.1 | |
1154 | end end)()end end)() | |
1155 | coroutine.wrap(function() | |
1156 | local Old = Handle2.CFrame.p | |
1157 | while wait()do | |
1158 | if not TrailDeb then break end | |
1159 | local New = Handle2.CFrame.p | |
1160 | local Mag =(Old -New).magnitude | |
1161 | local Dis =(Old +New)/2 | |
1162 | local Trail = Instance.new("Part",Character) | |
1163 | Trail.Material = "Neon" | |
1164 | Trail.Anchored = true | |
1165 | Trail.CanCollide = false | |
1166 | Trail.BrickColor = TorsoColor | |
1167 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1168 | Trail.TopSurface = 0 | |
1169 | Trail.BottomSurface = 0 | |
1170 | Trail.formFactor = "Custom" | |
1171 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1172 | local ms = Instance.new("BlockMesh",Trail) | |
1173 | ms.Scale = Vector3.new(1,1,1) | |
1174 | local TM = Instance.new("CylinderMesh",Trail) | |
1175 | TM.Scale = Vector3.new(1,1,1) | |
1176 | Old = New | |
1177 | coroutine.wrap(function() | |
1178 | for i = 1,0,-0.1 do | |
1179 | wait() | |
1180 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1181 | end | |
1182 | Trail:remove() | |
1183 | end)() | |
1184 | coroutine.wrap(function() | |
1185 | for i = 1,10 do | |
1186 | wait() | |
1187 | Trail.Transparency = Trail.Transparency +0.1 | |
1188 | end end)()end end)() | |
1189 | so("http://www.roblox.com/asset/?id=200632370",Torso,1,0.5) | |
1190 | for i=0,1,0.005 do | |
1191 | swait() | |
1192 | moosick.Volume = 0+1*i | |
1193 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,100-100*i)*euler(0,0,0+90*i),.2) | |
1194 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,0),.2) | |
1195 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05) | |
1196 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05) | |
1197 | Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05) | |
1198 | LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(40)),.2) | |
1199 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-40)),.2) | |
1200 | end | |
1201 | for i=0,1,0.005 do | |
1202 | swait() | |
1203 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2.5)*euler(0,0,0+90*i),.2) | |
1204 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,0),.2) | |
1205 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05) | |
1206 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05) | |
1207 | Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05) | |
1208 | LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(40)),.2) | |
1209 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-40)),.2) | |
1210 | end | |
1211 | so("http://www.roblox.com/asset/?id=150829983",Character,1,0.9) | |
1212 | so("http://www.roblox.com/asset/?id=150829983",Character,1,0.9) | |
1213 | for i=0,1,0.005 do | |
1214 | swait() | |
1215 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,5+1*i)*angles(math.rad(-15),math.rad(0),math.rad(0)),0.1) | |
1216 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-25),math.rad(0),math.rad(0)),0.1) | |
1217 | handleweld.C0=clerp(handleweld.C0,cf(0,0+1*i,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.1) | |
1218 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0-1*i,0,0)*angles(math.rad(90),math.rad(15),math.rad(0)),0.1) | |
1219 | Handleweld.C0=clerp(Handleweld.C0,cf(0+1*i,0,0)*angles(math.rad(90),math.rad(-15),math.rad(0)),0.1) | |
1220 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(-30)),0.1) | |
1221 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(30)),0.1) | |
1222 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(-30)),0.1) | |
1223 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(30)),0.1) | |
1224 | end | |
1225 | for i=0,1,0.04 do | |
1226 | swait() | |
1227 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*angles(math.rad(40),math.rad(0),math.rad(-40)),.3) | |
1228 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1229 | Handleweld.C0=clerp(Handleweld.C0,cf(1.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1230 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-1.5,3,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
1231 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(40)),.3) | |
1232 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(70),math.rad(0),math.rad(-45)),.3) | |
1233 | 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) | |
1234 | 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) | |
1235 | end | |
1236 | --dmgstop() | |
1237 | attack=false | |
1238 | Humanoid.WalkSpeed = 12 | |
1239 | if TrailDeb == true then | |
1240 | TrailDeb = false | |
1241 | end | |
1242 | end | |
1243 | ||
1244 | function attackone() | |
1245 | attack=true | |
1246 | if TrailDeb == false then | |
1247 | TrailDeb = true | |
1248 | end | |
1249 | ||
1250 | ||
1251 | coroutine.wrap(function() | |
1252 | local Old = Handle.CFrame.p | |
1253 | while wait()do | |
1254 | if not TrailDeb then break end | |
1255 | local New = Handle.CFrame.p | |
1256 | local Mag =(Old -New).magnitude | |
1257 | local Dis =(Old +New)/2 | |
1258 | local Trail = Instance.new("Part",Character) | |
1259 | Trail.Material = "Neon" | |
1260 | Trail.Anchored = true | |
1261 | Trail.CanCollide = false | |
1262 | Trail.BrickColor = TorsoColor | |
1263 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1264 | Trail.TopSurface = 0 | |
1265 | Trail.BottomSurface = 0 | |
1266 | Trail.formFactor = "Custom" | |
1267 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1268 | local ms = Instance.new("BlockMesh",Trail) | |
1269 | ms.Scale = Vector3.new(1,1,1) | |
1270 | local TM = Instance.new("CylinderMesh",Trail) | |
1271 | TM.Scale = Vector3.new(1,1,1) | |
1272 | Old = New | |
1273 | coroutine.wrap(function() | |
1274 | for i = 1,0,-0.1 do | |
1275 | wait() | |
1276 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1277 | end | |
1278 | Trail:remove() | |
1279 | end)() | |
1280 | coroutine.wrap(function() | |
1281 | for i = 1,10 do | |
1282 | wait() | |
1283 | Trail.Transparency = Trail.Transparency +0.1 | |
1284 | end end)()end end)() | |
1285 | con1=Gear.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end) | |
1286 | for i=0,1,0.08 do | |
1287 | swait() | |
1288 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(-10)),.3) | |
1289 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(10)),.3) | |
1290 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1291 | Handleweld.C0=clerp(Handleweld.C0,cf(-3,1,2)*angles(math.rad(90),math.rad(0),math.rad(0)),.2) | |
1292 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1293 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3) | |
1294 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3) | |
1295 | end | |
1296 | so("http://www.roblox.com/asset/?id=231917758",Handle,1,.9) | |
1297 | so("http://www.roblox.com/asset/?id=159972643",Torso,1,1) | |
1298 | for i=0,1,0.1 do | |
1299 | swait() | |
1300 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(20)),.3) | |
1301 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3) | |
1302 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1303 | Handleweld.C0=clerp(Handleweld.C0,cf(-4,1,-8)*angles(math.rad(-85),math.rad(0),math.rad(0)),.2) | |
1304 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1305 | RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(80,1.8,1.5),.3) | |
1306 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3) | |
1307 | end | |
1308 | --dmgstop() | |
1309 | attack=false | |
1310 | con1:disconnect() | |
1311 | if TrailDeb == true then | |
1312 | TrailDeb = false | |
1313 | end | |
1314 | end | |
1315 | ||
1316 | function attacktwo() | |
1317 | attack=true | |
1318 | if TrailDeb == false then | |
1319 | TrailDeb = true | |
1320 | end | |
1321 | ||
1322 | ||
1323 | coroutine.wrap(function() | |
1324 | local Old = Handle2.CFrame.p | |
1325 | while wait()do | |
1326 | if not TrailDeb then break end | |
1327 | local New = Handle2.CFrame.p | |
1328 | local Mag =(Old -New).magnitude | |
1329 | local Dis =(Old +New)/2 | |
1330 | local Trail = Instance.new("Part",Character) | |
1331 | Trail.Material = "Neon" | |
1332 | Trail.Anchored = true | |
1333 | Trail.CanCollide = false | |
1334 | Trail.BrickColor = TorsoColor | |
1335 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1336 | Trail.TopSurface = 0 | |
1337 | Trail.BottomSurface = 0 | |
1338 | Trail.formFactor = "Custom" | |
1339 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1340 | local ms = Instance.new("BlockMesh",Trail) | |
1341 | ms.Scale = Vector3.new(1,1,1) | |
1342 | local TM = Instance.new("CylinderMesh",Trail) | |
1343 | TM.Scale = Vector3.new(1,1,1) | |
1344 | Old = New | |
1345 | coroutine.wrap(function() | |
1346 | for i = 1,0,-0.1 do | |
1347 | wait() | |
1348 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1349 | end | |
1350 | Trail:remove() | |
1351 | end)() | |
1352 | coroutine.wrap(function() | |
1353 | for i = 1,10 do | |
1354 | wait() | |
1355 | Trail.Transparency = Trail.Transparency +0.1 | |
1356 | end end)()end end)() | |
1357 | con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end) | |
1358 | for i=0,1,0.08 do | |
1359 | swait() | |
1360 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(20)),.3) | |
1361 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3) | |
1362 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1363 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,1,-5)*angles(math.rad(0),math.rad(0),math.rad(20)),.2) | |
1364 | Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1365 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-30,0,-20),.3) | |
1366 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3) | |
1367 | end | |
1368 | so("http://www.roblox.com/asset/?id=231917758",Handle2,1,.8) | |
1369 | so("http://www.roblox.com/asset/?id=159972627",Torso,1,1) | |
1370 | for i=0,1,0.1 do | |
1371 | swait() | |
1372 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3) | |
1373 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.3) | |
1374 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1375 | Handle2weld.C0=clerp(Handle2weld.C0,cf(10,1,-5)*angles(math.rad(0),math.rad(-80),math.rad(20)),.2) | |
1376 | Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1377 | LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*euler(-30,0,20),.3) | |
1378 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3) | |
1379 | end | |
1380 | --dmgstop() | |
1381 | attack=false | |
1382 | con1:disconnect() | |
1383 | if TrailDeb == true then | |
1384 | TrailDeb = false | |
1385 | end | |
1386 | end | |
1387 | ||
1388 | function attackthree() | |
1389 | attack=true | |
1390 | if TrailDeb == false then | |
1391 | TrailDeb = true | |
1392 | end | |
1393 | ||
1394 | ||
1395 | coroutine.wrap(function() | |
1396 | local Old = Handle.CFrame.p | |
1397 | while wait()do | |
1398 | if not TrailDeb then break end | |
1399 | local New = Handle.CFrame.p | |
1400 | local Mag =(Old -New).magnitude | |
1401 | local Dis =(Old +New)/2 | |
1402 | local Trail = Instance.new("Part",Character) | |
1403 | Trail.Material = "Neon" | |
1404 | Trail.Anchored = true | |
1405 | Trail.CanCollide = false | |
1406 | Trail.BrickColor = TorsoColor | |
1407 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1408 | Trail.TopSurface = 0 | |
1409 | Trail.BottomSurface = 0 | |
1410 | Trail.formFactor = "Custom" | |
1411 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1412 | local ms = Instance.new("BlockMesh",Trail) | |
1413 | ms.Scale = Vector3.new(1,1,1) | |
1414 | local TM = Instance.new("CylinderMesh",Trail) | |
1415 | TM.Scale = Vector3.new(1,1,1) | |
1416 | Old = New | |
1417 | coroutine.wrap(function() | |
1418 | for i = 1,0,-0.1 do | |
1419 | wait() | |
1420 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1421 | end | |
1422 | Trail:remove() | |
1423 | end)() | |
1424 | coroutine.wrap(function() | |
1425 | for i = 1,10 do | |
1426 | wait() | |
1427 | Trail.Transparency = Trail.Transparency +0.1 | |
1428 | end end)()end end)() | |
1429 | con1=Gear.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Up",RootPart,.2,1) end) | |
1430 | for i=0,1,0.08 do | |
1431 | swait() | |
1432 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
1433 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
1434 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1435 | Handleweld.C0=clerp(Handleweld.C0,cf(3,7,-1)*angles(math.rad(20),math.rad(0),math.rad(-120)),.2) | |
1436 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1437 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(0.5,-1.3,-0.1),.3) | |
1438 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3) | |
1439 | end | |
1440 | so("http://www.roblox.com/asset/?id=231917758",Handle,1,1) | |
1441 | so("http://www.roblox.com/asset/?id=159882477",Torso,1,1) | |
1442 | for i=0,1,0.05 do | |
1443 | swait() | |
1444 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1445 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
1446 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1447 | Handleweld.C0=clerp(Handleweld.C0,cf(2,4,-3)*angles(math.rad(120),math.rad(0),math.rad(-120)),.2) | |
1448 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1449 | RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(2,-1.3,0.1),.3) | |
1450 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3) | |
1451 | end | |
1452 | --dmgstop() | |
1453 | attack=false | |
1454 | con1:disconnect() | |
1455 | if TrailDeb == true then | |
1456 | TrailDeb = false | |
1457 | end | |
1458 | end | |
1459 | ||
1460 | function attackfour() | |
1461 | attack=true | |
1462 | if TrailDeb == false then | |
1463 | TrailDeb = true | |
1464 | end | |
1465 | ||
1466 | ||
1467 | coroutine.wrap(function() | |
1468 | local Old = Handle2.CFrame.p | |
1469 | while wait()do | |
1470 | if not TrailDeb then break end | |
1471 | local New = Handle2.CFrame.p | |
1472 | local Mag =(Old -New).magnitude | |
1473 | local Dis =(Old +New)/2 | |
1474 | local Trail = Instance.new("Part",Character) | |
1475 | Trail.Material = "Neon" | |
1476 | Trail.Anchored = true | |
1477 | Trail.CanCollide = false | |
1478 | Trail.BrickColor = TorsoColor | |
1479 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1480 | Trail.TopSurface = 0 | |
1481 | Trail.BottomSurface = 0 | |
1482 | Trail.formFactor = "Custom" | |
1483 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1484 | local ms = Instance.new("BlockMesh",Trail) | |
1485 | ms.Scale = Vector3.new(1,1,1) | |
1486 | local TM = Instance.new("CylinderMesh",Trail) | |
1487 | TM.Scale = Vector3.new(1,1,1) | |
1488 | Old = New | |
1489 | coroutine.wrap(function() | |
1490 | for i = 1,0,-0.1 do | |
1491 | wait() | |
1492 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1493 | end | |
1494 | Trail:remove() | |
1495 | end)() | |
1496 | coroutine.wrap(function() | |
1497 | for i = 1,10 do | |
1498 | wait() | |
1499 | Trail.Transparency = Trail.Transparency +0.1 | |
1500 | end end)()end end)() | |
1501 | coroutine.wrap(function() | |
1502 | local Old = Handle.CFrame.p | |
1503 | while wait()do | |
1504 | if not TrailDeb then break end | |
1505 | local New = Handle.CFrame.p | |
1506 | local Mag =(Old -New).magnitude | |
1507 | local Dis =(Old +New)/2 | |
1508 | local Trail = Instance.new("Part",Character) | |
1509 | Trail.Material = "Neon" | |
1510 | Trail.Anchored = true | |
1511 | Trail.CanCollide = false | |
1512 | Trail.BrickColor = TorsoColor | |
1513 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1514 | Trail.TopSurface = 0 | |
1515 | Trail.BottomSurface = 0 | |
1516 | Trail.formFactor = "Custom" | |
1517 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1518 | local ms = Instance.new("BlockMesh",Trail) | |
1519 | ms.Scale = Vector3.new(1,1,1) | |
1520 | local TM = Instance.new("CylinderMesh",Trail) | |
1521 | TM.Scale = Vector3.new(1,1,1) | |
1522 | Old = New | |
1523 | coroutine.wrap(function() | |
1524 | for i = 1,0,-0.1 do | |
1525 | wait() | |
1526 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1527 | end | |
1528 | Trail:remove() | |
1529 | end)() | |
1530 | coroutine.wrap(function() | |
1531 | for i = 1,10 do | |
1532 | wait() | |
1533 | Trail.Transparency = Trail.Transparency +0.1 | |
1534 | end end)()end end)() | |
1535 | con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end) | |
1536 | con2=Gear.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end) | |
1537 | for i=0,1,0.08 do | |
1538 | swait() | |
1539 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*angles(math.rad(40),math.rad(0),math.rad(-40)),.3) | |
1540 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1541 | Handleweld.C0=clerp(Handleweld.C0,cf(1.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1542 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-1.5,3,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
1543 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(40)),.3) | |
1544 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(70),math.rad(0),math.rad(-45)),.3) | |
1545 | 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) | |
1546 | 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) | |
1547 | end | |
1548 | if anim then | |
1549 | anim.Disabled=true | |
1550 | end | |
1551 | so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.7) | |
1552 | so("http://www.roblox.com/asset/?id=159882584",Torso,1,1) | |
1553 | for i=0,1,0.04 do | |
1554 | swait() | |
1555 | Torso.Velocity=RootPart.CFrame.lookVector*50 | |
1556 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(-5),math.rad(0),math.rad(0+360*i)),.3) | |
1557 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1558 | Handleweld.C0=clerp(Handleweld.C0,cf(3,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1559 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-3,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
1560 | RW.C0=clerp(RW.C0,cf(1.2,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
1561 | LW.C0=clerp(LW.C0,cf(-1.2,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
1562 | 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) | |
1563 | 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) | |
1564 | end | |
1565 | --dmgstop() | |
1566 | attack=false | |
1567 | con1:disconnect() | |
1568 | con2:disconnect() | |
1569 | if anim then | |
1570 | anim.Disabled=false | |
1571 | end | |
1572 | if TrailDeb == true then | |
1573 | TrailDeb = false | |
1574 | end | |
1575 | end | |
1576 | ||
1577 | function BlastEffect(brickcolor, cframe, x1, y1, z1, x2, y2, z2) | |
1578 | local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1579 | prt.Anchored = true | |
1580 | prt.CFrame = cframe | |
1581 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1)) | |
1582 | coroutine.resume(coroutine.create(function() | |
1583 | for i = 0, 1, 0.05 do | |
1584 | wait() | |
1585 | prt.Transparency = i | |
1586 | msh.Scale = msh.Scale + vt(x2, y2, z2) | |
1587 | end | |
1588 | prt.Parent = nil | |
1589 | end)) | |
1590 | end | |
1591 | ||
1592 | function MagniDamage(Hit, Part, magni, mindam, maxdam, knock, Type) | |
1593 | for _, c in pairs(workspace:children()) do | |
1594 | local hum = c:findFirstChild("Humanoid") | |
1595 | if hum ~= nil then | |
1596 | local head = c:findFirstChild("Torso") | |
1597 | if head ~= nil then | |
1598 | local targ = head.Position - Part.Position | |
1599 | local mag = targ.magnitude | |
1600 | if mag <= magni and c.Name ~= Player.Name then | |
1601 | Damagefunc(Hit, head, mindam, maxdam, knock, Type, RootPart, .2, 1, 3) | |
1602 | end | |
1603 | end | |
1604 | end | |
1605 | end | |
1606 | end | |
1607 | ||
1608 | function MagicCircle(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1609 | local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1610 | prt.Anchored = true | |
1611 | prt.CFrame = cframe | |
1612 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1613 | game:GetService("Debris"):AddItem(prt, 2) | |
1614 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1615 | for i = 0, 1, delay do | |
1616 | swait() | |
1617 | Part.CFrame = Part.CFrame | |
1618 | Part.Transparency = i | |
1619 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1620 | end | |
1621 | Part.Parent = nil | |
1622 | end), prt, msh) | |
1623 | end | |
1624 | ||
1625 | function MagicJump() | |
1626 | if Anim == "Idle" or Anim == "Walk" or Anim == "Run" then | |
1627 | attack=true | |
1628 | mana=mana-25 | |
1629 | --[[ Humanoid.WalkSpeed = 0 | |
1630 | for i=0,1,0.01 do | |
1631 | swait() | |
1632 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.2)*angles(math.rad(45),math.rad(0),math.rad(45)),.1) | |
1633 | Neck.C0=clerp(Neck.C0,necko*angles(math.rad(-15),math.rad(15),math.rad(-45)),.1) | |
1634 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.1) | |
1635 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(0),math.rad(45)),.1) | |
1636 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-15),math.rad(15),math.rad(-30)),.1) | |
1637 | RH.C0=clerp(RH.C0,cf(0.5,-1.25,0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(15),math.rad(-60),math.rad(-15)),.1) | |
1638 | LH.C0=clerp(LH.C0,cf(-1,0.1,-0.8)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(40),math.rad(0),math.rad(-30)),.1) | |
1639 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(45)),.1) | |
1640 | Handleweld.C0=clerp(Handleweld.C0,cf(0,0,-6)*angles(math.rad(-15),math.rad(-60),math.rad(45)),.1) | |
1641 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(60),math.rad(45)),.1) | |
1642 | end]]-- | |
1643 | Humanoid.Jump = true | |
1644 | Torso.Velocity = vt(0, 150, 0) | |
1645 | Humanoid.WalkSpeed = 64 | |
1646 | so("http://www.roblox.com/asset/?id=199145497",Torso,1,0.8) | |
1647 | so("http://www.roblox.com/asset/?id=199145497",Torso,1,0.8) | |
1648 | for i=0,1,0.05 do | |
1649 | swait() | |
1650 | Neck.C0=clerp(Neck.C0,necko*euler(0.5,0,0),.3) | |
1651 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
1652 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0+8*i,0,0),.3) | |
1653 | LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*euler(-30,0,20),.3) | |
1654 | RW.C0=clerp(RW.C0,cf(1,0.5,-1)*euler(-30,0,-20),.3) | |
1655 | RH.C0=clerp(RH.C0,cf(1,0,-1)*euler(-0.5,1.57,0)*euler(0,0,0),.2) | |
1656 | LH.C0=clerp(LH.C0,cf(-1,0,-1)*euler(-0.5,-1.57,0)*euler(0,0,0),.2) | |
1657 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.2) | |
1658 | Handleweld.C0=clerp(Handleweld.C0,cf(0,-5,0)*angles(math.rad(60),math.rad(60),math.rad(0)),.2) | |
1659 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,-5,0)*angles(math.rad(60),math.rad(-60),math.rad(0)),.2) | |
1660 | end | |
1661 | for i=0,1,0.02 do | |
1662 | swait() | |
1663 | Neck.C0=clerp(Neck.C0,necko*euler(0.3,0,0),.3) | |
1664 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
1665 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3) | |
1666 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.1,0,1),.3) | |
1667 | RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
1668 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.1,0,-1),.3) | |
1669 | LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
1670 | RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.6,1.57,0)*euler(0,0,0),.2) | |
1671 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.8,-1.57,0)*euler(0,0,0),.2) | |
1672 | handleweld.C0=clerp(handleweld.C0,cf(0,0,-1)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
1673 | Handleweld.C0=clerp(Handleweld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(-10),math.rad(0)),.2) | |
1674 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(10),math.rad(0)),.2) | |
1675 | end | |
1676 | Humanoid.WalkSpeed = 0 | |
1677 | swait(8) | |
1678 | so("http://www.roblox.com/asset/?id=199145477",Torso,1,1) | |
1679 | so("http://www.roblox.com/asset/?id=199145477",Torso,1,1) | |
1680 | local hit,pos=rayCast(Torso.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,100,Character) | |
1681 | if hit~=nil then | |
1682 | swait(2) | |
1683 | local ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Really black"),"Effect",vt()) | |
1684 | ref.Anchored=true | |
1685 | ref.CFrame=cf(pos) | |
1686 | game:GetService("Debris"):AddItem(ref,3) | |
1687 | for i=1,10 do | |
1688 | local Col=BrickColor.new("Really black") | |
1689 | local groundpart=part(3,Character,"SmoothPlastic",0,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100)) | |
1690 | groundpart.Anchored=true | |
1691 | groundpart.CanCollide=false | |
1692 | groundpart.CFrame=cf(pos)*cf(math.random(-500,500)/100,0,math.random(-500,500)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1693 | local Col2=TorsoColor | |
1694 | local groundpart2=part(3,Character,"SmoothPlastic",0,0,Col2,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100)) | |
1695 | groundpart2.Anchored=true | |
1696 | groundpart2.CanCollide=false | |
1697 | groundpart2.CFrame=cf(pos)*cf(math.random(-500,500)/100,0,math.random(-500,500)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1698 | game:GetService("Debris"):AddItem(groundpart,5) | |
1699 | game:GetService("Debris"):AddItem(groundpart2,5) | |
1700 | end | |
1701 | BlastEffect(TorsoColor,cf(pos),1,1,1,1.4,1.4,1.4) | |
1702 | BlastEffect(BrickColor.new("Really black"),cf(pos),.9,.9,.9,1.2,1.2,1.2) | |
1703 | MagicCircle(BrickColor.new("Really black"),cf(pos),5,5,5,5,5,5,0.05) | |
1704 | MagicCircle(TorsoColor,cf(pos),6,6,6,6,6,6,0.05) | |
1705 | for i=0,1,0.06 do | |
1706 | swait() | |
1707 | Neck.C0=clerp(Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.3) | |
1708 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
1709 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*angles(math.rad(50),math.rad(0),math.rad(0)),.3) | |
1710 | RW.C0=clerp(RW.C0,cf(1, 0.3, -.7)*angles(math.rad(50),math.rad(0),math.rad(-30)),.3) | |
1711 | LW.C0=clerp(LW.C0,cf(-1, 0.3, -.7)*angles(math.rad(50),math.rad(0),math.rad(30)),.3) | |
1712 | RH.C0=clerp(RH.C0,cf(1, -.5, -.5)*angles(math.rad(50),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3) | |
1713 | LH.C0=clerp(LH.C0,cf(-1, -1, -.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3) | |
1714 | handleweld.C0=clerp(handleweld.C0,cf(0,0,-1)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
1715 | Handleweld.C0=clerp(Handleweld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(-10),math.rad(0)),.2) | |
1716 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(10),math.rad(0)),.2) | |
1717 | end | |
1718 | end | |
1719 | swait(20) | |
1720 | Humanoid.WalkSpeed = 12 | |
1721 | --dmgstop() | |
1722 | attack=false | |
1723 | end | |
1724 | end | |
1725 | ||
1726 | function Spin() | |
1727 | attack=true | |
1728 | mana=mana-40 | |
1729 | if TrailDeb == false then | |
1730 | TrailDeb = true | |
1731 | end | |
1732 | ||
1733 | coroutine.wrap(function() | |
1734 | local Old = Handle2.CFrame.p | |
1735 | while wait()do | |
1736 | if not TrailDeb then break end | |
1737 | local New = Handle2.CFrame.p | |
1738 | local Mag =(Old -New).magnitude | |
1739 | local Dis =(Old +New)/2 | |
1740 | local Trail = Instance.new("Part",Character) | |
1741 | Trail.Material = "Neon" | |
1742 | Trail.Anchored = true | |
1743 | Trail.CanCollide = false | |
1744 | Trail.BrickColor = TorsoColor | |
1745 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1746 | Trail.TopSurface = 0 | |
1747 | Trail.BottomSurface = 0 | |
1748 | Trail.formFactor = "Custom" | |
1749 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1750 | local ms = Instance.new("BlockMesh",Trail) | |
1751 | ms.Scale = Vector3.new(1,1,1) | |
1752 | local TM = Instance.new("CylinderMesh",Trail) | |
1753 | TM.Scale = Vector3.new(1,1,1) | |
1754 | Old = New | |
1755 | coroutine.wrap(function() | |
1756 | for i = 1,0,-0.1 do | |
1757 | wait() | |
1758 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1759 | end | |
1760 | Trail:remove() | |
1761 | end)() | |
1762 | coroutine.wrap(function() | |
1763 | for i = 1,10 do | |
1764 | wait() | |
1765 | Trail.Transparency = Trail.Transparency +0.1 | |
1766 | end end)()end end)() | |
1767 | coroutine.wrap(function() | |
1768 | local Old = Handle.CFrame.p | |
1769 | while wait()do | |
1770 | if not TrailDeb then break end | |
1771 | local New = Handle.CFrame.p | |
1772 | local Mag =(Old -New).magnitude | |
1773 | local Dis =(Old +New)/2 | |
1774 | local Trail = Instance.new("Part",Character) | |
1775 | Trail.Material = "Neon" | |
1776 | Trail.Anchored = true | |
1777 | Trail.CanCollide = false | |
1778 | Trail.BrickColor = TorsoColor | |
1779 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1780 | Trail.TopSurface = 0 | |
1781 | Trail.BottomSurface = 0 | |
1782 | Trail.formFactor = "Custom" | |
1783 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1784 | local ms = Instance.new("BlockMesh",Trail) | |
1785 | ms.Scale = Vector3.new(1,1,1) | |
1786 | local TM = Instance.new("CylinderMesh",Trail) | |
1787 | TM.Scale = Vector3.new(1,1,1) | |
1788 | Old = New | |
1789 | coroutine.wrap(function() | |
1790 | for i = 1,0,-0.1 do | |
1791 | wait() | |
1792 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1793 | end | |
1794 | Trail:remove() | |
1795 | end)() | |
1796 | coroutine.wrap(function() | |
1797 | for i = 1,10 do | |
1798 | wait() | |
1799 | Trail.Transparency = Trail.Transparency +0.1 | |
1800 | end end)()end end)() | |
1801 | Footsteps:Stop() | |
1802 | Footsteps2:Stop() | |
1803 | con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end) | |
1804 | con2=Gear.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end) | |
1805 | so("http://www.roblox.com/asset/?id=159882497",Torso,1,1) | |
1806 | for i=0,1,0.1 do | |
1807 | swait() | |
1808 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1809 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1810 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1811 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
1812 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
1813 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
1814 | end | |
1815 | if anim then | |
1816 | anim.Disabled=true | |
1817 | end | |
1818 | so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1.2) | |
1819 | so("http://www.roblox.com/asset/?id=231917758",RightArm,1,1) | |
1820 | for i=0,1,0.05 do | |
1821 | swait() | |
1822 | Torso.Velocity=RootPart.CFrame.lookVector*100 | |
1823 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(90),math.rad(0+360*i)),.3) | |
1824 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1825 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1826 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
1827 | RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
1828 | LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
1829 | end | |
1830 | so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1.2) | |
1831 | so("http://www.roblox.com/asset/?id=231917758",RightArm,1,1) | |
1832 | for i=0,1,0.05 do | |
1833 | swait() | |
1834 | Torso.Velocity=RootPart.CFrame.lookVector*100 | |
1835 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(90),math.rad(0+360*i)),.3) | |
1836 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1837 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1838 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
1839 | RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
1840 | LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
1841 | end | |
1842 | so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1.2) | |
1843 | so("http://www.roblox.com/asset/?id=231917758",RightArm,1,1) | |
1844 | for i=0,1,0.05 do | |
1845 | swait() | |
1846 | Torso.Velocity=RootPart.CFrame.lookVector*100 | |
1847 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(90),math.rad(0+360*i)),.3) | |
1848 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1849 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1850 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
1851 | RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
1852 | LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
1853 | end | |
1854 | --dmgstop() | |
1855 | Humanoid.WalkSpeed=12 | |
1856 | attack=false | |
1857 | con1:disconnect() | |
1858 | con2:disconnect() | |
1859 | if anim then | |
1860 | anim.Disabled=false | |
1861 | end | |
1862 | if TrailDeb == true then | |
1863 | TrailDeb = false | |
1864 | end | |
1865 | end | |
1866 | ||
1867 | function Twirl() | |
1868 | mana=mana-50 | |
1869 | attack=true | |
1870 | if TrailDeb == false then | |
1871 | TrailDeb = true | |
1872 | end | |
1873 | ||
1874 | ||
1875 | coroutine.wrap(function() | |
1876 | local Old = Handle2.CFrame.p | |
1877 | while wait()do | |
1878 | if not TrailDeb then break end | |
1879 | local New = Handle2.CFrame.p | |
1880 | local Mag =(Old -New).magnitude | |
1881 | local Dis =(Old +New)/2 | |
1882 | local Trail = Instance.new("Part",Character) | |
1883 | Trail.Material = "Neon" | |
1884 | Trail.Anchored = true | |
1885 | Trail.CanCollide = false | |
1886 | Trail.BrickColor = TorsoColor | |
1887 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1888 | Trail.TopSurface = 0 | |
1889 | Trail.BottomSurface = 0 | |
1890 | Trail.formFactor = "Custom" | |
1891 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1892 | local ms = Instance.new("BlockMesh",Trail) | |
1893 | ms.Scale = Vector3.new(1,1,1) | |
1894 | local TM = Instance.new("CylinderMesh",Trail) | |
1895 | TM.Scale = Vector3.new(1,1,1) | |
1896 | Old = New | |
1897 | coroutine.wrap(function() | |
1898 | for i = 1,0,-0.1 do | |
1899 | wait() | |
1900 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1901 | end | |
1902 | Trail:remove() | |
1903 | end)() | |
1904 | coroutine.wrap(function() | |
1905 | for i = 1,10 do | |
1906 | wait() | |
1907 | Trail.Transparency = Trail.Transparency +0.1 | |
1908 | end end)()end end)() | |
1909 | coroutine.wrap(function() | |
1910 | local Old = Handle.CFrame.p | |
1911 | while wait()do | |
1912 | if not TrailDeb then break end | |
1913 | local New = Handle.CFrame.p | |
1914 | local Mag =(Old -New).magnitude | |
1915 | local Dis =(Old +New)/2 | |
1916 | local Trail = Instance.new("Part",Character) | |
1917 | Trail.Material = "Neon" | |
1918 | Trail.Anchored = true | |
1919 | Trail.CanCollide = false | |
1920 | Trail.BrickColor = TorsoColor | |
1921 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1922 | Trail.TopSurface = 0 | |
1923 | Trail.BottomSurface = 0 | |
1924 | Trail.formFactor = "Custom" | |
1925 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1926 | local ms = Instance.new("BlockMesh",Trail) | |
1927 | ms.Scale = Vector3.new(1,1,1) | |
1928 | local TM = Instance.new("CylinderMesh",Trail) | |
1929 | TM.Scale = Vector3.new(1,1,1) | |
1930 | Old = New | |
1931 | coroutine.wrap(function() | |
1932 | for i = 1,0,-0.1 do | |
1933 | wait() | |
1934 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1935 | end | |
1936 | Trail:remove() | |
1937 | end)() | |
1938 | coroutine.wrap(function() | |
1939 | for i = 1,10 do | |
1940 | wait() | |
1941 | Trail.Transparency = Trail.Transparency +0.1 | |
1942 | end end)()end end)() | |
1943 | Footsteps:Stop() | |
1944 | Footsteps2:Stop() | |
1945 | con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end) | |
1946 | con2=Gear.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end) | |
1947 | so("http://www.roblox.com/asset/?id=159882598",Torso,1,1) | |
1948 | for i=0,1,0.1 do | |
1949 | swait() | |
1950 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1951 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1952 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1953 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
1954 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
1955 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
1956 | end | |
1957 | if anim then | |
1958 | anim.Disabled=true | |
1959 | end | |
1960 | so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1) | |
1961 | so("http://www.roblox.com/asset/?id=231917758",RightArm,1,0.8) | |
1962 | for i=0,1,0.05 do | |
1963 | swait() | |
1964 | Torso.Velocity=RootPart.CFrame.lookVector*80 | |
1965 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(90),math.rad(0),math.rad(0+360*i)),.3) | |
1966 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1967 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1968 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
1969 | RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
1970 | LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
1971 | end | |
1972 | so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1) | |
1973 | so("http://www.roblox.com/asset/?id=231917758",RightArm,1,0.8) | |
1974 | for i=0,1,0.05 do | |
1975 | swait() | |
1976 | Torso.Velocity=RootPart.CFrame.lookVector*80 | |
1977 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(90),math.rad(0),math.rad(0+360*i)),.3) | |
1978 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1979 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1980 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
1981 | RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
1982 | LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
1983 | end | |
1984 | so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1) | |
1985 | so("http://www.roblox.com/asset/?id=231917758",RightArm,1,0.8) | |
1986 | for i=0,1,0.05 do | |
1987 | swait() | |
1988 | Torso.Velocity=RootPart.CFrame.lookVector*80 | |
1989 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(90),math.rad(0),math.rad(0+360*i)),.3) | |
1990 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1991 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1992 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
1993 | RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
1994 | LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
1995 | end | |
1996 | so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1) | |
1997 | so("http://www.roblox.com/asset/?id=231917758",RightArm,1,0.8) | |
1998 | for i=0,1,0.05 do | |
1999 | swait() | |
2000 | Torso.Velocity=RootPart.CFrame.lookVector*80 | |
2001 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(90),math.rad(0),math.rad(0+360*i)),.3) | |
2002 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2003 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2004 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
2005 | RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
2006 | LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
2007 | end | |
2008 | --dmgstop() | |
2009 | Humanoid.WalkSpeed=12 | |
2010 | attack=false | |
2011 | con1:disconnect() | |
2012 | con2:disconnect() | |
2013 | if anim then | |
2014 | anim.Disabled=false | |
2015 | end | |
2016 | if TrailDeb == true then | |
2017 | TrailDeb = false | |
2018 | end | |
2019 | end | |
2020 | ||
2021 | function Shred() | |
2022 | attack=true | |
2023 | mana=mana-100 | |
2024 | if TrailDeb == false then | |
2025 | TrailDeb = true | |
2026 | end | |
2027 | ||
2028 | ||
2029 | coroutine.wrap(function() | |
2030 | local Old = Handle2.CFrame.p | |
2031 | while wait()do | |
2032 | if not TrailDeb then break end | |
2033 | local New = Handle2.CFrame.p | |
2034 | local Mag =(Old -New).magnitude | |
2035 | local Dis =(Old +New)/2 | |
2036 | local Trail = Instance.new("Part",Character) | |
2037 | Trail.Material = "Neon" | |
2038 | Trail.Anchored = true | |
2039 | Trail.CanCollide = false | |
2040 | Trail.BrickColor = TorsoColor | |
2041 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
2042 | Trail.TopSurface = 0 | |
2043 | Trail.BottomSurface = 0 | |
2044 | Trail.formFactor = "Custom" | |
2045 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
2046 | local ms = Instance.new("BlockMesh",Trail) | |
2047 | ms.Scale = Vector3.new(1,1,1) | |
2048 | local TM = Instance.new("CylinderMesh",Trail) | |
2049 | TM.Scale = Vector3.new(1,1,1) | |
2050 | Old = New | |
2051 | coroutine.wrap(function() | |
2052 | for i = 1,0,-0.1 do | |
2053 | wait() | |
2054 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
2055 | end | |
2056 | Trail:remove() | |
2057 | end)() | |
2058 | coroutine.wrap(function() | |
2059 | for i = 1,10 do | |
2060 | wait() | |
2061 | Trail.Transparency = Trail.Transparency +0.1 | |
2062 | end end)()end end)() | |
2063 | coroutine.wrap(function() | |
2064 | local Old = Handle.CFrame.p | |
2065 | while wait()do | |
2066 | if not TrailDeb then break end | |
2067 | local New = Handle.CFrame.p | |
2068 | local Mag =(Old -New).magnitude | |
2069 | local Dis =(Old +New)/2 | |
2070 | local Trail = Instance.new("Part",Character) | |
2071 | Trail.Material = "Neon" | |
2072 | Trail.Anchored = true | |
2073 | Trail.CanCollide = false | |
2074 | Trail.BrickColor = TorsoColor | |
2075 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
2076 | Trail.TopSurface = 0 | |
2077 | Trail.BottomSurface = 0 | |
2078 | Trail.formFactor = "Custom" | |
2079 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
2080 | local ms = Instance.new("BlockMesh",Trail) | |
2081 | ms.Scale = Vector3.new(1,1,1) | |
2082 | local TM = Instance.new("CylinderMesh",Trail) | |
2083 | TM.Scale = Vector3.new(1,1,1) | |
2084 | Old = New | |
2085 | coroutine.wrap(function() | |
2086 | for i = 1,0,-0.1 do | |
2087 | wait() | |
2088 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
2089 | end | |
2090 | Trail:remove() | |
2091 | end)() | |
2092 | coroutine.wrap(function() | |
2093 | for i = 1,10 do | |
2094 | wait() | |
2095 | Trail.Transparency = Trail.Transparency +0.1 | |
2096 | end end)()end end)() | |
2097 | Footsteps:Stop() | |
2098 | Footsteps2:Stop() | |
2099 | con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,30,40,math.random(20,40),"Normal",RootPart,.2,1) end) | |
2100 | con2=Gear.Touched:connect(function(hit) Damagefunc(hit,30,40,math.random(20,40),"Normal",RootPart,.2,1) end) | |
2101 | so("http://www.roblox.com/asset/?id=159882578",Torso,1,1) | |
2102 | for i=0,1,0.1 do | |
2103 | swait() | |
2104 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2105 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2106 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2107 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
2108 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
2109 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
2110 | end | |
2111 | if anim then | |
2112 | anim.Disabled=true | |
2113 | end | |
2114 | for i=0,1,0.05 do | |
2115 | swait() | |
2116 | Torso.Velocity=RootPart.CFrame.lookVector*20 | |
2117 | so("http://www.roblox.com/asset/?id=231917758",LeftArm,0.2,1.2) | |
2118 | so("http://www.roblox.com/asset/?id=231917758",RightArm,0.2,1) | |
2119 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(0+40*i)),.5) | |
2120 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2121 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2122 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
2123 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
2124 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
2125 | end | |
2126 | for i=0,1,0.05 do | |
2127 | swait() | |
2128 | Torso.Velocity=RootPart.CFrame.lookVector*40 | |
2129 | so("http://www.roblox.com/asset/?id=231917758",LeftArm,0.2,1.2) | |
2130 | so("http://www.roblox.com/asset/?id=231917758",RightArm,0.2,1) | |
2131 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(41+80*i)),.5) | |
2132 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2133 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2134 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
2135 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
2136 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
2137 | end | |
2138 | for i=0,1,0.05 do | |
2139 | swait() | |
2140 | Torso.Velocity=RootPart.CFrame.lookVector*60 | |
2141 | so("http://www.roblox.com/asset/?id=231917758",LeftArm,0.2,1.2) | |
2142 | so("http://www.roblox.com/asset/?id=231917758",RightArm,0.2,1) | |
2143 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(82+120*i)),.5) | |
2144 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2145 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2146 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
2147 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
2148 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
2149 | end | |
2150 | so("http://www.roblox.com/asset/?id=159882625",Torso,1,1) | |
2151 | so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.1) | |
2152 | so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.1) | |
2153 | so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.1) | |
2154 | so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.1) | |
2155 | for i=0,1,0.05 do | |
2156 | swait() | |
2157 | Torso.Velocity=RootPart.CFrame.lookVector*80 | |
2158 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(124+160*i)),.5) | |
2159 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2160 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2161 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
2162 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
2163 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
2164 | end | |
2165 | for i=0,1,0.005 do | |
2166 | swait() | |
2167 | Torso.Velocity=RootPart.CFrame.lookVector*100 | |
2168 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(168+4200*i)),.5) | |
2169 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2170 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2171 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
2172 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
2173 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
2174 | end | |
2175 | --dmgstop() | |
2176 | Humanoid.WalkSpeed=12 | |
2177 | attack=false | |
2178 | con1:disconnect() | |
2179 | con2:disconnect() | |
2180 | if anim then | |
2181 | anim.Disabled=false | |
2182 | end | |
2183 | if TrailDeb == true then | |
2184 | TrailDeb = false | |
2185 | end | |
2186 | end | |
2187 | ||
2188 | function Push() | |
2189 | attack=true | |
2190 | mana=mana-20 | |
2191 | if TrailDeb == false then | |
2192 | TrailDeb = true | |
2193 | end | |
2194 | ||
2195 | ||
2196 | coroutine.wrap(function() | |
2197 | local Old = Handle2.CFrame.p | |
2198 | while wait()do | |
2199 | if not TrailDeb then break end | |
2200 | local New = Handle2.CFrame.p | |
2201 | local Mag =(Old -New).magnitude | |
2202 | local Dis =(Old +New)/2 | |
2203 | local Trail = Instance.new("Part",Character) | |
2204 | Trail.Material = "Neon" | |
2205 | Trail.Anchored = true | |
2206 | Trail.CanCollide = false | |
2207 | Trail.BrickColor = TorsoColor | |
2208 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
2209 | Trail.TopSurface = 0 | |
2210 | Trail.BottomSurface = 0 | |
2211 | Trail.formFactor = "Custom" | |
2212 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
2213 | local ms = Instance.new("BlockMesh",Trail) | |
2214 | ms.Scale = Vector3.new(1,1,1) | |
2215 | local TM = Instance.new("CylinderMesh",Trail) | |
2216 | TM.Scale = Vector3.new(1,1,1) | |
2217 | Old = New | |
2218 | coroutine.wrap(function() | |
2219 | for i = 1,0,-0.1 do | |
2220 | wait() | |
2221 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
2222 | end | |
2223 | Trail:remove() | |
2224 | end)() | |
2225 | coroutine.wrap(function() | |
2226 | for i = 1,10 do | |
2227 | wait() | |
2228 | Trail.Transparency = Trail.Transparency +0.1 | |
2229 | end end)()end end)() | |
2230 | coroutine.wrap(function() | |
2231 | local Old = Handle.CFrame.p | |
2232 | while wait()do | |
2233 | if not TrailDeb then break end | |
2234 | local New = Handle.CFrame.p | |
2235 | local Mag =(Old -New).magnitude | |
2236 | local Dis =(Old +New)/2 | |
2237 | local Trail = Instance.new("Part",Character) | |
2238 | Trail.Material = "Neon" | |
2239 | Trail.Anchored = true | |
2240 | Trail.CanCollide = false | |
2241 | Trail.BrickColor = TorsoColor | |
2242 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
2243 | Trail.TopSurface = 0 | |
2244 | Trail.BottomSurface = 0 | |
2245 | Trail.formFactor = "Custom" | |
2246 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
2247 | local ms = Instance.new("BlockMesh",Trail) | |
2248 | ms.Scale = Vector3.new(1,1,1) | |
2249 | local TM = Instance.new("CylinderMesh",Trail) | |
2250 | TM.Scale = Vector3.new(1,1,1) | |
2251 | Old = New | |
2252 | coroutine.wrap(function() | |
2253 | for i = 1,0,-0.1 do | |
2254 | wait() | |
2255 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
2256 | end | |
2257 | Trail:remove() | |
2258 | end)() | |
2259 | coroutine.wrap(function() | |
2260 | for i = 1,10 do | |
2261 | wait() | |
2262 | Trail.Transparency = Trail.Transparency +0.1 | |
2263 | end end)()end end)() | |
2264 | con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end) | |
2265 | con2=Gear.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end) | |
2266 | for i=0,1,0.1 do | |
2267 | swait() | |
2268 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2269 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
2270 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2271 | Handleweld.C0=clerp(Handleweld.C0,cf(-5,0,-10)*angles(math.rad(20),math.rad(-20),math.rad(0)),.2) | |
2272 | Handle2weld.C0=clerp(Handle2weld.C0,cf(5,0,-10)*angles(math.rad(20),math.rad(20),math.rad(0)),.2) | |
2273 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-20)),.3) | |
2274 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(20)),.3) | |
2275 | end | |
2276 | so("http://www.roblox.com/asset/?id=231917758",Handle2,1,.8) | |
2277 | so("http://www.roblox.com/asset/?id=231917758",Handle,1,1) | |
2278 | so("http://www.roblox.com/asset/?id=159882481",Torso,1,1) | |
2279 | for i=0,1,0.1 do | |
2280 | swait() | |
2281 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2282 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
2283 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2284 | Handleweld.C0=clerp(Handleweld.C0,cf(-4,0,-20)*angles(math.rad(20),math.rad(-20),math.rad(0)),.2) | |
2285 | Handle2weld.C0=clerp(Handle2weld.C0,cf(4,0,-20)*angles(math.rad(20),math.rad(20),math.rad(0)),.2) | |
2286 | RW.C0=clerp(RW.C0,cf(1,0.5,-1)*angles(math.rad(90),math.rad(0),math.rad(-20)),.3) | |
2287 | LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*angles(math.rad(90),math.rad(0),math.rad(20)),.3) | |
2288 | end | |
2289 | --dmgstop() | |
2290 | attack=false | |
2291 | con1:disconnect() | |
2292 | con2:disconnect() | |
2293 | if TrailDeb == true then | |
2294 | TrailDeb = false | |
2295 | end | |
2296 | end | |
2297 | ||
2298 | function Clap() | |
2299 | attack=true | |
2300 | mana=mana-20 | |
2301 | if TrailDeb == false then | |
2302 | TrailDeb = true | |
2303 | end | |
2304 | ||
2305 | ||
2306 | coroutine.wrap(function() | |
2307 | local Old = Handle2.CFrame.p | |
2308 | while wait()do | |
2309 | if not TrailDeb then break end | |
2310 | local New = Handle2.CFrame.p | |
2311 | local Mag =(Old -New).magnitude | |
2312 | local Dis =(Old +New)/2 | |
2313 | local Trail = Instance.new("Part",Character) | |
2314 | Trail.Material = "Neon" | |
2315 | Trail.Anchored = true | |
2316 | Trail.CanCollide = false | |
2317 | Trail.BrickColor = TorsoColor | |
2318 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
2319 | Trail.TopSurface = 0 | |
2320 | Trail.BottomSurface = 0 | |
2321 | Trail.formFactor = "Custom" | |
2322 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
2323 | local ms = Instance.new("BlockMesh",Trail) | |
2324 | ms.Scale = Vector3.new(1,1,1) | |
2325 | local TM = Instance.new("CylinderMesh",Trail) | |
2326 | TM.Scale = Vector3.new(1,1,1) | |
2327 | Old = New | |
2328 | coroutine.wrap(function() | |
2329 | for i = 1,0,-0.1 do | |
2330 | wait() | |
2331 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
2332 | end | |
2333 | Trail:remove() | |
2334 | end)() | |
2335 | coroutine.wrap(function() | |
2336 | for i = 1,10 do | |
2337 | wait() | |
2338 | Trail.Transparency = Trail.Transparency +0.1 | |
2339 | end end)()end end)() | |
2340 | coroutine.wrap(function() | |
2341 | local Old = Handle.CFrame.p | |
2342 | while wait()do | |
2343 | if not TrailDeb then break end | |
2344 | local New = Handle.CFrame.p | |
2345 | local Mag =(Old -New).magnitude | |
2346 | local Dis =(Old +New)/2 | |
2347 | local Trail = Instance.new("Part",Character) | |
2348 | Trail.Material = "Neon" | |
2349 | Trail.Anchored = true | |
2350 | Trail.CanCollide = false | |
2351 | Trail.BrickColor = TorsoColor | |
2352 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
2353 | Trail.TopSurface = 0 | |
2354 | Trail.BottomSurface = 0 | |
2355 | Trail.formFactor = "Custom" | |
2356 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
2357 | local ms = Instance.new("BlockMesh",Trail) | |
2358 | ms.Scale = Vector3.new(1,1,1) | |
2359 | local TM = Instance.new("CylinderMesh",Trail) | |
2360 | TM.Scale = Vector3.new(1,1,1) | |
2361 | Old = New | |
2362 | coroutine.wrap(function() | |
2363 | for i = 1,0,-0.1 do | |
2364 | wait() | |
2365 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
2366 | end | |
2367 | Trail:remove() | |
2368 | end)() | |
2369 | coroutine.wrap(function() | |
2370 | for i = 1,10 do | |
2371 | wait() | |
2372 | Trail.Transparency = Trail.Transparency +0.1 | |
2373 | end end)()end end)() | |
2374 | con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end) | |
2375 | con2=Gear.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end) | |
2376 | so("http://www.roblox.com/asset/?id=159882584",Torso,1,0.9) | |
2377 | for i=0,1,0.08 do | |
2378 | swait() | |
2379 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2380 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
2381 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2382 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,1,-5)*angles(math.rad(0),math.rad(-40),math.rad(20)),.2) | |
2383 | Handleweld.C0=clerp(Handleweld.C0,cf(5,1,-5)*angles(math.rad(0),math.rad(40),math.rad(-20)),.2) | |
2384 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-30,0,-20),.3) | |
2385 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-30,0,20),.3) | |
2386 | end | |
2387 | so("http://www.roblox.com/asset/?id=231917758",Handle2,1,.8) | |
2388 | so("http://www.roblox.com/asset/?id=231917758",Handle,1,1) | |
2389 | for i=0,1,0.08 do | |
2390 | swait() | |
2391 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2392 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
2393 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2394 | Handle2weld.C0=clerp(Handle2weld.C0,cf(4,1,-5)*angles(math.rad(0),math.rad(-43),math.rad(20)),.2) | |
2395 | Handleweld.C0=clerp(Handleweld.C0,cf(-4,1,-5)*angles(math.rad(0),math.rad(43),math.rad(-20)),.2) | |
2396 | LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*euler(-30,0,20),.3) | |
2397 | RW.C0=clerp(RW.C0,cf(1,0.5,-1)*euler(-30,0,-20),.3) | |
2398 | end | |
2399 | --dmgstop() | |
2400 | attack=false | |
2401 | con1:disconnect() | |
2402 | con2:disconnect() | |
2403 | if TrailDeb == true then | |
2404 | TrailDeb = false | |
2405 | end | |
2406 | end | |
2407 | ||
2408 | function Hai() | |
2409 | attack=true | |
2410 | Humanoid.WalkSpeed=0 | |
2411 | so("http://www.roblox.com/asset/?id=159882567",Torso,1,1) | |
2412 | for i=0,1,0.1 do | |
2413 | swait() | |
2414 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2415 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
2416 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2417 | Handleweld.C0=clerp(Handleweld.C0,cf(0,5,3)*angles(math.rad(20),math.rad(-20),math.rad(20)),.2) | |
2418 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.2) | |
2419 | 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(0)),.3) | |
2420 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
2421 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.3) | |
2422 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3) | |
2423 | end | |
2424 | so("http://www.roblox.com/asset/?id=231917758",Handle,1,.8) | |
2425 | for i=0,1,0.1 do | |
2426 | swait() | |
2427 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2428 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
2429 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2430 | Handleweld.C0=clerp(Handleweld.C0,cf(3,8,0)*angles(math.rad(0),math.rad(-20),math.rad(-30)),.2) | |
2431 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2432 | 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(0)),.3) | |
2433 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
2434 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(50)),.5) | |
2435 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3) | |
2436 | end | |
2437 | so("http://www.roblox.com/asset/?id=231917758",Handle,1,1) | |
2438 | for i=0,1,0.1 do | |
2439 | swait() | |
2440 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2441 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
2442 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2443 | Handleweld.C0=clerp(Handleweld.C0,cf(0,5,3)*angles(math.rad(20),math.rad(-20),math.rad(20)),.2) | |
2444 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.2) | |
2445 | 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(0)),.3) | |
2446 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
2447 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.3) | |
2448 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3) | |
2449 | ||
2450 | end | |
2451 | so("http://www.roblox.com/asset/?id=231917758",Handle,1,.8) | |
2452 | for i=0,1,0.1 do | |
2453 | swait() | |
2454 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2455 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
2456 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2457 | Handleweld.C0=clerp(Handleweld.C0,cf(3,8,0)*angles(math.rad(0),math.rad(-20),math.rad(-30)),.2) | |
2458 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2459 | 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(0)),.3) | |
2460 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
2461 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(50)),.3) | |
2462 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3) | |
2463 | end | |
2464 | so("http://www.roblox.com/asset/?id=231917758",Handle,1,1) | |
2465 | for i=0,1,0.1 do | |
2466 | swait() | |
2467 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2468 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
2469 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2470 | Handleweld.C0=clerp(Handleweld.C0,cf(0,5,3)*angles(math.rad(20),math.rad(-20),math.rad(20)),.2) | |
2471 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.2) | |
2472 | 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(0)),.3) | |
2473 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
2474 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.3) | |
2475 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3) | |
2476 | end | |
2477 | --dmgstop() | |
2478 | Humanoid.WalkSpeed=12 | |
2479 | attack=false | |
2480 | end | |
2481 | ||
2482 | function Die() | |
2483 | attack=true | |
2484 | Footsteps:Stop() | |
2485 | Footsteps2:Stop() | |
2486 | local Fire = it("Sound",Character.Torso) | |
2487 | Fire.SoundId = "rbxassetid://192104941" | |
2488 | Fire.Looped = true | |
2489 | Fire.Pitch = 1 | |
2490 | Fire.Volume = 1 | |
2491 | local Fire2 = it("Sound",Handle2) | |
2492 | Fire2.SoundId = "rbxassetid://192104941" | |
2493 | Fire2.Looped = true | |
2494 | Fire2.Pitch = 1 | |
2495 | Fire2.Volume = 1 | |
2496 | local Fire3 = it("Sound",Handle) | |
2497 | Fire3.SoundId = "rbxassetid://192104941" | |
2498 | Fire3.Looped = true | |
2499 | Fire3.Pitch = 1 | |
2500 | Fire3.Volume = 1 | |
2501 | local Fire4 = it("Sound",handle) | |
2502 | Fire4.SoundId = "rbxassetid://192104941" | |
2503 | Fire4.Looped = true | |
2504 | Fire4.Pitch = 1 | |
2505 | Fire4.Volume = 1 | |
2506 | local fire = Instance.new("ParticleEmitter", Character.Torso) | |
2507 | fire.Lifetime = NumberRange.new(0.5) | |
2508 | fire.Speed = NumberRange.new(1, 3) | |
2509 | fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3.564, 2.521), NumberSequenceKeypoint.new(1, 3.534, 2.521)}) | |
2510 | fire.Rate = 0 | |
2511 | fire.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)}) | |
2512 | fire.LightEmission = 0.6 | |
2513 | fire.Texture = "http://www.roblox.com/asset/?id=242911609" | |
2514 | fire.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0)) | |
2515 | local fire2 = Instance.new("ParticleEmitter", Handle) | |
2516 | fire2.Lifetime = NumberRange.new(0.5) | |
2517 | fire2.Speed = NumberRange.new(1, 3) | |
2518 | fire2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 6.564, 5.521), NumberSequenceKeypoint.new(1, 6.534, 5.521)}) | |
2519 | fire2.Rate = 0 | |
2520 | fire2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)}) | |
2521 | fire2.LightEmission = 0.6 | |
2522 | fire2.Texture = "http://www.roblox.com/asset/?id=242911609" | |
2523 | fire2.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0)) | |
2524 | local fire3 = Instance.new("ParticleEmitter", Handle2) | |
2525 | fire3.Lifetime = NumberRange.new(0.5) | |
2526 | fire3.Speed = NumberRange.new(1, 3) | |
2527 | fire3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 6.564, 5.521), NumberSequenceKeypoint.new(1, 6.534, 5.521)}) | |
2528 | fire3.Rate = 0 | |
2529 | fire3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)}) | |
2530 | fire3.LightEmission = 0.6 | |
2531 | fire3.Texture = "http://www.roblox.com/asset/?id=242911609" | |
2532 | fire3.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0)) | |
2533 | local fire4 = Instance.new("ParticleEmitter", handle) | |
2534 | fire4.Lifetime = NumberRange.new(0.5) | |
2535 | fire4.Speed = NumberRange.new(1, 3) | |
2536 | fire4.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3.564, 2.521), NumberSequenceKeypoint.new(1, 3.534, 2.521)}) | |
2537 | fire4.Rate = 0 | |
2538 | fire4.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)}) | |
2539 | fire4.LightEmission = 0.6 | |
2540 | fire4.Texture = "http://www.roblox.com/asset/?id=242911609" | |
2541 | fire4.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0)) | |
2542 | Humanoid.WalkSpeed = 0 | |
2543 | so("http://www.roblox.com/asset/?id=199149297",Head,1,1) | |
2544 | so("http://www.roblox.com/asset/?id=209527203",Head,1,1) | |
2545 | for i=0,1,0.08 do | |
2546 | swait() | |
2547 | Torso.Velocity=RootPart.CFrame.lookVector*-30 | |
2548 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,0)*angles(math.rad(-45),math.rad(0),math.rad(90)),.2) | |
2549 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(45)),.2) | |
2550 | handleweld.C0=clerp(handleweld.C0,cf(0,5,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.2) | |
2551 | Handleweld.C0=clerp(Handleweld.C0,cf(0,5,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.2) | |
2552 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,5,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.2) | |
2553 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(45)),.2) | |
2554 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),.2) | |
2555 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.2) | |
2556 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.2) | |
2557 | end | |
2558 | for i=0,1,0.005 do | |
2559 | swait() | |
2560 | moosick.Volume=1-2*i | |
2561 | light.Range=15-10*i | |
2562 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,-2.5)*angles(math.rad(-90),math.rad(0),math.rad(180)),.2) | |
2563 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(90)),.4) | |
2564 | handleweld.C0=clerp(handleweld.C0,cf(0,10,-5)*angles(math.rad(60),math.rad(30),math.rad(30)),.2) | |
2565 | Handleweld.C0=clerp(Handleweld.C0,cf(0,20,-5)*angles(math.rad(150),math.rad(0),math.rad(0)),.2) | |
2566 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,20,-5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2) | |
2567 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(0),math.rad(90)),.2) | |
2568 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2) | |
2569 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
2570 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
2571 | end | |
2572 | light.Range=0 | |
2573 | for i=0,1,0.01 do | |
2574 | swait() | |
2575 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,-2.5)*angles(math.rad(-90),math.rad(0),math.rad(180)),.2) | |
2576 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(90)),.4) | |
2577 | handleweld.C0=clerp(handleweld.C0,cf(0,10,-5)*angles(math.rad(60),math.rad(30),math.rad(30)),.2) | |
2578 | Handleweld.C0=clerp(Handleweld.C0,cf(0,20,-5)*angles(math.rad(150),math.rad(0),math.rad(0)),.2) | |
2579 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,20,-5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2) | |
2580 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(0),math.rad(90)),.2) | |
2581 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2) | |
2582 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
2583 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
2584 | end | |
2585 | so("http://www.roblox.com/asset/?id=209527175",Head,1,0.9) | |
2586 | fire.Rate = 1000 | |
2587 | fire2.Rate = 1000 | |
2588 | fire3.Rate = 1000 | |
2589 | fire4.Rate = 1000 | |
2590 | Fire:Play() | |
2591 | Fire2:Play() | |
2592 | Fire3:Play() | |
2593 | Fire4:Play() | |
2594 | for i=0,1,0.005 do | |
2595 | swait() | |
2596 | Character.Head.face.Transparency = 0+1*i | |
2597 | LeftArm.Transparency=0+1*i | |
2598 | RightArm.Transparency=0+1*i | |
2599 | LeftLeg.Transparency=0+1*i | |
2600 | RightLeg.Transparency=0+1*i | |
2601 | Head.Transparency=0+1*i | |
2602 | Torso.Transparency=0+1*i | |
2603 | for _,v in pairs(Character:children()) do | |
2604 | if v:IsA("Hat") then | |
2605 | v.Handle.Transparency = 0+1*i | |
2606 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,-2.5)*angles(math.rad(-90),math.rad(0),math.rad(180)),.2) | |
2607 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(90)),.4) | |
2608 | handleweld.C0=clerp(handleweld.C0,cf(0,10,-5)*angles(math.rad(60),math.rad(30),math.rad(30)),.2) | |
2609 | Handleweld.C0=clerp(Handleweld.C0,cf(0,20,-5)*angles(math.rad(150),math.rad(0),math.rad(0)),.2) | |
2610 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,20,-5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2) | |
2611 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(0),math.rad(90)),.2) | |
2612 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2) | |
2613 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
2614 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
2615 | end | |
2616 | end | |
2617 | --dmgstop() | |
2618 | end | |
2619 | Humanoid.Health = 0 | |
2620 | end | |
2621 | ||
2622 | equipanim() | |
2623 | ||
2624 | local sine = 0 | |
2625 | local change = 1 | |
2626 | local val = 0 | |
2627 | ||
2628 | local mananum=0 | |
2629 | while true do | |
2630 | swait() | |
2631 | sine = sine + change | |
2632 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
2633 | local velderp=RootPart.Velocity.y | |
2634 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
2635 | if equipped==true or equipped==false then | |
2636 | if Anim=="Idle" and attack==false then | |
2637 | idle=idle+1 | |
2638 | else | |
2639 | idle=0 | |
2640 | end | |
2641 | if Humanoid.Health <=20 then | |
2642 | if attack == false then | |
2643 | Humanoid.Health = math.huge | |
2644 | Die() | |
2645 | end | |
2646 | end | |
2647 | if idle>=1000 then | |
2648 | if attack==false then | |
2649 | --Sheath() | |
2650 | end | |
2651 | end | |
2652 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
2653 | Anim="Jump" | |
2654 | if attack==false then | |
2655 | Footsteps:Stop() | |
2656 | Footsteps2:Stop() | |
2657 | Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3) | |
2658 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
2659 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0),.3) | |
2660 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.25,0,0.5),.3) | |
2661 | RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
2662 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.25,0,-0.5),.3) | |
2663 | LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
2664 | RH.C0=clerp(RH.C0,cf(1,0,-.75)*euler(-0.5,1.57,0)*euler(0,0,0),.2) | |
2665 | LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(0,0,0),.2) | |
2666 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.2) | |
2667 | Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(20),math.rad(0)),.2) | |
2668 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(-20),math.rad(0)),.2) | |
2669 | end | |
2670 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
2671 | Anim="Fall" | |
2672 | if attack==false then | |
2673 | Footsteps:Stop() | |
2674 | Footsteps2:Stop() | |
2675 | Neck.C0=clerp(Neck.C0,necko*euler(0.3,0,0),.3) | |
2676 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
2677 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3) | |
2678 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.1,0,1),.3) | |
2679 | RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
2680 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.1,0,-1),.3) | |
2681 | LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
2682 | RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.6,1.57,0)*euler(0,0,0),.2) | |
2683 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.8,-1.57,0)*euler(0,0,0),.2) | |
2684 | handleweld.C0=clerp(handleweld.C0,cf(0,0,-1)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
2685 | Handleweld.C0=clerp(Handleweld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(-10),math.rad(0)),.2) | |
2686 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(10),math.rad(0)),.2) | |
2687 | end | |
2688 | elseif torvel<1 and hitfloor~=nil then | |
2689 | Anim="Idle" | |
2690 | change=0.5 | |
2691 | if idle>=1000 then | |
2692 | if attack==false then | |
2693 | Footsteps:Stop() | |
2694 | Footsteps2:Stop() | |
2695 | Humanoid.WalkSpeed=12 | |
2696 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,6-0.25*math.cos(sine/5))*angles(math.rad(0),math.rad(0),math.rad(50)),.1) | |
2697 | Neck.C0=clerp(Neck.C0,necko*angles(math.rad(5+2*math.cos(sine/5.5)),math.rad(-5-2*math.cos(sine/5.5)),math.rad(-50)),.1) | |
2698 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.1) | |
2699 | RW.C0=clerp(RW.C0,cf(0.8,0.3,-0.5)*angles(math.rad(70),math.rad(0),math.rad(-85)),.5) | |
2700 | LW.C0=clerp(LW.C0,cf(-0.6,0.5,-0.7)*angles(math.rad(70),math.rad(0),math.rad(85)),.5) | |
2701 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
2702 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
2703 | handleweld.C0=clerp(handleweld.C0,cf(3.2,-1,-2)*angles(math.rad(90),math.rad(0),math.rad(60)),.3) | |
2704 | Handleweld.C0=clerp(Handleweld.C0,cf(-2,-1.5+1*math.cos(sine/50),6)*angles(math.rad(60),math.rad(-25),math.rad(-90)),.4) | |
2705 | Handle2weld.C0=clerp(Handle2weld.C0,cf(5,1.5-0.5*math.cos(sine/50),-5)*angles(math.rad(-110),math.rad(25),math.rad(60)),.3) | |
2706 | end | |
2707 | else | |
2708 | if attack==false then | |
2709 | Footsteps:Stop() | |
2710 | Footsteps2:Stop() | |
2711 | Humanoid.WalkSpeed=12 | |
2712 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(6),math.rad(0),math.rad(0)),.3) | |
2713 | Neck.C0=clerp(Neck.C0,necko*angles(math.rad(3+3*math.cos(sine/36)),math.rad(0),math.rad(0)),.3) | |
2714 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
2715 | 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) | |
2716 | 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) | |
2717 | 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) | |
2718 | 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) | |
2719 | handleweld.C0=clerp(handleweld.C0,cf(0-1*math.cos(sine/40),0-0.5*math.cos(sine/20),0)*angles(math.rad(-5+5*math.cos(sine/20)),math.rad(0),math.rad(0)),.2) | |
2720 | Handleweld.C0=clerp(Handleweld.C0,cf(0-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) | |
2721 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0+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) | |
2722 | end | |
2723 | end | |
2724 | elseif torvel>2 and torvel<22 and hitfloor~=nil then | |
2725 | Anim="Walk" | |
2726 | if attack==false then | |
2727 | change=0.8 | |
2728 | --[[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) | |
2729 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.3) | |
2730 | 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) | |
2731 | 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) | |
2732 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3) | |
2733 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3) | |
2734 | --Handleweld.C0=clerp(--Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2735 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
2736 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2) | |
2737 | --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.1,0,0.2),.2) | |
2738 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-5),math.rad(-25),math.rad(20)),.3) | |
2739 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(5),math.rad(25),math.rad(-20)),.3) | |
2740 | RH.C0=clerp(RH.C0,RHC0,.3) | |
2741 | LH.C0=clerp(LH.C0,LHC0,.3) | |
2742 | Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2743 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2744 | ]]-- | |
2745 | Footsteps:Play() | |
2746 | Footsteps2:Stop() | |
2747 | 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) | |
2748 | 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) | |
2749 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
2750 | 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) | |
2751 | 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) | |
2752 | 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) | |
2753 | 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) | |
2754 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2755 | Handleweld.C0=clerp(Handleweld.C0,cf(0-.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) | |
2756 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0+.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) | |
2757 | end | |
2758 | elseif torvel>=22 and hitfloor~=nil then | |
2759 | Anim="Run" | |
2760 | change=1 | |
2761 | if attack==false then | |
2762 | Footsteps:Stop() | |
2763 | Footsteps2:Play() | |
2764 | 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) | |
2765 | Neck.C0=clerp(Neck.C0,necko*euler(-0.2+0.075*math.cos(sine/2.5),0,0),.3) | |
2766 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
2767 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(24)),.3) | |
2768 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(-24)),.3) | |
2769 | 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) | |
2770 | 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) | |
2771 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2772 | Handleweld.C0=clerp(Handleweld.C0,cf(0-.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) | |
2773 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0+.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) | |
2774 | end | |
2775 | end | |
2776 | end | |
2777 | fenbarmana2:TweenSize(UDim2.new(4*mana/100,0,0.2,0),nil,1,0.4,true) | |
2778 | fenbarmana4.Text="[Energy] <{[ "..mana.." ]}> [Energy]" | |
2779 | if mana>=100 then | |
2780 | mana=100 | |
2781 | else | |
2782 | if mananum<=8 then | |
2783 | mananum=mananum+1 | |
2784 | else | |
2785 | mananum=0 | |
2786 | mana=mana+1 | |
2787 | end | |
2788 | end | |
2789 | end | |
2790 | -- ~CLarramore |