SHOW:
|
|
- or go back to the newest paste.
1 | Plrs = game:GetService("Players") | |
2 | ||
3 | - | me = Plrs.NextFlame |
3 | + | me = Plrs.overhaleren |
4 | char = me.Character | |
5 | Modelname = "BoStaff" | |
6 | Surfaces = {"FrontSurface", "BackSurface", "TopSurface", "BottomSurface", "LeftSurface", "RightSurface"} | |
7 | necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
8 | able = true | |
9 | block = false | |
10 | breakblock = 10 | |
11 | holdkey = false | |
12 | effectOn = false | |
13 | ||
14 | local Ball1 = Instance.new("Part") | |
15 | Ball1.Parent = char | |
16 | Ball1.Name = "Ball1" | |
17 | Ball1.CanCollide = false | |
18 | Ball1.Locked = true | |
19 | Ball1.TopSurface = "Smooth" | |
20 | Ball1.BottomSurface = "Smooth" | |
21 | Ball1.formFactor = "Symmetric" | |
22 | Ball1.BrickColor = BrickColor.new("Really black") | |
23 | Ball1.CFrame = char.Torso.CFrame | |
24 | Ball1.Transparency = 0 | |
25 | Ball1.Reflectance = 0.1 | |
26 | Ball1.Size = Vector3.new(1, 1, 1) | |
27 | b1Weld = Instance.new("Weld") | |
28 | b1Weld.Parent = char.Torso | |
29 | b1Weld.Part0 = char.Torso | |
30 | b1Weld.Part1 = Ball1 | |
31 | b1Weld.Name = "TorsoWeld1" | |
32 | b1Weld.C0 = CFrame.new(-1.5, 1.5, 0.5) | |
33 | Ball1Mesh = Instance.new("SpecialMesh") | |
34 | Ball1Mesh.MeshType = "Sphere" | |
35 | Ball1Mesh.Parent = Ball1 | |
36 | Ball1Mesh.Scale = Vector3.new(1.5, 1.5, 1.5) | |
37 | ||
38 | local Ball2 = Instance.new("Part") | |
39 | Ball2.Parent = char | |
40 | Ball2.Name = "Ball2" | |
41 | Ball2.CanCollide = false | |
42 | Ball2.Locked = true | |
43 | Ball2.TopSurface = "Smooth" | |
44 | Ball2.BottomSurface = "Smooth" | |
45 | Ball2.formFactor = "Symmetric" | |
46 | Ball2.BrickColor = BrickColor.new("Really red") | |
47 | Ball2.CFrame = char.Torso.CFrame | |
48 | Ball2.Transparency = 0 | |
49 | Ball2.Reflectance = 0.1 | |
50 | Ball2.Size = Vector3.new(1, 1, 1) | |
51 | b2Weld = Instance.new("Weld") | |
52 | b2Weld.Parent = char.Torso | |
53 | b2Weld.Part0 = char.Torso | |
54 | b2Weld.Part1 = Ball2 | |
55 | b2Weld.C0 = CFrame.new(1.75, -1.75, 0.5) | |
56 | b2Weld.Name = "TorsoWeld2" | |
57 | Ball2Mesh = Instance.new("SpecialMesh") | |
58 | Ball2Mesh.MeshType = "Sphere" | |
59 | Ball2Mesh.Parent = Ball2 | |
60 | Ball2Mesh.Scale = Vector3.new(1.5, 1.5, 1.5) | |
61 | ||
62 | local Staff = Instance.new("Part") | |
63 | Staff.Parent = char | |
64 | Staff.Name = "Staff" | |
65 | Staff.CanCollide = false | |
66 | Staff.Locked = true | |
67 | Staff.TopSurface = "Smooth" | |
68 | Staff.BottomSurface = "Smooth" | |
69 | Staff.formFactor = "Symmetric" | |
70 | Staff.BrickColor = BrickColor.new("Really black") | |
71 | Staff.CFrame = char.Torso.CFrame | |
72 | Staff.Transparency = 0 | |
73 | Staff.Reflectance = 0.3 | |
74 | Staff.Size = Vector3.new(1, 1, 1) | |
75 | sWeld = Instance.new("Weld") | |
76 | sWeld.Parent = char.Torso | |
77 | sWeld.Part0 = char.Torso | |
78 | sWeld.Part1 = Staff | |
79 | sWeld.C0 = CFrame.new(0, 0, 0.5) * CFrame.Angles(0, 0, 0.75) | |
80 | sWeld.Name = "TorsoWeld3" | |
81 | StaffMesh = Instance.new("CylinderMesh") | |
82 | StaffMesh.Parent = Staff | |
83 | StaffMesh.Scale = Vector3.new(0.5, 5, 0.5) | |
84 | ||
85 | ------------------------------------------------------------------------------------------------------------------------------ | |
86 | ||
87 | function CreateHandWep() | |
88 | ||
89 | local Ball1 = Instance.new("Part") | |
90 | Ball1.Parent = char | |
91 | Ball1.Name = "Ball1" | |
92 | Ball1.CanCollide = false | |
93 | Ball1.Locked = true | |
94 | Ball1.TopSurface = "Smooth" | |
95 | Ball1.BottomSurface = "Smooth" | |
96 | Ball1.formFactor = "Symmetric" | |
97 | Ball1.BrickColor = BrickColor.new("Really black") | |
98 | Ball1.CFrame = char.Torso.CFrame | |
99 | Ball1.Transparency = 0 | |
100 | Ball1.Reflectance = 0.1 | |
101 | Ball1.Size = Vector3.new(1, 1, 1) | |
102 | b1Weld = Instance.new("Weld") | |
103 | b1Weld.Parent = char["Right Arm"] | |
104 | b1Weld.Part0 = char["Right Arm"] | |
105 | b1Weld.Part1 = Ball1 | |
106 | b1Weld.C0 = CFrame.new(0, -1, 3) | |
107 | b1Weld.Name = "Grip1" | |
108 | Ball1Mesh = Instance.new("SpecialMesh") | |
109 | Ball1Mesh.MeshType = "Sphere" | |
110 | Ball1Mesh.Parent = Ball1 | |
111 | Ball1Mesh.Scale = Vector3.new(1.5, 1.5, 1.5) | |
112 | ||
113 | local Ball2 = Instance.new("Part") | |
114 | Ball2.Parent = char | |
115 | Ball2.Name = "Ball2" | |
116 | Ball2.CanCollide = false | |
117 | Ball2.Locked = true | |
118 | Ball2.TopSurface = "Smooth" | |
119 | Ball2.BottomSurface = "Smooth" | |
120 | Ball2.formFactor = "Symmetric" | |
121 | Ball2.BrickColor = BrickColor.new("Really red") | |
122 | Ball2.CFrame = char.Torso.CFrame | |
123 | Ball2.Transparency = 0 | |
124 | Ball2.Reflectance = 0.1 | |
125 | Ball2.Size = Vector3.new(1, 1, 1) | |
126 | b2Weld = Instance.new("Weld") | |
127 | b2Weld.Parent = char["Right Arm"] | |
128 | b2Weld.Part0 = char["Right Arm"] | |
129 | b2Weld.Part1 = Ball2 | |
130 | b2Weld.C0 = CFrame.new(0, -1.2, -3) | |
131 | b2Weld.Name = "Grip2" | |
132 | Ball2Mesh = Instance.new("SpecialMesh") | |
133 | Ball2Mesh.MeshType = "Sphere" | |
134 | Ball2Mesh.Parent = Ball2 | |
135 | Ball2Mesh.Scale = Vector3.new(1.5, 1.5, 1.5) | |
136 | ||
137 | local Staff = Instance.new("Part") | |
138 | Staff.Parent = char | |
139 | Staff.Name = "Staff" | |
140 | Staff.CanCollide = false | |
141 | Staff.Locked = true | |
142 | Staff.TopSurface = "Smooth" | |
143 | Staff.BottomSurface = "Smooth" | |
144 | Staff.formFactor = "Symmetric" | |
145 | Staff.BrickColor = BrickColor.new("Really black") | |
146 | Staff.CFrame = char.Torso.CFrame | |
147 | Staff.Transparency = 0 | |
148 | Staff.Reflectance = 0.3 | |
149 | Staff.Size = Vector3.new(1, 1, 1) | |
150 | sWeld = Instance.new("Weld") | |
151 | sWeld.Parent = char["Right Arm"] | |
152 | sWeld.Part0 = char["Right Arm"] | |
153 | sWeld.Part1 = Staff | |
154 | sWeld.C0 = CFrame.new(0, -1.1, 0) * CFrame.Angles(1.5, 0, 0) | |
155 | sWeld.Name = "Grip3" | |
156 | StaffMesh = Instance.new("CylinderMesh") | |
157 | StaffMesh.Parent = Staff | |
158 | StaffMesh.Scale = Vector3.new(0.5, 5, 0.5) | |
159 | ||
160 | end | |
161 | ||
162 | ||
163 | function CreateBackWep() | |
164 | ||
165 | local Ball1 = Instance.new("Part") | |
166 | Ball1.Parent = char | |
167 | Ball1.Name = "Ball1" | |
168 | Ball1.CanCollide = false | |
169 | Ball1.Locked = true | |
170 | Ball1.TopSurface = "Smooth" | |
171 | Ball1.BottomSurface = "Smooth" | |
172 | Ball1.formFactor = "Symmetric" | |
173 | Ball1.BrickColor = BrickColor.new("Really black") | |
174 | Ball1.CFrame = char.Torso.CFrame | |
175 | Ball1.Transparency = 0 | |
176 | Ball1.Reflectance = 0.1 | |
177 | Ball1.Size = Vector3.new(1, 1, 1) | |
178 | b1Weld = Instance.new("Weld") | |
179 | b1Weld.Parent = char.Torso | |
180 | b1Weld.Part0 = char.Torso | |
181 | b1Weld.Part1 = Ball1 | |
182 | b1Weld.Name = "TorsoWeld1" | |
183 | b1Weld.C0 = CFrame.new(-1.5, 1.5, 0.5) | |
184 | Ball1Mesh = Instance.new("SpecialMesh") | |
185 | Ball1Mesh.MeshType = "Sphere" | |
186 | Ball1Mesh.Parent = Ball1 | |
187 | Ball1Mesh.Scale = Vector3.new(1.5, 1.5, 1.5) | |
188 | ||
189 | local Ball2 = Instance.new("Part") | |
190 | Ball2.Parent = char | |
191 | Ball2.Name = "Ball2" | |
192 | Ball2.CanCollide = false | |
193 | Ball2.Locked = true | |
194 | Ball2.TopSurface = "Smooth" | |
195 | Ball2.BottomSurface = "Smooth" | |
196 | Ball2.formFactor = "Symmetric" | |
197 | Ball2.BrickColor = BrickColor.new("Really red") | |
198 | Ball2.CFrame = char.Torso.CFrame | |
199 | Ball2.Transparency = 0 | |
200 | Ball2.Reflectance = 0.1 | |
201 | Ball2.Size = Vector3.new(1, 1, 1) | |
202 | b2Weld = Instance.new("Weld") | |
203 | b2Weld.Parent = char.Torso | |
204 | b2Weld.Part0 = char.Torso | |
205 | b2Weld.Part1 = Ball2 | |
206 | b2Weld.C0 = CFrame.new(1.75, -1.75, 0.5) | |
207 | b2Weld.Name = "TorsoWeld2" | |
208 | Ball2Mesh = Instance.new("SpecialMesh") | |
209 | Ball2Mesh.MeshType = "Sphere" | |
210 | Ball2Mesh.Parent = Ball2 | |
211 | Ball2Mesh.Scale = Vector3.new(1.5, 1.5, 1.5) | |
212 | ||
213 | local Staff = Instance.new("Part") | |
214 | Staff.Parent = char | |
215 | Staff.Name = "Staff" | |
216 | Staff.CanCollide = false | |
217 | Staff.Locked = true | |
218 | Staff.TopSurface = "Smooth" | |
219 | Staff.BottomSurface = "Smooth" | |
220 | Staff.formFactor = "Symmetric" | |
221 | Staff.BrickColor = BrickColor.new("Really black") | |
222 | Staff.CFrame = char.Torso.CFrame | |
223 | Staff.Transparency = 0 | |
224 | Staff.Reflectance = 0.3 | |
225 | Staff.Size = Vector3.new(1, 1, 1) | |
226 | sWeld = Instance.new("Weld") | |
227 | sWeld.Parent = char.Torso | |
228 | sWeld.Part0 = char.Torso | |
229 | sWeld.Part1 = Staff | |
230 | sWeld.C0 = CFrame.new(0, 0, 0.5) * CFrame.Angles(0, 0, 0.75) | |
231 | sWeld.Name = "TorsoWeld3" | |
232 | StaffMesh = Instance.new("CylinderMesh") | |
233 | StaffMesh.Parent = Staff | |
234 | StaffMesh.Scale = Vector3.new(0.5, 5, 0.5) | |
235 | ||
236 | end | |
237 | ||
238 | char.Humanoid.MaxHealth = 250 | |
239 | wait() | |
240 | char.Humanoid.Health = 250 | |
241 | ||
242 | Add = { | |
243 | Sphere = function(P) | |
244 | local m = Instance.new("SpecialMesh",P) | |
245 | m.MeshType = "Sphere" | |
246 | return m | |
247 | end, | |
248 | BF = function(P) | |
249 | local bf = Instance.new("BodyForce",P) | |
250 | bf.force = Vector3.new(0, P:GetMass()*187, 0) | |
251 | return bf | |
252 | end, | |
253 | BP = function(P) | |
254 | local bp = Instance.new("BodyPosition",P) | |
255 | bp.maxForce = Vector3.new(math.huge, 0, math.huge) | |
256 | bp.P = 14000 | |
257 | return bp | |
258 | end, | |
259 | BG = function(P) | |
260 | local bg = Instance.new("BodyGyro",P) | |
261 | bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge) | |
262 | bg.P = 14000 | |
263 | return bg | |
264 | end | |
265 | } | |
266 | ||
267 | function Part(Parent, Anchor, Collide, Tran, Ref, Color, X, Y, Z, Break) | |
268 | local p = Instance.new("Part") | |
269 | p.formFactor = "Custom" | |
270 | p.Anchored = Anchor | |
271 | p.CanCollide = Collide | |
272 | p.Transparency = Tran | |
273 | p.Reflectance = Ref | |
274 | p.BrickColor = BrickColor.new(Color) | |
275 | for _, Surf in pairs(Surfaces) do | |
276 | p[Surf] = "Smooth" | |
277 | end | |
278 | p.Size = Vector3.new(X, Y, Z) | |
279 | if Break then | |
280 | p:BreakJoints() | |
281 | else p:MakeJoints() end | |
282 | p.Parent = Parent | |
283 | return p | |
284 | end | |
285 | ||
286 | function Weld(p0, p1, x, y, z, a, b, c) | |
287 | local w = Instance.new("Weld") | |
288 | w.Parent = p0 | |
289 | w.Part0 = p0 | |
290 | w.Part1 = p1 | |
291 | w.C1 = CFrame.new(x,y,z) * CFrame.Angles(a,b,c) | |
292 | return w | |
293 | end | |
294 | ||
295 | function ComputePos(pos1, pos2) | |
296 | local pos3 = Vector3.new(pos2.x, pos1.y, pos2.z) | |
297 | return CFrame.new(pos1, pos3) | |
298 | end | |
299 | ||
300 | function getHumanoid(c) | |
301 | local h = nil | |
302 | for i,v in pairs(c:children()) do | |
303 | if v:IsA("Humanoid") and c ~= char then | |
304 | if v.Health > 0 then | |
305 | h = v | |
306 | end | |
307 | end | |
308 | end | |
309 | return h | |
310 | end | |
311 | ||
312 | function getHead(c, pos, m) | |
313 | local h = nil | |
314 | local n = nil | |
315 | t = c:findFirstChild("Torso") | |
316 | if t ~= nil then | |
317 | n = t:findFirstChild("Neck") | |
318 | end | |
319 | for i,v in pairs(c:children()) do | |
320 | if v.Name == "Head" then | |
321 | if (v.Position - pos).magnitude < m then | |
322 | h = v | |
323 | end | |
324 | end | |
325 | end | |
326 | return h, n | |
327 | end | |
328 | ||
329 | ||
330 | for i,v in pairs(char:children()) do | |
331 | if v.Name == Modelname then | |
332 | v:remove() | |
333 | end | |
334 | end | |
335 | ||
336 | torso = char.Torso | |
337 | head = char.Head | |
338 | neck = torso.Neck | |
339 | hum = char.Humanoid | |
340 | Rarm = char["Right Arm"] | |
341 | Larm = char["Left Arm"] | |
342 | Rleg = char["Right Leg"] | |
343 | Lleg = char["Left Leg"] | |
344 | RightShoulder = torso["Right Shoulder"] | |
345 | LeftShoulder = torso["Left Shoulder"] | |
346 | RightHip = torso["Right Hip"] | |
347 | LeftHip = torso["Left Hip"] | |
348 | ||
349 | ||
350 | ||
351 | ||
352 | LastHP = hum.Health | |
353 | ||
354 | function CreateTag(Attacker, VictimHumanoid) | |
355 | for i, v in pairs(VictimHumanoid:GetChildren()) do | |
356 | if v.Name == "creator" then | |
357 | v:Remove() | |
358 | end | |
359 | end | |
360 | Tag = Instance.new("ObjectValue") | |
361 | Tag.Parent = VictimHumanoid | |
362 | Tag.Name = "creator" | |
363 | Tag.Value = Attacker | |
364 | end | |
365 | ||
366 | function HpChange(newhp) | |
367 | if block and hum.Health > 0.1 then | |
368 | local dif = LastHP - newhp | |
369 | if dif > 0 then | |
370 | local h = LastHP - ((LastHP-newhp)/3) | |
371 | hum.Health = h | |
372 | wait() | |
373 | hum.Health = h | |
374 | end | |
375 | if dif > breakblock then | |
376 | block = false | |
377 | local a = Add.BP(torso) | |
378 | a.position = torso.Position | |
379 | local b = Add.BG(torso) | |
380 | b.cframe = CFrame.new(torso.Position, torso.CFrame * CFrame.new(0, 0, -5).p) | |
381 | wait(0.1) | |
382 | a:remove() | |
383 | b:remove() | |
384 | able = true | |
385 | end | |
386 | end | |
387 | LastHP = hum.Health | |
388 | end | |
389 | ||
390 | hum.HealthChanged:connect(HpChange) | |
391 | ||
392 | hc = Instance.new("Humanoid") | |
393 | hc.Health = 0 | |
394 | hc.MaxHealth = 0 | |
395 | ||
396 | slash = Instance.new("Sound") | |
397 | slash.SoundId = "http://www.roblox.com/asset/?id=130815350" | |
398 | slash.Volume = 1 | |
399 | slash.Pitch = 1.5 | |
400 | slash.Parent = Rarm | |
401 | ||
402 | hitsound = Instance.new("Sound") | |
403 | hitsound.SoundId = "http://www.roblox.com/asset/?id=130815350" | |
404 | hitsound.Volume = 1 | |
405 | hitsound.Pitch = 1 | |
406 | hitsound.Parent = torso | |
407 | ||
408 | Mo = Instance.new("Model") | |
409 | Mo.Name = Modelname | |
410 | ||
411 | RABrick = Part(Mo, false, false, 1, 0, "Really Black", 0.1, 0.1, 0.1, true) | |
412 | LABrick = Part(Mo, false, false, 1, 0, "Really Black", 0.1, 0.1, 0.1, true) | |
413 | RLBrick = Part(Mo, false, false, 1, 0, "Really Black", 0.1, 0.1, 0.1, true) | |
414 | LLBrick = Part(Mo, false, false, 1, 0, "Really Black", 0.1, 0.1, 0.1, true) | |
415 | ||
416 | RABW = Weld(torso, RABrick, -1.5, -0.5, 0, 0, 0, 0) | |
417 | LABW = Weld(torso, LABrick, 1.5, -0.5, 0, 0, 0, 0) | |
418 | RLBW = Weld(torso, RLBrick, -0.5, 1.2, 0, 0, 0, 0) | |
419 | LLBW = Weld(torso, LLBrick, 0.5, 1.2, 0, 0, 0, 0) | |
420 | ||
421 | RAW = Weld(RABrick, nil, 0, 0.5, 0, 0, 0, 0) | |
422 | LAW = Weld(LABrick, nil, 0, 0.5, 0, 0, 0, 0) | |
423 | RLW = Weld(RLBrick, nil, 0, 0.8, 0, 0, 0, 0) | |
424 | LLW = Weld(LLBrick, nil, 0, 0.8, 0, 0, 0, 0) | |
425 | ||
426 | TBricks = {} | |
427 | ||
428 | for i, v in pairs({Rarm, Larm, Rleg, Lleg, torso, Ball1, Ball2, Staff, head}) do | |
429 | local p = Part(Mo, false, false, 1, 0, "Really black", 0.9, 0.9, 0.8, true) | |
430 | Weld(v, p, 0, 0.7, 0, 0, 0, 0) | |
431 | table.insert(TBricks, {p, hurt = false, able = true}) | |
432 | end | |
433 | ||
434 | function startEff(part) | |
435 | effectOn = true | |
436 | local lastPoint = part.Position | |
437 | coroutine.resume(coroutine.create(function() | |
438 | while effectOn do | |
439 | wait() | |
440 | local mag = (lastPoint - part.Position).magnitude | |
441 | local p = Part(Mo, true, false, 0.2, 0.05, "White", 0.1, 0.1, mag+0.2, true) | |
442 | p.CFrame = CFrame.new(lastPoint, part.Position) * CFrame.new(0, 0, -mag/2) | |
443 | Instance.new("BlockMesh",p) | |
444 | lastPoint = part.Position | |
445 | coroutine.resume(coroutine.create(function() | |
446 | for x=0.2,1,0.2 do | |
447 | wait() | |
448 | p.Transparency = x | |
449 | end | |
450 | p:remove() | |
451 | end)) | |
452 | end | |
453 | end)) | |
454 | end | |
455 | ||
456 | function endEff() | |
457 | effectOn = false | |
458 | end | |
459 | ||
460 | function ShowDMG(p, d) | |
461 | local mo = Instance.new("Model") | |
462 | mo.Name = d | |
463 | local pa = Part(mo, false, true, 0, 0, "Bright red", 0, 0, 0, true) | |
464 | pa.CFrame = CFrame.new(p.Position) | |
465 | pa.Transparency = 0 | |
466 | pa.Name = "Head" | |
467 | local hah = hc:clone() | |
468 | hah.Parent = mo | |
469 | local bp = Add.BP(pa) | |
470 | bp.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
471 | bp.position = p.Position + Vector3.new(0, 2.5, 0) | |
472 | Add.BG(pa) | |
473 | coroutine.resume(coroutine.create(function() | |
474 | wait(0.2) | |
475 | mo.Parent = workspace | |
476 | wait(1.5) | |
477 | mo:remove() | |
478 | end)) | |
479 | end | |
480 | ||
481 | for i, v in pairs(TBricks) do | |
482 | v[1].Touched:connect(function(hit) | |
483 | local fig = hit.Parent | |
484 | H, T = getHumanoid(fig), fig:findFirstChild("Torso") | |
485 | if H ~= nil and T ~= nil and v.hurt and v.able then | |
486 | hitsound:play() | |
487 | v.able = false | |
488 | local d = math.random(dmg[1], dmg[2]) | |
489 | local hed, ne = getHead(fig, v[1].Position, 2.5) | |
490 | if dmg[3] == "RoundHouse" and hed ~= nil then | |
491 | d = math.random(dmg[1]*2.4, dmg[2]*2.4) | |
492 | coroutine.resume(coroutine.create(function() | |
493 | if ne ~= nil then | |
494 | for i=0,60,20 do | |
495 | ne.C0 = necko * CFrame.Angles(math.rad(-i), 0, 0) | |
496 | wait() | |
497 | end | |
498 | for i=60,0,-20 do | |
499 | ne.C0 = necko * CFrame.Angles(math.rad(-i), 0, 0) | |
500 | wait() | |
501 | end | |
502 | ne.C0 = necko | |
503 | end | |
504 | end)) | |
505 | end | |
506 | H.Health = H.Health - d | |
507 | local xd = CFrame.new(v[1].Position, hit.Position) | |
508 | hit.Velocity = xd.lookVector * (d*2.3) | |
509 | ShowDMG(v[1], d) | |
510 | wait(0.34) | |
511 | v.able = true | |
512 | end | |
513 | end) | |
514 | end | |
515 | ||
516 | Mo.Parent = char | |
517 | ||
518 | RAWBattle = nil | |
519 | LAWBattle = nil | |
520 | ||
521 | function nilparts() | |
522 | LAW.Part1 = nil | |
523 | RAW.Part1 = nil | |
524 | RLW.Part1 = nil | |
525 | LLW.Part1 = nil | |
526 | LAW.C0 = CFrame.new(0, 0, 0) | |
527 | RLW.C0 = CFrame.new(0, 0, 0) | |
528 | LLW.C0 = CFrame.new(0, 0, 0) | |
529 | RAW.C0 = CFrame.new(0, 0, 0) | |
530 | end | |
531 | ||
532 | function attach() | |
533 | LAW.Part1 = Larm | |
534 | RLW.Part1 = Rleg | |
535 | LLW.Part1 = Lleg | |
536 | RAW.Part1 = Rarm | |
537 | LAW.C0 = CFrame.new(0, 0, 0) | |
538 | RLW.C0 = CFrame.new(0, 0, 0) | |
539 | LLW.C0 = CFrame.new(0, 0, 0) | |
540 | RAW.C0 = CFrame.new(0, 0, 0) | |
541 | end | |
542 | ||
543 | attacks = { | |
544 | function(mouse) | |
545 | savews = hum.WalkSpeed | |
546 | ||
547 | if char.Torso:FindFirstChild("TorsoWeld1") ~= nil then | |
548 | char.Torso.TorsoWeld1:Remove() | |
549 | end | |
550 | if char.Torso:FindFirstChild("TorsoWeld2") ~= nil then | |
551 | char.Torso.TorsoWeld2:Remove() | |
552 | end | |
553 | if char.Torso:FindFirstChild("TorsoWeld3") ~= nil then | |
554 | char.Torso.TorsoWeld3:Remove() | |
555 | end | |
556 | if char:FindFirstChild("Ball1") ~= nil then | |
557 | char.Ball1:Remove() | |
558 | end | |
559 | if char:FindFirstChild("Ball2") ~= nil then | |
560 | char.Ball2:Remove() | |
561 | end | |
562 | if char:FindFirstChild("Staff") ~= nil then | |
563 | char.Staff:Remove() | |
564 | end | |
565 | ||
566 | if Rarm:FindFirstChild("Grip1") == nil and Rarm:FindFirstChild("Grip2") == nil and Rarm:FindFirstChild("Grip3") == nil then | |
567 | CreateHandWep() | |
568 | end | |
569 | ||
570 | hum.WalkSpeed = 45 | |
571 | ||
572 | attach() | |
573 | wait(0.05) | |
574 | slash:play() | |
575 | for i = 1, 50 do | |
576 | neck.C0 = necko * CFrame.Angles(0, 0, 0) | |
577 | RLW.C0 = CFrame.Angles(0, 0, 0) | |
578 | LLW.C0 = CFrame.Angles(0, 0, 0) | |
579 | RAW.C0 = CFrame.Angles(0+i, 0, 1.5) | |
580 | LAW.C0 = CFrame.Angles(0, 0, 0) | |
581 | for u, c in pairs(workspace:GetChildren()) do | |
582 | if c.Name ~= me.Name then | |
583 | h = c:findFirstChild("Humanoid") | |
584 | t = c:findFirstChild("Torso") | |
585 | if h ~= nil and t ~= nil then | |
586 | if (Rarm.Position-t.Position).magnitude <= 7.5 then | |
587 | if i < 100 then | |
588 | CreateTag(Me, h) | |
589 | h:TakeDamage(10000) | |
590 | hitsound:play() | |
591 | end | |
592 | if i >= 100 then | |
593 | if h ~= nil and t ~= nil then | |
594 | h.Sit = true | |
595 | t.Velocity = torso.CFrame.lookVector * 100 + Vector3.new(0, 25, 0) | |
596 | end | |
597 | end | |
598 | end | |
599 | end | |
600 | end | |
601 | end | |
602 | wait() | |
603 | end | |
604 | slash:play() | |
605 | wait(0.5) | |
606 | endEff() | |
607 | wait() | |
608 | hum.WalkSpeed = savews | |
609 | nilparts() | |
610 | neck.C0 = necko | |
611 | end, | |
612 | ||
613 | function(mouse) | |
614 | savews = hum.WalkSpeed | |
615 | ||
616 | if char.Torso:FindFirstChild("TorsoWeld1") ~= nil then | |
617 | char.Torso.TorsoWeld1:Remove() | |
618 | end | |
619 | if char.Torso:FindFirstChild("TorsoWeld2") ~= nil then | |
620 | char.Torso.TorsoWeld2:Remove() | |
621 | end | |
622 | if char.Torso:FindFirstChild("TorsoWeld3") ~= nil then | |
623 | char.Torso.TorsoWeld3:Remove() | |
624 | end | |
625 | if char:FindFirstChild("Ball1") ~= nil then | |
626 | char.Ball1:Remove() | |
627 | end | |
628 | if char:FindFirstChild("Ball2") ~= nil then | |
629 | char.Ball2:Remove() | |
630 | end | |
631 | if char:FindFirstChild("Staff") ~= nil then | |
632 | char.Staff:Remove() | |
633 | end | |
634 | ||
635 | if Rarm:FindFirstChild("Grip1") == nil and Rarm:FindFirstChild("Grip2") == nil and Rarm:FindFirstChild("Grip3") == nil then | |
636 | CreateHandWep() | |
637 | end | |
638 | ||
639 | hum.WalkSpeed = 45 | |
640 | ||
641 | attach() | |
642 | wait(0.05) | |
643 | slash:play() | |
644 | for i = 1, 50 do | |
645 | neck.C0 = necko * CFrame.Angles(0, 0, 0) | |
646 | RLW.C0 = CFrame.Angles(0, 0, 0) | |
647 | LLW.C0 = CFrame.Angles(0, 0, 0) | |
648 | RAW.C0 = CFrame.Angles(1.5, 0+i, 0) | |
649 | LAW.C0 = CFrame.Angles(0, 0, 0) | |
650 | for u, c in pairs(workspace:GetChildren()) do | |
651 | if c.Name ~= me.Name then | |
652 | h = c:findFirstChild("Humanoid") | |
653 | t = c:findFirstChild("Torso") | |
654 | if h ~= nil and t ~= nil then | |
655 | if (Rarm.Position-t.Position).magnitude <= 7.5 then | |
656 | if i < 100 then | |
657 | CreateTag(Me, h) | |
658 | h:TakeDamage(10000) | |
659 | hitsound:play() | |
660 | end | |
661 | if i >= 100 then | |
662 | if h ~= nil and t ~= nil then | |
663 | h.Sit = true | |
664 | t.Velocity = torso.CFrame.lookVector * 100 + Vector3.new(0, 25, 0) | |
665 | end | |
666 | end | |
667 | end | |
668 | end | |
669 | end | |
670 | end | |
671 | wait() | |
672 | end | |
673 | slash:play() | |
674 | wait(0.5) | |
675 | endEff() | |
676 | wait() | |
677 | hum.WalkSpeed = savews | |
678 | nilparts() | |
679 | neck.C0 = necko | |
680 | end, | |
681 | ||
682 | function(mouse) | |
683 | savews = hum.WalkSpeed | |
684 | ||
685 | hum.WalkSpeed = 55 | |
686 | ||
687 | ||
688 | if char.Torso:FindFirstChild("TorsoWeld1") ~= nil then | |
689 | char.Torso.TorsoWeld1:Remove() | |
690 | end | |
691 | if char.Torso:FindFirstChild("TorsoWeld2") ~= nil then | |
692 | char.Torso.TorsoWeld2:Remove() | |
693 | end | |
694 | if char.Torso:FindFirstChild("TorsoWeld3") ~= nil then | |
695 | char.Torso.TorsoWeld3:Remove() | |
696 | end | |
697 | if char:FindFirstChild("Ball1") ~= nil then | |
698 | char.Ball1:Remove() | |
699 | end | |
700 | if char:FindFirstChild("Ball2") ~= nil then | |
701 | char.Ball2:Remove() | |
702 | end | |
703 | if char:FindFirstChild("Staff") ~= nil then | |
704 | char.Staff:Remove() | |
705 | end | |
706 | ||
707 | if Rarm:FindFirstChild("Grip1") == nil and Rarm:FindFirstChild("Grip2") == nil and Rarm:FindFirstChild("Grip3") == nil then | |
708 | CreateHandWep() | |
709 | end | |
710 | ||
711 | attach() | |
712 | slash:play() | |
713 | neck.C0 = necko * CFrame.Angles(0, 0, 0) | |
714 | RLW.C0 = CFrame.Angles(0, 0, 0) | |
715 | LLW.C0 = CFrame.Angles(0, 0, 0) | |
716 | RAW.C0 = CFrame.Angles(2.5, 0, -1) | |
717 | LAW.C0 = CFrame.Angles(2.5, 0, 1) | |
718 | for i = 1, 1 do | |
719 | for u, c in pairs(workspace:GetChildren()) do | |
720 | if c.Name ~= me.Name then | |
721 | h = c:findFirstChild("Humanoid") | |
722 | t = c:findFirstChild("Torso") | |
723 | if h ~= nil and t ~= nil then | |
724 | if (Rarm.Position-t.Position).magnitude <= 7.5 then | |
725 | if i < 100 then | |
726 | CreateTag(Me, h) | |
727 | h:TakeDamage(10000) | |
728 | hitsound:play() | |
729 | end | |
730 | if i >= 100 then | |
731 | if h ~= nil and t ~= nil then | |
732 | h.Sit = true | |
733 | t.Velocity = torso.CFrame.lookVector * 100 + Vector3.new(0, 25, 0) | |
734 | end | |
735 | end | |
736 | end | |
737 | end | |
738 | end | |
739 | end | |
740 | end | |
741 | wait(0.5) | |
742 | for i = 1, 1 do | |
743 | for u, c in pairs(workspace:GetChildren()) do | |
744 | if c.Name ~= me.Name then | |
745 | h = c:findFirstChild("Humanoid") | |
746 | t = c:findFirstChild("Torso") | |
747 | if h ~= nil and t ~= nil then | |
748 | if (Rarm.Position-t.Position).magnitude <= 7.5 then | |
749 | if i < 100 then | |
750 | CreateTag(Me, h) | |
751 | h:TakeDamage(10000) | |
752 | hitsound:play() | |
753 | end | |
754 | if i >= 100 then | |
755 | if h ~= nil and t ~= nil then | |
756 | h.Sit = true | |
757 | t.Velocity = torso.CFrame.lookVector * 100 + Vector3.new(0, 25, 0) | |
758 | end | |
759 | end | |
760 | end | |
761 | end | |
762 | end | |
763 | end | |
764 | end | |
765 | slash:play() | |
766 | RAW.C0 = CFrame.Angles(0.75, 0, -1) | |
767 | LAW.C0 = CFrame.Angles(0.75, 0, 1) | |
768 | wait(0.25) | |
769 | ||
770 | endEff() | |
771 | wait() | |
772 | hum.WalkSpeed = savews | |
773 | nilparts() | |
774 | neck.C0 = necko | |
775 | end, | |
776 | ||
777 | function(mouse) | |
778 | if char.Torso:FindFirstChild("TorsoWeld1") ~= nil then | |
779 | char.Torso.TorsoWeld1:Remove() | |
780 | end | |
781 | if char.Torso:FindFirstChild("TorsoWeld2") ~= nil then | |
782 | char.Torso.TorsoWeld2:Remove() | |
783 | end | |
784 | if char.Torso:FindFirstChild("TorsoWeld3") ~= nil then | |
785 | char.Torso.TorsoWeld3:Remove() | |
786 | end | |
787 | if char:FindFirstChild("Ball1") ~= nil then | |
788 | char.Ball1:Remove() | |
789 | end | |
790 | if char:FindFirstChild("Ball2") ~= nil then | |
791 | char.Ball2:Remove() | |
792 | end | |
793 | if char:FindFirstChild("Staff") ~= nil then | |
794 | char.Staff:Remove() | |
795 | end | |
796 | ||
797 | if Rarm:FindFirstChild("Grip1") == nil and Rarm:FindFirstChild("Grip2") == nil and Rarm:FindFirstChild("Grip3") == nil then | |
798 | CreateHandWep() | |
799 | end | |
800 | savews = hum.WalkSpeed | |
801 | ||
802 | hum.WalkSpeed = hum.WalkSpeed * 1.5 | |
803 | ||
804 | attach() | |
805 | ||
806 | local Bal = Instance.new("Part") | |
807 | Bal.Parent = char | |
808 | Bal.Name = "Tornado" | |
809 | Bal.CanCollide = false | |
810 | Bal.Locked = true | |
811 | Bal.TopSurface = "Smooth" | |
812 | Bal.BottomSurface = "Smooth" | |
813 | Bal.formFactor = "Symmetric" | |
814 | Bal.BrickColor = BrickColor.new("Really black") | |
815 | Bal.CFrame = char.Torso.CFrame | |
816 | Bal.Transparency = 0.25 | |
817 | Bal.Reflectance = 0.6 | |
818 | Bal.Size = Vector3.new(1, 1, 1) | |
819 | b1Weld = Instance.new("Weld") | |
820 | b1Weld.Parent = char["Right Arm"] | |
821 | b1Weld.Part0 = char["Right Arm"] | |
822 | b1Weld.Part1 = Bal | |
823 | b1Weld.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(3.14, 0, 0) | |
824 | b1Weld.Name = "WindWeld" | |
825 | BallMesh = Instance.new("SpecialMesh") | |
826 | BallMesh.MeshType = "FileMesh" | |
827 | BallMesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
828 | BallMesh.Parent = Bal | |
829 | BallMesh.Scale = Vector3.new(1.5, 1.5, 1.5) | |
830 | game.Debris:AddItem(Bal, 6) | |
831 | game:GetService("Chat"):Chat(torso.Parent.Head, "Wind Cutter!") | |
832 | for i = 1, 150 do | |
833 | slash:play() | |
834 | BallMesh.Scale = BallMesh.Scale + Vector3.new(1, 1.5, 1) | |
835 | neck.C0 = necko * CFrame.Angles(0, 0, 0) | |
836 | RLW.C0 = CFrame.Angles(0, 0, 0) | |
837 | LLW.C0 = CFrame.Angles(0, 0, 0) | |
838 | RAW.C0 = CFrame.Angles(3, 0+i, 0) | |
839 | for u, c in pairs(workspace:GetChildren()) do | |
840 | if c.Name ~= me.Name then | |
841 | h = c:findFirstChild("Humanoid") | |
842 | t = c:findFirstChild("Torso") | |
843 | if h ~= nil and t ~= nil then | |
844 | if (torso.Position-t.Position).magnitude <= 10+i then | |
845 | if i < 150 then | |
846 | CreateTag(Me, h) | |
847 | h:TakeDamage(10000) | |
848 | hum.Health = hum.Health + 0.5 | |
849 | h:MoveTo(torso.Position, torso) | |
850 | t.Velocity = torso.CFrame.lookVector * 10 + Vector3.new(0, 25, 0) | |
851 | hitsound:play() | |
852 | end | |
853 | if i >= 150 then | |
854 | if h ~= nil and t ~= nil then | |
855 | h.PlatformStand = true | |
856 | t.Velocity = torso.CFrame.lookVector * 100 + Vector3.new(0, 50, 0) | |
857 | end | |
858 | end | |
859 | end | |
860 | end | |
861 | end | |
862 | end | |
863 | wait() | |
864 | end | |
865 | slash:play() | |
866 | Bal:Remove() | |
867 | ||
868 | endEff() | |
869 | wait() | |
870 | hum.WalkSpeed = savews | |
871 | nilparts() | |
872 | neck.C0 = necko | |
873 | ||
874 | wait(1) | |
875 | ||
876 | end, | |
877 | ||
878 | ||
879 | function(mouse) | |
880 | if char.Torso:FindFirstChild("TorsoWeld1") ~= nil then | |
881 | char.Torso.TorsoWeld1:Remove() | |
882 | end | |
883 | if char.Torso:FindFirstChild("TorsoWeld2") ~= nil then | |
884 | char.Torso.TorsoWeld2:Remove() | |
885 | end | |
886 | if char.Torso:FindFirstChild("TorsoWeld3") ~= nil then | |
887 | char.Torso.TorsoWeld3:Remove() | |
888 | end | |
889 | if char:FindFirstChild("Ball1") ~= nil then | |
890 | char.Ball1:Remove() | |
891 | end | |
892 | if char:FindFirstChild("Ball2") ~= nil then | |
893 | char.Ball2:Remove() | |
894 | end | |
895 | if char:FindFirstChild("Staff") ~= nil then | |
896 | char.Staff:Remove() | |
897 | end | |
898 | ||
899 | if Rarm:FindFirstChild("Grip1") == nil and Rarm:FindFirstChild("Grip2") == nil and Rarm:FindFirstChild("Grip3") == nil then | |
900 | CreateHandWep() | |
901 | end | |
902 | savews = hum.WalkSpeed | |
903 | ||
904 | ||
905 | attach() | |
906 | Velocity = Instance.new("BodyVelocity") | |
907 | Velocity.Parent = torso | |
908 | Velocity.maxForce = Vector3.new(0, 0, 0) | |
909 | for i = 1, 50 do | |
910 | slash:play() | |
911 | hum.WalkSpeed = hum.WalkSpeed + 2 | |
912 | RAW.C0 = CFrame.Angles(3.14, 0+i, 0) | |
913 | torso.Velocity = Vector3.new(0, 25, 0) | |
914 | wait() | |
915 | end | |
916 | ||
917 | endEff() | |
918 | hum.WalkSpeed = savews | |
919 | nilparts() | |
920 | Velocity:Remove() | |
921 | neck.C0 = necko | |
922 | ||
923 | ||
924 | end, | |
925 | ||
926 | ||
927 | function(mouse) | |
928 | savews = hum.WalkSpeed | |
929 | attach() | |
930 | hum.PlatformStand = true | |
931 | Velocity = Instance.new("BodyVelocity") | |
932 | Velocity.Parent = torso | |
933 | Velocity.maxForce = Vector3.new(0, 0, 0) | |
934 | Gyro = Instance.new("BodyGyro") | |
935 | Gyro.Parent = torso | |
936 | Gyro.D = 50 | |
937 | Gyro.maxTorque = Vector3.new(math.huge, math.huge, math.huge) | |
938 | Gyro.cframe = torso.CFrame | |
939 | RAW.C0 = CFrame.Angles(-0.75, 0, 0.75) | |
940 | LAW.C0 = CFrame.Angles(-0.75, 0, -0.75) | |
941 | RLW.C0 = CFrame.Angles(0, 0, 0) | |
942 | LLW.C0 = CFrame.Angles(0, 0, 0) | |
943 | ||
944 | torso.Velocity = torso.CFrame.lookVector * 100 + Vector3.new(0, 65, 0) | |
945 | for i = 1 , 32 do | |
946 | Gyro.cframe = Gyro.cframe * CFrame.Angles(-0.12, 0, 0) | |
947 | wait() | |
948 | end | |
949 | wait(0.1) | |
950 | RAW.C0 = CFrame.Angles(1.5, 0, 0) | |
951 | LAW.C0 = CFrame.Angles(1.5, 0, 0) | |
952 | RLW.C0 = CFrame.Angles(1.5, 0, 0) | |
953 | LLW.C0 = CFrame.Angles(1.5, 0, 0) | |
954 | torso.Velocity = Vector3.new(0, -10, 0) | |
955 | for i = 1 , 16 do | |
956 | Gyro.cframe = Gyro.cframe * CFrame.Angles(-0.56, 0, 0) | |
957 | wait() | |
958 | end | |
959 | Velocity.maxForce = Vector3.new(0, 0, 0) | |
960 | Velocity.velocity = Vector3.new(0, 0, 0) | |
961 | Gyro.maxTorque = Vector3.new(math.huge, 0, math.huge) | |
962 | wait() | |
963 | Gyro.maxTorque = Vector3.new(0, 0, 0) | |
964 | wait() | |
965 | Velocity:Remove() | |
966 | Gyro:Remove() | |
967 | hum.PlatformStand = false | |
968 | hum.WalkSpeed = savews | |
969 | nilparts() | |
970 | end, | |
971 | ||
972 | function(mouse) | |
973 | ||
974 | savews = hum.WalkSpeed | |
975 | attach() | |
976 | ||
977 | for i = 1, 15 do | |
978 | RAW.C0 = CFrame.Angles(0+i, 0, 1.5) | |
979 | LAW.C0 = CFrame.Angles(0, 0, 0) | |
980 | RLW.C0 = CFrame.Angles(0, 0, 0) | |
981 | LLW.C0 = CFrame.Angles(0, 0, 0) | |
982 | wait() | |
983 | end | |
984 | for i = 1, 15 do | |
985 | RAW.C0 = CFrame.Angles(1.5, 0+i, 0) | |
986 | LAW.C0 = CFrame.Angles(0, 0, 0) | |
987 | RLW.C0 = CFrame.Angles(0, 0, 0) | |
988 | LLW.C0 = CFrame.Angles(0, 0, 0) | |
989 | wait() | |
990 | end | |
991 | for i = 1, 15 do | |
992 | RAW.C0 = CFrame.Angles(3.14, 0+i, 0) | |
993 | LAW.C0 = CFrame.Angles(0, 0, 0) | |
994 | RLW.C0 = CFrame.Angles(0, 0, 0) | |
995 | LLW.C0 = CFrame.Angles(0, 0, 0) | |
996 | wait() | |
997 | end | |
998 | if Rarm:FindFirstChild("Grip1") ~= nil then | |
999 | Rarm.Grip1:Remove() | |
1000 | end | |
1001 | if Rarm:FindFirstChild("Grip2") ~= nil then | |
1002 | Rarm.Grip2:Remove() | |
1003 | end | |
1004 | if Rarm:FindFirstChild("Grip3") ~= nil then | |
1005 | Rarm.Grip3:Remove() | |
1006 | end | |
1007 | if char:FindFirstChild("Ball1") ~= nil then | |
1008 | char.Ball1:Remove() | |
1009 | end | |
1010 | if char:FindFirstChild("Ball2") ~= nil then | |
1011 | char.Ball2:Remove() | |
1012 | end | |
1013 | if char:FindFirstChild("Staff") ~= nil then | |
1014 | char.Staff:Remove() | |
1015 | end | |
1016 | ||
1017 | if Rarm:FindFirstChild("TorsoWeld1") == nil and Rarm:FindFirstChild("TorsoWeld2") == nil and Rarm:FindFirstChild("TorsoWeld3") == nil then | |
1018 | CreateBackWep() | |
1019 | end | |
1020 | ||
1021 | ||
1022 | nilparts() | |
1023 | end, | |
1024 | ||
1025 | function(mouse) | |
1026 | ||
1027 | if char.Torso:FindFirstChild("TorsoWeld1") ~= nil then | |
1028 | char.Torso.TorsoWeld1:Remove() | |
1029 | end | |
1030 | if char.Torso:FindFirstChild("TorsoWeld2") ~= nil then | |
1031 | char.Torso.TorsoWeld2:Remove() | |
1032 | end | |
1033 | if char.Torso:FindFirstChild("TorsoWeld3") ~= nil then | |
1034 | char.Torso.TorsoWeld3:Remove() | |
1035 | end | |
1036 | if char:FindFirstChild("Ball1") ~= nil then | |
1037 | char.Ball1:Remove() | |
1038 | end | |
1039 | if char:FindFirstChild("Ball2") ~= nil then | |
1040 | char.Ball2:Remove() | |
1041 | end | |
1042 | if char:FindFirstChild("Staff") ~= nil then | |
1043 | char.Staff:Remove() | |
1044 | end | |
1045 | ||
1046 | if Rarm:FindFirstChild("Grip1") == nil and Rarm:FindFirstChild("Grip2") == nil and Rarm:FindFirstChild("Grip3") == nil then | |
1047 | CreateHandWep() | |
1048 | end | |
1049 | ||
1050 | savews = hum.WalkSpeed | |
1051 | attach() | |
1052 | ||
1053 | ||
1054 | for i = 1, 15 do | |
1055 | RAW.C0 = CFrame.Angles(3.14, 0+i, 0) | |
1056 | LAW.C0 = CFrame.Angles(0, 0, 0) | |
1057 | RLW.C0 = CFrame.Angles(0, 0, 0) | |
1058 | LLW.C0 = CFrame.Angles(0, 0, 0) | |
1059 | wait() | |
1060 | end | |
1061 | game:GetService("Chat"):Chat(torso.Parent.Head, "Wind Blade Dance!") | |
1062 | for i = 1, 15 do | |
1063 | RAW.C0 = CFrame.Angles(1.5, 0+i, 0) | |
1064 | LAW.C0 = CFrame.Angles(0, 0, 0) | |
1065 | RLW.C0 = CFrame.Angles(0, 0, 0) | |
1066 | LLW.C0 = CFrame.Angles(0, 0, 0) | |
1067 | ||
1068 | x = Instance.new("Part") | |
1069 | x.BrickColor = BrickColor.new("White") | |
1070 | x.Transparency = 0.5 | |
1071 | x.Size = Vector3.new(5, 5, 5) | |
1072 | x.TopSurface = "Smooth" | |
1073 | x.BottomSurface = "Smooth" | |
1074 | x.Shape = "Block" | |
1075 | x.Name = me.Name | |
1076 | x.CanCollide = false | |
1077 | y = Instance.new("BodyVelocity") | |
1078 | y.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
1079 | y.velocity = torso.CFrame.lookVector*120 | |
1080 | x.Parent = Workspace | |
1081 | y.Parent = x | |
1082 | x.CFrame = torso.CFrame*CFrame.new(2, -1, -5.5) * CFrame.Angles(1.5, 0, 0) | |
1083 | BallMesh = Instance.new("SpecialMesh") | |
1084 | BallMesh.MeshType = "FileMesh" | |
1085 | BallMesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
1086 | BallMesh.Parent = x | |
1087 | BallMesh.Scale = Vector3.new(3, 3, 3) | |
1088 | game.Debris:AddItem(x, 3) | |
1089 | x.Touched:connect(function(shiz) | |
1090 | ||
1091 | if shiz.Parent ~= nil then | |
1092 | ||
1093 | if shiz.Parent.Name ~= char.Name then | |
1094 | ||
1095 | if shiz.Parent:FindFirstChild("Humanoid") ~= nil then | |
1096 | ||
1097 | if shiz.Parent:findFirstChild("Humanoid") ~= nil then | |
1098 | shiz.Parent.Humanoid.Health = shiz.Parent.Humanoid.Health - 2 | |
1099 | x:Remove() | |
1100 | shiz.Parent.Torso.Velocity = torso.CFrame.lookVector * 50 + Vector3.new(0, 25, 0) | |
1101 | end | |
1102 | ||
1103 | end | |
1104 | ||
1105 | end | |
1106 | ||
1107 | end | |
1108 | ||
1109 | end) | |
1110 | ||
1111 | ||
1112 | wait() | |
1113 | end | |
1114 | ||
1115 | ||
1116 | nilparts() | |
1117 | end, | |
1118 | ||
1119 | function(mouse) | |
1120 | game:GetService("Chat"):Chat(torso.Parent.Head, "Emergency Wind Bomb!") | |
1121 | ||
1122 | ShockWave = Instance.new("Part") | |
1123 | ShockWave.Parent = Hair2 | |
1124 | ShockWave.Size = Vector3.new(50, 50, 50) | |
1125 | ShockWave.Transparency = 0 | |
1126 | ShockWave.formFactor = "Symmetric" | |
1127 | ShockWave.CanCollide = false | |
1128 | ShockWave.Anchored = true | |
1129 | ShockWave.TopSurface = "Smooth" | |
1130 | ShockWave.BottomSurface = "Smooth" | |
1131 | ShockWave.BrickColor = BrickColor.new("Really black") | |
1132 | ShockWave.Name = "ShockWave" | |
1133 | ShockWave.CFrame = CFrame.new(torso.Position) | |
1134 | ShockMesh = Instance.new("SpecialMesh") | |
1135 | ShockMesh.Parent = ShockWave | |
1136 | ShockMesh.MeshType = "Sphere" | |
1137 | ShockMesh.Scale = Vector3.new(1, 1, 1) | |
1138 | ||
1139 | ||
1140 | for i = 1 , 10 do | |
1141 | ||
1142 | ||
1143 | ShockWave.Transparency = ShockWave.Transparency + 0.0005 | |
1144 | ShockMesh.Scale = ShockMesh.Scale + Vector3.new(1, 1, 1) | |
1145 | ||
1146 | ||
1147 | for u, c in pairs(workspace:GetChildren()) do | |
1148 | if c.Name ~= me.Name then | |
1149 | h = c:findFirstChild("Humanoid") | |
1150 | t = c:findFirstChild("Torso") | |
1151 | if h ~= nil and t ~= nil then | |
1152 | if (torso.Position-t.Position).magnitude <= 15 then | |
1153 | h.PlatformStand = true | |
1154 | SavedT = t.Position | |
1155 | t.CFrame = CFrame.new(SavedT) | |
1156 | t.Velocity = torso.CFrame.lookVector * 5 + Vector3.new(0, 5, 0) | |
1157 | if i < 100 then | |
1158 | CreateTag(Me, h) | |
1159 | t:Remove() | |
1160 | end | |
1161 | if i >= 100 then | |
1162 | if h ~= nil and t ~= nil then | |
1163 | h:TakeDamage(10000) | |
1164 | end | |
1165 | t.Velocity = torso.CFrame.lookVector * 100 + Vector3.new(0, 100, 0) | |
1166 | t:Remove() | |
1167 | end | |
1168 | end | |
1169 | end | |
1170 | end | |
1171 | end | |
1172 | wait() | |
1173 | end | |
1174 | ||
1175 | ||
1176 | nilparts() | |
1177 | end | |
1178 | ||
1179 | } | |
1180 | bloc = function(mouse) | |
1181 | if char.Torso:FindFirstChild("TorsoWeld1") ~= nil then | |
1182 | char.Torso.TorsoWeld1:Remove() | |
1183 | end | |
1184 | if char.Torso:FindFirstChild("TorsoWeld2") ~= nil then | |
1185 | char.Torso.TorsoWeld2:Remove() | |
1186 | end | |
1187 | if char.Torso:FindFirstChild("TorsoWeld3") ~= nil then | |
1188 | char.Torso.TorsoWeld3:Remove() | |
1189 | end | |
1190 | if char:FindFirstChild("Ball1") ~= nil then | |
1191 | char.Ball1:Remove() | |
1192 | end | |
1193 | if char:FindFirstChild("Ball2") ~= nil then | |
1194 | char.Ball2:Remove() | |
1195 | end | |
1196 | if char:FindFirstChild("Staff") ~= nil then | |
1197 | char.Staff:Remove() | |
1198 | end | |
1199 | ||
1200 | if Rarm:FindFirstChild("Grip1") == nil and Rarm:FindFirstChild("Grip2") == nil and Rarm:FindFirstChild("Grip3") == nil then | |
1201 | CreateHandWep() | |
1202 | end | |
1203 | local hold = true | |
1204 | local bg = Add.BG(nil) | |
1205 | attach() | |
1206 | slash:play() | |
1207 | local duh = true | |
1208 | block = true | |
1209 | mouse.KeyUp:connect(function(k) | |
1210 | k = k:lower() | |
1211 | if duh == true and k == "t" then | |
1212 | hp = char.Humanoid.Health | |
1213 | block = false | |
1214 | duh = false | |
1215 | hold = false | |
1216 | end | |
1217 | end) | |
1218 | coroutine.resume(coroutine.create(function() | |
1219 | for i = 1, 1 do | |
1220 | RAW.C0 = CFrame.Angles(-0.75, 1, -0.75) | |
1221 | LAW.C0 = CFrame.Angles(1.75, 0, 0.75) * CFrame.new(0, -0.5, 0) | |
1222 | LLW.C0 = CFrame.Angles(0, 0, -0.5) | |
1223 | RLW.C0 = CFrame.Angles(0, 0, 0.5) | |
1224 | wait() | |
1225 | end | |
1226 | end)) | |
1227 | bg.Parent = torso | |
1228 | while block and hold do | |
1229 | wait() | |
1230 | bg.cframe = ComputePos(torso.Position, mouse.Hit.p) | |
1231 | end | |
1232 | ||
1233 | slash:play() | |
1234 | for i = 1, 25 do | |
1235 | RAW.C0 = CFrame.Angles(1.5, 0-i, 0) | |
1236 | LAW.C0 = CFrame.Angles(1.75, 0, 0.75) * CFrame.new(0.25, -0.35, 0) | |
1237 | LLW.C0 = CFrame.Angles(0, 0, -0.5) | |
1238 | RLW.C0 = CFrame.Angles(0, 0, 0.5) | |
1239 | char.Humanoid.Health = hp | |
1240 | for u, c in pairs(workspace:GetChildren()) do | |
1241 | if c.Name ~= me.Name then | |
1242 | h = c:findFirstChild("Humanoid") | |
1243 | t = c:findFirstChild("Torso") | |
1244 | if h ~= nil and t ~= nil then | |
1245 | if (Rarm.Position-t.Position).magnitude <= 7.5 then | |
1246 | if i < 100 then | |
1247 | CreateTag(Me, h) | |
1248 | t.Velocity = torso.CFrame.lookVector * 150 + Vector3.new(0, 0, 0) | |
1249 | end | |
1250 | if i >= 100 then | |
1251 | if h ~= nil and t ~= nil then | |
1252 | h.Sit = true | |
1253 | t.Velocity = torso.CFrame.lookVector * 150 + Vector3.new(0, 0, 0) | |
1254 | end | |
1255 | end | |
1256 | end | |
1257 | end | |
1258 | if c.className == "Part" then | |
1259 | if (torso.Position-c.Position).magnitude <= 50 then | |
1260 | f = c:findFirstChild("BodyVelocity") | |
1261 | if f ~= nil then | |
1262 | if f.Parent:FindFirstChild("Deflected") == nil then | |
1263 | f.velocity = f.velocity * Vector3.new(-1, 0, -1) | |
1264 | --f.Name = "Reversed" | |
1265 | p = Instance.new("StringValue") | |
1266 | p.Name = "Deflected" | |
1267 | p.Parent = f.Parent | |
1268 | end | |
1269 | end | |
1270 | end | |
1271 | end | |
1272 | if c.className == "Part" then | |
1273 | if (torso.Position-c.Position).magnitude <= 50 then | |
1274 | f = c:findFirstChild("BodyForce") | |
1275 | if f ~= nil then | |
1276 | if f.Parent:FindFirstChild("Deflected") == nil then | |
1277 | f.force = f.force * Vector3.new(-1, 0, -1) | |
1278 | --f.Name = "Reversed" | |
1279 | p = Instance.new("StringValue") | |
1280 | p.Name = "Deflected" | |
1281 | p.Parent = f.Parent | |
1282 | end | |
1283 | end | |
1284 | end | |
1285 | end | |
1286 | if c.className == "Part" then | |
1287 | if (torso.Position-c.Position).magnitude <= 50 then | |
1288 | f = c:findFirstChild("BodyThrust") | |
1289 | if f ~= nil then | |
1290 | if f.Parent:FindFirstChild("Deflected") == nil then | |
1291 | f.force = f.force * Vector3.new(-1, 0, -1) | |
1292 | --f.Name = "Reversed" | |
1293 | p = Instance.new("StringValue") | |
1294 | p.Name = "Deflected" | |
1295 | p.Parent = f.Parent | |
1296 | end | |
1297 | end | |
1298 | end | |
1299 | end | |
1300 | if c.className == "Part" then | |
1301 | if (torso.Position-c.Position).magnitude <= 50 then | |
1302 | f = c:findFirstChild("RocketPropulsion") | |
1303 | if f ~= nil then | |
1304 | if f.Parent:FindFirstChild("Deflected") == nil then | |
1305 | f.MaxSpeed = f.MaxSpeed * (-1) | |
1306 | f.MaxThrust = f.MaxThrust * (-1) | |
1307 | --f.Name = "Reversed" | |
1308 | p = Instance.new("StringValue") | |
1309 | p.Name = "Deflected" | |
1310 | p.Parent = f.Parent | |
1311 | end | |
1312 | end | |
1313 | end | |
1314 | end | |
1315 | end | |
1316 | end | |
1317 | wait() | |
1318 | end | |
1319 | ||
1320 | nilparts() | |
1321 | bg:remove() | |
1322 | neck.C0 = necko | |
1323 | end | |
1324 | ||
1325 | function select(mouse) | |
1326 | mouse.Button1Down:connect(function() | |
1327 | if able then | |
1328 | able = false | |
1329 | attacks[math.random(1,3)](mouse) | |
1330 | able = true | |
1331 | end | |
1332 | end) | |
1333 | mouse.KeyDown:connect(function(key) | |
1334 | key = key:lower() | |
1335 | if able then | |
1336 | if key == "e" then | |
1337 | able = false | |
1338 | attacks[4](mouse) | |
1339 | able = true | |
1340 | elseif key == "r" then | |
1341 | able = false | |
1342 | attacks[5](mouse) | |
1343 | able = true | |
1344 | elseif key == " " then | |
1345 | able = false | |
1346 | attacks[6](mouse) | |
1347 | able = true | |
1348 | elseif key == "y" then | |
1349 | able = false | |
1350 | attacks[7](mouse) | |
1351 | able = true | |
1352 | elseif key == "q" then | |
1353 | able = false | |
1354 | attacks[8](mouse) | |
1355 | able = true | |
1356 | elseif key == "b" then | |
1357 | able = false | |
1358 | attacks[9](mouse) | |
1359 | able = true | |
1360 | elseif key == "t" then | |
1361 | able = false | |
1362 | bloc(mouse) | |
1363 | able = true | |
1364 | elseif key == "z" then | |
1365 | able = false | |
1366 | holdkey = true | |
1367 | while holdkey do | |
1368 | attacks[math.random(1,#attacks)](mouse) | |
1369 | end | |
1370 | able = true | |
1371 | end | |
1372 | end | |
1373 | end) | |
1374 | mouse.KeyUp:connect(function(key) | |
1375 | key = key:lower() | |
1376 | if key == "z" then | |
1377 | holdkey = false | |
1378 | end | |
1379 | end) | |
1380 | end | |
1381 | ||
1382 | if script.Parent.className ~= "HopperBin" then | |
1383 | ||
1384 | h = Instance.new("HopperBin",me.Backpack) | |
1385 | ||
1386 | h.Name = "Annoying staff" | |
1387 | ||
1388 | script.Parent = h | |
1389 | ||
1390 | end | |
1391 | ||
1392 | bin = script.Parent | |
1393 | ||
1394 | bin.Selected:connect(select) |