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