SHOW:
|
|
- or go back to the newest paste.
1 | ----Mob Psycho 100 by lukeskywalker4ever-- | |
2 | ||
3 | function clerp(c1,c2,al) | |
4 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
5 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
6 | for i,v in pairs(com1) do | |
7 | com1[i] = v+(com2[i]-v)*al | |
8 | end | |
9 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
10 | end | |
11 | ||
12 | function weld(p0,p1,c0,c1,par,name) | |
13 | local w = Instance.new("Weld", par) | |
14 | w.Name = name | |
15 | w.Part0 = p0 | |
16 | w.Part1 = p1 | |
17 | w.C0 = c0 or CFrame.new() | |
18 | w.C1 = c1 or CFrame.new() | |
19 | return w | |
20 | end | |
21 | ||
22 | xmathrandom = math.random(-10,10) | |
23 | ymathrandom = math.random(2,10) | |
24 | zmathrandom = math.random(-10,10) | |
25 | musicDebounce = false | |
26 | ||
27 | player = game:service("Players").LocalPlayer | |
28 | char = player.Character | |
29 | local beat = true | |
30 | local beattime = 0.6 | |
31 | suit = Instance.new("Model", char) | |
32 | suit.Name = "MobPsycho100Attacks" | |
33 | suit2 = Instance.new("Model", char) | |
34 | suit2.Name = "MobPsycho100Shield" | |
35 | suit3 = Instance.new("Model", char) | |
36 | suit3.Name = "MobPsycho100TK" | |
37 | local vDebounce = false | |
38 | selectionboxEnable = false | |
39 | OldTKpart = nil | |
40 | UnknownMode= false | |
41 | Torso = char.Torso | |
42 | cf=CFrame.new | |
43 | euler=CFrame.fromEulerAnglesXYZ | |
44 | local SHOT_SPEED = 100 | |
45 | local SHOT_TIME = 1 | |
46 | local SHOT_SPEED2 = 500 | |
47 | local SHOT_TIME2 = 1 | |
48 | local NOZZLE_OFFSET = Vector3.new(0, 0, 0) | |
49 | mouse = player:GetMouse() | |
50 | running = false | |
51 | runEffect = false | |
52 | local noattack = true | |
53 | berserkValue = 0 | |
54 | berserkValueAddDebounce = false | |
55 | berserkMode= false | |
56 | enabled = false | |
57 | ColorDebounce = false | |
58 | local MaterialNeededForAttack | |
59 | local ColorNeededForAttack | |
60 | RandomSizeForAttack = 0 | |
61 | RandomCFForAttack = 0 | |
62 | Glow1 = Color3.new(0,225,225) | |
63 | Glow2 = Color3.new(0,170,225) | |
64 | Ivalue = 0 | |
65 | Ivalue2 = 0 | |
66 | ShieldDown = false | |
67 | TKEnabled =false | |
68 | alreadyHaveTK = false | |
69 | dist = 25 | |
70 | ||
71 | GuiMain=Instance.new("ScreenGui") | |
72 | Radar=Instance.new("Frame") | |
73 | GuiMain.Parent=player.PlayerGui | |
74 | Radar.Parent=GuiMain | |
75 | Radar.Size=UDim2.new(3,0,3,0) | |
76 | Radar.Position=UDim2.new(0,0,-0.1,0) | |
77 | Radar.BackgroundTransparency=1 | |
78 | Radar.BackgroundColor=BrickColor.new("Really black") | |
79 | Radar.Name="HealthScreen" | |
80 | ||
81 | HeadOldC = char.Head.BrickColor | |
82 | TorsoOldC = char.Torso.BrickColor | |
83 | LAOldC = char["Left Arm"].BrickColor | |
84 | LLOldC = char["Left Leg"].BrickColor | |
85 | RAOldC = char["Right Arm"].BrickColor | |
86 | RLOldC = char["Right Leg"].BrickColor | |
87 | ||
88 | ||
89 | for _,v in pairs(char.Head:GetChildren()) do if v.ClassName=="Decal" then v:remove() end end | |
90 | for _,v in pairs(char:GetChildren()) do if v.ClassName=="Accessory" then v:remove() end end | |
91 | for _,v in pairs(char:GetChildren()) do if v.ClassName=="Shirt" or v.ClassName=="Pants" or v.ClassName=="T-Shirt" or v.ClassName=="ShirtGraphic" then v:remove() end end | |
92 | shirt=Instance.new("Shirt", char) | |
93 | shirt.Name = "Shirt" | |
94 | pants=Instance.new("Pants", char) | |
95 | pants.Name = "Pants" | |
96 | face=Instance.new("Decal", char.Head) | |
97 | ||
98 | ||
99 | shirt.ShirtTemplate="rbxassetid://373395462" | |
100 | pants.PantsTemplate="rbxassetid://373395510" | |
101 | face.Texture = "http://www.roblox.com/asset/?id=321187438" | |
102 | ||
103 | local Hat=char:FindFirstChild'Hat_F'or Instance.new'Hat'; | |
104 | Hat.AttachmentPos=Vector3.new(0, 0.25, 0); | |
105 | Hat.Name='Hat_F'; | |
106 | local Handle=Hat:FindFirstChild'Handle'or Instance.new('Part',Hat); | |
107 | if(Handle.Name~='Handle')then Handle.Size=Vector3.new(1,1,1);end; | |
108 | Handle.BottomSurface=0; | |
109 | Handle.Name='Handle'; | |
110 | Handle.Transparency= 0; | |
111 | Handle.TopSurface=0; | |
112 | Handle.Locked=1; | |
113 | Handle.BrickColor=BrickColor.new("Really black"); | |
114 | local Mesh=Hat:FindFirstChild'Mesh'or Instance.new('SpecialMesh',Handle); | |
115 | Mesh.MeshId='http://www.roblox.com/asset/?id=29938421 '; | |
116 | Mesh.Scale=Vector3.new(1, 1, 1.2); | |
117 | ||
118 | Hat.Parent=char; | |
119 | ||
120 | local Sounds = { | |
121 | Punch = Instance.new("Sound"), | |
122 | Opening = Instance.new("Sound"), | |
123 | Beep = Instance.new("Sound"), | |
124 | HundredPercent = Instance.new("Sound") | |
125 | } | |
126 | ||
127 | Sounds["Punch"].SoundId = "rbxassetid://277495959" | |
128 | Sounds["Punch"].Volume = 1 | |
129 | Sounds["Opening"].SoundId = "rbxassetid://463838589" | |
130 | Sounds["Opening"].Volume = 0.5 | |
131 | Sounds["Beep"].SoundId = "rbxassetid://252141949" | |
132 | Sounds["Beep"].Volume = 1 | |
133 | Sounds["HundredPercent"].SoundId = "rbxassetid://391819537" | |
134 | Sounds["HundredPercent"].Volume = 0.1 | |
135 | ||
136 | function PlaySound(soundname, pitch, where, looped,distance,enableLong) | |
137 | Sounds[soundname].Parent = where | |
138 | Sounds[soundname].Pitch = pitch | |
139 | Sounds[soundname].Looped= looped | |
140 | Sounds[soundname].MaxDistance = distance | |
141 | Sounds[soundname]:Play() | |
142 | local oldsound = Sounds[soundname] | |
143 | coroutine.resume(coroutine.create(function() | |
144 | ||
145 | wait(13.5) | |
146 | for i = 1,1 do | |
147 | if oldsound.Looped == true then return end | |
148 | if enableLong == true then return end | |
149 | oldsound:Destroy() | |
150 | end | |
151 | ||
152 | wait(90) | |
153 | ||
154 | for i = 1,1 do | |
155 | if enableLong == true then | |
156 | ||
157 | ||
158 | ||
159 | oldsound:Destroy() | |
160 | end | |
161 | ||
162 | ||
163 | ||
164 | end | |
165 | ||
166 | ||
167 | end)) | |
168 | Sounds[soundname] = Sounds[soundname]:clone() | |
169 | end | |
170 | ||
171 | RW, LW = Instance.new("Weld"), Instance.new("Weld") | |
172 | ||
173 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
174 | ||
175 | ||
176 | RSH, LSH = nil, nil | |
177 | ||
178 | LS = Torso["Left Shoulder"] | |
179 | ||
180 | LH = Torso["Left Hip"] | |
181 | ||
182 | RS = Torso["Right Shoulder"] | |
183 | ||
184 | RH = Torso["Right Hip"] | |
185 | RSH = char.Torso["Right Shoulder"] | |
186 | ||
187 | LSH = char.Torso["Left Shoulder"] | |
188 | ||
189 | ||
190 | ||
191 | function Use() | |
192 | ||
193 | RW.Part0 = char.Torso | |
194 | ||
195 | RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
196 | ||
197 | RW.C1 = CFrame.new(0, 0.5, 0) | |
198 | ||
199 | RW.Part1 = char["Right Arm"] | |
200 | ||
201 | RW.Parent = char.Torso | |
202 | ||
203 | ||
204 | ||
205 | LW.Part0 = char.Torso | |
206 | ||
207 | LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
208 | ||
209 | LW.C1 = CFrame.new(0, 0.5, 0) | |
210 | ||
211 | LW.Part1 = char["Left Arm"] | |
212 | ||
213 | LW.Parent = char.Torso | |
214 | ||
215 | for i = 1,20 do wait() | |
216 | RW.C1= clerp(RW.C1*CFrame.new(-.15, -.05, 0.01)*CFrame.fromEulerAnglesXYZ(-math.rad(-.1),-math.rad(-.1),-math.rad(3)),RW.C0,0.1) | |
217 | LW.C1= clerp(LW.C1*CFrame.new(.15, -.05, 0.01)*CFrame.fromEulerAnglesXYZ(math.rad(.1),math.rad(.1),-math.rad(-3)),LW.C0,0.1) | |
218 | ||
219 | ||
220 | end | |
221 | ||
222 | ||
223 | ||
224 | ||
225 | ||
226 | ||
227 | end | |
228 | ||
229 | ||
230 | function Slash1() | |
231 | ||
232 | RW.Part0 = char.Torso | |
233 | ||
234 | RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
235 | ||
236 | RW.C1 = CFrame.new(0, 0.5, 0) | |
237 | ||
238 | RW.Part1 = char["Right Arm"] | |
239 | ||
240 | RW.Parent = char.Torso | |
241 | ||
242 | ||
243 | ||
244 | LW.Part0 = char.Torso | |
245 | ||
246 | LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
247 | ||
248 | LW.C1 = CFrame.new(0, 0.5, 0) | |
249 | ||
250 | LW.Part1 = char["Left Arm"] | |
251 | ||
252 | LW.Parent = char.Torso | |
253 | ||
254 | ||
255 | ||
256 | ||
257 | for i = 1,20 do wait() | |
258 | RW.C1= clerp(RW.C1*CFrame.new(-.16, 0, 0)*CFrame.fromEulerAnglesXYZ(math.rad(-11.5),math.rad(0),math.rad(0)),RW.C0,0.1) | |
259 | ||
260 | ||
261 | end | |
262 | ||
263 | ||
264 | local selectionBoxOfRW = Instance.new("SelectionBox",char["Right Arm"]) | |
265 | selectionBoxOfRW.Adornee = char["Right Arm"] | |
266 | selectionBoxOfRW.Color = BrickColor.new("Cyan") | |
267 | selectionBoxOfRW.LineThickness = 0.01 | |
268 | ||
269 | if berserkMode == true then | |
270 | ||
271 | selectionBoxOfRW.Color = BrickColor.new("Really Black") | |
272 | ||
273 | end | |
274 | ||
275 | ||
276 | ||
277 | Ivalue = 3 | |
278 | ||
279 | if berserkMode == true then | |
280 | ||
281 | Ivalue = 10 | |
282 | ||
283 | end | |
284 | ||
285 | for i = 1,Ivalue do wait() | |
286 | ||
287 | RandomCFForAttack = math.random(-50,50) | |
288 | ||
289 | local randomThing = Instance.new("Part",suit) | |
290 | randomThing.TopSurface = "Smooth" | |
291 | randomThing.BottomSurface = "Smooth" | |
292 | randomThing.Size = Vector3.new(math.random(1,30), math.random(1,30), math.random(1,30)) | |
293 | randomThing.CanCollide = false | |
294 | randomThing.BrickColor = BrickColor.new("Earth green") | |
295 | randomThing .Material = "Grass" | |
296 | randomThing.CFrame = Torso.CFrame*CFrame.new(RandomCFForAttack, 1, RandomCFForAttack) | |
297 | ||
298 | local selectionBoxOfRandomThing = Instance.new("SelectionBox",randomThing) | |
299 | selectionBoxOfRandomThing.Adornee = randomThing | |
300 | selectionBoxOfRandomThing.Color = BrickColor.new("Cyan") | |
301 | selectionBoxOfRandomThing.LineThickness = 0.1 | |
302 | RandomCFForAttack = 0 | |
303 | randomThing.Anchored = true | |
304 | ||
305 | if berserkMode == true then | |
306 | ||
307 | selectionBoxOfRandomThing.Color = BrickColor.new("Institutional white") | |
308 | ||
309 | end | |
310 | ||
311 | ||
312 | ||
313 | for i = 1,10 do wait() | |
314 | randomThing.CFrame = clerp(randomThing.CFrame*CFrame.new(0, 0.1*i, 0),randomThing.CFrame,0.1) | |
315 | randomThing.Anchored = true | |
316 | print'test' | |
317 | ||
318 | end | |
319 | ||
320 | randomThing.Anchored = false | |
321 | local ray = Ray.new(randomThing.CFrame.p, (mouse.Hit.p - randomThing.CFrame.p).unit*300) | |
322 | local position = mouse.Hit.p--game.Workspace:FindPartOnRay(ray, walrus) | |
323 | local distance = (position - randomThing.CFrame.p).magnitude | |
324 | ||
325 | ||
326 | ||
327 | ||
328 | local handleCFrame = randomThing.CFrame | |
329 | local firingPoint = handleCFrame.p + handleCFrame:vectorToWorldSpace(NOZZLE_OFFSET) | |
330 | local shotCFrame = CFrame.new(firingPoint, mouse.Hit.p) | |
331 | local laserShotClone = randomThing:Clone() | |
332 | laserShotClone.CFrame = shotCFrame + (shotCFrame.lookVector * (randomThing.Size.Z / 2)) | |
333 | local bodyVelocity = Instance.new('BodyVelocity') | |
334 | if berserkMode == true then | |
335 | bodyVelocity.velocity = shotCFrame.lookVector * SHOT_SPEED2 | |
336 | end | |
337 | if berserkMode == false then | |
338 | bodyVelocity.velocity = shotCFrame.lookVector * SHOT_SPEED | |
339 | end | |
340 | bodyVelocity.Parent = laserShotClone | |
341 | bodyVelocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
342 | ||
343 | ||
344 | laserShotClone.Parent = suit | |
345 | ||
346 | randomThing:remove() | |
347 | ||
348 | ||
349 | ||
350 | ||
351 | ||
352 | function touch(hit) | |
353 | ||
354 | ||
355 | if hit.Parent:findFirstChild("Humanoid") ~= nil then | |
356 | ||
357 | if hit.Parent.Name == char.Name then return end | |
358 | ||
359 | if berserkMode == true then | |
360 | ||
361 | hit.Parent:BreakJoints() | |
362 | ||
363 | ||
364 | end | |
365 | ||
366 | hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-2 | |
367 | ||
368 | local HitSounds = { | |
369 | Hurt = Instance.new("Sound") | |
370 | ||
371 | } | |
372 | ||
373 | HitSounds["Hurt"].SoundId = "http://www.roblox.com/asset?id=406913243" | |
374 | HitSounds["Hurt"].Volume = 1 | |
375 | ||
376 | function PlayHitSound(soundname, pitch) | |
377 | HitSounds[soundname].Parent = hit.Parent.Torso | |
378 | HitSounds[soundname].Pitch = pitch | |
379 | HitSounds[soundname]:Play() | |
380 | local oldsound = HitSounds[soundname] | |
381 | coroutine.resume(coroutine.create(function() | |
382 | wait(4) | |
383 | oldsound:Destroy() | |
384 | end)) | |
385 | HitSounds[soundname] = HitSounds[soundname]:clone() | |
386 | end | |
387 | ||
388 | PlayHitSound("Hurt", 1) | |
389 | ||
390 | coroutine.resume(coroutine.create(function() | |
391 | bodyVelocity:remove() | |
392 | laserShotClone.CanCollide = true | |
393 | wait(3) | |
394 | laserShotClone:remove() | |
395 | end)) | |
396 | ||
397 | end end laserShotClone.Touched:connect(touch) | |
398 | ||
399 | game.Debris:AddItem(laserShotClone,5) | |
400 | ||
401 | end | |
402 | char.Torso.Anchored = false | |
403 | ||
404 | for i = 1,10 do wait() | |
405 | selectionBoxOfRW.Transparency = selectionBoxOfRW.Transparency + 0.1 | |
406 | end | |
407 | selectionBoxOfRW:remove() | |
408 | ||
409 | end | |
410 | ||
411 | ||
412 | function Slash2() | |
413 | ||
414 | RW.Part0 = char.Torso | |
415 | ||
416 | RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
417 | ||
418 | RW.C1 = CFrame.new(0, 0.5, 0) | |
419 | ||
420 | RW.Part1 = char["Right Arm"] | |
421 | ||
422 | RW.Parent = char.Torso | |
423 | ||
424 | ||
425 | ||
426 | LW.Part0 = char.Torso | |
427 | ||
428 | LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
429 | ||
430 | LW.C1 = CFrame.new(0, 0.5, 0) | |
431 | ||
432 | LW.Part1 = char["Left Arm"] | |
433 | ||
434 | LW.Parent = char.Torso | |
435 | ||
436 | ||
437 | ||
438 | for i = 1,20 do wait() | |
439 | RW.C1= clerp(RW.C1*CFrame.new(-.16, 0, 0)*CFrame.fromEulerAnglesXYZ(math.rad(-11.5),math.rad(0),math.rad(0)),RW.C0,0.1) | |
440 | ||
441 | ||
442 | end | |
443 | ||
444 | local ArmWind = Instance.new("Part",suit) | |
445 | ArmWind.Size = Vector3.new(3,7,3) | |
446 | ArmWind.Name = "WindEffect" | |
447 | ArmWind.CanCollide = false | |
448 | ArmWind.Transparency = 1 | |
449 | ArmWind.BrickColor = BrickColor.new("Institutional white") | |
450 | ||
451 | weld(char["Right Arm"],ArmWind,CFrame.new(0,0,0),CFrame.new(0, -1, 0)*CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0),char,"ArmWindW") | |
452 | ||
453 | ||
454 | ||
455 | ||
456 | ||
457 | function touch(hit) | |
458 | ||
459 | ||
460 | if hit.Parent:findFirstChild("Humanoid") ~= nil then | |
461 | ||
462 | if hit.Parent.Name == char.Name then return end | |
463 | ||
464 | if hit.Parent.Name == suit2.Name then return end | |
465 | ||
466 | if berserkMode == true then | |
467 | ||
468 | hit.Parent:BreakJoints() | |
469 | ||
470 | ||
471 | end | |
472 | ||
473 | hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-5 | |
474 | ||
475 | ||
476 | ||
477 | local HitSounds = { | |
478 | Hurt = Instance.new("Sound") | |
479 | ||
480 | } | |
481 | ||
482 | HitSounds["Hurt"].SoundId = "http://www.roblox.com/asset?id=410625063" | |
483 | HitSounds["Hurt"].Volume = 1 | |
484 | ||
485 | function PlayHitSound(soundname, pitch) | |
486 | HitSounds[soundname].Parent = hit.Parent.Torso | |
487 | HitSounds[soundname].Pitch = pitch | |
488 | HitSounds[soundname]:Play() | |
489 | local oldsound = HitSounds[soundname] | |
490 | coroutine.resume(coroutine.create(function() | |
491 | wait(4) | |
492 | oldsound:Destroy() | |
493 | end)) | |
494 | HitSounds[soundname] = HitSounds[soundname]:clone() | |
495 | end | |
496 | ||
497 | PlayHitSound("Hurt", 1) | |
498 | ||
499 | local HitWind = Instance.new("Part",suit) | |
500 | HitWind.Size = Vector3.new(1,1,1) | |
501 | HitWind.Name = "WindEffect" | |
502 | HitWind.CanCollide = false | |
503 | HitWind.Anchored = true | |
504 | HitWind.Transparency = 0 | |
505 | ||
506 | local colorc = {"New Yeller","Magenta","Lapis","Cyan","Lime green"} | |
507 | local Fire = BrickColor.new(colorc[math.random(1, #colorc)]) | |
508 | ||
509 | HitWind.BrickColor = Fire | |
510 | local HitWindMesh = Instance.new("BlockMesh",HitWind) | |
511 | HitWind.CFrame = hit.Parent.Torso.CFrame*CFrame.new(0,0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
512 | ||
513 | if berserkMode == false then | |
514 | hit.Parent.Torso.Velocity=HitWind.CFrame.lookVector * -50 | |
515 | end | |
516 | ||
517 | if berserkMode == true then | |
518 | hit.Parent.Torso.Velocity=HitWind.CFrame.lookVector * -100 | |
519 | end | |
520 | ||
521 | coroutine.resume(coroutine.create(function() | |
522 | for i = 1,10 do wait() | |
523 | ||
524 | HitWind.CFrame= clerp(HitWind.CFrame*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(10),math.rad(10)),HitWind.CFrame,0.1) | |
525 | HitWindMesh.Scale = Vector3.new(1*i, 1*i, 1*i) | |
526 | HitWind.Transparency = HitWind.Transparency + 0.1 | |
527 | end | |
528 | ||
529 | HitWind:remove() | |
530 | end)) | |
531 | ||
532 | ||
533 | end end ArmWind.Touched:connect(touch) | |
534 | ||
535 | Ivalue2 = 10 | |
536 | ||
537 | if berserkMode == true then | |
538 | ||
539 | Ivalue2 = 30 | |
540 | ||
541 | end | |
542 | ||
543 | for i = 1,Ivalue2 do wait() | |
544 | ||
545 | ||
546 | local SpecialPart = Instance.new("Part",ArmWind) | |
547 | ||
548 | SpecialPart.FormFactor="Custom" | |
549 | ||
550 | SpecialPart.Size=Vector3.new(2,2,2) | |
551 | ||
552 | SpecialPart.TopSurface = 0 | |
553 | ||
554 | SpecialPart.BottomSurface = 0 | |
555 | ||
556 | local colorc = {"New Yeller","Magenta","Lapis","Cyan","Lime green"} | |
557 | ||
558 | local Fire = BrickColor.new(colorc[math.random(1, #colorc)]) | |
559 | ||
560 | SpecialPart.BrickColor = Fire | |
561 | ||
562 | SpecialPart.CanCollide=false | |
563 | ||
564 | SpecialPart.Anchored=true | |
565 | ||
566 | SpecialPart.CFrame =(ArmWind.CFrame*CFrame.new(0,-2,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3)) | |
567 | ||
568 | local SpecialPartmesh = Instance.new("BlockMesh",SpecialPart) | |
569 | ||
570 | for i = 1,5 do wait() | |
571 | ||
572 | SpecialPartmesh.Scale=Vector3.new(0.5*i,0.5*i,0.5*i) | |
573 | SpecialPart.CFrame = clerp(SpecialPart.CFrame*CFrame.Angles(math.rad(10),math.rad(10),math.rad(10)),SpecialPart.CFrame,0.1) | |
574 | SpecialPart.Transparency = SpecialPart.Transparency + 0.2 | |
575 | end | |
576 | ||
577 | SpecialPart:remove() | |
578 | ||
579 | ||
580 | ||
581 | end | |
582 | ArmWind:remove() | |
583 | Ivalue2 = 0 | |
584 | ||
585 | end | |
586 | ||
587 | function Slash3() | |
588 | ||
589 | RW.Part0 = char.Torso | |
590 | ||
591 | RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
592 | ||
593 | RW.C1 = CFrame.new(0, 0.5, 0) | |
594 | ||
595 | RW.Part1 = char["Right Arm"] | |
596 | ||
597 | RW.Parent = char.Torso | |
598 | ||
599 | ||
600 | ||
601 | LW.Part0 = char.Torso | |
602 | ||
603 | LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
604 | ||
605 | LW.C1 = CFrame.new(0, 0.5, 0) | |
606 | ||
607 | LW.Part1 = char["Left Arm"] | |
608 | ||
609 | LW.Parent = char.Torso | |
610 | ||
611 | ||
612 | ||
613 | for i = 1,20 do wait() | |
614 | RW.C1= clerp(RW.C1*CFrame.new(-.16, 0, 0)*CFrame.fromEulerAnglesXYZ(math.rad(-11.5),math.rad(0),math.rad(0)),RW.C0,0.1) | |
615 | ||
616 | ||
617 | end | |
618 | ||
619 | ||
620 | ||
621 | ||
622 | ||
623 | TK = Instance.new("Part",suit3) | |
624 | TK.Size = Vector3.new(2,2,2) | |
625 | TK.Name = "TKEffect" | |
626 | TK.CanCollide = false | |
627 | TK.Position = mouse.hit.p | |
628 | TK.Transparency = 1 | |
629 | TK.BrickColor = BrickColor.new("Institutional white") | |
630 | ||
631 | ||
632 | ||
633 | ||
634 | ||
635 | ||
636 | TKmove = Instance.new("BodyPosition",TK) | |
637 | TKmove.Position = char.Torso.Position + (mouse.Hit.lookVector*dist) | |
638 | TKmove.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
639 | TKmove.P = 15000 | |
640 | ||
641 | pointGyro = Instance.new("BodyGyro",char.HumanoidRootPart) | |
642 | pointGyro.P = 1e7 | |
643 | pointGyro.D = 1e3 | |
644 | pointGyro.MaxTorque = Vector3.new(0,1e7,0) | |
645 | TKEnabled =true | |
646 | end | |
647 | ||
648 | local chatberserk = Instance.new("Part",suit) | |
649 | chatberserk.TopSurface = "Smooth" | |
650 | chatberserk.BottomSurface = "Smooth" | |
651 | chatberserk.Name = "GUI" | |
652 | chatberserk.Transparency = 1 | |
653 | chatberserk.Size = Vector3.new(2, 1, 0.1) | |
654 | chatberserk.CanCollide = false | |
655 | chatberserk.BrickColor=BrickColor.new("Institutional white") | |
656 | ||
657 | ||
658 | ||
659 | ||
660 | weld(char.Head,chatberserk,CFrame.new(0,0,0),CFrame.new(0, -3, 0),char,"Weld") | |
661 | ||
662 | ||
663 | local cy7=Instance.new("BlockMesh",chatberserk) | |
664 | ||
665 | ||
666 | local textb=Instance.new("SurfaceGui",chatberserk) | |
667 | textb.Face = "Back" | |
668 | local text2b=Instance.new("TextLabel",textb) | |
669 | text2b.Transparency = 0 | |
670 | ||
671 | text2b.Active=true | |
672 | textb.CanvasSize=Vector2.new(100,100) | |
673 | text2b.Position=UDim2.new(-0.05/3.5,0,0.5/3,0) | |
674 | text2b.Size=UDim2.new(1,0,1,0) | |
675 | text2b.Position=UDim2.new(0,0,-0.1,0) | |
676 | text2b.TextScaled = true | |
677 | text2b.Font = "Code" | |
678 | ||
679 | ||
680 | text2b.TextColor= BrickColor.new("Institutional white") | |
681 | text2b.BackgroundTransparency = 1 | |
682 | text2b.BorderColor= BrickColor.new("Institutional white") | |
683 | ||
684 | ||
685 | text2b.Text= ""..berserkValue.."" | |
686 | ||
687 | ||
688 | local text=Instance.new("SurfaceGui",chatberserk) | |
689 | local text2=Instance.new("TextLabel",text) | |
690 | text2.Transparency = 0 | |
691 | ||
692 | text2.Active=true | |
693 | text.CanvasSize=Vector2.new(100,100) | |
694 | text2.Position=UDim2.new(-0.05/3.5,0,0.5/3,0) | |
695 | text2.Size=UDim2.new(1,0,1,0) | |
696 | text2.Position=UDim2.new(0,0,-0.1,0) | |
697 | text2.TextScaled = true | |
698 | text2.Font = "Code" | |
699 | ||
700 | ||
701 | text2.TextColor= BrickColor.new("Institutional white") | |
702 | text2.BackgroundTransparency = 1 | |
703 | text2.BorderColor= BrickColor.new("Institutional white") | |
704 | ||
705 | ||
706 | text2.Text= ""..berserkValue.."" | |
707 | ||
708 | function idle() | |
709 | ||
710 | RW.Parent = nil | |
711 | ||
712 | LW.Parent = nil | |
713 | ||
714 | RSH.Parent = player.Character.Torso | |
715 | ||
716 | LSH.Parent = player.Character.Torso | |
717 | ||
718 | ||
719 | ||
720 | end | |
721 | ||
722 | function StartUp() | |
723 | if UnknownMode == true then return end | |
724 | if enabled == true then return end | |
725 | if enabled == false then | |
726 | if enabled == true then return end | |
727 | enabled = nil | |
728 | local selectionBoxOfTorso = Instance.new("SelectionBox",Torso) | |
729 | selectionBoxOfTorso.Adornee = Torso | |
730 | selectionBoxOfTorso.Color = BrickColor.new("Cyan") | |
731 | selectionBoxOfTorso.LineThickness = 0.01 | |
732 | selectionBoxOfTorso.Transparency = 1 | |
733 | ||
734 | local selectionBoxOfRightArm = Instance.new("SelectionBox",char["Right Arm"]) | |
735 | selectionBoxOfRightArm.Adornee = char["Right Arm"] | |
736 | selectionBoxOfRightArm.Color = BrickColor.new("Cyan") | |
737 | selectionBoxOfRightArm.LineThickness = 0.01 | |
738 | selectionBoxOfRightArm.Transparency = 1 | |
739 | ||
740 | local selectionBoxOfRightLeg = Instance.new("SelectionBox",char["Right Leg"]) | |
741 | selectionBoxOfRightLeg.Adornee = char["Right Leg"] | |
742 | selectionBoxOfRightLeg.Color = BrickColor.new("Cyan") | |
743 | selectionBoxOfRightLeg.LineThickness = 0.01 | |
744 | selectionBoxOfRightLeg.Transparency = 1 | |
745 | ||
746 | local selectionBoxOfLeftArm = Instance.new("SelectionBox",char["Left Arm"]) | |
747 | selectionBoxOfLeftArm.Adornee = char["Left Arm"] | |
748 | selectionBoxOfLeftArm.Color = BrickColor.new("Cyan") | |
749 | selectionBoxOfLeftArm.LineThickness = 0.01 | |
750 | selectionBoxOfLeftArm.Transparency = 1 | |
751 | ||
752 | local selectionBoxOfLeftLeg = Instance.new("SelectionBox",char["Left Leg"]) | |
753 | selectionBoxOfLeftLeg.Adornee = char["Left Leg"] | |
754 | selectionBoxOfLeftLeg.Color = BrickColor.new("Cyan") | |
755 | selectionBoxOfLeftLeg.LineThickness = 0.01 | |
756 | selectionBoxOfLeftLeg.Transparency = 1 | |
757 | ||
758 | ||
759 | --Shield-- | |
760 | ||
761 | shieldhumanoid = Instance.new("Humanoid",suit2) | |
762 | shieldhumanoid.DisplayDistanceType = "None" | |
763 | ||
764 | ||
765 | Shield6= Instance.new("Part",suit2) | |
766 | Shield6.TopSurface = "Smooth" | |
767 | Shield6.BottomSurface = "Smooth" | |
768 | Shield6.Size = Vector3.new(4,0.2,4) | |
769 | Shield6.CanCollide = true | |
770 | Shield6.BrickColor = BrickColor.new("Cyan") | |
771 | Shield6 .FormFactor = "Custom" | |
772 | Shield6.Transparency = 0 | |
773 | ||
774 | weld(char.Torso,Shield6,CFrame.new(0,0,0),CFrame.new(0, 3, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char,"Shield") | |
775 | ||
776 | Shield5= Instance.new("Part",suit2) | |
777 | Shield5.TopSurface = "Smooth" | |
778 | Shield5.BottomSurface = "Smooth" | |
779 | Shield5.Size = Vector3.new(4,0.2,4) | |
780 | Shield5.CanCollide = true | |
781 | Shield5.BrickColor = BrickColor.new("Cyan") | |
782 | Shield5 .FormFactor = "Custom" | |
783 | Shield5 .Name = "Head" | |
784 | Shield5.Transparency = 0 | |
785 | ||
786 | weld(char.Torso,Shield5,CFrame.new(0,0,0),CFrame.new(0, -3, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char,"Shield") | |
787 | ||
788 | ||
789 | ||
790 | Shield4= Instance.new("Part",suit2) | |
791 | Shield4.TopSurface = "Smooth" | |
792 | Shield4.BottomSurface = "Smooth" | |
793 | Shield4.Size = Vector3.new(0.2,6,4) | |
794 | Shield4.CanCollide = true | |
795 | Shield4.BrickColor = BrickColor.new("Cyan") | |
796 | Shield4 .FormFactor = "Custom" | |
797 | Shield4.Transparency = 0 | |
798 | ||
799 | weld(char.Torso,Shield4,CFrame.new(0,0,0),CFrame.new(2, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char,"Shield") | |
800 | ||
801 | ||
802 | Shield3= Instance.new("Part",suit2) | |
803 | Shield3.TopSurface = "Smooth" | |
804 | Shield3.BottomSurface = "Smooth" | |
805 | Shield3.Size = Vector3.new(0.2,6,4) | |
806 | Shield3.CanCollide = true | |
807 | Shield3.BrickColor = BrickColor.new("Cyan") | |
808 | Shield3 .FormFactor = "Custom" | |
809 | Shield3.Transparency = 0 | |
810 | ||
811 | weld(char.Torso,Shield3,CFrame.new(0,0,0),CFrame.new(-2, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char,"Shield") | |
812 | ||
813 | ||
814 | Shield2= Instance.new("Part",suit2) | |
815 | Shield2.TopSurface = "Smooth" | |
816 | Shield2.BottomSurface = "Smooth" | |
817 | Shield2.Size = Vector3.new(4,6,0.2) | |
818 | Shield2.CanCollide = true | |
819 | Shield2.BrickColor = BrickColor.new("Cyan") | |
820 | Shield2 .FormFactor = "Custom" | |
821 | Shield2.Transparency = 0 | |
822 | ||
823 | weld(char.Torso,Shield2,CFrame.new(0,0,0),CFrame.new(0, 0, -2)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char,"Shield") | |
824 | ||
825 | Shield1= Instance.new("Part",suit2) | |
826 | Shield1.TopSurface = "Smooth" | |
827 | Shield1.BottomSurface = "Smooth" | |
828 | Shield1.Size = Vector3.new(4,6,0.2) | |
829 | Shield1.CanCollide = true | |
830 | Shield1.BrickColor = BrickColor.new("Cyan") | |
831 | Shield1 .FormFactor = "Custom" | |
832 | Shield1.Transparency = 0 | |
833 | ||
834 | weld(char.Torso,Shield1,CFrame.new(0,0,0),CFrame.new(0, 0, 2)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char,"Shield") | |
835 | ||
836 | ||
837 | for i = 1,10 do wait() | |
838 | ||
839 | selectionBoxOfLeftLeg.Transparency = selectionBoxOfLeftLeg.Transparency - 0.1 | |
840 | selectionBoxOfLeftArm.Transparency = selectionBoxOfLeftArm.Transparency - 0.1 | |
841 | selectionBoxOfRightLeg.Transparency = selectionBoxOfRightLeg.Transparency - 0.1 | |
842 | selectionBoxOfRightArm.Transparency = selectionBoxOfRightArm.Transparency - 0.1 | |
843 | selectionBoxOfTorso.Transparency = selectionBoxOfTorso.Transparency - 0.1 | |
844 | ||
845 | Shield1.Transparency = Shield1.Transparency + 0.1 | |
846 | Shield2.Transparency = Shield2.Transparency + 0.1 | |
847 | Shield3.Transparency = Shield3.Transparency + 0.1 | |
848 | Shield4.Transparency = Shield4.Transparency + 0.1 | |
849 | Shield5.Transparency = Shield5.Transparency + 0.1 | |
850 | Shield6.Transparency = Shield6.Transparency + 0.1 | |
851 | ||
852 | end | |
853 | ||
854 | function glowtouch(hit) | |
855 | if ColorDebounce == false then | |
856 | if ColorDebounce == true then return end | |
857 | ColorDebounce = true | |
858 | ||
859 | ||
860 | if hit.Parent:findFirstChild("Humanoid") ~= nil then | |
861 | ||
862 | if hit.Parent.Name == char.Name then return end | |
863 | ||
864 | Shield1.Transparency = 0.7 | |
865 | Shield2.Transparency = 0.7 | |
866 | Shield3.Transparency = 0.7 | |
867 | Shield4.Transparency = 0.7 | |
868 | Shield5.Transparency = 0.7 | |
869 | Shield6.Transparency = 0.7 | |
870 | ||
871 | ||
872 | wait() | |
873 | ||
874 | for i = 1,6 do wait() | |
875 | Shield1.Transparency = Shield1.Transparency + 0.05 | |
876 | Shield2.Transparency = Shield2.Transparency + 0.05 | |
877 | Shield3.Transparency = Shield3.Transparency + 0.05 | |
878 | Shield4.Transparency = Shield4.Transparency + 0.05 | |
879 | Shield5.Transparency = Shield5.Transparency + 0.05 | |
880 | Shield6.Transparency = Shield6.Transparency + 0.05 | |
881 | ||
882 | ||
883 | end | |
884 | end | |
885 | ColorDebounce = false | |
886 | end | |
887 | end | |
888 | ||
889 | Shield1.Touched:connect(glowtouch) | |
890 | Shield2.Touched:connect(glowtouch) | |
891 | Shield3.Touched:connect(glowtouch) | |
892 | Shield4.Touched:connect(glowtouch) | |
893 | Shield5.Touched:connect(glowtouch) | |
894 | Shield6.Touched:connect(glowtouch) | |
895 | ||
896 | Glow1 = Color3.new(0,225,225) | |
897 | Glow2 = Color3.new(0,170,225) | |
898 | ||
899 | GlowParticle = Instance.new("ParticleEmitter",char.Torso) | |
900 | GlowParticle.LightEmission = 1 | |
901 | GlowParticle.Color = ColorSequence.new(Glow1,Glow2) | |
902 | GlowParticle.Size = NumberSequence.new(5,10) | |
903 | GlowParticle.Texture = "http://www.roblox.com/asset/?id=243660373" | |
904 | GlowParticle.Transparency = NumberSequence.new(.3,.8) | |
905 | GlowParticle.LockedToPart = true | |
906 | GlowParticle.Lifetime = NumberRange.new(2) | |
907 | GlowParticle.Rate= 10 | |
908 | GlowParticle.Speed =NumberRange.new(0) | |
909 | wait(.1) | |
910 | for i = 1,10 do wait() | |
911 | ||
912 | selectionBoxOfLeftLeg.Transparency = selectionBoxOfLeftLeg.Transparency + 0.1 | |
913 | selectionBoxOfLeftArm.Transparency = selectionBoxOfLeftArm.Transparency + 0.1 | |
914 | selectionBoxOfRightLeg.Transparency = selectionBoxOfRightLeg.Transparency + 0.1 | |
915 | selectionBoxOfRightArm.Transparency = selectionBoxOfRightArm.Transparency + 0.1 | |
916 | selectionBoxOfTorso.Transparency = selectionBoxOfTorso.Transparency + 0.1 | |
917 | ||
918 | end | |
919 | selectionBoxOfLeftLeg:remove() | |
920 | selectionBoxOfLeftArm:remove() | |
921 | selectionBoxOfRightLeg:remove() | |
922 | selectionBoxOfRightArm:remove() | |
923 | selectionBoxOfTorso:remove() | |
924 | ||
925 | wait(1) | |
926 | enabled = true | |
927 | ShieldDown = false | |
928 | ||
929 | end | |
930 | end | |
931 | ||
932 | function Stop() | |
933 | ||
934 | if berserkMode == true then return end | |
935 | ||
936 | if enabled == false then return end | |
937 | if enabled == true then | |
938 | if enabled == false then return end | |
939 | enabled = nil | |
940 | GlowParticle:remove() | |
941 | ||
942 | ||
943 | if ShieldDown == true then | |
944 | shieldhumanoid:remove() | |
945 | end | |
946 | if ShieldDown == false then | |
947 | Shield1:remove() | |
948 | Shield2:remove() | |
949 | Shield3:remove() | |
950 | Shield4:remove() | |
951 | Shield5:remove() | |
952 | Shield6:remove() | |
953 | shieldhumanoid:remove() | |
954 | end | |
955 | wait(1) | |
956 | ||
957 | enabled = false | |
958 | end | |
959 | end | |
960 | ||
961 | mouse.Button1Down:connect(function() | |
962 | if enabled == false then return end | |
963 | if enabled == true then | |
964 | if vDebounce == false then | |
965 | vDebounce = true | |
966 | ||
967 | Slash2() | |
968 | wait(0.5) | |
969 | idle() | |
970 | wait() | |
971 | idle() | |
972 | ||
973 | vDebounce = false | |
974 | end | |
975 | end | |
976 | end) | |
977 | ||
978 | mouse.KeyUp:connect(function(key) | |
979 | ||
980 | if key == "e" then | |
981 | if TKEnabled == true then | |
982 | if TKEnabled == false then return end | |
983 | if enabled == false then return end | |
984 | if enabled == true then | |
985 | if vDebounce == true then | |
986 | ||
987 | if selectionboxEnable == true then | |
988 | coroutine.resume(coroutine.create(function() | |
989 | for _,v in pairs(TKaffect:GetChildren()) do if v.ClassName=="Part" then | |
990 | ||
991 | v.TK:remove() | |
992 | ||
993 | end | |
994 | end | |
995 | ||
996 | wait(3) | |
997 | for _,v in pairs(TKaffect:GetChildren()) do if v.ClassName=="Part" then | |
998 | ||
999 | v.TKeffectglow:Remove() | |
1000 | ||
1001 | end | |
1002 | end | |
1003 | ||
1004 | end)) | |
1005 | vDebounce = false | |
1006 | selectionboxEnable = false | |
1007 | end | |
1008 | ||
1009 | vDebounce = true | |
1010 | alreadyHaveTK = false | |
1011 | TK:remove() | |
1012 | TKmove:remove() | |
1013 | pointGyro:remove() | |
1014 | TKEnabled = false | |
1015 | ||
1016 | idle() | |
1017 | wait() | |
1018 | idle() | |
1019 | ||
1020 | ||
1021 | ||
1022 | ||
1023 | ||
1024 | vDebounce = false | |
1025 | end | |
1026 | end | |
1027 | end | |
1028 | end | |
1029 | ||
1030 | ||
1031 | end) | |
1032 | ||
1033 | mouse.KeyDown:connect(function(key) | |
1034 | ||
1035 | if key =="m"then | |
1036 | if musicDebounce == false then | |
1037 | if musicDebounce == true then return end | |
1038 | musicDebounce = true | |
1039 | ||
1040 | PlaySound("Opening", 1, char, false,math.huge,true) | |
1041 | ||
1042 | wait(90) | |
1043 | ||
1044 | ||
1045 | musicDebounce = false | |
1046 | end | |
1047 | end | |
1048 | ||
1049 | if key == "e" then | |
1050 | if enabled == false then return end | |
1051 | if enabled == true then | |
1052 | if vDebounce == false then | |
1053 | vDebounce = true | |
1054 | ||
1055 | Slash3() | |
1056 | ||
1057 | ||
1058 | ||
1059 | ||
1060 | ||
1061 | ||
1062 | end | |
1063 | end | |
1064 | end | |
1065 | ||
1066 | if key == "q" then | |
1067 | if enabled == false then return end | |
1068 | if enabled == true then | |
1069 | if vDebounce == false then | |
1070 | vDebounce = true | |
1071 | ||
1072 | ||
1073 | Slash1() | |
1074 | wait() | |
1075 | idle() | |
1076 | wait() | |
1077 | idle() | |
1078 | ||
1079 | vDebounce = false | |
1080 | end | |
1081 | end | |
1082 | ||
1083 | ||
1084 | ||
1085 | end | |
1086 | ||
1087 | if key == "p" then | |
1088 | ||
1089 | if enabled == false then | |
1090 | if enabled == true then return end | |
1091 | ||
1092 | StartUp() | |
1093 | ||
1094 | elseif enabled == true then | |
1095 | if enabled == false then return end | |
1096 | ||
1097 | Stop() | |
1098 | ||
1099 | end | |
1100 | end | |
1101 | ||
1102 | ||
1103 | end) | |
1104 | ||
1105 | ||
1106 | game:service("RunService").Stepped:connect(function() | |
1107 | ||
1108 | ||
1109 | ||
1110 | ||
1111 | if berserkValueAddDebounce == true then return end | |
1112 | ||
1113 | ||
1114 | if char.Humanoid.Health>96 and char.Humanoid.Health<math.huge then | |
1115 | ||
1116 | if berserkValue == 0 then return end | |
1117 | berserkValueAddDebounce = false | |
1118 | ||
1119 | if berserkValueAddDebounce == false then | |
1120 | berserkValueAddDebounce = true | |
1121 | berserkValue = berserkValue - 1 | |
1122 | text2.Text= ""..berserkValue.."" | |
1123 | text2b.Text= ""..berserkValue.."" | |
1124 | wait(5) | |
1125 | berserkValueAddDebounce = false | |
1126 | end | |
1127 | end | |
1128 | ||
1129 | if char.Humanoid.Health>1 and char.Humanoid.Health<16 then | |
1130 | ||
1131 | if berserkValue == 100 then return end | |
1132 | if berserkMode == true then return end | |
1133 | ||
1134 | if berserkValueAddDebounce == true then return end | |
1135 | if berserkValueAddDebounce == false then | |
1136 | berserkValueAddDebounce = true | |
1137 | ||
1138 | wait() | |
1139 | for i = 1,10 do wait() | |
1140 | PlaySound("Beep", 1, char.Torso, false,100,false) | |
1141 | if berserkValue == 100 then return end | |
1142 | berserkValue = berserkValue + 1 | |
1143 | text2.Text= ""..berserkValue.."" | |
1144 | text2b.Text= ""..berserkValue.."" | |
1145 | end | |
1146 | berserkValueAddDebounce = false | |
1147 | end | |
1148 | ||
1149 | ||
1150 | end | |
1151 | ||
1152 | ||
1153 | if char.Humanoid.Health>16 and char.Humanoid.Health<32 then | |
1154 | ||
1155 | ||
1156 | ||
1157 | if berserkValue == 100 then return end | |
1158 | if berserkMode == true then return end | |
1159 | ||
1160 | if berserkValueAddDebounce == true then return end | |
1161 | if berserkValueAddDebounce == false then | |
1162 | berserkValueAddDebounce = true | |
1163 | for i = 1,5 do wait(.3) | |
1164 | PlaySound("Beep", 1, char.Torso, false,100,false) | |
1165 | if berserkValue == 100 then return end | |
1166 | berserkValue = berserkValue + 1 | |
1167 | text2.Text= ""..berserkValue.."" | |
1168 | text2b.Text= ""..berserkValue.."" | |
1169 | end | |
1170 | berserkValueAddDebounce = false | |
1171 | end | |
1172 | ||
1173 | ||
1174 | end | |
1175 | ||
1176 | if char.Humanoid.Health>32 and char.Humanoid.Health<48 then | |
1177 | ||
1178 | if berserkValue == 100 then return end | |
1179 | if berserkMode == true then return end | |
1180 | ||
1181 | if berserkValueAddDebounce == true then return end | |
1182 | if berserkValueAddDebounce == false then | |
1183 | berserkValueAddDebounce = true | |
1184 | for i = 1,3 do wait(0.5) | |
1185 | PlaySound("Beep", 1, char.Torso, false,100,false) | |
1186 | if berserkValue == 100 then return end | |
1187 | berserkValue = berserkValue + 1 | |
1188 | text2.Text= ""..berserkValue.."" | |
1189 | text2b.Text= ""..berserkValue.."" | |
1190 | end | |
1191 | berserkValueAddDebounce = false | |
1192 | end | |
1193 | ||
1194 | ||
1195 | end | |
1196 | ||
1197 | if char.Humanoid.Health>48 and char.Humanoid.Health<64 then | |
1198 | ||
1199 | if berserkValue == 100 then return end | |
1200 | if berserkMode == true then return end | |
1201 | ||
1202 | if berserkValueAddDebounce == true then return end | |
1203 | if berserkValueAddDebounce == false then | |
1204 | berserkValueAddDebounce = true | |
1205 | for i = 1,2 do wait(1) | |
1206 | PlaySound("Beep", 1, char.Torso, false,100,false) | |
1207 | if berserkValue == 100 then return end | |
1208 | ||
1209 | berserkValue = berserkValue + 1 | |
1210 | text2.Text= ""..berserkValue.."" | |
1211 | text2b.Text= ""..berserkValue.."" | |
1212 | end | |
1213 | berserkValueAddDebounce = false | |
1214 | end | |
1215 | ||
1216 | end | |
1217 | ||
1218 | if char.Humanoid.Health>64 and char.Humanoid.Health<80 then | |
1219 | ||
1220 | if berserkValue == 100 then return end | |
1221 | if berserkMode == true then return end | |
1222 | ||
1223 | if berserkValueAddDebounce == true then return end | |
1224 | if berserkValueAddDebounce == false then | |
1225 | berserkValueAddDebounce = true | |
1226 | for i = 1,2 do wait(1.5) | |
1227 | PlaySound("Beep", 1, char.Torso, false,100,false) | |
1228 | if berserkValue == 100 then return end | |
1229 | ||
1230 | berserkValue = berserkValue + 1 | |
1231 | text2.Text= ""..berserkValue.."" | |
1232 | text2b.Text= ""..berserkValue.."" | |
1233 | end | |
1234 | berserkValueAddDebounce = false | |
1235 | end | |
1236 | ||
1237 | ||
1238 | end | |
1239 | ||
1240 | if char.Humanoid.Health>80 and char.Humanoid.Health<96 then | |
1241 | ||
1242 | if berserkValue == 100 then return end | |
1243 | if berserkMode == true then return end | |
1244 | ||
1245 | if berserkValueAddDebounce == true then return end | |
1246 | if berserkValueAddDebounce == false then | |
1247 | berserkValueAddDebounce = true | |
1248 | ||
1249 | berserkValue = berserkValue + 1 | |
1250 | PlaySound("Beep", 1, char.Torso, false,100,false) | |
1251 | text2.Text= ""..berserkValue.."" | |
1252 | text2b.Text= ""..berserkValue.."" | |
1253 | wait(2) | |
1254 | berserkValueAddDebounce = false | |
1255 | end | |
1256 | end | |
1257 | ||
1258 | ||
1259 | ||
1260 | ||
1261 | ||
1262 | ||
1263 | end) | |
1264 | ||
1265 | ||
1266 | ||
1267 | ||
1268 | game:service("RunService").Stepped:connect(function() | |
1269 | ||
1270 | if berserkValue == 100 then | |
1271 | if berserkMode == false then | |
1272 | if char.Humanoid.Health>0 and char.Humanoid.Health<5 then | |
1273 | if UnknownMode== false then | |
1274 | UnknownMode = true | |
1275 | unknownAttack = true | |
1276 | ||
1277 | ||
1278 | for i = 1,30 do wait() | |
1279 | PlaySound("HundredPercent", 6.7, char.Torso, false,math.huge,false) | |
1280 | ||
1281 | ||
1282 | end | |
1283 | ||
1284 | if enabled == true then | |
1285 | Stop() | |
1286 | end | |
1287 | ||
1288 | local mouth = Instance.new("Part",suit) | |
1289 | mouth.Size = Vector3.new(0.2,.7,0.4) | |
1290 | mouth.Transparency = 0 | |
1291 | mouth.BrickColor = BrickColor.new("Really black") | |
1292 | mouth.CanCollide = false | |
1293 | local mouthMesh = Instance.new("SpecialMesh",mouth) | |
1294 | mouthMesh.MeshType = "Sphere" | |
1295 | mouthMesh.Scale = Vector3.new(2.5,0.1,0.8) | |
1296 | ||
1297 | weld(char.Head,mouth,CFrame.new(0,0,0),CFrame.new(0, .3, 0.45)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char,"mouth") | |
1298 | ||
1299 | local Eye1 = Instance.new("Part",suit) | |
1300 | Eye1.Size = Vector3.new(0.4,0.4,0.4) | |
1301 | Eye1.Transparency = 0 | |
1302 | Eye1.BrickColor = BrickColor.new("Really black") | |
1303 | Eye1.CanCollide = false | |
1304 | local Eye1Mesh = Instance.new("SpecialMesh",Eye1) | |
1305 | Eye1Mesh.MeshType = "Sphere" | |
1306 | Eye1Mesh.Scale = Vector3.new(1,1,0.6) | |
1307 | ||
1308 | weld(char.Head,Eye1,CFrame.new(0,0,0),CFrame.new(-.2, -.1, 0.5)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char,"Eye1") | |
1309 | ||
1310 | ||
1311 | local Eye2 = Instance.new("Part",suit) | |
1312 | Eye2.Size = Vector3.new(0.4,0.4,0.4) | |
1313 | Eye2.Transparency = 0 | |
1314 | Eye2.CanCollide = false | |
1315 | Eye2.BrickColor = BrickColor.new("Really black") | |
1316 | local Eye2Mesh = Instance.new("SpecialMesh",Eye2) | |
1317 | Eye2Mesh.MeshType = "Sphere" | |
1318 | Eye2Mesh.Scale = Vector3.new(1,1,0.6) | |
1319 | ||
1320 | weld(char.Head,Eye2,CFrame.new(0,0,0),CFrame.new(.2, -.1, 0.5)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char,"Eye2") | |
1321 | ||
1322 | local MEye1 = Instance.new("Part",suit) | |
1323 | MEye1.Size = Vector3.new(0.3,0.3,0.3) | |
1324 | MEye1.Transparency = 0 | |
1325 | MEye1.Material= "Neon" | |
1326 | MEye1.BrickColor = BrickColor.new("Institutional white") | |
1327 | MEye1.CanCollide = false | |
1328 | local MEye1Mesh = Instance.new("SpecialMesh",MEye1) | |
1329 | MEye1Mesh.MeshType = "Sphere" | |
1330 | MEye1Mesh.Scale = Vector3.new(.7,.7,.2) | |
1331 | ||
1332 | weld(Eye1,MEye1,CFrame.new(0,0,0),CFrame.new(-.02,0,0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char,"MEye1") | |
1333 | ||
1334 | local MEye2 = Instance.new("Part",suit) | |
1335 | MEye2.Size = Vector3.new(0.3,0.3,0.3) | |
1336 | MEye2.Transparency = 0 | |
1337 | MEye2.Material= "Neon" | |
1338 | MEye2.BrickColor = BrickColor.new("Institutional white") | |
1339 | MEye2.CanCollide = false | |
1340 | local MEye2Mesh = Instance.new("SpecialMesh",MEye2) | |
1341 | MEye2Mesh.MeshType = "Sphere" | |
1342 | MEye2Mesh.Scale = Vector3.new(.7,.7,.2) | |
1343 | ||
1344 | weld(Eye2,MEye2,CFrame.new(0,0,0),CFrame.new(.02,0,0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char,"MEye2") | |
1345 | ||
1346 | ||
1347 | ||
1348 | text2.Text= "???%" | |
1349 | text2b.Text= "???%" | |
1350 | text2.TextColor= BrickColor.new("Really black") | |
1351 | text2b.TextColor= BrickColor.new("Really black") | |
1352 | ||
1353 | face.Texture = "" | |
1354 | shirt.ShirtTemplate="" | |
1355 | pants.PantsTemplate="" | |
1356 | Mesh.MeshId ="rbxassetid://98444143"; | |
1357 | Handle.BrickColor = BrickColor.new("Really black"); | |
1358 | Hat.AttachmentPos = Vector3.new(0,-0.15,-0.1); | |
1359 | ||
1360 | char.Humanoid.WalkSpeed = 100 | |
1361 | char.Humanoid.MaxHealth = math.huge | |
1362 | char.Humanoid.Health = math.huge | |
1363 | char.Humanoid.JumpPower = 100 | |
1364 | ||
1365 | char.Head.BrickColor = BrickColor.new("Really black") | |
1366 | char.Torso.BrickColor = BrickColor.new("Really black") | |
1367 | char["Left Arm"].BrickColor = BrickColor.new("Really black") | |
1368 | char["Left Leg"].BrickColor = BrickColor.new("Really black") | |
1369 | char["Right Arm"].BrickColor = BrickColor.new("Really black") | |
1370 | char["Right Leg"].BrickColor = BrickColor.new("Really black") | |
1371 | ||
1372 | Use() | |
1373 | ||
1374 | local BerserkParticle2 = Instance.new("ParticleEmitter",char.Torso) | |
1375 | BerserkParticle2.LightEmission = 1 | |
1376 | BerserkParticle2.Size = NumberSequence.new(10,15) | |
1377 | BerserkParticle2.Texture = "http://www.roblox.com/asset/?id=243660364" | |
1378 | BerserkParticle2.Transparency = NumberSequence.new(.2,.7) | |
1379 | BerserkParticle2.LockedToPart = true | |
1380 | BerserkParticle2.Lifetime = NumberRange.new(1) | |
1381 | BerserkParticle2.Rate= 10 | |
1382 | BerserkParticle2.Speed =NumberRange.new(0) | |
1383 | BerserkParticle2.Rotation = NumberRange.new(0,360) | |
1384 | BerserkParticle2.RotSpeed = NumberRange.new(-10,10) | |
1385 | BerserkParticle2.VelocitySpread = 360 | |
1386 | ||
1387 | char.Torso.Anchored = true | |
1388 | TKEnabled = true | |
1389 | ||
1390 | ||
1391 | ||
1392 | Radar.BackgroundTransparency= 0 | |
1393 | ||
1394 | ||
1395 | ||
1396 | local RangeTorso = Instance.new("Part",suit) | |
1397 | ||
1398 | RangeTorso.Size = Vector3.new(300,50,300) | |
1399 | RangeTorso.Transparency = 1 | |
1400 | RangeTorso.CanCollide = false | |
1401 | RangeTorso.Position = MEye2.Position*Vector3.new(0,-50,0) | |
1402 | RangeTorso.Name = "RangeTorso" | |
1403 | ||
1404 | ||
1405 | local TKRangeTorso = Instance.new("BodyPosition",RangeTorso) | |
1406 | TKRangeTorso.Position = char.Torso.Position | |
1407 | TKRangeTorso.Name = "RangeTorsoTK" | |
1408 | TKRangeTorso.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1409 | TKRangeTorso.P = 25000 | |
1410 | ||
1411 | function touch(hit) | |
1412 | if unknownAttack == false then return end | |
1413 | ||
1414 | TKaffect = hit.Parent | |
1415 | ||
1416 | if hit.Parent.Name == suit.Name then return end | |
1417 | ||
1418 | if hit.Parent.Name == suit2.Name then return end | |
1419 | ||
1420 | if hit.Parent.Name == char.Name then return end | |
1421 | ||
1422 | for _,v in pairs(TKaffect:GetChildren()) do if v.ClassName=="Part" or v.ClassName =="WedgePart" or v.ClassName =="CornerWedgePart" or v.ClassName =="TrussPart"then | |
1423 | ||
1424 | OldTKpart = v | |
1425 | ||
1426 | ||
1427 | if v.Anchored == true then | |
1428 | ||
1429 | if v.Name == workspace.Baseplate.Name then return end | |
1430 | ||
1431 | v.Anchored = false | |
1432 | ||
1433 | ||
1434 | end | |
1435 | ||
1436 | if unknownAttack == false then return end | |
1437 | local TKmove3 = Instance.new("BodyVelocity",v) | |
1438 | TKmove3.Name = "TK3" | |
1439 | TKmove3.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1440 | TKmove3.P = 25000 | |
1441 | TKmove3.Velocity = Vector3.new(0,10,0) | |
1442 | ||
1443 | ||
1444 | ||
1445 | game.Debris:AddItem(TKmove3,10) | |
1446 | wait(10) | |
1447 | ||
1448 | coroutine.resume(coroutine.create(function() | |
1449 | v.Parent:BreakJoints() | |
1450 | ||
1451 | end)) | |
1452 | ||
1453 | end end | |
1454 | ||
1455 | ||
1456 | end RangeTorso.Touched:connect(touch) | |
1457 | ||
1458 | ||
1459 | ||
1460 | ||
1461 | coroutine.resume(coroutine.create(function() | |
1462 | for i = 1,20 do wait() | |
1463 | ||
1464 | RangeTorso.Position = MEye2.Position*Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
1465 | ||
1466 | local explodePart = Instance.new("Part",suit) | |
1467 | ||
1468 | explodePart.FormFactor="Custom" | |
1469 | ||
1470 | explodePart.Size=Vector3.new(2,2,2) | |
1471 | ||
1472 | explodePart.TopSurface = 0 | |
1473 | ||
1474 | explodePart.BottomSurface = 0 | |
1475 | ||
1476 | local colorc = {"Really black"} | |
1477 | ||
1478 | local Fire = BrickColor.new(colorc[math.random(1, #colorc)]) | |
1479 | ||
1480 | explodePart.BrickColor = Fire | |
1481 | ||
1482 | explodePart.CanCollide=false | |
1483 | ||
1484 | explodePart.Anchored=true | |
1485 | ||
1486 | explodePart.CFrame =(Torso.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3)) | |
1487 | ||
1488 | local explodePartmesh = Instance.new("BlockMesh",explodePart) | |
1489 | ||
1490 | for i = 1,10 do wait() | |
1491 | ||
1492 | ||
1493 | ||
1494 | explodePartmesh.Scale=Vector3.new(5*i,5*i,5*i) | |
1495 | explodePart.CFrame = clerp(explodePart.CFrame*CFrame.Angles(math.rad(10),math.rad(10),math.rad(10)),explodePart.CFrame,0.1) | |
1496 | explodePart.Transparency = explodePart.Transparency + 0.1 | |
1497 | end | |
1498 | ||
1499 | explodePart:remove() | |
1500 | end | |
1501 | end)) | |
1502 | ||
1503 | ||
1504 | wait(10) | |
1505 | ||
1506 | selectionboxEnable = false | |
1507 | TKEnabled = false | |
1508 | UnknownMode = false | |
1509 | RangeTorso:remove() | |
1510 | ||
1511 | face.Texture = "http://www.roblox.com/asset/?id=321187438" | |
1512 | shirt.ShirtTemplate="rbxassetid://373395462" | |
1513 | pants.PantsTemplate="rbxassetid://373395510" | |
1514 | Mesh.MeshId ="rbxassetid://29938421"; | |
1515 | Handle.BrickColor = BrickColor.new("Really black"); | |
1516 | Hat.AttachmentPos = Vector3.new(0,0.25,0); | |
1517 | ||
1518 | char.Humanoid.WalkSpeed = 16 | |
1519 | char.Humanoid.JumpPower = 50 | |
1520 | char.Humanoid.Health = 100 | |
1521 | char.Humanoid.MaxHealth = 100 | |
1522 | ||
1523 | BerserkParticle2:remove() | |
1524 | TKaffect = nil | |
1525 | unknownAttack = false | |
1526 | char.Head.BrickColor = HeadOldC | |
1527 | char.Torso.BrickColor = TorsoOldC | |
1528 | char.Torso.Anchored = false | |
1529 | char["Left Arm"].BrickColor = LAOldC | |
1530 | char["Left Leg"].BrickColor = LLOldC | |
1531 | char["Right Arm"].BrickColor = RAOldC | |
1532 | char["Right Leg"].BrickColor = RLOldC | |
1533 | MEye2:remove() | |
1534 | MEye1:remove() | |
1535 | Eye1:remove() | |
1536 | Eye2:remove() | |
1537 | mouth:remove() | |
1538 | berserkValue = 0 | |
1539 | text2.Text= ""..berserkValue.."" | |
1540 | text2b.Text= ""..berserkValue.."" | |
1541 | idle() | |
1542 | wait() | |
1543 | idle() | |
1544 | ||
1545 | for i=1,10 do | |
1546 | Radar.BackgroundTransparency= Radar.BackgroundTransparency + 0.1 | |
1547 | ||
1548 | wait(0.15) | |
1549 | end | |
1550 | ||
1551 | end | |
1552 | return end | |
1553 | ||
1554 | if UnknownMode == false then | |
1555 | if UnknownMode == true then return end | |
1556 | berserkMode = true | |
1557 | ||
1558 | berserkValueAddDebounce = false | |
1559 | ||
1560 | ||
1561 | ||
1562 | ||
1563 | ||
1564 | char.Torso.Anchored = true | |
1565 | ||
1566 | ||
1567 | for i = 1,30 do wait() | |
1568 | PlaySound("HundredPercent", 6.7, char.Torso, false,math.huge,false) | |
1569 | ||
1570 | ||
1571 | end | |
1572 | ||
1573 | ||
1574 | ||
1575 | if enabled == false then | |
1576 | berserkMode = false | |
1577 | wait() | |
1578 | StartUp() | |
1579 | end | |
1580 | face.Texture = "" | |
1581 | shirt.ShirtTemplate="" | |
1582 | pants.PantsTemplate="" | |
1583 | Mesh.MeshId ="rbxassetid://98444143"; | |
1584 | Handle.BrickColor = BrickColor.new("Institutional white"); | |
1585 | Hat.AttachmentPos = Vector3.new(0,-0.15,-0.1); | |
1586 | ||
1587 | char.Humanoid.WalkSpeed = 100 | |
1588 | char.Humanoid.MaxHealth = math.huge | |
1589 | char.Humanoid.Health = math.huge | |
1590 | shieldhumanoid.MaxHealth = math.huge | |
1591 | shieldhumanoid.Health = math.huge | |
1592 | char.Humanoid.JumpPower = 100 | |
1593 | ||
1594 | char.Head.BrickColor = BrickColor.new("Institutional white") | |
1595 | char.Torso.BrickColor = BrickColor.new("Institutional white") | |
1596 | char["Left Arm"].BrickColor = BrickColor.new("Institutional white") | |
1597 | char["Left Leg"].BrickColor = BrickColor.new("Institutional white") | |
1598 | char["Right Arm"].BrickColor = BrickColor.new("Institutional white") | |
1599 | char["Right Leg"].BrickColor = BrickColor.new("Institutional white") | |
1600 | ||
1601 | local mouth = Instance.new("Part",suit) | |
1602 | mouth.Size = Vector3.new(0.2,.7,0.4) | |
1603 | mouth.Transparency = 0 | |
1604 | mouth.BrickColor = BrickColor.new("Really black") | |
1605 | mouth.CanCollide = false | |
1606 | local mouthMesh = Instance.new("SpecialMesh",mouth) | |
1607 | mouthMesh.MeshType = "Sphere" | |
1608 | mouthMesh.Scale = Vector3.new(2.5,0.1,0.8) | |
1609 | ||
1610 | weld(char.Head,mouth,CFrame.new(0,0,0),CFrame.new(0, .3, 0.45)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char,"mouth") | |
1611 | ||
1612 | local Eye1 = Instance.new("Part",suit) | |
1613 | Eye1.Size = Vector3.new(0.4,0.4,0.4) | |
1614 | Eye1.Transparency = 0 | |
1615 | Eye1.BrickColor = BrickColor.new("Really black") | |
1616 | Eye1.CanCollide = false | |
1617 | local Eye1Mesh = Instance.new("SpecialMesh",Eye1) | |
1618 | Eye1Mesh.MeshType = "Sphere" | |
1619 | Eye1Mesh.Scale = Vector3.new(1,1,0.6) | |
1620 | ||
1621 | weld(char.Head,Eye1,CFrame.new(0,0,0),CFrame.new(-.2, -.1, 0.5)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char,"Eye1") | |
1622 | ||
1623 | ||
1624 | local Eye2 = Instance.new("Part",suit) | |
1625 | Eye2.Size = Vector3.new(0.4,0.4,0.4) | |
1626 | Eye2.Transparency = 0 | |
1627 | Eye2.CanCollide = false | |
1628 | Eye2.BrickColor = BrickColor.new("Really black") | |
1629 | local Eye2Mesh = Instance.new("SpecialMesh",Eye2) | |
1630 | Eye2Mesh.MeshType = "Sphere" | |
1631 | Eye2Mesh.Scale = Vector3.new(1,1,0.6) | |
1632 | ||
1633 | weld(char.Head,Eye2,CFrame.new(0,0,0),CFrame.new(.2, -.1, 0.5)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char,"Eye2") | |
1634 | ||
1635 | local MEye1 = Instance.new("Part",suit) | |
1636 | MEye1.Size = Vector3.new(0.3,0.3,0.3) | |
1637 | MEye1.Transparency = 0 | |
1638 | MEye1.Material= "Neon" | |
1639 | MEye1.BrickColor = BrickColor.new("Institutional white") | |
1640 | MEye1.CanCollide = false | |
1641 | local MEye1Mesh = Instance.new("SpecialMesh",MEye1) | |
1642 | MEye1Mesh.MeshType = "Sphere" | |
1643 | MEye1Mesh.Scale = Vector3.new(.7,.7,.2) | |
1644 | ||
1645 | weld(Eye1,MEye1,CFrame.new(0,0,0),CFrame.new(-.02,0,0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char,"MEye1") | |
1646 | ||
1647 | local MEye2 = Instance.new("Part",suit) | |
1648 | MEye2.Size = Vector3.new(0.3,0.3,0.3) | |
1649 | MEye2.Transparency = 0 | |
1650 | MEye2.Material= "Neon" | |
1651 | MEye2.BrickColor = BrickColor.new("Institutional white") | |
1652 | MEye2.CanCollide = false | |
1653 | local MEye2Mesh = Instance.new("SpecialMesh",MEye2) | |
1654 | MEye2Mesh.MeshType = "Sphere" | |
1655 | MEye2Mesh.Scale = Vector3.new(.7,.7,.2) | |
1656 | ||
1657 | weld(Eye2,MEye2,CFrame.new(0,0,0),CFrame.new(.02,0,0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char,"MEye2") | |
1658 | ||
1659 | ||
1660 | local explodePart = Instance.new("Part",workspace) | |
1661 | ||
1662 | explodePart.FormFactor="Custom" | |
1663 | ||
1664 | explodePart.Size=Vector3.new(2,2,2) | |
1665 | ||
1666 | explodePart.TopSurface = 0 | |
1667 | ||
1668 | explodePart.BottomSurface = 0 | |
1669 | ||
1670 | local colorc = {"Institutional white"} | |
1671 | ||
1672 | local Fire = BrickColor.new(colorc[math.random(1, #colorc)]) | |
1673 | ||
1674 | explodePart.BrickColor = Fire | |
1675 | ||
1676 | explodePart.CanCollide=false | |
1677 | ||
1678 | explodePart.Anchored=true | |
1679 | ||
1680 | explodePart.CFrame =(Torso.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3)) | |
1681 | ||
1682 | local explodePartmesh = Instance.new("BlockMesh",explodePart) | |
1683 | ||
1684 | for i = 1,10 do wait() | |
1685 | ||
1686 | explodePartmesh.Scale=Vector3.new(5*i,5*i,5*i) | |
1687 | explodePart.CFrame = clerp(explodePart.CFrame*CFrame.Angles(math.rad(10),math.rad(10),math.rad(10)),explodePart.CFrame,0.1) | |
1688 | explodePart.Transparency = explodePart.Transparency + 0.1 | |
1689 | end | |
1690 | ||
1691 | --[[By LukeSky4ever... U think you could just delete the creator's name dont ya?]]-- | |
1692 | ||
1693 | ||
1694 | explodePart:remove() | |
1695 | char.Torso.Anchored = false | |
1696 | ||
1697 | BerserkParticle = Instance.new("ParticleEmitter",char.Torso) | |
1698 | BerserkParticle.LightEmission = 1 | |
1699 | BerserkParticle.Size = NumberSequence.new(10,15) | |
1700 | BerserkParticle.Texture = "http://www.roblox.com/asset/?id=243660364" | |
1701 | BerserkParticle.Transparency = NumberSequence.new(.2,.7) | |
1702 | BerserkParticle.LockedToPart = true | |
1703 | BerserkParticle.Lifetime = NumberRange.new(1) | |
1704 | BerserkParticle.Rate= 10 | |
1705 | BerserkParticle.Speed =NumberRange.new(0) | |
1706 | BerserkParticle.Rotation = NumberRange.new(0,360) | |
1707 | BerserkParticle.RotSpeed = NumberRange.new(-10,10) | |
1708 | BerserkParticle.VelocitySpread = 360 | |
1709 | coroutine.resume(coroutine.create(function() | |
1710 | for i = 1,90 do wait() | |
1711 | ||
1712 | local explodePart = Instance.new("Part",workspace) | |
1713 | ||
1714 | explodePart.FormFactor="Custom" | |
1715 | ||
1716 | explodePart.Size=Vector3.new(2,2,2) | |
1717 | ||
1718 | explodePart.TopSurface = 0 | |
1719 | ||
1720 | explodePart.BottomSurface = 0 | |
1721 | ||
1722 | local colorc = {"Institutional white"} | |
1723 | ||
1724 | local Fire = BrickColor.new(colorc[math.random(1, #colorc)]) | |
1725 | ||
1726 | explodePart.BrickColor = Fire | |
1727 | ||
1728 | explodePart.CanCollide=false | |
1729 | ||
1730 | explodePart.Anchored=true | |
1731 | ||
1732 | explodePart.CFrame =(Torso.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3)) | |
1733 | ||
1734 | local explodePartmesh = Instance.new("BlockMesh",explodePart) | |
1735 | ||
1736 | for i = 1,5 do wait() | |
1737 | ||
1738 | explodePartmesh.Scale=Vector3.new(1*i,1*i,1*i) | |
1739 | explodePart.CFrame = clerp(explodePart.CFrame*CFrame.Angles(math.rad(10),math.rad(10),math.rad(10)),explodePart.CFrame,0.1) | |
1740 | explodePart.Transparency = explodePart.Transparency + 0.2 | |
1741 | end | |
1742 | ||
1743 | explodePart:remove() | |
1744 | end | |
1745 | end)) | |
1746 | ||
1747 | wait(1) | |
1748 | ||
1749 | ||
1750 | for i = 1,100 do wait(.3) | |
1751 | if berserkValue == 0 then return end | |
1752 | berserkValue = berserkValue - 1 | |
1753 | text2.Text= ""..berserkValue.."" | |
1754 | text2b.Text= ""..berserkValue.."" | |
1755 | char.Head.BrickColor = BrickColor.new("Institutional white") | |
1756 | char.Torso.BrickColor = BrickColor.new("Institutional white") | |
1757 | char["Left Arm"].BrickColor = BrickColor.new("Institutional white") | |
1758 | char["Left Leg"].BrickColor = BrickColor.new("Institutional white") | |
1759 | char["Right Arm"].BrickColor = BrickColor.new("Institutional white") | |
1760 | char["Right Leg"].BrickColor = BrickColor.new("Institutional white") | |
1761 | wait(.1) | |
1762 | ||
1763 | ||
1764 | ||
1765 | end | |
1766 | ||
1767 | MEye2:remove() | |
1768 | MEye1:remove() | |
1769 | Eye1:remove() | |
1770 | Eye2:remove() | |
1771 | mouth:remove() | |
1772 | ||
1773 | face.Texture = "http://www.roblox.com/asset/?id=321187438" | |
1774 | shirt.ShirtTemplate="rbxassetid://373395462" | |
1775 | pants.PantsTemplate="rbxassetid://373395510" | |
1776 | Mesh.MeshId ="rbxassetid://29938421"; | |
1777 | Handle.BrickColor = BrickColor.new("Really black"); | |
1778 | Hat.AttachmentPos = Vector3.new(0,0.25,0); | |
1779 | ||
1780 | char.Humanoid.WalkSpeed = 16 | |
1781 | char.Humanoid.JumpPower = 50 | |
1782 | char.Humanoid.Health = 100 | |
1783 | char.Humanoid.MaxHealth = 100 | |
1784 | shieldhumanoid.MaxHealth = 100 | |
1785 | shieldhumanoid.Health = 100 | |
1786 | ||
1787 | BerserkParticle:remove() | |
1788 | char.Head.BrickColor = HeadOldC | |
1789 | char.Torso.BrickColor = TorsoOldC | |
1790 | char["Left Arm"].BrickColor = LAOldC | |
1791 | char["Left Leg"].BrickColor = LLOldC | |
1792 | char["Right Arm"].BrickColor = RAOldC | |
1793 | char["Right Leg"].BrickColor = RLOldC | |
1794 | char.Humanoid.PlatformStand = true | |
1795 | ||
1796 | for i=1,10 do | |
1797 | Radar.BackgroundTransparency= Radar.BackgroundTransparency - 0.1 | |
1798 | ||
1799 | wait(0.15) | |
1800 | end | |
1801 | wait(10) | |
1802 | for i=1,10 do | |
1803 | Radar.BackgroundTransparency= Radar.BackgroundTransparency + 0.1 | |
1804 | ||
1805 | wait(0.15) | |
1806 | end | |
1807 | char.Humanoid.PlatformStand = false | |
1808 | berserkMode = false | |
1809 | dist = 25 | |
1810 | Stop() | |
1811 | end | |
1812 | end | |
1813 | end | |
1814 | ||
1815 | if berserkValue>80 and berserkValue<100 then | |
1816 | ||
1817 | text2.TextColor= BrickColor.new("Really red") | |
1818 | text2b.TextColor= BrickColor.new("Really red") | |
1819 | ||
1820 | end | |
1821 | ||
1822 | ||
1823 | if berserkValue>64 and berserkValue<80 then | |
1824 | ||
1825 | text2.TextColor= BrickColor.new("Deep orange") | |
1826 | text2b.TextColor= BrickColor.new("Deep orange") | |
1827 | ||
1828 | end | |
1829 | ||
1830 | if berserkValue>48 and berserkValue<64 then | |
1831 | ||
1832 | ||
1833 | ||
1834 | text2.TextColor= BrickColor.new("New Yeller") | |
1835 | text2b.TextColor= BrickColor.new("New Yeller") | |
1836 | ||
1837 | ||
1838 | end | |
1839 | ||
1840 | if berserkValue>32 and berserkValue<48 then | |
1841 | ||
1842 | ||
1843 | ||
1844 | text2.TextColor= BrickColor.new("Lime green") | |
1845 | text2b.TextColor= BrickColor.new("Lime green") | |
1846 | ||
1847 | end | |
1848 | ||
1849 | if berserkValue>16 and berserkValue<32 then | |
1850 | ||
1851 | ||
1852 | ||
1853 | text2.TextColor= BrickColor.new("Cyan") | |
1854 | text2b.TextColor= BrickColor.new("Cyan") | |
1855 | ||
1856 | ||
1857 | end | |
1858 | ||
1859 | if berserkValue>-math.huge and berserkValue<16 then | |
1860 | ||
1861 | text2.TextColor= BrickColor.new("Institutional white") | |
1862 | text2b.TextColor= BrickColor.new("Institutional white") | |
1863 | ||
1864 | end | |
1865 | ||
1866 | end) | |
1867 | ||
1868 | game:service("RunService").Stepped:connect(function() | |
1869 | ||
1870 | if enabled == true then | |
1871 | if shieldhumanoid.Health == 0 then | |
1872 | if ColorDebounce == false then | |
1873 | if ColorDebounce == true then return end | |
1874 | ColorDebounce = true | |
1875 | ||
1876 | ||
1877 | ||
1878 | ||
1879 | ||
1880 | for i =1,20 do wait() | |
1881 | ||
1882 | ||
1883 | Shield1.Transparency = 0.9 | |
1884 | Shield2.Transparency = 0.9 | |
1885 | Shield3.Transparency = 0.9 | |
1886 | Shield4.Transparency = 0.9 | |
1887 | Shield5.Transparency = 0.9 | |
1888 | Shield6.Transparency = 0.9 | |
1889 | wait() | |
1890 | Shield1.Transparency = 0.5 | |
1891 | Shield2.Transparency = 0.5 | |
1892 | Shield3.Transparency = 0.5 | |
1893 | Shield4.Transparency = 0.5 | |
1894 | Shield5.Transparency = 0.5 | |
1895 | Shield6.Transparency = 0.5 | |
1896 | ||
1897 | ||
1898 | end | |
1899 | ||
1900 | Shield1:Remove() | |
1901 | Shield2:Remove() | |
1902 | Shield3:Remove() | |
1903 | Shield4:Remove() | |
1904 | Shield5:Remove() | |
1905 | Shield6:Remove() | |
1906 | ||
1907 | ShieldDown = true | |
1908 | ColorDebounce = false | |
1909 | end | |
1910 | end | |
1911 | end | |
1912 | ||
1913 | ||
1914 | ||
1915 | ||
1916 | ||
1917 | ||
1918 | end) | |
1919 | ||
1920 | ||
1921 | game:service("RunService").Stepped:connect(function() | |
1922 | ||
1923 | ||
1924 | ||
1925 | if selectionboxEnable == true then | |
1926 | if UnknownMode == true then return end | |
1927 | TKmove2.Position = char.Torso.Position + (mouse.Hit.lookVector*dist) | |
1928 | ||
1929 | ||
1930 | end | |
1931 | ||
1932 | if TKEnabled == true then | |
1933 | ||
1934 | if UnknownMode == true then return end | |
1935 | ||
1936 | TKmove.Position = char.Torso.Position + (mouse.Hit.lookVector*dist) | |
1937 | pointGyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p - char.HumanoidRootPart.CFrame.p).unit * 100) | |
1938 | ||
1939 | function touch(hit) | |
1940 | ||
1941 | if alreadyHaveTK == false then | |
1942 | if alreadyHaveTK == true then return end | |
1943 | alreadyHaveTK = true | |
1944 | ||
1945 | ||
1946 | TKaffect = hit.Parent | |
1947 | ||
1948 | ||
1949 | if hit.Parent.Name == suit.Name then return end | |
1950 | ||
1951 | if hit.Parent.Name == suit2.Name then return end | |
1952 | ||
1953 | if hit.Parent:findFirstChild("Humanoid") ~= nil then | |
1954 | ||
1955 | hit.Parent.Humanoid.PlatformStand= true | |
1956 | ||
1957 | ||
1958 | end | |
1959 | ||
1960 | for _,v in pairs(TKaffect:GetChildren()) do if v.ClassName=="Part" then | |
1961 | ||
1962 | ||
1963 | OldTKpart = v | |
1964 | coroutine.resume(coroutine.create(function() | |
1965 | if v.Anchored == true then | |
1966 | ||
1967 | if v.Name == workspace.Baseplate.Name then return end | |
1968 | ||
1969 | v.Anchored = false | |
1970 | ||
1971 | end | |
1972 | end)) | |
1973 | ||
1974 | function touch(hit) | |
1975 | ||
1976 | if selectionboxEnable == false then | |
1977 | ||
1978 | OldTKpart =nil return | |
1979 | ||
1980 | end | |
1981 | ||
1982 | if hit.Parent:findFirstChild("Humanoid") ~= nil then | |
1983 | ||
1984 | if hit.Parent.Name == char.Name then return end | |
1985 | ||
1986 | if hit.Parent.Name == suit.Name then return end | |
1987 | ||
1988 | if hit.Parent.Name == suit2.Name then return end | |
1989 | ||
1990 | if berserkMode == true then | |
1991 | ||
1992 | hit.Parent:BreakJoints() | |
1993 | ||
1994 | ||
1995 | end | |
1996 | ||
1997 | hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-5 | |
1998 | ||
1999 | ||
2000 | ||
2001 | local HitSounds = { | |
2002 | Hurt = Instance.new("Sound") | |
2003 | ||
2004 | } | |
2005 | ||
2006 | HitSounds["Hurt"].SoundId = "http://www.roblox.com/asset?id=410625063" | |
2007 | HitSounds["Hurt"].Volume = 1 | |
2008 | ||
2009 | function PlayHitSound(soundname, pitch) | |
2010 | HitSounds[soundname].Parent = hit.Parent.Torso | |
2011 | HitSounds[soundname].Pitch = pitch | |
2012 | HitSounds[soundname]:Play() | |
2013 | local oldsound = HitSounds[soundname] | |
2014 | coroutine.resume(coroutine.create(function() | |
2015 | wait(4) | |
2016 | oldsound:Destroy() | |
2017 | end)) | |
2018 | HitSounds[soundname] = HitSounds[soundname]:clone() | |
2019 | end | |
2020 | ||
2021 | PlayHitSound("Hurt", 1) | |
2022 | ||
2023 | ||
2024 | end | |
2025 | ||
2026 | ||
2027 | ||
2028 | ||
2029 | end OldTKpart.Touched:connect(touch) | |
2030 | ||
2031 | ||
2032 | TKmove2 = Instance.new("BodyPosition",v) | |
2033 | TKmove2.Position = char.Torso.Position + (mouse.Hit.lookVector*dist) | |
2034 | TKmove2.Name = "TK" | |
2035 | TKmove2.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
2036 | TKmove2.P = 25000 | |
2037 | if berserkMode == true then | |
2038 | TKmove2.P = 50000 | |
2039 | ||
2040 | end | |
2041 | ||
2042 | local selectionBoxOfTK = Instance.new("SelectionBox",v) | |
2043 | selectionBoxOfTK.Adornee = v | |
2044 | selectionBoxOfTK.Name= "TKeffectglow" | |
2045 | ||
2046 | ||
2047 | selectionBoxOfTK.Color = BrickColor.new("Cyan") | |
2048 | selectionBoxOfTK.LineThickness = 0.01 | |
2049 | if berserkMode == true then | |
2050 | ||
2051 | selectionBoxOfTK.Color = BrickColor.new("Institutional white") | |
2052 | ||
2053 | ||
2054 | end | |
2055 | selectionboxEnable = true | |
2056 | ||
2057 | end end | |
2058 | ||
2059 | ||
2060 | ||
2061 | ||
2062 | ||
2063 | end | |
2064 | ||
2065 | end TK.Touched:connect(touch) | |
2066 | ||
2067 | end | |
2068 | ||
2069 | ||
2070 | end) |