SHOW:
|
|
- or go back to the newest paste.
1 | - | local p = game.Players.Mokuteki |
1 | + | local p = game.Players.endermites15 |
2 | local char = p.Character | |
3 | local mouse = p:GetMouse() | |
4 | local larm = char["Left Arm"] | |
5 | local rarm = char["Right Arm"] | |
6 | local lleg = char["Left Leg"] | |
7 | local rleg = char["Right Leg"] | |
8 | local hed = char.Head | |
9 | local torso = char.Torso | |
10 | local cam = game.Workspace.CurrentCamera | |
11 | local root = char.HumanoidRootPart | |
12 | local deb = false | |
13 | local shot = 0 | |
14 | local l = game.Lighting | |
15 | local stanceToggle = "Assertive" | |
16 | local CanAttack = true | |
17 | local Daytime = true | |
18 | local animpose = "Idle" | |
19 | local lastanimpose = "Idle" | |
20 | local nosword=false | |
21 | RootPart=char.HumanoidRootPart | |
22 | local Effects={} | |
23 | local attack=false | |
24 | idle=0 | |
25 | Anim='Idle' | |
26 | equipped=true | |
27 | char.Humanoid.WalkSpeed=40 | |
28 | colorscheme=BrickColor.new('Black') | |
29 | it=Instance.new | |
30 | attacktype=1 | |
31 | vt=Vector3.new | |
32 | cf=CFrame.new | |
33 | euler=CFrame.fromEulerAnglesXYZ | |
34 | angles=CFrame.Angles | |
35 | m=Instance.new('Model',char) | |
36 | stance='god' | |
37 | --game:service'Lighting'.TimeOfDay=24 | |
38 | z = Instance.new("Sound") | |
39 | z.SoundId = "http://www.roblox.com/asset/?id=142360845"--..SIDs[math.random(1,#SIDs)]--159496201 | |
40 | --248000653 | |
41 | z.Parent = char | |
42 | z.Looped = true | |
43 | z.Pitch = 1 | |
44 | z.Volume = 1 | |
45 | wait(.01) | |
46 | --z:Play() | |
47 | Debounces = { | |
48 | on = false; | |
49 | ks = false; | |
50 | CanAttack = true; | |
51 | CanJoke = true; | |
52 | NoIdl = false; | |
53 | Slashing = false; | |
54 | Slashed = false; | |
55 | Grabbing = | |
56 | false; | |
57 | Grabbed = false; | |
58 | } | |
59 | local RbxUtility = LoadLibrary("RbxUtility") | |
60 | local Create = RbxUtility.Create | |
61 | wm=Create("Model"){ | |
62 | Parent=char, | |
63 | Name="Weapon", | |
64 | } | |
65 | it=Instance.new | |
66 | vt=Vector3.new | |
67 | cf=CFrame.new | |
68 | euler=CFrame.fromEulerAnglesXYZ | |
69 | angles=CFrame.Angles | |
70 | ||
71 | ||
72 | function swait(num) | |
73 | if num==0 or num==nil then | |
74 | game:service'RunService'.Stepped:wait(0) | |
75 | else | |
76 | for i=0,num do | |
77 | game:service'RunService'.Stepped:wait(0) | |
78 | end | |
79 | end | |
80 | end | |
81 | --vvvvv WOW HAVEN'T SEEN THIS ONE BEFORE! | |
82 | function clerp(a,b,t) | |
83 | local qa = {QuaternionFromCFrame(a)} | |
84 | local qb = {QuaternionFromCFrame(b)} | |
85 | local ax, ay, az = a.x, a.y, a.z | |
86 | local bx, by, bz = b.x, b.y, b.z | |
87 | local _t = 1-t | |
88 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
89 | end | |
90 | ||
91 | function QuaternionFromCFrame(cf) | |
92 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
93 | local trace = m00 + m11 + m22 | |
94 | if trace > 0 then | |
95 | local s = math.sqrt(1 + trace) | |
96 | local recip = 0.5/s | |
97 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
98 | else | |
99 | local i = 0 | |
100 | if m11 > m00 then | |
101 | i = 1 | |
102 | end | |
103 | if m22 > (i == 0 and m00 or m11) then | |
104 | i = 2 | |
105 | end | |
106 | if i == 0 then | |
107 | local s = math.sqrt(m00-m11-m22+1) | |
108 | local recip = 0.5/s | |
109 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
110 | elseif i == 1 then | |
111 | local s = math.sqrt(m11-m22-m00+1) | |
112 | local recip = 0.5/s | |
113 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
114 | elseif i == 2 then | |
115 | local s = math.sqrt(m22-m00-m11+1) | |
116 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
117 | end | |
118 | end | |
119 | end | |
120 | ||
121 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
122 | local xs, ys, zs = x + x, y + y, z + z | |
123 | local wx, wy, wz = w*xs, w*ys, w*zs | |
124 | local xx = x*xs | |
125 | local xy = x*ys | |
126 | local xz = x*zs | |
127 | local yy = y*ys | |
128 | local yz = y*zs | |
129 | local zz = z*zs | |
130 | 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)) | |
131 | end | |
132 | ||
133 | function QuaternionSlerp(a, b, t) | |
134 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
135 | local startInterp, finishInterp; | |
136 | if cosTheta >= 0.0001 then | |
137 | if (1 - cosTheta) > 0.0001 then | |
138 | local theta = math.acos(cosTheta) | |
139 | local invSinTheta = 1/math.sin(theta) | |
140 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
141 | finishInterp = math.sin(t*theta)*invSinTheta | |
142 | else | |
143 | startInterp = 1-t | |
144 | finishInterp = t | |
145 | end | |
146 | else | |
147 | if (1+cosTheta) > 0.0001 then | |
148 | local theta = math.acos(-cosTheta) | |
149 | local invSinTheta = 1/math.sin(theta) | |
150 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
151 | finishInterp = math.sin(t*theta)*invSinTheta | |
152 | else | |
153 | startInterp = t-1 | |
154 | finishInterp = t | |
155 | end | |
156 | end | |
157 | 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 | |
158 | end | |
159 | ----------- | |
160 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
161 | local wld = Instance.new("Weld", wp1) | |
162 | wld.Part0 = wp0 | |
163 | wld.Part1 = wp1 | |
164 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
165 | return wld | |
166 | end | |
167 | ||
168 | larm.Size = larm.Size * 2 | |
169 | rarm.Size = rarm.Size * 2 | |
170 | lleg.Size = lleg.Size * 2 | |
171 | rleg.Size = rleg.Size * 2 | |
172 | torso.Size = torso.Size * 2 | |
173 | hed.Size = hed.Size * 2 | |
174 | root.Size = root.Size * 2 | |
175 | ---------------------------------------------------- | |
176 | newWeld(torso, larm, -3, 0.5, 0) | |
177 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
178 | newWeld(torso, rarm, 3, 0.5, 0) | |
179 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
180 | newWeld(torso, hed, 0, 1.5, 0) | |
181 | hed.Weld.C1 = CFrame.new(0, -1.5, 0) | |
182 | newWeld(torso, lleg, -0.5, -1, 0) | |
183 | lleg.Weld.C1 = CFrame.new(.5, 3, 0) | |
184 | newWeld(torso, rleg, 0.5, -1, 0) | |
185 | rleg.Weld.C1 = CFrame.new(-.5, 3, 0) | |
186 | newWeld(root, torso, 0, -1, 0) | |
187 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
188 | ||
189 | - | Player=game:GetService('Players').hipersonic149 |
189 | + | Player=game:GetService('Players').endermites15 |
190 | Character=Player.Character | |
191 | Mouse=Player:GetMouse() | |
192 | m=Instance.new('Model',Character) | |
193 | ||
194 | local function weldBetween(a, b) | |
195 | local weldd = Instance.new("ManualWeld") | |
196 | weldd.Part0 = a | |
197 | weldd.Part1 = b | |
198 | weldd.C0 = CFrame.new() | |
199 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
200 | weldd.Parent = a | |
201 | return weldd | |
202 | end | |
203 | ||
204 | it=Instance.new | |
205 | ||
206 | function nooutline(part) | |
207 | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 | |
208 | end | |
209 | ||
210 | function paart(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
211 | local fp=it("Part") | |
212 | fp.formFactor=formfactor | |
213 | fp.Parent=parent | |
214 | fp.Reflectance=reflectance | |
215 | fp.Transparency=transparency | |
216 | fp.CanCollide=false | |
217 | fp.Locked=true | |
218 | fp.BrickColor=brickcolor | |
219 | fp.Name=name | |
220 | fp.Size=size | |
221 | fp.Position=torso.Position | |
222 | nooutline(fp) | |
223 | fp.Material="SmoothPlastic" | |
224 | fp:BreakJoints() | |
225 | return fp | |
226 | end | |
227 | ||
228 | ||
229 | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
230 | local fp=it("Part") | |
231 | fp.formFactor=formfactor | |
232 | fp.Parent=parent | |
233 | fp.Reflectance=reflectance | |
234 | fp.Transparency=transparency | |
235 | fp.CanCollide=false | |
236 | fp.Locked=true | |
237 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
238 | fp.Name=name | |
239 | fp.Size=size | |
240 | fp.Position=Character.Torso.Position | |
241 | nooutline(fp) | |
242 | fp.Material=material | |
243 | fp:BreakJoints() | |
244 | return fp | |
245 | end | |
246 | ||
247 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
248 | local mesh=it(Mesh) | |
249 | mesh.Parent=part | |
250 | if Mesh=="SpecialMesh" then | |
251 | mesh.MeshType=meshtype | |
252 | mesh.MeshId=meshid | |
253 | end | |
254 | mesh.Offset=offset | |
255 | mesh.Scale=scale | |
256 | return mesh | |
257 | end | |
258 | ||
259 | function weld(parent,part0,part1,c0,c1) | |
260 | local weld=it("Weld") | |
261 | weld.Parent=parent | |
262 | weld.Part0=part0 | |
263 | weld.Part1=part1 | |
264 | weld.C0=c0 | |
265 | weld.C1=c1 | |
266 | return weld | |
267 | end | |
268 | ||
269 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
270 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
271 | end | |
272 | ||
273 | so = function(id,par,vol,pit) | |
274 | coroutine.resume(coroutine.create(function() | |
275 | local sou = Instance.new("Sound",par or workspace) | |
276 | sou.Volume=vol | |
277 | sou.Pitch=pit or 1 | |
278 | sou.SoundId=id | |
279 | swait() | |
280 | sou:play() | |
281 | game:GetService("Debris"):AddItem(sou,6) | |
282 | end)) | |
283 | end | |
284 | ||
285 | Face=hed.face | |
286 | ||
287 | function Cloak() | |
288 | so("http://roblox.com/asset/?id=2767090",torso,1,1.1) | |
289 | Face.Parent=nil | |
290 | cloaked=true | |
291 | for _,v in pairs(torso.Parent:children()) do | |
292 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
293 | coroutine.resume(coroutine.create(function() | |
294 | for i=0,1,0.2 do | |
295 | wait() | |
296 | v.Transparency=i | |
297 | end | |
298 | v.Transparency=1 | |
299 | end)) | |
300 | end | |
301 | if v.className=="Hat" then | |
302 | hatp=v.Handle | |
303 | coroutine.resume(coroutine.create(function(derp) | |
304 | for i=0,1,0.2 do | |
305 | wait() | |
306 | derp.Transparency=i | |
307 | end | |
308 | derp.Transparency=1 | |
309 | end),hatp) | |
310 | end | |
311 | end | |
312 | for _,v in pairs(m:children()) do | |
313 | if v.className=="Part" then | |
314 | coroutine.resume(coroutine.create(function() | |
315 | for i=0,1,0.2 do | |
316 | wait() | |
317 | v.Transparency=i | |
318 | end | |
319 | v.Transparency=1 | |
320 | end)) | |
321 | end | |
322 | end | |
323 | end | |
324 | magix=true | |
325 | function UnCloak() | |
326 | so("http://roblox.com/asset/?id=2767090",torso,1,1.1) | |
327 | Face.Parent=hed | |
328 | cloaked=false | |
329 | for _,v in pairs(torso.Parent:children()) do | |
330 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
331 | coroutine.resume(coroutine.create(function() | |
332 | for i=0,1,0.1 do | |
333 | wait() | |
334 | v.Transparency=v.Transparency-0.1 | |
335 | end | |
336 | v.Transparency=0 | |
337 | end)) | |
338 | end | |
339 | --[[if v.className~="Hat" then | |
340 | hatp=v.Handle | |
341 | coroutine.resume(coroutine.create(function(derp) | |
342 | for i=0,1,0.1 do | |
343 | wait() | |
344 | derp.Transparency=derp.Transparency-0.1 | |
345 | end | |
346 | derp.Transparency=0 | |
347 | end),hatp) | |
348 | end]] | |
349 | end | |
350 | if magix==false then | |
351 | for _,v in pairs(m:children()) do | |
352 | if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' and v.Name~='hat' then | |
353 | coroutine.resume(coroutine.create(function() | |
354 | for i=0,1,0.1 do | |
355 | wait() | |
356 | v.Transparency=v.Transparency-0.1 | |
357 | end | |
358 | v.Transparency=0 | |
359 | end)) | |
360 | v.Transparency=0 | |
361 | end | |
362 | end | |
363 | else | |
364 | for _,v in pairs(m:children()) do | |
365 | if v.className=="Part" and v.ClassName~='Weld' and v.Name~="hitbox" and v.Name~='tip' and v.Name~='hat'then | |
366 | coroutine.resume(coroutine.create(function() | |
367 | for i=0,1,0.1 do | |
368 | wait() | |
369 | v.Transparency=v.Transparency-0.1 | |
370 | end | |
371 | v.Transparency=0 | |
372 | end)) | |
373 | v.Transparency=0 | |
374 | end | |
375 | end | |
376 | end | |
377 | end | |
378 | ||
379 | ||
380 | Damagefuncy=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
381 | if hit.Parent==nil then | |
382 | return | |
383 | end | |
384 | local h=hit.Parent:FindFirstChild("Humanoid") | |
385 | for _,v in pairs(hit.Parent:children()) do | |
386 | if v:IsA("Humanoid") then | |
387 | h=v | |
388 | end | |
389 | end | |
390 | if hit.Parent.Parent:FindFirstChild("Torso")~=nil then | |
391 | h=hit.Parent.Parent:FindFirstChild("Humanoid") | |
392 | end | |
393 | if hit.Parent.className=="Hat" then | |
394 | hit=hit.Parent.Parent:findFirstChild("Head") | |
395 | end | |
396 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then | |
397 | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end | |
398 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
399 | return | |
400 | end]] | |
401 | -- hs(hit,1.2) | |
402 | local c=Instance.new("ObjectValue") | |
403 | c.Name="creator" | |
404 | c.Value=game:service("Players").LocalPlayer | |
405 | c.Parent=h | |
406 | game:GetService("Debris"):AddItem(c,.5) | |
407 | local Damage=math.random(minim,maxim) | |
408 | -- h:TakeDamage(Damage) | |
409 | local blocked=false | |
410 | local block=hit.Parent:findFirstChild("Block") | |
411 | if block~=nil then | |
412 | print(block.className) | |
413 | if block.className=="NumberValue" then | |
414 | if block.Value>0 then | |
415 | blocked=true | |
416 | if decreaseblock==nil then | |
417 | block.Value=block.Value-1 | |
418 | end | |
419 | end | |
420 | end | |
421 | if block.className=="IntValue" then | |
422 | if block.Value>0 then | |
423 | blocked=true | |
424 | if decreaseblock~=nil then | |
425 | block.Value=block.Value-1 | |
426 | end | |
427 | end | |
428 | end | |
429 | end | |
430 | if blocked==false then | |
431 | -- h:TakeDamage(Damage) | |
432 | h.Health=h.Health-Damage | |
433 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color) | |
434 | else | |
435 | h.Health=h.Health-(Damage/2) | |
436 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color) | |
437 | end | |
438 | if Type=="Knockdown" then | |
439 | local hum=hit.Parent.Humanoid | |
440 | hum.PlatformStand=true | |
441 | coroutine.resume(coroutine.create(function(HHumanoid) | |
442 | swait(1) | |
443 | HHumanoid.PlatformStand=false | |
444 | end),hum) | |
445 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
446 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
447 | local bodvol=Instance.new("BodyVelocity") | |
448 | bodvol.velocity=angle*knockback | |
449 | bodvol.P=5000 | |
450 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
451 | bodvol.Parent=hit | |
452 | local rl=Instance.new("BodyAngularVelocity") | |
453 | rl.P=3000 | |
454 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
455 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
456 | rl.Parent=hit | |
457 | game:GetService("Debris"):AddItem(bodvol,.5) | |
458 | game:GetService("Debris"):AddItem(rl,.5) | |
459 | elseif Type=="Normal" then | |
460 | local vp=Instance.new("BodyVelocity") | |
461 | vp.P=500 | |
462 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
463 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
464 | if KnockbackType==1 then | |
465 | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
466 | elseif KnockbackType==2 then | |
467 | vp.velocity=Property.CFrame.lookVector*knockback | |
468 | end | |
469 | if knockback>0 then | |
470 | vp.Parent=hit.Parent.Torso | |
471 | end | |
472 | game:GetService("Debris"):AddItem(vp,.5) | |
473 | elseif Type=="Up" then | |
474 | local bodyVelocity=Instance.new("BodyVelocity") | |
475 | bodyVelocity.velocity=vt(0,60,0) | |
476 | bodyVelocity.P=5000 | |
477 | bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
478 | bodyVelocity.Parent=hit | |
479 | game:GetService("Debris"):AddItem(bodyVelocity,1) | |
480 | local rl=Instance.new("BodyAngularVelocity") | |
481 | rl.P=3000 | |
482 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
483 | rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30)) | |
484 | rl.Parent=hit | |
485 | game:GetService("Debris"):AddItem(rl,.5) | |
486 | elseif Type=="Snare" then | |
487 | local bp=Instance.new("BodyPosition") | |
488 | bp.P=2000 | |
489 | bp.D=100 | |
490 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
491 | bp.position=hit.Parent.Torso.Position | |
492 | bp.Parent=hit.Parent.Torso | |
493 | game:GetService("Debris"):AddItem(bp,1) | |
494 | elseif Type=="Target" then | |
495 | local Targetting = false | |
496 | if Targetting==false then | |
497 | ZTarget=hit.Parent.Torso | |
498 | coroutine.resume(coroutine.create(function(Part) | |
499 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) | |
500 | swait(5) | |
501 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) | |
502 | end),ZTarget) | |
503 | local TargHum=ZTarget.Parent:findFirstChild("Humanoid") | |
504 | local targetgui=Instance.new("BillboardGui") | |
505 | targetgui.Parent=ZTarget | |
506 | targetgui.Size=UDim2.new(10,100,10,100) | |
507 | local targ=Instance.new("ImageLabel") | |
508 | targ.Parent=targetgui | |
509 | targ.BackgroundTransparency=1 | |
510 | targ.Image="rbxassetid://4834067" | |
511 | targ.Size=UDim2.new(1,0,1,0) | |
512 | cam.CameraType="Scriptable" | |
513 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
514 | local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
515 | workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
516 | Targetting=true | |
517 | RocketTarget=ZTarget | |
518 | for i=1,Property do | |
519 | --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do | |
520 | if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then | |
521 | swait() | |
522 | end | |
523 | --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100) | |
524 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
525 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
526 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0) | |
527 | end | |
528 | Targetting=false | |
529 | RocketTarget=nil | |
530 | targetgui.Parent=nil | |
531 | cam.CameraType="Custom" | |
532 | end | |
533 | end | |
534 | local debounce=Instance.new("BoolValue") | |
535 | debounce.Name="DebounceHit" | |
536 | debounce.Parent=hit.Parent | |
537 | debounce.Value=true | |
538 | game:GetService("Debris"):AddItem(debounce,Delay) | |
539 | c=Instance.new("ObjectValue") | |
540 | c.Name="creator" | |
541 | c.Value=Player | |
542 | c.Parent=h | |
543 | game:GetService("Debris"):AddItem(c,.5) | |
544 | end | |
545 | end | |
546 | ||
547 | ||
548 | function ShowDamage(Pos, Text, Time, Color) | |
549 | local Rate = (1 / 30) | |
550 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
551 | local Text = (Text or "") | |
552 | local Time = (Time or 2) | |
553 | local Color = (Color or Color3.new(1, 0, 0)) | |
554 | local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0)) | |
555 | EffectPart.Anchored = true | |
556 | local BillboardGui = Instance.new("BillboardGui") | |
557 | BillboardGui.Size = UDim2.new(3, 0, 3, 0) | |
558 | BillboardGui.Adornee = EffectPart | |
559 | local TextLabel = Instance.new("TextLabel") | |
560 | TextLabel.BackgroundTransparency = 1 | |
561 | TextLabel.Size = UDim2.new(1, 0, 1, 0) | |
562 | TextLabel.Text = Text | |
563 | TextLabel.TextColor3 = Color | |
564 | TextLabel.TextScaled = true | |
565 | TextLabel.Font = Enum.Font.ArialBold | |
566 | TextLabel.Parent = BillboardGui | |
567 | BillboardGui.Parent = EffectPart | |
568 | game.Debris:AddItem(EffectPart, (Time + 0.1)) | |
569 | EffectPart.Parent = game:GetService("Workspace") | |
570 | Delay(0, function() | |
571 | local Frames = (Time / Rate) | |
572 | for Frame = 1, Frames do | |
573 | wait(Rate) | |
574 | local Percent = (Frame / Frames) | |
575 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
576 | TextLabel.TextTransparency = Percent | |
577 | end | |
578 | if EffectPart and EffectPart.Parent then | |
579 | EffectPart:Destroy() | |
580 | end | |
581 | end) | |
582 | end | |
583 | ||
584 | handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Deep orange","Handle",Vector3.new(0.599999905, 4, 0.400000036)) | |
585 | handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.01841354, -0.0695610046, 0.049372673, -6.61965621e-012, -0.999999523, -1.12313298e-010, 0.00563658308, 1.10681131e-010, -0.999983788, 0.999983311, -8.65419195e-012, 0.00563658029)) | |
586 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.200000003, 0.799999833, 0.400000036)) | |
587 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.30133295, -4.59958267, 8.10623169e-006, 0.999997258, -4.70680717e-011, -3.91951055e-012, 5.03742811e-011, 1, -1.05605516e-011, 6.73187634e-012, 1.17550084e-011, 0.999997258)) | |
588 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.599999905, 4.4000001, 0.200000003)) | |
589 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.30089998, -5.9995594, -1.09672546e-005, 0.999996305, -3.48216178e-011, -1.62637629e-011, 3.83456322e-011, 1, -4.63629656e-012, 1.90928835e-011, 5.8306901e-012, 0.999996305)) | |
590 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.400000036, 0.200000003, 0.200000003)) | |
591 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.19480896e-005, -5.09960365, 1.30145025, 1.05312156e-005, 8.7171511e-006, -0.99998951, 1.7453418e-005, 1.00000608, 8.67240487e-006, 0.999999523, -1.97484223e-005, 1.04995552e-005)) | |
592 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
593 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 1.20000005, 0.200000003)) | |
594 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.70081615, -7.59955597, -3.81469727e-006, 0.999984145, -2.66020192e-011, -1.43523457e-011, 3.47976994e-011, 0.999999881, -4.03995587e-012, 2.00987699e-011, 6.42852438e-012, 0.999984264)) | |
595 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
596 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.71661377e-005, 3.69953728, 1.5010314, -8.34466391e-006, -8.76185368e-006, 0.99998939, -3.13209239e-005, -1.00000584, -8.67240215e-006, 0.999999523, -3.36160047e-005, 8.31290799e-006)) | |
597 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
598 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 0.600000381, 0.200000003)) | |
599 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.30089188, -3.49957085, -2.86102295e-006, 0.999989867, -3.57171584e-011, -1.50535487e-011, 4.31028546e-011, 1, -4.03874503e-012, 2.07377258e-011, 6.42744365e-012, 0.999989867)) | |
600 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
601 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.09908223, -3.49954987, -9.01222229e-005, 0.999987006, -1.91744329e-011, -1.37810397e-011, 3.06906514e-011, 1, -4.03930535e-012, 1.97828975e-011, 6.42799182e-012, 0.999987006)) | |
602 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(1, 0.599999726, 0.400000036)) | |
603 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.70132542, -8.4995842, 5.24520874e-006, 0.999993086, -4.43888051e-011, -2.43437388e-012, 4.98436153e-011, 1, -9.96337388e-012, 6.69102967e-012, 1.1754959e-011, 0.999993086)) | |
604 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(1.39999998, 0.399999917, 0.600000024)) | |
605 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.100895882, -2.19955063, 9.53674316e-007, 0.999992609, -3.44739653e-011, -1.49579567e-011, 4.15219734e-011, 1, -4.03871207e-012, 2.06161754e-011, 6.42749222e-012, 0.999992609)) | |
606 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.599999905, 0.599999905, 0.400000036)) | |
607 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0997242928, -1.50003433, 4.76837158e-007, 0.999986172, 2.41444642e-011, 2.85323978e-012, -1.32283698e-011, 1, -1.71489559e-013, 5.65950715e-012, 3.75693227e-012, 0.999986172)) | |
608 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.599999905, 0.200000003, 0.400000036)) | |
609 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0999045372, -1.90000916, 9.53674316e-007, 0.999992609, -1.09000656e-011, -1.43775027e-011, 1.79482471e-011, 1, -1.47436403e-012, 2.00357196e-011, 3.8631251e-012, 0.999992609)) | |
610 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.400000036, 0.600000024, 0.799999952)) | |
611 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(5.7220459e-005, 7.89964485, 1.80142498, -8.7530334e-006, -8.68735151e-006, 0.999989688, -5.80388769e-006, -1.00000608, -8.74690795e-006, 0.999999523, -8.09880021e-006, 8.72149394e-006)) | |
612 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
613 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.600000024, 0.600000024, 0.200000003)) | |
614 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.04904175e-005, -2.89971924, 1.70256662, 6.8837162e-006, 8.72622059e-006, -0.999989986, -6.28802127e-006, 1.00000644, 8.69458381e-006, 0.999999523, 3.99320834e-006, 6.85229907e-006)) | |
615 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
616 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.599999905, 0.200000003, 0.400000036)) | |
617 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0997610092, -1.10003662, 4.76837158e-007, 0.999986172, 2.3436475e-011, 3.80554746e-012, -1.25203806e-011, 1, -6.22770932e-013, 4.70720034e-012, 4.20822058e-012, 0.999986172)) | |
618 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
619 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.09909248, -3.89955139, -8.39233398e-005, 0.999991059, -2.07311043e-011, -1.39008249e-011, 2.9134084e-011, 1, -4.03928453e-012, 1.96632485e-011, 6.42804039e-012, 0.999991059)) | |
620 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.600000024, 0.600000024, 0.200000003)) | |
621 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.43051147e-005, -2.89971542, 1.4974215, -6.88429463e-006, 8.7262697e-006, 0.999989986, 6.28824864e-006, 1.00000644, -8.6946302e-006, -0.999999404, 3.99342571e-006, -6.80979338e-006)) | |
622 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
623 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.400000036, 0.200000003, 0.200000003)) | |
624 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.38690186e-005, -6.49961472, 1.30147791, 1.05312156e-005, 8.7171511e-006, -0.99998951, 1.7453418e-005, 1.00000608, 8.67240487e-006, 0.999999523, -1.97484223e-005, 1.04995552e-005)) | |
625 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
626 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.400000036, 0.400000036, 1.60000002)) | |
627 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.91549683e-005, -9.39964676, 0.401554585, 1.08461672e-005, 8.73205954e-006, -0.99998945, 1.98187317e-005, 1.00000608, 8.67240396e-006, 0.999999523, -2.21137525e-005, 1.08144795e-005)) | |
628 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
629 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.200000003, 0.799999833, 0.400000036)) | |
630 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.30132532, -5.99957848, 8.10623169e-006, 0.999991179, -4.51590224e-011, -2.4936303e-012, 5.22830321e-011, 1, -9.96334352e-012, 8.15769154e-012, 1.23521532e-011, 0.999991179)) | |
631 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.400000036, 0.600000024, 0.200000003)) | |
632 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.7179718e-005, 2.89961815, 0.698666811, 8.67242125e-006, 5.76516186e-006, -0.99998945, 4.75738125e-006, -1.00000608, -5.82467419e-006, -0.999999285, -2.46256491e-006, -8.73203044e-006)) | |
633 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
634 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.400000036, 0.400000036, 0.99999994)) | |
635 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.48498535e-005, -8.99962234, 1.70155716, 1.08461672e-005, 8.73205954e-006, -0.99998945, 1.98187317e-005, 1.00000608, 8.67240396e-006, 0.999999523, -2.21137525e-005, 1.08144795e-005)) | |
636 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
637 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.400000036, 0.200000003, 0.200000003)) | |
638 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.95910645e-005, 6.89964104, 1.30140543, -8.7530334e-006, -8.68735151e-006, 0.999989688, -5.80388769e-006, -1.00000608, -8.74690795e-006, 0.999999523, -8.09880021e-006, 8.72149394e-006)) | |
639 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
640 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.600000024, 0.600000024, 0.200000003)) | |
641 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.28746033e-005, 2.29969978, 1.49744749, 4.58953173e-006, -8.76190825e-006, -0.999989688, 3.95497409e-006, -1.00000656, 8.64263984e-006, -0.999999523, -6.24984796e-006, -4.64914001e-006)) | |
642 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
643 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.599999964, 0.599999905, 0.600000024)) | |
644 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.101387024, 2.29981613, 9.53674316e-007, 0.999986172, -2.03466965e-011, -3.78346451e-011, 3.12565737e-011, 1, 9.68086201e-012, 4.63478943e-011, -6.09796068e-012, 0.999986172)) | |
645 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.399999917, 0.200000003, 0.200000003)) | |
646 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.01292133, 2.36062241, -0.199992657, 0.965919137, -0.258819193, 9.68770486e-009, 0.258817405, 0.965925813, -7.3579848e-008, 9.69177893e-009, 7.35824557e-008, 0.999993086)) | |
647 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.400000036, 0.200000003, 0.200000003)) | |
648 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.86238098e-005, 5.4995842, 1.30153465, -8.34466391e-006, -8.76185368e-006, 0.99998939, -3.13209239e-005, -1.00000584, -8.67240215e-006, 0.999999523, -3.36160047e-005, 8.31290799e-006)) | |
649 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
650 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.600000024, 0.600000024, 0.200000003)) | |
651 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.00135803e-005, 2.29969788, 1.70259237, -4.63829838e-006, -8.76185914e-006, 0.999989808, -3.95520055e-006, -1.00000656, -8.64259528e-006, 0.999999523, -6.25006533e-006, 4.60681576e-006)) | |
652 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
653 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.599999905, 0.799999893, 0.400000036)) | |
654 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0998063087, -0.600069046, 4.76837158e-007, 0.999986172, 2.84053614e-011, 8.71606606e-012, -1.74948181e-011, 1, 8.56011442e-013, -2.0281346e-013, 2.72700959e-012, 0.999986172)) | |
655 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.599999905, 0.200000003, 0.400000036)) | |
656 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.100811958, 1.89962769, -9.53674316e-007, 0.999986172, 2.43582932e-013, -2.16690259e-011, 1.06665718e-011, 1, 8.84393427e-012, 3.01822768e-011, -5.26102599e-012, 0.999986172)) | |
657 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.200000003, 1.19999981, 0.400000036)) | |
658 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.30133152, -7.59958649, 4.29153442e-006, 0.999991536, -4.51809631e-011, -2.49531992e-012, 5.22611329e-011, 1, -9.96334352e-012, 8.15601059e-012, 1.23521523e-011, 0.999991536)) | |
659 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.400000036, 0.600000024, 0.400000006)) | |
660 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.71661377e-005, 2.89961624, 1.00137615, -8.7530334e-006, -8.68735151e-006, 0.999989688, -5.80388769e-006, -1.00000608, -8.74690795e-006, 0.999999523, -8.09880021e-006, 8.72149394e-006)) | |
661 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
662 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.399999976, 6, 0.400000036)) | |
663 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.00134325, -6.19958878, -6.67572021e-006, 0.999990463, -4.44280446e-011, -2.43740444e-012, 5.16362716e-011, 1, -9.96334352e-012, 8.1079362e-012, 1.23521419e-011, 0.999990463)) | |
664 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.599999905, 0.400000036, 0.400000036)) | |
665 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0998740196, -6.10351563e-005, 4.76837158e-007, 0.999986172, 3.25150462e-011, 1.47778543e-011, -2.16044196e-011, 1, 1.79467205e-012, -6.26460082e-012, 1.78833684e-012, 0.999986172)) | |
666 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.599999905, 0.599999905, 0.400000036)) | |
667 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.100226402, -1.49966812, -4.76837158e-007, -0.999986172, -5.96395537e-008, -9.93794487e-008, 5.96278227e-008, -1, 3.80804792e-008, -9.93709364e-008, 3.8084579e-008, 0.999986172)) | |
668 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.399999917, 0.200000003, 0.200000003)) | |
669 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.01291943, 2.36062241, -0.200006008, -0.965919256, 0.258818418, 5.95878689e-008, 0.25881663, 0.965926111, -5.57539693e-007, -1.63906265e-007, -5.51367407e-007, -0.999992788)) | |
670 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.599999905, 0.200000003, 0.400000036)) | |
671 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.10008812, 1.09988785, 0, 0.999986172, 3.17495474e-011, 2.19618039e-011, -2.08440973e-011, 1, 1.6464434e-012, -1.34490544e-011, 1.93546047e-012, 0.999986172)) | |
672 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.599999905, 0.799999893, 0.400000036)) | |
673 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0999064445, -0.599903107, 4.76837158e-007, -0.999986172, -5.964894e-008, -9.93747662e-008, 5.96372018e-008, -1, 3.80745568e-008, -9.93662539e-008, 3.80786567e-008, 0.999986172)) | |
674 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.399999917, 0.200000003, 0.200000003)) | |
675 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.19833279, 2.3109436, -0.200005054, -0.965918899, -0.258819193, -1.34113861e-007, -0.258817405, 0.965925813, 7.44806314e-008, -5.95990883e-008, 7.35335561e-008, -0.999992788)) | |
676 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.399999917, 0.200000003, 0.200000003)) | |
677 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.19833183, 2.3109417, -0.19999361, 0.965919197, 0.258818418, -1.63907302e-007, -0.25881657, 0.965926111, 5.66216784e-007, 1.63906265e-007, -5.51318522e-007, 0.99999249)) | |
678 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
679 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.14440918e-005, -3.29951477, 1.50105858, 9.89090768e-006, 8.76185186e-006, -0.999989271, 4.36100818e-005, 1.0000056, 8.61280023e-006, 0.999999523, -4.59052462e-005, 9.8590308e-006)) | |
680 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
681 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(1, 0.400000006, 0.200000003)) | |
682 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.9038372, -1.75626755, -0.199999332, 0.866019428, 0.5, 2.20907594e-008, -0.499996543, 0.866025388, 6.89347033e-008, 1.53416728e-008, -7.07429137e-008, 0.999993086)) | |
683 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000033)) | |
684 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.76837158e-005, 6.89955902, 1.70114231, -8.34466391e-006, -8.76185368e-006, 0.99998939, -3.13209239e-005, -1.00000584, -8.67240215e-006, 0.999999523, -3.36160047e-005, 8.31290799e-006)) | |
685 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
686 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 0.600000024, 0.400000036)) | |
687 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(5.38825989e-005, 7.89956093, 2.00117016, -8.34466391e-006, -8.76185368e-006, 0.99998939, -3.13209239e-005, -1.00000584, -8.67240215e-006, 0.999999523, -3.36160047e-005, 8.31290799e-006)) | |
688 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
689 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.400000036, 0.200000003, 0.200000003)) | |
690 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.67028809e-005, 4.09958076, 1.30148745, -8.34466391e-006, -8.76185368e-006, 0.99998939, -3.13209239e-005, -1.00000584, -8.67240215e-006, 0.999999523, -3.36160047e-005, 8.31290799e-006)) | |
691 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
692 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(1, 0.400000006, 0.200000003)) | |
693 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.12790108, 1.62690544, 0.20000124, -0.866019249, 0.499999821, -1.69992358e-008, -0.499996364, -0.866025209, -2.86735276e-008, -2.9053e-008, -1.6330004e-008, 0.999993086)) | |
694 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
695 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.09910226, -5.09955788, -8.01086426e-005, 0.999987483, -2.38258649e-011, -1.41388229e-011, 3.50124374e-011, 1, -4.03923769e-012, 2.01153399e-011, 6.42793284e-012, 0.999987483)) | |
696 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.400000006, 1.19999897, 0.200000003)) | |
697 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-9.04989433, -5.45730114, -0.000123023987, 0.707099319, 0.707106709, -8.23653536e-008, -0.707099319, 0.70710665, -2.31702231e-007, -1.05590843e-007, 2.22084282e-007, 0.99998951)) | |
698 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.400000006, 1.19999897, 0.200000003)) | |
699 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-8.48420525, -4.89161015, -0.00012254715, 0.707099319, 0.707106709, -8.23653536e-008, -0.707099319, 0.70710665, -2.31702231e-007, -1.05590843e-007, 2.22084282e-007, 0.99998951)) | |
700 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000033)) | |
701 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.19888306e-005, 5.09964371, -1.49892831, -8.34466391e-006, -8.76185368e-006, 0.99998939, -3.13209239e-005, -1.00000584, -8.67240215e-006, 0.999999523, -3.36160047e-005, 8.31290799e-006)) | |
702 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
703 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.400000036, 0.600000024, 0.599999905)) | |
704 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(9.87052917e-005, -8.89964485, 1.89849019, -5.72201225e-006, -9.39299207e-006, 0.999992847, 1.73207645e-005, 1, 9.39303209e-006, -0.999992847, 1.73209264e-005, -5.72201634e-006)) | |
705 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
706 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.400000036, 2, 0.599999905)) | |
707 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.91549683e-005, 6.39963531, 1.89852977, 5.86456508e-006, 9.387707e-006, -0.999992728, -1.7509652e-005, -0.99999994, -9.41744565e-006, -0.999992847, 1.75098194e-005, -5.86456827e-006)) | |
708 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
709 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 1.79999936, 0.200000003)) | |
710 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.499084, -6.09956169, -9.48905945e-005, 0.999993086, 1.35347566e-011, -1.1265381e-011, -6.65070082e-012, 1, -4.03978587e-012, 1.69109015e-011, 6.42856775e-012, 0.999993086)) | |
711 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 0.400000036, 0.200000003)) | |
712 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.23977661e-005, -10.9995041, -2.09947681, 3.68056726e-006, 3.36381646e-007, -0.999992192, -3.51401286e-005, 0.999999642, 3.36363996e-007, 0.999992669, 3.51403614e-005, 3.30804482e-006)) | |
713 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
714 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.400000036, 1.59999931, 0.200000003)) | |
715 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.79906392, -6.19955444, -9.96589661e-005, 0.999991298, 2.46519472e-011, -1.04103436e-011, -1.63584216e-011, 1, -4.03994893e-012, 1.61643164e-011, 6.42870653e-012, 0.999991298)) | |
716 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 0.400000036, 0.400000036)) | |
717 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.00135803e-005, -10.9994926, 2.39945531, -3.53155679e-006, 2.44306165e-007, 0.999992251, -3.32144991e-005, 0.999999642, -2.44311622e-007, -0.999992728, -3.3214721e-005, -3.35274808e-006)) | |
718 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
719 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 0.400000036, 0.200000003)) | |
720 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.09912157, -4.79956436, -0.000121116638, 0.999993086, 1.26183786e-010, -2.60250935e-012, -1.1929896e-010, 1, -4.04142345e-012, 8.24803073e-012, 6.43021227e-012, 0.999993086)) | |
721 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 0.600000024, 0.600000024)) | |
722 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-9.53674316e-006, -10.4996262, -1.6987474, 3.60606191e-006, 2.44256199e-007, -0.99999249, 3.3214732e-005, 0.999999642, 2.44265465e-007, 0.999992967, -3.32149393e-005, 3.47195646e-006)) | |
723 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
724 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 0.400000006, 0.200000003)) | |
725 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(5.96046448e-005, 4.7996521, -1.89894223, -8.34466391e-006, -8.76185368e-006, 0.99998939, -3.13209239e-005, -1.00000584, -8.67240215e-006, 0.999999523, -3.36160047e-005, 8.31290799e-006)) | |
726 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
727 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.400000006, 1.19999897, 0.200000003)) | |
728 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.91851616, -4.32592297, -0.00012254715, 0.707099319, 0.707106709, -8.23653536e-008, -0.707099319, 0.70710665, -2.31702231e-007, -1.05590843e-007, 2.22084282e-007, 0.99998951)) | |
729 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.399999946, 1.19999993, 0.600000024)) | |
730 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.4025631, -2.59968758, 9.53674316e-007, 0.999993086, -9.9128844e-011, -1.20540383e-012, 1.06011581e-010, 1, -1.68229337e-011, 6.85092521e-012, 1.9211811e-011, 0.999993086)) | |
731 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(1, 0.400000006, 0.200000003)) | |
732 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.9038372, -1.75626755, 0.200001717, 0.866019428, 0.5, 2.20907594e-008, -0.499996543, 0.866025388, 6.89347033e-008, 1.53416728e-008, -7.07429137e-008, 0.999993086)) | |
733 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.399999946, 1.19999993, 0.600000024)) | |
734 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.1974349, -2.59968758, 4.29153442e-006, 0.999993086, -9.9128844e-011, -1.20540383e-012, 1.06011581e-010, 1, -1.68229337e-011, 6.85092521e-012, 1.9211811e-011, 0.999993086)) | |
735 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(1.39999998, 6.80000019, 0.400000036)) | |
736 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.101338387, -5.79958153, 9.53674316e-007, 0.999993086, -4.38584238e-011, -2.39358793e-012, 5.07595632e-011, 1, -9.96334352e-012, 8.04051704e-012, 1.23521731e-011, 0.999993086)) | |
737 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(1, 0.400000006, 0.200000003)) | |
738 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.12790108, 1.62690544, -0.199999809, -0.866019249, 0.499999821, -1.69992358e-008, -0.499996364, -0.866025209, -2.86735276e-008, -2.9053e-008, -1.6330004e-008, 0.999993086)) | |
739 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.600000024, 0.200000003, 0.200000003)) | |
740 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.29908991, -5.29955864, -9.48905945e-005, 0.999992967, -1.50723739e-011, -1.34655958e-011, 2.20103449e-011, 1, -4.03936953e-012, 1.91153447e-011, 6.42815662e-012, 0.999992967)) | |
741 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.600000024, 2.19999957, 0.200000003)) | |
742 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.69905233, -8.09956741, -0.000144004822, 0.999984145, 7.53328372e-011, -6.51274347e-012, -6.14701554e-011, 1, -4.04064282e-012, 1.26948833e-011, 6.42926684e-012, 0.999984145)) | |
743 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.600000024, 0.400000006, 0.200000003)) | |
744 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.89917946, -5.19956207, -0.000117778778, 0.999993086, 7.67240438e-011, -6.40572491e-012, -6.98395716e-011, 1, -4.0407018e-012, 1.20512472e-011, 6.42949062e-012, 0.999993086)) | |
745 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
746 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.09908175, -4.69955444, -8.48770142e-005, 0.99998343, -2.22875329e-011, -1.40204497e-011, 3.65506583e-011, 1, -4.03926025e-012, 2.02335718e-011, 6.42788253e-012, 0.99998343)) | |
747 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.200000003, 5.99999952, 0.400000036)) | |
748 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.698655128, -6.19958878, 9.53674316e-007, 0.999992967, -4.52522048e-011, -2.50079731e-012, 5.21899399e-011, 1, -9.96334352e-012, 8.15054448e-012, 1.23521748e-011, 0.999992967)) | |
749 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.800000012, 1.9999994, 0.400000036)) | |
750 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.19864798, -6.39957619, -2.86102295e-006, 0.999991298, -4.45745801e-011, -2.44867581e-012, 5.28674882e-011, 1, -9.96334439e-012, 8.20264776e-012, 1.23521532e-011, 0.999991298)) | |
751 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.400000006, 0.400000036, 1.20000005)) | |
752 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.96318054e-005, -9.39966965, 0.998550892, -1.08777776e-005, -7.21227707e-006, 0.999989271, 9.29348153e-006, 1.00000608, 7.15253782e-006, -0.999999166, 1.15884122e-005, -1.07585738e-005)) | |
753 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
754 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.599999964, 1.19999933, 0.200000003)) | |
755 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.0990684, -7.9995575, -7.05718994e-005, 0.999991298, -2.50895554e-011, -1.42360785e-011, 3.33826369e-011, 1, -4.03921861e-012, 1.99900495e-011, 6.42797447e-012, 0.999991298)) | |
756 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.400000006, 0.200000003, 0.800000072)) | |
757 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.33650208e-005, 5.29961014, 1.19855571, 1.23440404e-005, 2.14574197e-006, -0.999993086, -1.86938523e-005, -1, -2.1457347e-006, -0.999993086, 1.86940015e-005, -1.2344005e-005)) | |
758 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
759 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 0.400000006, 0.400000036)) | |
760 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.09672546e-005, 5.19964027, 2.39893103, 3.17393119e-006, -1.63585497e-007, -0.999993086, -3.0609368e-005, -1, 1.6348109e-007, -0.999993086, 3.06095644e-005, -3.17393528e-006)) | |
761 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
762 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.600000024, 0.999999404, 0.200000003)) | |
763 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.69905472, -9.69956017, -0.000102043152, 0.999984622, 2.09521081e-011, -1.06948044e-011, -7.5663989e-012, 1, -4.03988301e-012, 1.68403312e-011, 6.42852958e-012, 0.999984622)) | |
764 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.800000012, 0.599999428, 0.400000036)) | |
765 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.19864798, -8.89958382, -6.67572021e-006, 0.999991298, -3.65172059e-011, -1.82889121e-012, 4.48101695e-011, 1, -9.96338515e-012, 7.58286576e-012, 1.23521896e-011, 0.999991298)) | |
766 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.400000006, 0.200000003, 0.800000072)) | |
767 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.38961792e-005, -7.49964714, 1.19857502, -1.08777776e-005, -7.21227707e-006, 0.999989271, 9.29348153e-006, 1.00000608, 7.15253782e-006, -0.999999166, 1.15884122e-005, -1.07585738e-005)) | |
768 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
769 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.600000024, 5.39999914, 0.200000003)) | |
770 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.29888916, -8.09955788, -0.000128746033, 0.999993086, 6.4361072e-011, -7.35652685e-012, -5.74766831e-011, 1, -4.04054221e-012, 1.30020491e-011, 6.42933103e-012, 0.999993086)) | |
771 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
772 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.09908271, -4.29955292, -8.4400177e-005, 0.99998343, -2.23058447e-011, -1.40218583e-011, 3.65323466e-011, 1, -4.03926025e-012, 2.02321632e-011, 6.42788253e-012, 0.99998343)) | |
773 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 2.19999933, 0.200000003)) | |
774 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.899097919, -4.29956627, -7.58171082e-005, 0.999991298, -2.52726728e-011, -1.42501609e-011, 3.35657405e-011, 1, -4.03921688e-012, 2.00041355e-011, 6.42797794e-012, 0.999991298)) | |
775 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.400000006, 1.19999897, 0.200000003)) | |
776 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.35282898, -3.76023579, -0.00012254715, 0.707099319, 0.707106709, -8.23653536e-008, -0.707099319, 0.70710665, -2.31702231e-007, -1.05590843e-007, 2.22084282e-007, 0.99998951)) | |
777 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(1.39999998, 6.80000019, 0.400000036)) | |
778 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.101338387, -5.79958153, 9.53674316e-007, 0.999993086, -4.38584238e-011, -2.39358793e-012, 5.07595632e-011, 1, -9.96334352e-012, 8.04051704e-012, 1.23521731e-011, 0.999993086)) | |
779 | Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Medium stone grey","Hitbox",Vector3.new(5.4000001, 9.20000076, 0.400000036)) | |
780 | Hitboxweld=weld(m,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.298654079, -6.99958229, 9.53674316e-007, 0.999993086, -4.38584238e-011, -2.39358793e-012, 5.07595632e-011, 1, -9.96334352e-012, 8.04051704e-012, 1.23521731e-011, 0.999993086)) | |
781 | ||
782 | HatHandle=part(Enum.FormFactor.Custom,wm,Enum.Material.SmoothPlastic,0,0,"Really black","HatHandle",Vector3.new(0.800000012, 1.39999998, 2.4000001)) | |
783 | HatHandleweld=weld(wm,Character["Head"],HatHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.81469727e-006, -0.0999984741, -1.90734863e-005, 0.999991894, 5.70663635e-024, 5.40628298e-006, -5.7065484e-024, 1, 3.31866973e-026, -5.40628298e-006, -3.33613591e-026, 0.999991894)) | |
784 | mesh("SpecialMesh",HatHandle,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=44520670",Vector3.new(0, 0, 0),Vector3.new(2.0999999, 2.0999999, 2.0999999)) | |
785 | HatHandle2=part(Enum.FormFactor.Custom,wm,Enum.Material.SmoothPlastic,0,0,"Deep orange","HatHandle2",Vector3.new(0.800000012, 1.39999998, 2.4000001)) | |
786 | HatHandle2weld=weld(wm,HatHandle,HatHandle2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.81469727e-006, 5.7220459e-006, 0, 0.999983788, 1.34285766e-028, -0, 1.34285766e-028, 1, -1.44078049e-028, 0, -1.44078049e-028, 0.999983788)) | |
787 | mesh("SpecialMesh",HatHandle2,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=44520670",Vector3.new(0, 0, 0),Vector3.new(2.07999992, 1.8599999, 2.03999996)) | |
788 | ||
789 | hitsounds={"154965901","154965973","225698273","225698281","225698315"} | |
790 | ||
791 | function MagniDamage(Part,dis,mind,maxd,force,knock) | |
792 | for _,c in pairs(workspace:children()) do | |
793 | local hum=c:findFirstChild("Humanoid") | |
794 | if hum~=nil then | |
795 | local head=c:findFirstChild("Torso") | |
796 | if head~=nil then | |
797 | local targ=head.Position-Part.Position | |
798 | local mag=targ.magnitude | |
799 | if mag<=dis and c.Name~=Character.Name then | |
800 | Damagefuncy(Part,hum.Parent.Torso,mind,maxd,force,knock,RootPart,.2,1) | |
801 | end | |
802 | end | |
803 | end | |
804 | end | |
805 | end | |
806 | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | |
807 | mouse.KeyDown:connect(function(key) | |
808 | if key == "v" then | |
809 | attack=true | |
810 | char.Humanoid.WalkSpeed = 40 | |
811 | if Debounces.CanAttack == true then | |
812 | Debounces.CanAttack = false | |
813 | Debounces.NoIdl = true | |
814 | ||
815 | Debounces.on = true | |
816 | for i = 1,20 do | |
817 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 1, 0) * CFrame.Angles(math.rad(75), 0, math.rad(-30)), 0.1) | |
818 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 1, 0) * CFrame.Angles(math.rad(75), 0, math.rad(30)), 0.1) | |
819 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-20), math.rad(0), 0), 0.1) | |
820 | ||
821 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.1) | |
822 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles (math.rad(30), 0, math.rad(-5)), 0.1) | |
823 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles (math.rad(30), 0, math.rad(5)), 0.1) | |
824 | handleweld.C0 = clerp(handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.9) | |
825 | if Debounces.on == false then break | |
826 | end | |
827 | wait() | |
828 | end | |
829 | wait(1) | |
830 | local v = Instance.new("Sound") | |
831 | v.SoundId = "rbxassetid://181384451" | |
832 | v.Parent = char | |
833 | v.Looped = false | |
834 | v.Pitch = 1.04 | |
835 | v.Volume = 1 | |
836 | wait(.01) | |
837 | v:Play() | |
838 | ||
839 | if Daytime == true then | |
840 | Daytime = false | |
841 | ||
842 | l.TimeOfDay = 24 | |
843 | else | |
844 | Daytime = true | |
845 | l.TimeOfDay = 12 | |
846 | ||
847 | l.OutdoorAmbient = Color3.new(0.498039, 0.498039, 0.498039) | |
848 | end | |
849 | ||
850 | local Shockwave = function() | |
851 | local rng1 = Instance.new("Part", char) | |
852 | rng1.Anchored = true | |
853 | ||
854 | rng1.BrickColor = BrickColor.new("Really black") | |
855 | rng1.CanCollide = false | |
856 | ||
857 | rng1.FormFactor = 3 | |
858 | rng1.Name = "Ring" | |
859 | rng1.Size = Vector3.new(1, 1, 1) | |
860 | ||
861 | rng1.Transparency = 0.35 | |
862 | rng1.TopSurface = 0 | |
863 | rng1.BottomSurface = 0 | |
864 | ||
865 | local rngm1 = Instance.new("SpecialMesh", rng) | |
866 | rngm1.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
867 | rngm1.Scale = Vector3.new(10, 10, 1) | |
868 | ||
869 | rng1.CFrame = CFrame.new(0, -2, 0) * CFrame.Angles(0, 0, 0) | |
870 | local Wave = Instance.new("Part", game.Workspace--[[?]]) | |
871 | Wave.Name = "Shockwave" | |
872 | Wave.BrickColor = BrickColor.new("Really black") | |
873 | Wave.Size = Vector3.new(1, 1, 1) | |
874 | Wave.Shape = "Ball" | |
875 | ||
876 | Wave.CanCollide = false | |
877 | Wave.Anchored = true | |
878 | Wave.TopSurface = 0 | |
879 | ||
880 | Wave.BottomSurface = 0 | |
881 | Wave.Touched:connect(function(hit) | |
882 | if hit.Parent:findFirstChild("Humanoid") and hit.Parent:findFirstChild("Torso") then | |
883 | local Occlude = true | |
884 | local NotOccludes = { | |
885 | char.Name; | |
886 | "Wings"; | |
887 | "Scythe"; | |
888 | "Thingy"; | |
889 | "Thingy2"; -- put all of the names in a table pls | |
890 | } | |
891 | ||
892 | for i,v in pairs(NotOccludes) do | |
893 | if hit.Parent.Name == v then | |
894 | ||
895 | Occlude = false | |
896 | end | |
897 | end | |
898 | --if hit.Parent.Name ~= char.Name and hit.Name ~= "Wings" and hit.Name ~= "Scythe" and hit.Name ~= "Thingy" and hit.Name ~= "Thingy2" and hit.Parent.Name ~= "Wings" and hit.Parent.Name ~= "Scythe" and hit.Parent.Name ~= "Thingy" and hit.Parent.Name ~= "Thingy2" then | |
899 | if Occlude then | |
900 | ||
901 | hit.Parent:findFirstChild("Humanoid").Health = hit.Parent:findFirstChild("Humanoid").Health - 1 | |
902 | ||
903 | hit.Parent:findFirstChild("Torso").Velocity = hit.Parent:findFirstChild("Torso").CFrame.lookVector * -120 | |
904 | end | |
905 | end | |
906 | end) | |
907 | ||
908 | ||
909 | Instance.new("SpecialMesh", Wave).MeshType = "Sphere" | |
910 | ||
911 | ||
912 | coroutine.wrap(function() | |
913 | for i = 1, 20, 0.2 do | |
914 | rngm1.Scale = Vector3.new(10 + i*2, 10 + i*2, 1) | |
915 | rng1.Transparency = i/20 | |
916 | wait() | |
917 | ||
918 | end | |
919 | wait() | |
920 | rng1:Destroy() | |
921 | end)() | |
922 | ||
923 | ||
924 | Delay(0, function() | |
925 | ||
926 | if Daytime == false then | |
927 | ||
928 | for i = 1, 50, 1 do | |
929 | Wave.Size = Vector3.new(1 + i, 1 + i, 1 + i) | |
930 | ||
931 | Wave.CFrame = char.Torso.CFrame | |
932 | local t = i / 50 | |
933 | ||
934 | Wave.Transparency = t | |
935 | wait() | |
936 | end | |
937 | else | |
938 | ||
939 | for i = 1, 50, 1 do | |
940 | Wave.Size = Vector3.new(1 + i, 1 + i, 1 + i) | |
941 | ||
942 | Wave.CFrame = char.Torso.CFrame | |
943 | local t = i / 50 | |
944 | ||
945 | Wave.Transparency = t | |
946 | wait() | |
947 | end | |
948 | ||
949 | end | |
950 | Wave:Destroy() | |
951 | end) | |
952 | Delay(0, function() | |
953 | ||
954 | while wait() do | |
955 | if Wave ~= nil then | |
956 | Wave.CFrame = char.Torso.CFrame | |
957 | else | |
958 | break | |
959 | end | |
960 | ||
961 | end | |
962 | end) | |
963 | end | |
964 | Shockwave() | |
965 | for i = 1, 15 do | |
966 | ||
967 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3.2, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-130)), 0.2) | |
968 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3.2, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(70)), 0.2) | |
969 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(45), math.rad(30), 0), 0.1) | |
970 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(30), math.rad(20), math.rad(0)), 0.2) | |
971 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(-40)), 0.1) | |
972 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1) | |
973 | handleweld.C0 = clerp(handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.9) | |
974 | if Debounces.on == false then break end | |
975 | wait() | |
976 | end | |
977 | for i = 1, 15 do | |
978 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-70)), 0.2) | |
979 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(130)), 0.2) | |
980 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(45), math.rad(-30), 0), 0.1) | |
981 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(30), math.rad(-20), math.rad(0)), 0.2) | |
982 | handleweld.C0 = clerp(handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.9) | |
983 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1) | |
984 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(40)), 0.1) | |
985 | if Debounces.on == false then break end | |
986 | wait() | |
987 | end | |
988 | ||
989 | for i = 1, 15 do | |
990 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3.2, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-130)), 0.2) | |
991 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3.2, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(70)), 0.2) | |
992 | handleweld.C0 = clerp(handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.9) | |
993 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(45), math.rad(30), 0), 0.1) | |
994 | ||
995 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(30), math.rad(20), math.rad(0)), 0.2) | |
996 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(-40)), 0.1) | |
997 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1) | |
998 | if Debounces.on == false then break end | |
999 | ||
1000 | wait() | |
1001 | end | |
1002 | for i = 1, 15 do | |
1003 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-70)), 0.2) | |
1004 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(130)), 0.2) | |
1005 | handleweld.C0 = clerp(handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.9) | |
1006 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(45), math.rad(-30), 0), 0.1) | |
1007 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(30), math.rad(-20), math.rad(0)), 0.2) | |
1008 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1) | |
1009 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(40)), 0.1) | |
1010 | if Debounces.on == false then break end | |
1011 | wait() | |
1012 | end | |
1013 | for i = 1, 15 do | |
1014 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3.2, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-130)), 0.2) | |
1015 | handleweld.C0 = clerp(handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.9) | |
1016 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3.2, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(70)), 0.2) | |
1017 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(45), math.rad(30), 0), 0.1) | |
1018 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(30), math.rad(20), math.rad(0)), 0.2) | |
1019 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(-40)), 0.1) | |
1020 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1) | |
1021 | if | |
1022 | Debounces.on == false then break end | |
1023 | wait() | |
1024 | end | |
1025 | for i = 1, 15 do | |
1026 | ||
1027 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-70)), 0.2) | |
1028 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(130)), 0.2) | |
1029 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(45), math.rad(-30), 0), 0.1) | |
1030 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(30), math.rad(-20), math.rad(0)), 0.2) | |
1031 | handleweld.C0 = clerp(handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.9) | |
1032 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1) | |
1033 | ||
1034 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(40)), 0.1) | |
1035 | if Debounces.on == false then break end | |
1036 | wait() | |
1037 | end | |
1038 | ||
1039 | wait(1.4) | |
1040 | Debounces.NoIdl = false | |
1041 | char.Humanoid.WalkSpeed = 40 | |
1042 | Debounces.on = false | |
1043 | wait() | |
1044 | ||
1045 | if Debounces.CanAttack == false then | |
1046 | Debounces.CanAttack = true | |
1047 | v:Destroy() | |
1048 | ||
1049 | end | |
1050 | attack=false | |
1051 | end | |
1052 | end | |
1053 | end) | |
1054 | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | |
1055 | mod5 = Instance.new("Model",char) | |
1056 | function Landing() | |
1057 | local part=Instance.new('Part',mod5) | |
1058 | part.Anchored=true | |
1059 | ||
1060 | part.CanCollide=false | |
1061 | part.FormFactor='Custom' | |
1062 | part.Size=Vector3.new(.2,.2,.2) | |
1063 | ||
1064 | part.CFrame=root.CFrame*CFrame.new(0,-2,0) | |
1065 | part.Transparency=.7 | |
1066 | part.BrickColor=BrickColor.new('Really black') | |
1067 | local mesh=Instance.new('SpecialMesh',part) | |
1068 | mesh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
1069 | ||
1070 | mesh.Scale=Vector3.new(10,5,10) | |
1071 | ||
1072 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,40))do | |
1073 | if | |
1074 | v:FindFirstChild('Humanoid') then | |
1075 | v.Humanoid:TakeDamage(math.random(50,70)) | |
1076 | ||
1077 | v.Humanoid.PlatformStand = true | |
1078 | v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100 | |
1079 | ||
1080 | end | |
1081 | end | |
1082 | ||
1083 | coroutine.resume(coroutine.create(function() | |
1084 | for i=0,3.8,0.05 do | |
1085 | wait() | |
1086 | ||
1087 | part.CFrame=part.CFrame | |
1088 | part.Transparency=i | |
1089 | mesh.Scale=mesh.Scale+Vector3.new(1,0.2,1) | |
1090 | end | |
1091 | part.Parent = nil | |
1092 | end)) | |
1093 | end | |
1094 | ||
1095 | ||
1096 | function newRay(start,face,range,wat) | |
1097 | local rey=Ray.new(start.p,(face.p-start.p).Unit*range) | |
1098 | ||
1099 | hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat) | |
1100 | return rey,hit,pos | |
1101 | end | |
1102 | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | |
1103 | mouse.KeyDown:connect(function | |
1104 | (key) | |
1105 | if key == "c" then | |
1106 | attack=true | |
1107 | char.Humanoid.WalkSpeed = 40 | |
1108 | if Debounces.CanAttack == true then | |
1109 | ||
1110 | Debounces.CanAttack = false | |
1111 | Debounces.on = true | |
1112 | Debounces.NoIdl = true | |
1113 | --[[x = | |
1114 | Instance.new("Sound",char) | |
1115 | x.SoundId = "http://www.roblox.com/asset/?id=169445572" | |
1116 | ||
1117 | x.Looped = false | |
1118 | x.Pitch = 1.1 | |
1119 | x.Volume = 1 | |
1120 | x:Play() | |
1121 | x2 = Instance.new("Sound",char) | |
1122 | x2.SoundId = "http://www.roblox.com/asset/?id=169380495" | |
1123 | ||
1124 | x2.Looped = false | |
1125 | x2.Pitch = .7 | |
1126 | x2.Volume = 1 | |
1127 | wait(.1) | |
1128 | x:Play() | |
1129 | ||
1130 | x2:Play() | |
1131 | for i = 1, 20 do | |
1132 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,0.6,-.2) *CFrame.Angles (math.rad (45),math.rad(0),math.rad(32)), 0.2) | |
1133 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,1,0)*CFrame.Angles(math.rad (0),math.rad(0),math.rad(-20)), 0.2) | |
1134 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.4)*CFrame.Angles(math.rad (- 8),math.rad(-40), math.rad(-8)),0.2) | |
1135 | ||
1136 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -3.2, 0) * CFrame.Angles (math.rad (-50), math.rad(40), math.rad(0)), 0.2) | |
1137 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.8, .4, -1.6) * CFrame.Angles (math.rad (30), 0, math.rad(20)), 0.2) | |
1138 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.6, -2, 0) * CFrame.Angles (math.rad(- 10), math.rad(-40), math.rad(0)), 0.2) | |
1139 | ||
1140 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.3, -1.1) * CFrame.Angles(math.rad(-60), math.rad(-90), math.rad(0)), 0.4) | |
1141 | if Debounces.on == false then break end | |
1142 | wait() | |
1143 | ||
1144 | x:Destroy() | |
1145 | x2:Destroy() | |
1146 | end | |
1147 | wait(1)]]-- | |
1148 | local rng = Instance.new("Part", char) | |
1149 | rng.Anchored = true | |
1150 | rng.BrickColor = BrickColor.new("Really black") | |
1151 | ||
1152 | rng.CanCollide = false | |
1153 | rng.FormFactor = 3 | |
1154 | rng.Name = "Ring" | |
1155 | rng.Size = Vector3.new(1, 1, 1) | |
1156 | rng.Transparency = 0.35 | |
1157 | rng.TopSurface = 0 | |
1158 | rng.BottomSurface = 0 | |
1159 | rng.Position = torso.Position - Vector3.new(0,2,0) | |
1160 | rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
1161 | local rngm = Instance.new("SpecialMesh", rng) | |
1162 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1163 | rngm.Scale = Vector3.new(1, 1, 2) | |
1164 | x = Instance.new("Sound",char) | |
1165 | x.SoundId = "http://www.roblox.com/asset/?id=169445602" | |
1166 | x.Looped = false | |
1167 | x.Pitch = .7 | |
1168 | x.Volume = 1 | |
1169 | x:Play() | |
1170 | ||
1171 | coroutine.wrap(function() | |
1172 | for i = 1, 60, 2 do | |
1173 | rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1) | |
1174 | rng.Transparency = i/60 | |
1175 | wait() | |
1176 | end | |
1177 | ||
1178 | wait() | |
1179 | rng:Destroy() | |
1180 | end)() | |
1181 | char.Humanoid.WalkSpeed = 40 | |
1182 | local BV = Instance.new("BodyVelocity", torso) | |
1183 | BV.maxForce = Vector3.new(0,100000,0) | |
1184 | BV.P = 100000 | |
1185 | ||
1186 | BV.velocity = Vector3.new(0,800,0) | |
1187 | for i = 1, 20 do | |
1188 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(20),math.rad(0), math.rad(0)),0.7) | |
1189 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(-16), math.rad(0), math.rad(0)), 0.7) | |
1190 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 1, 0) * CFrame.Angles(math.rad(40), 0, math.rad(-20)), 0.7) | |
1191 | ||
1192 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 1, 0) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(20)), 0.7) | |
1193 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5,-1,0) * CFrame.Angles(math.rad(-10), 0, 0), 0.7) | |
1194 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5,-1,0) * CFrame.Angles(math.rad(0), 0, 0), 0.7) | |
1195 | handleweld.C0 = clerp(handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.9) | |
1196 | if Debounces.on == false then break end | |
1197 | wait() | |
1198 | end | |
1199 | x:Destroy() | |
1200 | BV:Destroy() | |
1201 | --[[for i = 1, 30 do | |
1202 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(-14),math.rad(0), math.rad(0)),0.3) | |
1203 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-16), math.rad (0), math.rad(0)), 0.3) | |
1204 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3) | |
1205 | ||
1206 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.3) | |
1207 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -.4, -1) * CFrame.Angles(math.rad(20), 0, 0), 0.3) | |
1208 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.8, -.6) * CFrame.Angles(math.rad(-30), 0, 0), 0.3) | |
1209 | if Debounces.on == false then break end | |
1210 | wait() | |
1211 | end]]-- | |
1212 | if (torso.Velocity*Vector3.new(1, 1, 1)).magnitude > 1 then | |
1213 | for i = 1, 30 do | |
1214 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(-14),math.rad(0), math.rad(0)),0.3) | |
1215 | ||
1216 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1.6, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1217 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 1.4, 0) * CFrame.Angles(math.rad(-15), math.rad(-20), math.rad(-40)), 0.3) | |
1218 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 1.4, 0) * CFrame.Angles(math.rad(-15), math.rad(-20), math.rad(40)), 0.3) | |
1219 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5,-1,0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.2) | |
1220 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5,-.45,-.5) * CFrame.Angles(math.rad(-13), math.rad(0), math.rad(0)), 0.2) | |
1221 | handleweld.C0 = clerp(handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.9) | |
1222 | if Debounces.on == false then break end | |
1223 | wait() | |
1224 | end | |
1225 | end | |
1226 | Debounces.on = false | |
1227 | Debounces.NoIdl = false | |
1228 | local ry,ht,ps=nil,nil,nil | |
1229 | while ht==nil do | |
1230 | ry,ht,ps=newRay(root.CFrame*CFrame.new(0,-2,0),root.CFrame*CFrame.new(0,-3,0),4.1,{char}) | |
1231 | wait() | |
1232 | end | |
1233 | z = Instance.new("Sound",char) | |
1234 | z.SoundId = "rbxassetid://142070127" | |
1235 | z.Volume = 1 | |
1236 | wait(.1) | |
1237 | z:Play() | |
1238 | Landing() | |
1239 | char.Humanoid.WalkSpeed = 40 | |
1240 | if | |
1241 | Debounces.CanAttack == false then | |
1242 | Debounces.CanAttack = true | |
1243 | end | |
1244 | attack=false | |
1245 | end | |
1246 | end | |
1247 | end) | |
1248 | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | |
1249 | mod4 = Instance.new("Model",char) | |
1250 | ptez = {0.7, 0.8, 0.9, 1} | |
1251 | function GroundPound() | |
1252 | local part=Instance.new('Part',mod4) | |
1253 | part.Anchored=true | |
1254 | part.CanCollide=false | |
1255 | ||
1256 | part.FormFactor='Custom' | |
1257 | part.Size=Vector3.new(.2,.2,.2) | |
1258 | part.CFrame=root.CFrame*CFrame.new(0,-5.8,-2.4)*CFrame.Angles(math.rad(90),0,0) | |
1259 | part.Transparency=.7 | |
1260 | part.BrickColor=BrickColor.new('Really black') | |
1261 | ||
1262 | local mesh=Instance.new('SpecialMesh',part) | |
1263 | mesh.MeshId='http://www.roblox.com/asset/?id=3270017' | |
1264 | ||
1265 | mesh.Scale=Vector3.new(3,3,3) | |
1266 | part2=Instance.new('Part',mod4) | |
1267 | part2.Anchored=true | |
1268 | ||
1269 | part2.CanCollide=false | |
1270 | part2.FormFactor='Custom' | |
1271 | part2.Size=Vector3.new(.2,.2,.2) | |
1272 | ||
1273 | part2.CFrame=root.CFrame*CFrame.new(0,-5,-2.6) | |
1274 | part2.Transparency=.7 | |
1275 | part2.BrickColor=BrickColor.new('Lime green') | |
1276 | mesh2=Instance.new('SpecialMesh',part2) | |
1277 | mesh2.MeshId='http://www.roblox.com/asset/?id=20329976' | |
1278 | mesh2.Scale=Vector3.new(3,1.5,3) | |
1279 | x = Instance.new("Sound",char) | |
1280 | x.SoundId = "http://www.roblox.com/asset/?id=142070127" | |
1281 | x.Pitch = ptez[math.random(1,#ptez)] | |
1282 | x.Volume = 1 | |
1283 | wait(.1) | |
1284 | x:Play() | |
1285 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,12))do | |
1286 | if v:FindFirstChild('Humanoid') then | |
1287 | v.Humanoid:TakeDamage(math.random(50,75)) | |
1288 | end | |
1289 | end | |
1290 | coroutine.resume(coroutine.create(function() | |
1291 | for i=0,0.62,0.13 do | |
1292 | wait() | |
1293 | part.CFrame=part.CFrame | |
1294 | ||
1295 | part.Transparency=i | |
1296 | mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4) | |
1297 | ||
1298 | part2.CFrame=part2.CFrame | |
1299 | part2.Transparency=i | |
1300 | mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4) | |
1301 | end | |
1302 | part.Parent=nil | |
1303 | part2.Parent=nil | |
1304 | x:Destroy() | |
1305 | end)) | |
1306 | end | |
1307 | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | |
1308 | local acos = math.acos | |
1309 | local sqrt = math.sqrt | |
1310 | local Vec3 = Vector3.new | |
1311 | local fromAxisAngle = CFrame.fromAxisAngle | |
1312 | local function toAxisAngle(CFr) | |
1313 | local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components() | |
1314 | local Angle = math.acos((R00+R11+R22-1)/2) | |
1315 | ||
1316 | local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
1317 | A = A == 0 and 0.00001 or A | |
1318 | local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
1319 | B = B == 0 and 0.00001 or B | |
1320 | local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
1321 | C = C == 0 and 0.00001 or C | |
1322 | local x = (R21-R12)/sqrt(A) | |
1323 | local y = (R02-R20)/sqrt(B) | |
1324 | local z = (R10-R01)/sqrt(C) | |
1325 | return Vec3(x,y,z),Angle | |
1326 | end | |
1327 | function LerpCFrame(CFrame1,CFrame2,Num) | |
1328 | local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2) | |
1329 | return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num | |
1330 | end | |
1331 | function ApplyTrig | |
1332 | (Num,Func) | |
1333 | local Min,Max = Func(0),Func(1) | |
1334 | local i = Func(Num) | |
1335 | return (i-Min)/(Max-Min) | |
1336 | ||
1337 | --[[if Func == "sin" then | |
1338 | return (math.sin((1-Num)*math.pi)+1)/2 | |
1339 | elseif Func == | |
1340 | "cos" then | |
1341 | return (math.cos((1-Num)*math.pi)+1)/2 | |
1342 | end]] | |
1343 | end | |
1344 | ||
1345 | function Crater(Torso,Radius) | |
1346 | Spawn(function() | |
1347 | local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10) | |
1348 | local Ignore = {} | |
1349 | ||
1350 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do | |
1351 | if v.Character ~= nil then | |
1352 | ||
1353 | Ignore[#Ignore+1] = v.Character | |
1354 | end | |
1355 | end | |
1356 | local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray,Ignore) | |
1357 | if Hit == nil then return end | |
1358 | local Parts = {} | |
1359 | for i = 1,360,10 do | |
1360 | local P = Instance.new("Part",game.Workspace) | |
1361 | P.Name="Effect" | |
1362 | P.Anchored = true | |
1363 | P.FormFactor = "Custom" | |
1364 | P.BrickColor = Hit.BrickColor | |
1365 | ||
1366 | P.Material = Hit.Material | |
1367 | P.TopSurface = "Smooth" | |
1368 | P.BottomSurface = "Smooth" | |
1369 | P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100) | |
1370 | P.CFrame = | |
1371 | ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,7,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50))) | |
1372 | Parts | |
1373 | [#Parts+1] = {P,P.CFrame,((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,1,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius)*CFrame.Angles(math.rad(math.random(-50,-20)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15))),P.Size} | |
1374 | if math.random(0,5) == 0 then -- rubble | |
1375 | local P = Instance.new("Part",game.Workspace) | |
1376 | P.Name="Effect" | |
1377 | P.Anchored = true | |
1378 | P.FormFactor = "Custom" | |
1379 | P.BrickColor = Hit.BrickColor | |
1380 | P.Material = Hit.Material | |
1381 | P.TopSurface = "Smooth" | |
1382 | ||
1383 | P.BottomSurface = "Smooth" | |
1384 | P.Size = Vector3.new(2,2,2)*(math.random(80,100)/100) | |
1385 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,2.5,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50))) | |
1386 | Parts[#Parts+1] = {P,P.CFrame,(CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius-8)*CFrame.Angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90))),P.Size} | |
1387 | end | |
1388 | end | |
1389 | for i = 0,1,0.05 do | |
1390 | for i2,v in pairs(Parts) do | |
1391 | v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos)) | |
1392 | end | |
1393 | ||
1394 | wait(0.02) | |
1395 | end | |
1396 | for i,v in pairs(Parts) do | |
1397 | if v[1].Size.X > 2.1 then | |
1398 | v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0) | |
1399 | end | |
1400 | v[1].Anchored = false | |
1401 | end | |
1402 | for i = 0,1,0.05 do | |
1403 | for i2,v in pairs(Parts) do | |
1404 | ||
1405 | v[1].Transparency = i | |
1406 | if i == 1 then | |
1407 | v[1]:Destroy() | |
1408 | elseif i >= 0.25 then | |
1409 | v[1].CanCollide = false | |
1410 | end | |
1411 | end | |
1412 | wait(0.02) | |
1413 | end | |
1414 | Parts = nil | |
1415 | ||
1416 | end) | |
1417 | end | |
1418 | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | |
1419 | mouse.KeyDown:connect(function(key) | |
1420 | ||
1421 | if key == "x" then | |
1422 | attack=true | |
1423 | if Debounces.CanAttack == true then | |
1424 | Debounces.CanAttack = false | |
1425 | ||
1426 | Debounces.NoIdl = true | |
1427 | Debounces.on = true | |
1428 | local SIDZ = {"231917744", "231917742"} | |
1429 | ||
1430 | local PTZ = {0.7, 0.8, 0.9, 1} | |
1431 | for i = 1, 20 do | |
1432 | wait() | |
1433 | for i,v in pairs(m:children()) do | |
1434 | if v:IsA("Part") or v:IsA("WedgePart") then | |
1435 | ||
1436 | v.Transparency = v.Transparency + 0.05 | |
1437 | end | |
1438 | end | |
1439 | ||
1440 | end | |
1441 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
1442 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
1443 | ||
1444 | local List = {} | |
1445 | for i,v in pairs(workspace:GetChildren())do | |
1446 | ||
1447 | if v:IsA("Model")then | |
1448 | if v:findFirstChild("Torso")then | |
1449 | ||
1450 | if v ~= char then | |
1451 | if(v.Torso.Position -Position).magnitude <= | |
1452 | Distance then | |
1453 | table.insert(List,v) | |
1454 | ||
1455 | end | |
1456 | end | |
1457 | end | |
1458 | ||
1459 | end | |
1460 | end | |
1461 | return List | |
1462 | end | |
1463 | ||
1464 | GroundPound() | |
1465 | for i = 1, 5 do | |
1466 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7) | |
1467 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7) | |
1468 | ||
1469 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6) | |
1470 | ||
1471 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6) | |
1472 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6) | |
1473 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
1474 | ||
1475 | if Debounces.on == false then break end | |
1476 | wait() | |
1477 | end | |
1478 | ||
1479 | GroundPound() | |
1480 | for i = 1, 5 do | |
1481 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7) | |
1482 | ||
1483 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7) | |
1484 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6) | |
1485 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6) | |
1486 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
1487 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6) | |
1488 | ||
1489 | if Debounces.on == false then break end | |
1490 | wait() | |
1491 | ||
1492 | end | |
1493 | GroundPound() | |
1494 | for i = 1, 5 do | |
1495 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7) | |
1496 | ||
1497 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7) | |
1498 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6) | |
1499 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6) | |
1500 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6) | |
1501 | ||
1502 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
1503 | if Debounces.on == false then break end | |
1504 | ||
1505 | wait() | |
1506 | end | |
1507 | GroundPound() | |
1508 | for i = 1, 5 do | |
1509 | ||
1510 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7) | |
1511 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7) | |
1512 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6) | |
1513 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6) | |
1514 | ||
1515 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
1516 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6) | |
1517 | if Debounces.on == false | |
1518 | then break end | |
1519 | wait() | |
1520 | end | |
1521 | GroundPound() | |
1522 | for i = 1, 5 do | |
1523 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7) | |
1524 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7) | |
1525 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6) | |
1526 | ||
1527 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6) | |
1528 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6) | |
1529 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
1530 | ||
1531 | if Debounces.on == false then break end | |
1532 | wait() | |
1533 | end | |
1534 | ||
1535 | GroundPound() | |
1536 | for i = 1, 5 do | |
1537 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7) | |
1538 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7) | |
1539 | ||
1540 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6) | |
1541 | ||
1542 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6) | |
1543 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
1544 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6) | |
1545 | ||
1546 | if Debounces.on == false then break end | |
1547 | wait() | |
1548 | end | |
1549 | ||
1550 | for i = 1, 18 do | |
1551 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(-10)), 0.4) | |
1552 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(10)), 0.4) | |
1553 | ||
1554 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(16),math.rad(0),0), 0.4) | |
1555 | ||
1556 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, 2, 0) * CFrame.Angles(math.rad(20), math.rad(0), 0), 0.4) | |
1557 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.4) | |
1558 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.4) | |
1559 | ||
1560 | if Debounces.on == false then break end | |
1561 | wait() | |
1562 | ||
1563 | end | |
1564 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,25))do | |
1565 | if v:FindFirstChild('Humanoid') then | |
1566 | v.Humanoid:TakeDamage(math.random(50,120)) | |
1567 | ||
1568 | v.Humanoid.PlatformStand = true | |
1569 | v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100 | |
1570 | end | |
1571 | end | |
1572 | x = Instance.new("Sound",char) | |
1573 | x.SoundId = "rbxassetid://"..SIDZ[math.random(1,#SIDZ)] | |
1574 | x.Pitch = | |
1575 | PTZ[math.random(1,#PTZ)] | |
1576 | x.Volume = 1 | |
1577 | wait(0.1) | |
1578 | x:Play() | |
1579 | ||
1580 | Crater(hed,20) | |
1581 | for i = 1, 14 do | |
1582 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(2.4, 3.2, -.5)*CFrame.Angles(math.rad(160),math.rad(0),math.rad(-10)), 0.6) | |
1583 | ||
1584 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-2.4, 3.2, -.5)*CFrame.Angles(math.rad(160),math.rad(0),math.rad(10)), 0.6) | |
1585 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(16),math.rad(0),0), 0.6) | |
1586 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -5, 0) * CFrame.Angles(math.rad(-90), math.rad(0), 0), 0.6) | |
1587 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.6) | |
1588 | ||
1589 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.6) | |
1590 | if Debounces.on == false then break end | |
1591 | ||
1592 | wait() | |
1593 | end | |
1594 | if Debounces.CanAttack == false then | |
1595 | ||
1596 | Debounces.CanAttack = true | |
1597 | Debounces.on = false | |
1598 | Debounces.NoIdl = false | |
1599 | ||
1600 | for i = 1, 20 do | |
1601 | wait() | |
1602 | for i,v in pairs(m:children()) do | |
1603 | if v:IsA("Part") or v:IsA("WedgePart") then | |
1604 | ||
1605 | v.Transparency = v.Transparency - 0.05 | |
1606 | end | |
1607 | end | |
1608 | ||
1609 | end | |
1610 | end | |
1611 | attack=false | |
1612 | end | |
1613 | end | |
1614 | end) | |
1615 | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | |
1616 | mod=Instance.new('Model',char) | |
1617 | function charge() | |
1618 | ||
1619 | hed.Velocity=hed.CFrame.lookVector*200 | |
1620 | local part=Instance.new('Part',mod) | |
1621 | part.Anchored=true | |
1622 | ||
1623 | part.CanCollide=false | |
1624 | part.FormFactor='Custom' | |
1625 | part.Size=Vector3.new(.2,.2,.2) | |
1626 | ||
1627 | part.CFrame=hed.CFrame*CFrame.Angles(math.rad(90),0,0) | |
1628 | part.Transparency=.7 | |
1629 | ||
1630 | part.BrickColor=BrickColor.new('Black') | |
1631 | local mesh=Instance.new('SpecialMesh',part) | |
1632 | ||
1633 | mesh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
1634 | mesh.Scale=Vector3.new(10,5,10) | |
1635 | part2=part:clone() | |
1636 | part2.Parent=mod | |
1637 | part2.BrickColor=BrickColor.new('Lime green') | |
1638 | mesh2=mesh:clone() | |
1639 | ||
1640 | mesh2.Parent=part2 | |
1641 | mesh2.Scale=Vector3.new(20,10,20) | |
1642 | part3=part2:clone() | |
1643 | part3.Parent = mod | |
1644 | ||
1645 | part3.BrickColor=BrickColor.new('Really black') | |
1646 | mesh3=mesh2:clone() | |
1647 | mesh2.Parent=part3 | |
1648 | ||
1649 | mesh3.Scale=Vector3.new(30,15,30) | |
1650 | coroutine.resume(coroutine.create(function() | |
1651 | for i=0,1,0.1 do | |
1652 | ||
1653 | wait() | |
1654 | part.CFrame=part.CFrame | |
1655 | part.Transparency=i | |
1656 | ||
1657 | mesh.Scale=mesh.Scale+Vector3.new(1,1,1) | |
1658 | part2.CFrame=part2.CFrame | |
1659 | part2.Transparency=i | |
1660 | ||
1661 | mesh2.Scale=mesh2.Scale+Vector3.new(1,1,1) | |
1662 | part3.CFrame=part3.CFrame | |
1663 | ||
1664 | part3.Transparency=i | |
1665 | mesh3.Scale=mesh3.Scale+Vector3.new(1,1,1) | |
1666 | end | |
1667 | ||
1668 | part.Parent=nil | |
1669 | part2.Parent=nil | |
1670 | part3.Parent = nil | |
1671 | end)) | |
1672 | end | |
1673 | ------------------------------------------------------------------------------------------------------------------------------------------ | |
1674 | mouse.KeyDown:connect(function(key) | |
1675 | if key == "g" then | |
1676 | attack=true | |
1677 | if | |
1678 | Debounces.CanAttack == true then | |
1679 | Debounces.CanAttack = false | |
1680 | Debounces.on = true | |
1681 | ||
1682 | Debounces.NoIdl = true | |
1683 | local chrg = lleg.Touched:connect(function(ht) | |
1684 | hit = ht.Parent | |
1685 | if ht and hit:IsA("Model") then | |
1686 | if hit:FindFirstChild("Humanoid") then | |
1687 | if hit.Name ~= p.Name then | |
1688 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
1689 | Debounces.Slashed = true]]-- | |
1690 | ||
1691 | hit:FindFirstChild("Humanoid"):TakeDamage(50) | |
1692 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
1693 | hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -70 | |
1694 | --Debounces.Slashed = false | |
1695 | --end | |
1696 | end | |
1697 | end | |
1698 | elseif ht and hit:IsA("Hat") then | |
1699 | if hit.Parent.Name ~= p.Name then | |
1700 | if hit.Parent:FindFirstChild("Humanoid") then | |
1701 | --[[ if Debounces.Slashing == true and Debounces.Slashed == false then | |
1702 | Debounces.Slashed = true]]-- | |
1703 | ||
1704 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(50) | |
1705 | ||
1706 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
1707 | hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -70 | |
1708 | -- | |
1709 | Debounces.Slashed = false | |
1710 | end | |
1711 | end | |
1712 | end | |
1713 | end) | |
1714 | for i = 1, 14 do | |
1715 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, .9, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(30)), 0.5) | |
1716 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-2.6, .9, -.4)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.5) | |
1717 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), 0.5) | |
1718 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.5) | |
1719 | ||
1720 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(15)), 0.5) | |
1721 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(15)), 0.5) | |
1722 | handleweld.C0 = clerp(handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.9) | |
1723 | if Debounces.on == false then | |
1724 | break end | |
1725 | wait() | |
1726 | end | |
1727 | charge() | |
1728 | z = Instance.new("Sound",char) | |
1729 | z.SoundId = "rbxassetid://200632875" | |
1730 | z.Volume = 1 | |
1731 | z.Pitch = .8 | |
1732 | z1 = Instance.new("Sound",char) | |
1733 | ||
1734 | z1.SoundId = "rbxassetid://200632875" | |
1735 | z1.Volume = 1 | |
1736 | z1.Pitch = .9 | |
1737 | z:Play() | |
1738 | ||
1739 | z1:Play() | |
1740 | wait(1) | |
1741 | z:Destroy() | |
1742 | z1:Destroy() | |
1743 | chrg:disconnect() | |
1744 | if Debounces.CanAttack == false then | |
1745 | Debounces.CanAttack = true | |
1746 | Debounces.on = false | |
1747 | ||
1748 | Debounces.NoIdl = false | |
1749 | end | |
1750 | attack=false | |
1751 | end | |
1752 | end | |
1753 | end) | |
1754 | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | |
1755 | pt = {0.7, 0.8, 0.9} | |
1756 | mouse.KeyDown:connect(function(key) | |
1757 | ||
1758 | if key == "h" then | |
1759 | if Debounces.CanJoke == true then | |
1760 | Debounces.CanJoke = false | |
1761 | u = Instance.new("Sound") | |
1762 | u.SoundId = "http://www.roblox.com/asset/?id=138199573" | |
1763 | u.Parent = char | |
1764 | u.Looped = false | |
1765 | u.Pitch = pt[math.random(1,#pt)] | |
1766 | u.Volume = 1 | |
1767 | ||
1768 | u2 = Instance.new("Sound") | |
1769 | u2.SoundId = "http://www.roblox.com/asset/?id=138199573" | |
1770 | ||
1771 | u2.Parent = char | |
1772 | u2.Looped = false | |
1773 | u2.Pitch = u.Pitch | |
1774 | u2.Volume = 1 | |
1775 | ||
1776 | wait(.01) | |
1777 | u:Play() | |
1778 | u2:Play() | |
1779 | wait(6) | |
1780 | u:Destroy() | |
1781 | ||
1782 | u2:Destroy() | |
1783 | if Debounces.CanJoke == false then | |
1784 | Debounces.CanJoke = true | |
1785 | ||
1786 | end | |
1787 | end | |
1788 | end | |
1789 | end) | |
1790 | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | |
1791 | mouse.KeyDown:connect(function | |
1792 | (key) | |
1793 | if key == "j" then | |
1794 | if Debounces.CanJoke == true then | |
1795 | ||
1796 | Debounces.CanJoke = false | |
1797 | z = Instance.new("Sound",char) | |
1798 | z.SoundId = | |
1799 | "rbxassetid://135017755" | |
1800 | z.Pitch = .76 | |
1801 | z.Volume = 1 | |
1802 | ||
1803 | wait() | |
1804 | z:Play() | |
1805 | wait(6) | |
1806 | ||
1807 | z:Destroy() | |
1808 | if Debounces.CanJoke == false then | |
1809 | ||
1810 | Debounces.CanJoke = true | |
1811 | end | |
1812 | end | |
1813 | end | |
1814 | end) | |
1815 | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | |
1816 | mouse.KeyDown:connect(function(key) | |
1817 | if key == "k" then | |
1818 | ||
1819 | if Debounces.CanJoke == true then | |
1820 | Debounces.CanJoke = false | |
1821 | ||
1822 | z = Instance.new("Sound",char) | |
1823 | z.SoundId = "rbxassetid://135017578" | |
1824 | ||
1825 | z.Pitch = .76 | |
1826 | z.Volume = 1 | |
1827 | wait() | |
1828 | ||
1829 | z:Play() | |
1830 | wait(4) | |
1831 | z:Destroy() | |
1832 | if | |
1833 | Debounces.CanJoke == false then | |
1834 | Debounces.CanJoke = true | |
1835 | end | |
1836 | ||
1837 | end | |
1838 | end | |
1839 | end) | |
1840 | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | |
1841 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
1842 | ||
1843 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
1844 | local | |
1845 | List = {} | |
1846 | for i,v in pairs(workspace:GetChildren())do | |
1847 | if v:IsA("Model")then | |
1848 | ||
1849 | if v:findFirstChild("Torso")then | |
1850 | if v ~= char then | |
1851 | if | |
1852 | (v.Torso.Position -Position).magnitude <= Distance then | |
1853 | table.insert(List,v) | |
1854 | ||
1855 | end | |
1856 | end | |
1857 | end | |
1858 | end | |
1859 | end | |
1860 | return List | |
1861 | end | |
1862 | ||
1863 | mod3 = Instance.new("Model",rleg) | |
1864 | function Pound() | |
1865 | local part=Instance.new('Part',mod3) | |
1866 | part.Anchored=true | |
1867 | ||
1868 | part.CanCollide=false | |
1869 | part.FormFactor='Custom' | |
1870 | part.Size=Vector3.new(.2,.2,.2) | |
1871 | ||
1872 | part.CFrame=rleg.CFrame*CFrame.new(0,-2.4,0)*CFrame.Angles(math.rad(90),0,0) | |
1873 | part.Transparency=.7 | |
1874 | ||
1875 | part.BrickColor=BrickColor.new('Bright green') | |
1876 | local mesh=Instance.new('SpecialMesh',part) | |
1877 | ||
1878 | mesh.MeshId='http://www.roblox.com/asset/?id=3270017' | |
1879 | mesh.Scale=Vector3.new(25,25,25) | |
1880 | part2=part:clone() | |
1881 | part2.Parent=mod3 | |
1882 | part2.BrickColor=BrickColor.new('Bright green') | |
1883 | mesh2=mesh:clone() | |
1884 | ||
1885 | mesh2.Parent=part2 | |
1886 | mesh2.Scale=Vector3.new(15,15,15) | |
1887 | part3=part:clone() | |
1888 | part3.Parent=mod3 | |
1889 | ||
1890 | part3.TopSurface=0 | |
1891 | part3.BottomSurface=0 | |
1892 | part3.CFrame=rleg.CFrame*CFrame.new(0,-3,0) | |
1893 | ||
1894 | mesh3=Instance.new('SpecialMesh',part3) | |
1895 | mesh3.MeshType = 3 | |
1896 | mesh3.Scale=Vector3.new(12,12,12) | |
1897 | for i,v | |
1898 | in pairs(FindNearestTorso(torso.CFrame.p,50))do | |
1899 | if v:FindFirstChild('Humanoid') then | |
1900 | ||
1901 | v.Humanoid:TakeDamage(math.random(50,120)) | |
1902 | v.Humanoid.PlatformStand = true | |
1903 | ||
1904 | v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100 | |
1905 | end | |
1906 | end | |
1907 | coroutine.resume(coroutine.create(function() | |
1908 | for i=0,3.8,0.05 do | |
1909 | wait() | |
1910 | part.CFrame=part.CFrame | |
1911 | ||
1912 | part.Transparency=i | |
1913 | mesh.Scale=mesh.Scale+Vector3.new(2.8,2.8,2.8) | |
1914 | ||
1915 | part2.CFrame=part2.CFrame | |
1916 | part2.Transparency=i | |
1917 | mesh2.Scale=mesh2.Scale+Vector3.new(1,1,1) | |
1918 | part3.CFrame=part3.CFrame | |
1919 | part3.Transparency=i | |
1920 | ||
1921 | mesh3.Scale=mesh3.Scale+Vector3.new(1.5,1.5,1.5) | |
1922 | end | |
1923 | end)) | |
1924 | end | |
1925 | ||
1926 | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | |
1927 | sidz = {"231917888", "231917845", "231917806"} | |
1928 | ptz = {0.65, 0.7, 0.75, 0.8, 0.95, 1} | |
1929 | mouse.KeyDown:connect(function(key) | |
1930 | if key == "f" then | |
1931 | attack=true | |
1932 | char.Humanoid.WalkSpeed=40 | |
1933 | if Debounces.CanAttack == true then | |
1934 | Debounces.CanAttack = false | |
1935 | Debounces.on = true | |
1936 | Debounces.NoIdl = true | |
1937 | for i = 1, 10 do | |
1938 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(-34)), 0.4) | |
1939 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(34)), 0.4) | |
1940 | ||
1941 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(16),math.rad(0),0), 0.4) | |
1942 | ||
1943 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(20), math.rad(0), 0), 0.4) | |
1944 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.4) | |
1945 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, -1.4) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.4) | |
1946 | handleweld.C0=clerp(handleweld.C0,cf(-1,-1.5,-1.5)*angles(math.rad(-20),math.rad(-20),math.rad(50)),.2) | |
1947 | if Debounces.on == false then end | |
1948 | wait() | |
1949 | ||
1950 | end | |
1951 | z = Instance.new("Sound",char) | |
1952 | z.SoundId = "rbxassetid://"..sidz[math.random(1,#sidz)] | |
1953 | z.Pitch = ptz[math.random(1,#ptz)] | |
1954 | z.Volume = 1 | |
1955 | ||
1956 | z1 = Instance.new("Sound",char) | |
1957 | z1.SoundId = z.SoundId | |
1958 | z1.Pitch = z.Pitch | |
1959 | ||
1960 | z1.Volume = 1 | |
1961 | wait(1) | |
1962 | z:Play() | |
1963 | z1:Play() | |
1964 | ||
1965 | Pound() | |
1966 | for i = 1, 20 do | |
1967 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 0.9, .4)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(28)), 0.6) | |
1968 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 0.9, .4)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(-28)), 0.6) | |
1969 | ||
1970 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(-26),math.rad(0),0), 0.6) | |
1971 | ||
1972 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1.2, -.6) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.6) | |
1973 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(0)), 0.4) | |
1974 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(40), 0, math.rad(0)), 0.4) | |
1975 | ||
1976 | if Debounces.on == false then end | |
1977 | wait() | |
1978 | end | |
1979 | if | |
1980 | Debounces.CanAttack == false then | |
1981 | Debounces.CanAttack = true | |
1982 | Debounces.on = false | |
1983 | ||
1984 | Debounces.NoIdl = false | |
1985 | end | |
1986 | char.Humanoid.WalkSpeed=40 | |
1987 | attack=false | |
1988 | end | |
1989 | end | |
1990 | end) | |
1991 | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | |
1992 | mouse.KeyDown:connect(function(key) | |
1993 | ||
1994 | if key == "q" then | |
1995 | attack=true | |
1996 | if Debounces.CanAttack == true then | |
1997 | Debounces.CanAttack = false | |
1998 | ||
1999 | Debounces.NoIdl = true | |
2000 | Debounces.on = true | |
2001 | Debounces.ks = true | |
2002 | for i = 1, 10 do | |
2003 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.6) | |
2004 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-2.7,.9,-.5)*CFrame.Angles(math.rad(40),math.rad(0),math.rad(20)), 0.6) | |
2005 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-26),math.rad(0),0), 0.6) | |
2006 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.6) | |
2007 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.6) | |
2008 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-70), math.rad(0), math.rad(0)), 0.6) | |
2009 | if Debounces.on == false then break end | |
2010 | ||
2011 | wait() | |
2012 | end | |
2013 | z = Instance.new("Sound",hed) | |
2014 | z.SoundId = "rbxassetid://169445092" | |
2015 | ||
2016 | z.Volume = 1 | |
2017 | wait(0.1) | |
2018 | z:Play() | |
2019 | kik = rleg.Touched:connect(function(ht) | |
2020 | hit = ht.Parent | |
2021 | if ht and hit:IsA("Model") then | |
2022 | if hit:FindFirstChild("Humanoid") then | |
2023 | ||
2024 | if hit.Name ~= p.Name then | |
2025 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
2026 | Debounces.Slashed = true]]-- | |
2027 | ||
2028 | if Debounces.ks==true then | |
2029 | z = Instance.new("Sound",hed) | |
2030 | z.SoundId = "rbxassetid://169380525" | |
2031 | ||
2032 | z.Volume = 1 | |
2033 | z:Play() | |
2034 | ||
2035 | Debounces.ks=false | |
2036 | end | |
2037 | ||
2038 | hit:FindFirstChild("Humanoid"):TakeDamage(5) | |
2039 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
2040 | hit:FindFirstChild("Torso").Velocity = | |
2041 | hit:FindFirstChild("Torso").CFrame.lookVector * -70 | |
2042 | --Debounces.Slashed = false | |
2043 | ||
2044 | --end | |
2045 | end | |
2046 | end | |
2047 | elseif ht and hit:IsA("Hat") | |
2048 | then | |
2049 | if hit.Parent.Name ~= p.Name then | |
2050 | if hit.Parent:FindFirstChild("Humanoid") then | |
2051 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
2052 | Debounces.Slashed = true]]-- | |
2053 | ||
2054 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(5) | |
2055 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
2056 | hit:FindFirstChild("Torso").Velocity = | |
2057 | hit:FindFirstChild("Torso").CFrame.lookVector * -70 | |
2058 | --Debounces.Slashed = false | |
2059 | ||
2060 | --end | |
2061 | end | |
2062 | end | |
2063 | end | |
2064 | end) | |
2065 | for i = 1, 8 do | |
2066 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7) | |
2067 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3,.9,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(-20)), 0.7) | |
2068 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(8),math.rad(0),0), 0.7) | |
2069 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(16), math.rad(0), 0), 0.7) | |
2070 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-16), math.rad(0), math.rad(0)), 0.7) | |
2071 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(60), math.rad(0), math.rad(0)), 0.7) | |
2072 | if Debounces.on == false then break end | |
2073 | ||
2074 | wait() | |
2075 | end | |
2076 | kik:disconnect() | |
2077 | if Debounces.CanAttack == false then | |
2078 | ||
2079 | Debounces.CanAttack = true | |
2080 | Debounces.on = false | |
2081 | Debounces.NoIdl = false | |
2082 | end | |
2083 | attack=false | |
2084 | end | |
2085 | end | |
2086 | end) | |
2087 | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | |
2088 | mouse.KeyDown:connect(function(key) | |
2089 | if key == "t" then | |
2090 | char.Humanoid.WalkSpeed=40 | |
2091 | attack=true | |
2092 | if Debounces.CanAttack == true then | |
2093 | ||
2094 | Debounces.CanAttack = false | |
2095 | Debounces.on = true | |
2096 | Debounces.NoIdl = true | |
2097 | for i = 1, 20 do | |
2098 | ||
2099 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(2.3,1.1,-1) * CFrame.Angles(math.rad(115), math.rad(0), math.rad(-55)), 0.4) | |
2100 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-2.3,1.1,-1) * CFrame.Angles(math.rad(115), math.rad(0), math.rad(55)), 0.4) | |
2101 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)),0.4) | |
2102 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), math.rad(0), 0), 0.4) | |
2103 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.4) | |
2104 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.4) | |
2105 | handleweld.C0=clerp(handleweld.C0,cf(-1,-1.5,-1.5)*angles(math.rad(-20),math.rad(-20),math.rad(50)),.2) | |
2106 | if Debounces.on == false then break end | |
2107 | wait() | |
2108 | end | |
2109 | ||
2110 | Spawn(function() | |
2111 | local Parts = {} | |
2112 | for Y = -5,5 do | |
2113 | local P = Instance.new("Part",char) | |
2114 | P.Anchored = true | |
2115 | P.FormFactor = "Custom" | |
2116 | ||
2117 | P.CanCollide = false | |
2118 | P.Size = Vector3.new(1,2,1) | |
2119 | P.TopSurface = "SmoothNoOutlines" | |
2120 | P.BottomSurface = "SmoothNoOutlines" | |
2121 | P.BrickColor = BrickColor.new("Really black") | |
2122 | P.Name = tostring(Y) | |
2123 | local i = (Y+5)/(10) | |
2124 | ||
2125 | i = 1-math.cos(math.pi*i-(math.pi/2)) | |
2126 | P.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,Y,-15+(i*1.5))*CFrame.Angles(math.rad(Y*5),0,0) | |
2127 | -- | |
2128 | P.Touched:connect(function(ht) | |
2129 | local hit = ht.Parent | |
2130 | if hit:FindFirstChild("Humanoid") then | |
2131 | hit.Humanoid:TakeDamage(math.random(50,75)) | |
2132 | ||
2133 | end | |
2134 | end)-- | |
2135 | s = Instance.new("Sound",P) | |
2136 | s.SoundId = "rbxassetid://228343271" | |
2137 | s.Volume = .7 | |
2138 | s.Pitch = 0.9 | |
2139 | s:Play() | |
2140 | P.Touched:connect(function | |
2141 | (ht) | |
2142 | hit = ht.Parent | |
2143 | if ht and hit:IsA("Model") then | |
2144 | if hit:FindFirstChild("Humanoid") then | |
2145 | if hit.Name ~= p.Name then | |
2146 | --[[if | |
2147 | Debounces.Slashing == true and Debounces.Slashed == false then | |
2148 | ||
2149 | Debounces.Slashed = true]]-- | |
2150 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(50,75)) | |
2151 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
2152 | ||
2153 | wait(1) | |
2154 | --Debounces.Slashed = false | |
2155 | ||
2156 | --end | |
2157 | end | |
2158 | end | |
2159 | elseif ht and hit:IsA("Hat") then | |
2160 | if hit.Parent.Name ~= p.Name then | |
2161 | if hit.Parent:FindFirstChild("Humanoid") then | |
2162 | ||
2163 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
2164 | ||
2165 | Debounces.Slashed = true]]-- | |
2166 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random (50,75)) | |
2167 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
2168 | ||
2169 | wait(1) | |
2170 | --Debounces.Slashed = false | |
2171 | --end | |
2172 | ||
2173 | end | |
2174 | end | |
2175 | end | |
2176 | end) | |
2177 | Parts[#Parts+1] = P | |
2178 | end | |
2179 | local BREAKIT = false | |
2180 | ||
2181 | local CParts = {} | |
2182 | local Rocks = {} | |
2183 | local LastPos = nil | |
2184 | for i = 1,70 do | |
2185 | for i2,v in pairs(Parts) do | |
2186 | v.CFrame = v.CFrame*CFrame.new(0,0,-4) | |
2187 | ||
2188 | local cf = v.CFrame | |
2189 | v.Size = v.Size+Vector3.new(0.4,0.35,0) | |
2190 | ||
2191 | v.CFrame = cf | |
2192 | v.Transparency = v.Transparency+0.02 | |
2193 | if v.Transparency >= 0.975 then BREAKIT = true end | |
2194 | if v.Name == "0" then | |
2195 | local Ignore = {} | |
2196 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do | |
2197 | ||
2198 | if v.Character ~= nil then | |
2199 | Ignore[#Ignore+1] = v.Character | |
2200 | ||
2201 | end | |
2202 | end | |
2203 | local ray = Ray.new(v.Position+Vector3.new(0,20,0),Vector3.new(0,-200,0)) | |
2204 | local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(ray,Ignore) | |
2205 | if Hit ~= nil then | |
2206 | ||
2207 | if #Rocks == 0 then | |
2208 | for i = 1,5 do | |
2209 | ||
2210 | local P = Instance.new("Part",char) | |
2211 | Rocks[#Rocks+1] = P | |
2212 | ||
2213 | P.Anchored = true | |
2214 | P.FormFactor = "Custom" | |
2215 | ||
2216 | P.BrickColor = Hit.BrickColor | |
2217 | P.Material = Hit.Material | |
2218 | ||
2219 | P.TopSurface = "Smooth" | |
2220 | P.BottomSurface = "Smooth" | |
2221 | P.Size = Vector3.new(1,1,1)*(math.random(500,900)/100) | |
2222 | ||
2223 | end | |
2224 | end | |
2225 | for i,P in pairs(Rocks) do | |
2226 | ||
2227 | P.CFrame = ((CFrame.new(Pos)*(v.CFrame-v.Position))*CFrame.new(math.random(-math.ceil(v.Size.X/2),math.ceil(v.Size.X/2)),0,-math.random(5,8))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(20,50))) | |
2228 | ||
2229 | end | |
2230 | local P = Instance.new("Part",char) | |
2231 | CParts[#CParts+1] = {P,tick()} | |
2232 | P.Anchored = true | |
2233 | P.FormFactor = "Custom" | |
2234 | P.BrickColor = Hit.BrickColor | |
2235 | P.Material = Hit.Material | |
2236 | P.TopSurface = "Smooth" | |
2237 | P.BottomSurface = "Smooth" | |
2238 | P.Size = Vector3.new(1,1,1)*(math.random(100,300)/100) | |
2239 | ||
2240 | Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(v.Size.X/2,0,0) | |
2241 | Pos = Pos.p | |
2242 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(20,50))) | |
2243 | local P = P:Clone() | |
2244 | CParts[#CParts+1] = {P,tick()} | |
2245 | P.Parent = char | |
2246 | Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(-v.Size.X,0,0) | |
2247 | Pos = Pos.p | |
2248 | ||
2249 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,-20))) | |
2250 | if LastPos ~= nil then | |
2251 | local P = P:Clone() | |
2252 | ||
2253 | CParts[#CParts+1] = {P,tick()} | |
2254 | P.Parent = char | |
2255 | ||
2256 | P.BrickColor = BrickColor.new("Really black") | |
2257 | Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(v.Size.X/2,0,0) | |
2258 | Pos = Pos.p | |
2259 | ||
2260 | local CFr = (CFrame.new(Pos)*(v.CFrame-v.Position))-Vector3.new(0,0.4,0) | |
2261 | ||
2262 | P.Size = Vector3.new(v.Size.X-0.25,1,(CFr.p-LastPos.p).Magnitude+0.25) | |
2263 | ||
2264 | --P.Velocity = Vector3.new(0,-1000,0) | |
2265 | P.CFrame = CFrame.new(CFr.p,LastPos.p)*CFrame.new(0,0,-((CFr.p-LastPos.p).Magnitude+0.25)/2) | |
2266 | end | |
2267 | ||
2268 | LastPos = (CFrame.new(Pos)*(v.CFrame-v.Position))-Vector3.new(0,0.4,0) | |
2269 | ||
2270 | end | |
2271 | end | |
2272 | end | |
2273 | if BREAKIT then break end | |
2274 | wait(0.002) | |
2275 | end | |
2276 | for i,v in pairs(Rocks) do | |
2277 | CParts[#CParts+1] = {v,tick()} | |
2278 | ||
2279 | end | |
2280 | for i,v in pairs(Parts) do | |
2281 | v:Destroy() | |
2282 | end | |
2283 | Parts = nil | |
2284 | while true do | |
2285 | local t = tick() | |
2286 | local p = nil | |
2287 | for | |
2288 | i,v in pairs(CParts) do | |
2289 | if t-v[2] > 4 then | |
2290 | v[1].Transparency = v[1].Transparency+0.05 | |
2291 | if v[1].Transparency >= 1 then | |
2292 | v[1]:Destroy() | |
2293 | CParts[i] = nil | |
2294 | end | |
2295 | end | |
2296 | ||
2297 | p = v | |
2298 | end | |
2299 | if p == nil then break end | |
2300 | wait(0.002) | |
2301 | ||
2302 | end | |
2303 | for i,v in pairs(CParts) do | |
2304 | v:Destroy() | |
2305 | end | |
2306 | ||
2307 | CParts = {} | |
2308 | end) | |
2309 | for i = 1, 20 do | |
2310 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(2.3,.8,-1) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(-55)), 0.4) | |
2311 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-2.3,.8,-1) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(55)), 0.4) | |
2312 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)),0.4) | |
2313 | ||
2314 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -2.6, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.4) | |
2315 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(40), 0, math.rad(0)), 0.4) | |
2316 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(0)), 0.4) | |
2317 | handleweld.C0=clerp(handleweld.C0,cf(-1,-1.5,-1.5)*angles(math.rad(-20),math.rad(-20),math.rad(50)),.2) | |
2318 | if Debounces.on == false then break end | |
2319 | ||
2320 | wait() | |
2321 | end | |
2322 | if Debounces.CanAttack == false then | |
2323 | Debounces.CanAttack = true | |
2324 | ||
2325 | Debounces.on = false | |
2326 | Debounces.NoIdl = false | |
2327 | end | |
2328 | attack=false | |
2329 | char.Humanoid.WalkSpeed=40 | |
2330 | end | |
2331 | end | |
2332 | end) | |
2333 | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
2334 | Grab = false | |
2335 | mouse.KeyDown:connect(function(key) | |
2336 | if key == "z" then | |
2337 | attack=true | |
2338 | Debounces.on = true | |
2339 | Debounces.NoIdl = true | |
2340 | if Grab == false then | |
2341 | gp = nil | |
2342 | con1=larm.Touched:connect(function(hit) -- this is grab | |
2343 | ht = hit.Parent | |
2344 | local hum1=ht:FindFirstChild('Humanoid') | |
2345 | if hum1 ~= nil then | |
2346 | hum1.PlatformStand=true | |
2347 | gp = ht | |
2348 | Grab = true | |
2349 | asd=weld5(larm,ht:FindFirstChild("Torso"),CFrame.new(0,-1.7,0),CFrame.new(0,0,0)) | |
2350 | asd.Parent = larm | |
2351 | asd.Name = "asd" | |
2352 | asd.C0=asd.C0*CFrame.Angles(math.rad(-90),0,0) | |
2353 | elseif hum1 == nil then | |
2354 | con1:disconnect() | |
2355 | wait() return | |
2356 | end | |
2357 | end) | |
2358 | for i = 1, 18 do | |
2359 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(36)), 0.2) | |
2360 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-2.65,.9,-.5)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(20)), 0.2) | |
2361 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.2) | |
2362 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1.8, 0) * CFrame.Angles(math.rad(-60), math.rad(0), 0), 0.2) | |
2363 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(60), math.rad(0), math.rad(0)), 0.2) | |
2364 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(60), math.rad(0), math.rad(0)), 0.2) | |
2365 | if Debounces.on == false then break end | |
2366 | wait() | |
2367 | end | |
2368 | con1:disconnect() | |
2369 | Debounces.on = false | |
2370 | Debounces.NoIdl = false | |
2371 | attack=false | |
2372 | ||
2373 | elseif Grab == true then | |
2374 | ||
2375 | Grab = false | |
2376 | for i = 1, 20 do | |
2377 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.2) | |
2378 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-2.6, .9, -.4)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(-20)), 0.1) | |
2379 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.2) | |
2380 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) | |
2381 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2) | |
2382 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2) | |
2383 | if Debounces.on == false then end | |
2384 | wait() | |
2385 | end | |
2386 | if gp ~= nil then | |
2387 | for i,v in pairs(larm:GetChildren()) do | |
2388 | if v.Name == "asd" and v:IsA("Weld") then | |
2389 | v:Remove() | |
2390 | ||
2391 | end | |
2392 | end | |
2393 | bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso")) | |
2394 | bv.maxForce = Vector3.new(400000, 400000, 400000) | |
2395 | bv.P = 125000 | |
2396 | bv.velocity = char.Head.CFrame.lookVector * 200 | |
2397 | for i = 1, 12 do | |
2398 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-2.6, .9, -.75)*CFrame.Angles(math.rad(30),math.rad(0),math.rad(20)), 0.5) | |
2399 | if Debounces.on == false then end | |
2400 | ||
2401 | wait() | |
2402 | end | |
2403 | ht=nil | |
2404 | Spawn(function() | |
2405 | wait(0.5) | |
2406 | bv:Destroy() | |
2407 | end) | |
2408 | Debounces.on = false | |
2409 | Debounces.NoIdl = false | |
2410 | attack=false | |
2411 | elseif ht == nil then wait() | |
2412 | ||
2413 | Grab = false | |
2414 | Debounces.on = false | |
2415 | Debounces.NoIdl = false | |
2416 | attack=false | |
2417 | end | |
2418 | end | |
2419 | end | |
2420 | end) | |
2421 | ----------------------------------------------------------------------------------------------------------------------------------------------------- | |
2422 | function attackone() | |
2423 | attack = true | |
2424 | local bounce=false | |
2425 | local con=Hitbox.Touched:connect(function(hit) Damagefuncy(Hitbox,hit,50,75,math.random(50,75),"Knockdown",RootPart,.2,1) end) | |
2426 | local fx=Hitbox.Touched:connect(function(part) | |
2427 | local human=part.Parent:findFirstChild("Humanoid") | |
2428 | if human~=nil and bounce==false then | |
2429 | local rndm=math.random(1,#hitsounds) | |
2430 | local r=rndm | |
2431 | so("http://www.roblox.com/asset/?id="..hitsounds[r],part,1,1.1) | |
2432 | bounce=true | |
2433 | end | |
2434 | end) | |
2435 | for i = 0,1,0.05 do | |
2436 | swait() | |
2437 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.2) | |
2438 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.2) | |
2439 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 1, -1)*CFrame.Angles(math.rad(0),math.rad(-120),math.rad(-120)), 0.2) | |
2440 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 0.5, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-30)), 0.2) | |
2441 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, -.5) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.2) | |
2442 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.2) | |
2443 | handleweld.C0=clerp(handleweld.C0,cf(0,0,.8)*angles(math.rad(80),math.rad(0),math.rad(0)),.2) | |
2444 | end | |
2445 | so("http://www.roblox.com/asset/?id=92597369",Hitbox,1,0.4) | |
2446 | so("http://www.roblox.com/asset/?id=234365549",Hitbox,1,0.6) | |
2447 | for i = 0,1,0.05 do | |
2448 | swait() | |
2449 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-20), math.rad(90), math.rad(0)), 0.2) | |
2450 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(20), math.rad(-80), math.rad(20)), 0.2) | |
2451 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, -0.5)*CFrame.Angles(math.rad(0),math.rad(-20),math.rad(-70)), 0.2) | |
2452 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 0.5, 0)*CFrame.Angles(math.rad(-30),math.rad(0),math.rad(-40)), 0.2) | |
2453 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), 0.2) | |
2454 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -.2, 0) * CFrame.Angles(math.rad(20), math.rad(-40), math.rad(0)), 0.2) | |
2455 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-30),math.rad(0),math.rad(0)),.2) | |
2456 | torso.Velocity=hed.CFrame.lookVector*50 | |
2457 | end | |
2458 | bounce = false | |
2459 | attack = false | |
2460 | con:disconnect() | |
2461 | fx:disconnect() | |
2462 | end | |
2463 | ||
2464 | function attacktwo() | |
2465 | attack = true | |
2466 | local bounce=false | |
2467 | local con=Hitbox.Touched:connect(function(hit) Damagefuncy(Hitbox,hit,40,50,math.random(40,50),"Knockdown",RootPart,.2,1) end) | |
2468 | local fx=Hitbox.Touched:connect(function(part) | |
2469 | local human=part.Parent:findFirstChild("Humanoid") | |
2470 | if human~=nil and bounce==false then | |
2471 | local rndm=math.random(1,#hitsounds) | |
2472 | local r=rndm | |
2473 | so("http://www.roblox.com/asset/?id="..hitsounds[r],part,1,1.1) | |
2474 | bounce=true | |
2475 | end | |
2476 | end) | |
2477 | for i = 0,1,0.05 do | |
2478 | swait() | |
2479 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.2) | |
2480 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(70), math.rad(0)), 0.2) | |
2481 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 2, -0.5)*CFrame.Angles(math.rad(150),math.rad(0),math.rad(10)), 0.2) | |
2482 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 0.5, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-50)), 0.2) | |
2483 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, -.5) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-5)), 0.2) | |
2484 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.2) | |
2485 | handleweld.C0=clerp(handleweld.C0,cf(0,0,.8)*angles(math.rad(80),math.rad(0),math.rad(0)),.2) | |
2486 | end | |
2487 | so("http://www.roblox.com/asset/?id=92597369",Hitbox,1,0.7) | |
2488 | so("http://www.roblox.com/asset/?id=234365573",Hitbox,1,0.7) | |
2489 | for i = 0,1,0.05 do | |
2490 | swait() | |
2491 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.2) | |
2492 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-20), math.rad(-60), math.rad(0)), 0.2) | |
2493 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 0, 0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(-10)), 0.2) | |
2494 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 0.5, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-30)), 0.2) | |
2495 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, -.5) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(-5)), 0.2) | |
2496 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.2) | |
2497 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-30),math.rad(0),math.rad(0)),.2) | |
2498 | end | |
2499 | bounce = false | |
2500 | attack = false | |
2501 | con:disconnect() | |
2502 | fx:disconnect() | |
2503 | end | |
2504 | ||
2505 | function attackthree() | |
2506 | attack = true | |
2507 | local bounce=false | |
2508 | local con=Hitbox.Touched:connect(function(hit) Damagefuncy(Hitbox,hit,50,90,math.random(50,90),"Knockdown",RootPart,.2,1) end) | |
2509 | local fx=Hitbox.Touched:connect(function(part) | |
2510 | local human=part.Parent:findFirstChild("Humanoid") | |
2511 | if human~=nil and bounce==false then | |
2512 | local rndm=math.random(1,#hitsounds) | |
2513 | local r=rndm | |
2514 | so("http://www.roblox.com/asset/?id="..hitsounds[r],part,1,1.1) | |
2515 | bounce=true | |
2516 | end | |
2517 | end) | |
2518 | for i = 0,1,0.05 do | |
2519 | swait() | |
2520 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(60), math.rad(0)), 0.2) | |
2521 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.2) | |
2522 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, .5, 0)*CFrame.Angles(math.rad(0),math.rad(110),math.rad(50)), 0.2) | |
2523 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-2, 0.5, -.5)*CFrame.Angles(math.rad(0),math.rad(-120),math.rad(-50)), 0.2) | |
2524 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(-10)), 0.2) | |
2525 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(10)), 0.2) | |
2526 | handleweld.C0=clerp(handleweld.C0,cf(0,0,-1)*angles(math.rad(-50),math.rad(0),math.rad(0)),.2) | |
2527 | end | |
2528 | so("http://roblox.com/asset/?id=92597369",Hitbox,1,.6) | |
2529 | so("http://roblox.com/asset/?id=92597296",Hitbox,1,.8) | |
2530 | for i = 0,1,0.07 do | |
2531 | swait() | |
2532 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.2) | |
2533 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(0)), 0.2) | |
2534 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 1, 0)*CFrame.Angles(math.rad(0),math.rad(20),math.rad(120)), 0.2) | |
2535 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 0.5, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-50)), 0.2) | |
2536 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(-10)), 0.2) | |
2537 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(10)), 0.2) | |
2538 | handleweld.C0=clerp(handleweld.C0,cf(0,0,-1)*angles(math.rad(-50),math.rad(0),math.rad(0)),.2) | |
2539 | end | |
2540 | bounce = false | |
2541 | attack = false | |
2542 | con:disconnect() | |
2543 | fx:disconnect() | |
2544 | end | |
2545 | ||
2546 | function WaveEffect2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
2547 | local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2548 | prt.Anchored=true | |
2549 | prt.CFrame=cframe | |
2550 | msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://20329976",vt(0,0,0),vt(x1,y1,z1)) | |
2551 | game:GetService("Debris"):AddItem(prt,2) | |
2552 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2553 | for i=0,1,delay do | |
2554 | swait() | |
2555 | Part.CFrame=Part.CFrame | |
2556 | Part.Transparency=i | |
2557 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2558 | end | |
2559 | Part.Parent=nil | |
2560 | end),prt,msh) | |
2561 | end | |
2562 | --example: WaveEffect2(BrickColor.new(""),ExamplePart.CFrame,0,0,0,0,0,0,0.02) | |
2563 | ||
2564 | function Stomp() | |
2565 | attack = true | |
2566 | char.Humanoid.WalkSpeed = 40 | |
2567 | local con=lleg.Touched:connect(function(hit) Damagefuncy(Hitbox,hit,50,90,math.random(50,100),"Normal",RootPart,.2,1) end) | |
2568 | for i = 0,1,0.02 do | |
2569 | swait() | |
2570 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
2571 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
2572 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 1, -0.5)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(30)), 0.2) | |
2573 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 0.5, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-20)), 0.2) | |
2574 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, .5, -2) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
2575 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.2) | |
2576 | handleweld.C0=clerp(handleweld.C0,cf(0,0,.8)*angles(math.rad(80),math.rad(0),math.rad(0)),.2) | |
2577 | end | |
2578 | so("http://roblox.com/asset/?id=200632875",lleg,1,.8) | |
2579 | MagniDamage(lleg,30,30,50,math.random(50,100),"Knockdown") | |
2580 | WaveEffect2(BrickColor.new("Really black"),lleg.CFrame*CFrame.Angles(math.rad(20),math.rad(0),math.rad(0))*CFrame.new(0,-2,0),.5,.5,.5,2,2,2,0.05) | |
2581 | for i = 0,1,0.02 do | |
2582 | swait() | |
2583 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
2584 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), 0.2) | |
2585 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 1, -0.5)*CFrame.Angles(math.rad(100),math.rad(0),math.rad(30)), 0.2) | |
2586 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 0.8, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-40)), 0.2) | |
2587 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, -1) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
2588 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.2) | |
2589 | handleweld.C0=clerp(handleweld.C0,cf(0,0,.8)*angles(math.rad(80),math.rad(0),math.rad(0)),.2) | |
2590 | end | |
2591 | char.Humanoid.WalkSpeed = 40 | |
2592 | attack = false | |
2593 | con:disconnect() | |
2594 | end | |
2595 | ||
2596 | function BlockEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
2597 | local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt()) | |
2598 | prt.Anchored=true | |
2599 | prt.CFrame=cframe | |
2600 | local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
2601 | game:GetService("Debris"):AddItem(prt,5) | |
2602 | table.insert(Effects,{prt,"Block1",delay,x3,y3,z3}) --part, type, delay | |
2603 | end | |
2604 | ||
2605 | function WaveEffect(Part,cframe1,cframe2,Damage,Size) | |
2606 | coroutine.resume(coroutine.create(function() | |
2607 | local wave=part(1,workspace,"SmoothPlastic",0,0,BrickColor.new("Lime green"),"Effect",vt(3,3,10)) | |
2608 | wave.Anchored=true | |
2609 | wave.CFrame=Part.CFrame*cframe1 | |
2610 | so("http://www.roblox.com/asset/?id=278596476",wave,1,1.3) | |
2611 | MagniDamage(wave,20,30,50,10,"Knockdown") | |
2612 | local Msh = Create("SpecialMesh"){ | |
2613 | Parent = wave, | |
2614 | MeshType = "Sphere" | |
2615 | } | |
2616 | BlockEffect(BrickColor.new("Lime green"),wave.CFrame,1,1,1,3,3,3,0.05) | |
2617 | so("http://roblox.com/asset/?id=200632875",wave,1,1.3) | |
2618 | for i=0,1,0.2 do | |
2619 | wait() | |
2620 | local dir = wave.CFrame.lookVector*-1 | |
2621 | local pos = rayCast(wave.Position,dir,5,Character) | |
2622 | wave.CFrame=wave.CFrame*cframe2 | |
2623 | Effects[#Effects+1]={wave,"Cylinder",0.01,.03,.03,.03} | |
2624 | end | |
2625 | end)) | |
2626 | end | |
2627 | ||
2628 | function Wave() | |
2629 | attack = true | |
2630 | char.Humanoid.WalkSpeed = 40 | |
2631 | for i = 0,1,0.02 do | |
2632 | swait() | |
2633 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(5), math.rad(0), math.rad(0)), 0.2) | |
2634 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.2) | |
2635 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(2, 2, -2)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(-50)), 0.2) | |
2636 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-2, 2, -2)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(50)), 0.2) | |
2637 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)), 0.2) | |
2638 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)), 0.2) | |
2639 | handleweld.C0=clerp(handleweld.C0,cf(-1,-1.5,-1.5)*angles(math.rad(-20),math.rad(-20),math.rad(50)),.2) | |
2640 | end | |
2641 | so("http://roblox.com/asset/?id=234365573",Hitbox,1,.8) | |
2642 | local inc=-10 | |
2643 | for i=1,5 do | |
2644 | WaveEffect(torso,CFrame.new(0,-10,inc)*CFrame.fromEulerAnglesXYZ(-2,0,1.57),CFrame.new(0,0,0.8),10,5) | |
2645 | inc=inc-7 | |
2646 | end | |
2647 | for i = 0,1,0.02 do | |
2648 | swait() | |
2649 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), 0.2) | |
2650 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.2) | |
2651 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(2, .5, -1)*CFrame.Angles(math.rad(50),math.rad(0),math.rad(-50)), 0.4) | |
2652 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-2, .5, -1)*CFrame.Angles(math.rad(50),math.rad(0),math.rad(50)), 0.4) | |
2653 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(35), math.rad(0), math.rad(0)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)), 0.2) | |
2654 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)), 0.2) | |
2655 | handleweld.C0=clerp(handleweld.C0,cf(-1,-1.5,-1.5)*angles(math.rad(-20),math.rad(-20),math.rad(50)),.2) | |
2656 | end | |
2657 | attack = false | |
2658 | char.Humanoid.WalkSpeed = 40 | |
2659 | end | |
2660 | ||
2661 | function Cloak() | |
2662 | ||
2663 | end | |
2664 | ||
2665 | mouse.Button1Down:connect(function() | |
2666 | if attack==false then | |
2667 | if attacktype==1 then | |
2668 | attacktype = 2 | |
2669 | attackone() | |
2670 | elseif attacktype==2 then | |
2671 | attacktype = 3 | |
2672 | attacktwo() | |
2673 | elseif attacktype==3 then | |
2674 | attacktype = 1 | |
2675 | attackthree() | |
2676 | end | |
2677 | end | |
2678 | end) | |
2679 | ||
2680 | mouse.KeyDown:connect(function(k) | |
2681 | k=k:lower() | |
2682 | if k=='e' and attack==false then | |
2683 | Stomp() | |
2684 | end | |
2685 | if k=='r' and attack==false then | |
2686 | Wave() | |
2687 | end | |
2688 | end) | |
2689 | ||
2690 | bc=char['Body Colors'] | |
2691 | coloras=BrickColor.new('Really black') | |
2692 | bc.LeftLegColor,bc.LeftArmColor,bc.TorsoColor,bc.HeadColor,bc.RightArmColor,bc.RightLegColor=coloras,coloras,coloras,coloras,coloras,coloras | |
2693 | ||
2694 | pcall(function() | |
2695 | Character.Shirt:remove() | |
2696 | Character.Pants:remove() | |
2697 | Character.Sound:remove() | |
2698 | char.Humanoid.MaxHealth = 10000 | |
2699 | char.Humanoid.Health = 10000 | |
2700 | end) | |
2701 | ||
2702 | game:service'InsertService':LoadAsset(181238309):children()[1].Parent = Character | |
2703 | game:service'InsertService':LoadAsset(181241666):children()[1].Parent = Character | |
2704 | ||
2705 | local prevState = "None" | |
2706 | local fallSpeed = 0 | |
2707 | ||
2708 | local sRunning = Instance.new("Sound",torso) sRunning.SoundId = "http://roblox.com/asset/?id=135062807" | |
2709 | local sLanding = Instance.new("Sound",torso) sLanding.SoundId = "http://roblox.com/asset/?id=180683823" | |
2710 | ||
2711 | function onRunning(speed) | |
2712 | if (prevState == "FreeFall" and fallSpeed > 0.1) then | |
2713 | local vol = math.min(1.0, math.max(0.0, (fallSpeed - 50) / 110)) | |
2714 | sLanding.Volume = vol | |
2715 | sLanding:Play() | |
2716 | fallSpeed = 0 | |
2717 | end | |
2718 | if speed>0.5 then | |
2719 | sRunning:Play() | |
2720 | sRunning.Looped = true | |
2721 | sRunning.Pitch = 1 | |
2722 | else | |
2723 | sRunning:Stop() | |
2724 | end | |
2725 | prevState = "Run" | |
2726 | end | |
2727 | ||
2728 | Character.Humanoid.Running:connect(onRunning) | |
2729 | ||
2730 | local sine = 0 | |
2731 | local change = 1 | |
2732 | local val = 0 | |
2733 | ||
2734 | while true do | |
2735 | swait() | |
2736 | sine = sine + change | |
2737 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
2738 | local velderp=RootPart.Velocity.y | |
2739 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,10,0))).lookVector,10,char) | |
2740 | if equipped==true or equipped==false or stanceToggle=="Normal" then | |
2741 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
2742 | Anim="Jump" | |
2743 | if attack==false then | |
2744 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
2745 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.2) | |
2746 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 1, -0.5)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(30)), 0.2) | |
2747 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-30)), 0.2) | |
2748 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -.5, -.5) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
2749 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.2) | |
2750 | handleweld.C0=clerp(handleweld.C0,cf(0,0,.8)*angles(math.rad(80),math.rad(0),math.rad(0)),.2) | |
2751 | end | |
2752 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
2753 | Anim="Fall" | |
2754 | if attack==false then | |
2755 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
2756 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
2757 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 1, -0.5)*CFrame.Angles(math.rad(120),math.rad(0),math.rad(20)), 0.2) | |
2758 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-50)), 0.2) | |
2759 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), 0.2) | |
2760 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
2761 | end | |
2762 | elseif torvel<1 and hitfloor~=nil then | |
2763 | Anim="Idle" | |
2764 | if attack==false then | |
2765 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.2) | |
2766 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.2) | |
2767 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 1, -0.5)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(30)), 0.2) | |
2768 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 0.5, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-20)), 0.2) | |
2769 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, -.5) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(-5)), 0.2) | |
2770 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.2) | |
2771 | handleweld.C0=clerp(handleweld.C0,cf(0,0,.8)*angles(math.rad(80),math.rad(0),math.rad(0)),.2) | |
2772 | end | |
2773 | elseif torvel>2 and hitfloor~=nil then | |
2774 | Anim="Walk" | |
2775 | if attack==false then | |
2776 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
2777 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.2) | |
2778 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 1, -0.5)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(30)), 0.2) | |
2779 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 0.5, 0)*CFrame.Angles(math.rad(-30*math.cos(sine/8)),math.rad(0),math.rad(-20)), 0.2) | |
2780 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(50*math.cos(sine/6)), math.rad(0), math.rad(0)), 0.2) | |
2781 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-50*math.cos(sine/6)), math.rad(0), math.rad(0)), 0.2) | |
2782 | handleweld.C0=clerp(handleweld.C0,cf(0,0,.8)*angles(math.rad(80),math.rad(0),math.rad(0)),.2) | |
2783 | end | |
2784 | end | |
2785 | end | |
2786 | if #Effects>0 then | |
2787 | for e=1,#Effects do | |
2788 | if Effects[e]~=nil then | |
2789 | local Thing=Effects[e] | |
2790 | if Thing~=nil then | |
2791 | local Part=Thing[1] | |
2792 | local Mode=Thing[2] | |
2793 | local Delay=Thing[3] | |
2794 | local IncX=Thing[4] | |
2795 | local IncY=Thing[5] | |
2796 | local IncZ=Thing[6] | |
2797 | if Thing[1].Transparency<=1 then | |
2798 | if Thing[2]=="Block1" then | |
2799 | Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
2800 | Mesh=Thing[1].Mesh | |
2801 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
2802 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2803 | elseif Thing[2]=="Cylinder" then | |
2804 | Mesh=Thing[1].Mesh | |
2805 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
2806 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2807 | elseif Thing[2]=="Blood" then | |
2808 | Mesh=Thing[7] | |
2809 | Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0) | |
2810 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
2811 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2812 | elseif Thing[2]=="Elec" then | |
2813 | Mesh=Thing[1].Mesh | |
2814 | Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9]) | |
2815 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2816 | elseif Thing[2]=="Disappear" then | |
2817 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2818 | end | |
2819 | else | |
2820 | Part.Parent=nil | |
2821 | table.remove(Effects,e) | |
2822 | end | |
2823 | end | |
2824 | end | |
2825 | end | |
2826 | end | |
2827 | end |