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