SHOW:
|
|
- or go back to the newest paste.
1 | -----------/XESTER THE CARD MASTER\\----------- | |
2 | ||
3 | -------//FE MODE SCRIPT | |
4 | ||
5 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
6 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
7 | do | |
8 | print("FE Compatibility code by Mokiros") | |
9 | script.Parent = Player.Character | |
10 | ||
11 | --RemoteEvent for communicating | |
12 | local Event = Instance.new("RemoteEvent") | |
13 | Event.Name = "UserInput_Event" | |
14 | ||
15 | --Fake event to make stuff like Mouse.KeyDown work | |
16 | local function fakeEvent() | |
17 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
18 | t.connect = t.Connect | |
19 | return t | |
20 | end | |
21 | ||
22 | --Creating fake input objects with fake variables | |
23 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
24 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
25 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
26 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
27 | end} | |
28 | --Merged 2 functions into one by checking amount of arguments | |
29 | CAS.UnbindAction = CAS.BindAction | |
30 | ||
31 | --This function will trigger the events that have been :Connect()'ed | |
32 | - | Player=game:GetService("Players").LocalPlayer |
32 | + | local function te(self,ev,...) |
33 | - | Character=Player.Character |
33 | + | local t = m[ev] |
34 | - | Character.Humanoid.Name = "noneofurbusiness" |
34 | + | if t and t._fakeEvent and t.Function then |
35 | - | hum = Character.noneofurbusiness |
35 | + | t.Function(...) |
36 | - | LeftArm=Character["Left Arm"] |
36 | + | |
37 | - | LeftLeg=Character["Left Leg"] |
37 | + | |
38 | - | RightArm=Character["Right Arm"] |
38 | + | m.TrigEvent = te |
39 | - | RightLeg=Character["Right Leg"] |
39 | + | UIS.TrigEvent = te |
40 | - | Root=Character["HumanoidRootPart"] |
40 | + | |
41 | - | Head=Character["Head"] |
41 | + | Event.OnServerEvent:Connect(function(plr,io) |
42 | - | Torso=Character["Torso"] |
42 | + | if plr~=Player then return end |
43 | - | Neck=Torso["Neck"] |
43 | + | if io.isMouse then |
44 | m.Target = io.Target | |
45 | m.Hit = io.Hit | |
46 | else | |
47 | local b = io.UserInputState == Enum.UserInputState.Begin | |
48 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
49 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
50 | end | |
51 | for _,t in pairs(CAS.Actions) do | |
52 | for _,k in pairs(t.Keys) do | |
53 | if k==io.KeyCode then | |
54 | t.Function(t.Name,io.UserInputState,io) | |
55 | end | |
56 | end | |
57 | end | |
58 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
59 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
60 | end | |
61 | end) | |
62 | Event.Parent = NLS([==[ | |
63 | local Player = owner | |
64 | local Event = script:WaitForChild("UserInput_Event") | |
65 | ||
66 | local UIS = game:GetService("UserInputService") | |
67 | local input = function(io,a) | |
68 | if a then return end | |
69 | --Since InputObject is a client-side instance, we create and pass table instead | |
70 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
71 | end | |
72 | UIS.InputBegan:Connect(input) | |
73 | UIS.InputEnded:Connect(input) | |
74 | local h,t | |
75 | --Give the server mouse data 30 times every second, but only if the values changed | |
76 | --If player is not moving their mouse, client won't fire events | |
77 | while wait(1/30) do | |
78 | if h~=Mouse.Hit or t~=Mouse.Target then | |
79 | h,t=Mouse.Hit,Mouse.Target | |
80 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
81 | end | |
82 | end]==],Player.Character) | |
83 | - | mouse = Player:GetMouse() |
83 | + | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS |
84 | end | |
85 | ||
86 | --[[Movelist | |
87 | Q = The disappearing act. | |
88 | E = Full house | |
89 | R = Cardnado | |
90 | T = Teleport | |
91 | Y = Big card(Click to smash.) | |
92 | U = Black hole | |
93 | P = Card shield(Click to bounce people off, press p again to shred.) | |
94 | F = Transform(You can switch between modes any time.) | |
95 | -----------/SECOND FORM MOVES\----------- | |
96 | T = Laugh | |
97 | G = Fire ball | |
98 | H = Huge fire ball | |
99 | J = Dragon's breath(The longer you hold, the more insaner it gets.) | |
100 | K = Beam(The longer you hold down the key, the stronger it gets/longer it lasts.) | |
101 | ---------]] | |
102 | ||
103 | --"Now you see me 2" is a good movie, which is why i've made this.-- | |
104 | --IF YOU'RE USING THIS IN A SB, BE SURE TO ALWAYS TYPE G/NL AFTER USING THIS SCRIPT!, IF YOU DON'T, IT'LL MESS UP!-- | |
105 | --DON'T YOU DARE REMOVE SB'S ROBLOX!!!-- | |
106 | --Do you hear those heavy footsteps? Hmmmm, what could it be?-- | |
107 | --Don't you guys just hate it when people come in sb just to be "overpowered"? Pisses me off.-- | |
108 | --If your character gets bugged, such as missing limbs, you can press . to fix yourself!-- | |
109 | ||
110 | ||
111 | --Look if this was logged cause I used it on VSB I'm sorry Supr, I know you won't be able to trust me again. | |
112 | --Creterisk | |
113 | ||
114 | wait(1/60) | |
115 | ||
116 | walking = false | |
117 | jumping = false | |
118 | allowgrassy = false | |
119 | zxc = false | |
120 | matte = nil | |
121 | colori = nil | |
122 | bigball = false | |
123 | attacking = false | |
124 | laughing = false | |
125 | running = false | |
126 | downpress = false | |
127 | taim = nil | |
128 | change = 0 | |
129 | ws = 10 | |
130 | appi = false | |
131 | tauntdebounce = false | |
132 | position = nil | |
133 | staybooming = false | |
134 | MseGuide = true | |
135 | levitate = false | |
136 | firsttime5 = false | |
137 | notallowedtransform = false | |
138 | settime = 0 | |
139 | firsttime2 = false | |
140 | sine = 0 | |
141 | t = 0 | |
142 | combo1 = true | |
143 | dgs = 75 | |
144 | combo2 = false | |
145 | firsttime3 = false | |
146 | combo3 = false | |
147 | local bl = {907530553,907527750,907527912} | |
148 | colortable = {"Really black","Really red"} | |
149 | colors = #colortable | |
150 | blz = #bl | |
151 | local aces = {1880203893,1881287656,1881287420,1881288034} | |
152 | ace = #aces | |
153 | local laughs = {2011349649,2011349983,2011351501,2011352223,2011355991,2011356475} | |
154 | laugh = #laughs | |
155 | RunSrv = game:GetService("RunService") | |
156 | RenderStepped = game:GetService("RunService").RenderStepped | |
157 | removeuseless = game:GetService("Debris") | |
158 | damageall={} | |
159 | Repeater={} | |
160 | Repeater2={} | |
161 | magictable={} | |
162 | nonmeshRepeater={} | |
163 | nonmeshRepeater2={} | |
164 | dmgii={} | |
165 | DamageAll2={} | |
166 | SlowlyFade={} | |
167 | th1={} | |
168 | lolzor={} | |
169 | lolzor2={} | |
170 | th2={} | |
171 | keyYsize={} | |
172 | blocktrail={} | |
173 | keyYtransparency={} | |
174 | th3={} | |
175 | laughingtable={} | |
176 | Extreme={} | |
177 | ExtremeM={} | |
178 | ExtremeM2={} | |
179 | m3={} | |
180 | th4={} | |
181 | th5={} | |
182 | UpMover={} | |
183 | openshocktable={} | |
184 | LessSize={} | |
185 | ForwardMover={} | |
186 | FadeIn={} | |
187 | signtransparency={} | |
188 | signmover={} | |
189 | signrotator={} | |
190 | ||
191 | screenGui = Instance.new("ScreenGui") | |
192 | screenGui.Parent = script.Parent | |
193 | ||
194 | FireBall = Instance.new("Sound",LeftArm) | |
195 | FireBall.SoundId = "rbxassetid://842332424" | |
196 | FireBall.Volume = 5 | |
197 | FireBall.Pitch = 2.5 | |
198 | ||
199 | BigFireBall = Instance.new("Sound",LeftArm) | |
200 | BigFireBall.SoundId = "rbxassetid://842332424" | |
201 | BigFireBall.Volume = 8 | |
202 | BigFireBall.Pitch = 1.5 | |
203 | ||
204 | local HEADLERP = Instance.new("ManualWeld") | |
205 | HEADLERP.Parent = Head | |
206 | HEADLERP.Part0 = Head | |
207 | HEADLERP.Part1 = Head | |
208 | HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
209 | ||
210 | local TORSOLERP = Instance.new("ManualWeld") | |
211 | TORSOLERP.Parent = Root | |
212 | TORSOLERP.Part0 = Torso | |
213 | TORSOLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
214 | ||
215 | local ROOTLERP = Instance.new("ManualWeld") | |
216 | ROOTLERP.Parent = Root | |
217 | ROOTLERP.Part0 = Root | |
218 | ROOTLERP.Part1 = Torso | |
219 | ROOTLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
220 | ||
221 | local RIGHTARMLERP = Instance.new("ManualWeld") | |
222 | RIGHTARMLERP.Parent = RightArm | |
223 | RIGHTARMLERP.Part0 = RightArm | |
224 | RIGHTARMLERP.Part1 = Torso | |
225 | RIGHTARMLERP.C0 = CFrame.new(-1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
226 | ||
227 | local LEFTARMLERP = Instance.new("ManualWeld") | |
228 | LEFTARMLERP.Parent = LeftArm | |
229 | LEFTARMLERP.Part0 = LeftArm | |
230 | LEFTARMLERP.Part1 = Torso | |
231 | LEFTARMLERP.C0 = CFrame.new(1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
232 | ||
233 | local RIGHTLEGLERP = Instance.new("ManualWeld") | |
234 | RIGHTLEGLERP.Parent = RightLeg | |
235 | RIGHTLEGLERP.Part0 = RightLeg | |
236 | RIGHTLEGLERP.Part1 = Torso | |
237 | RIGHTLEGLERP.C0 = CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
238 | ||
239 | local LEFTLEGLERP = Instance.new("ManualWeld") | |
240 | LEFTLEGLERP.Parent = LeftLeg | |
241 | LEFTLEGLERP.Part0 = LeftLeg | |
242 | LEFTLEGLERP.Part1 = Torso | |
243 | LEFTLEGLERP.C0 = CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
244 | ||
245 | local function weldBetween(a, b) | |
246 | local weld = Instance.new("ManualWeld", a) | |
247 | weld.Part0 = a | |
248 | weld.Part1 = b | |
249 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
250 | return weld | |
251 | end | |
252 | ||
253 | function makeblockytrail() | |
254 | coroutine.wrap(function() | |
255 | while true do | |
256 | for i,v in pairs(blocktrail) do | |
257 | smke = Instance.new("Part",v) | |
258 | smke.CFrame = v.CFrame * CFrame.Angles(math.random(-180,180),math.random(-180,180),math.random(-180,180)) | |
259 | smke.Material = "Neon" | |
260 | smke.Anchored = true | |
261 | smke.CanCollide = false | |
262 | removeuseless:AddItem(smke,2) | |
263 | end | |
264 | swait() | |
265 | end | |
266 | end)() | |
267 | end | |
268 | ||
269 | local function ci(x, c, y, n) | |
270 | so = Instance.new("Sound", x) | |
271 | so.SoundId = c | |
272 | so.Volume = y | |
273 | so.Looped = n | |
274 | end | |
275 | ||
276 | function ghost() | |
277 | fakeeyo2 = Instance.new("Part",Head) | |
278 | fakeeyo2.BrickColor = BrickColor.new("White") | |
279 | fakeeyo2.Material = "Neon" | |
280 | fakeeyo2.Shape = "Ball" | |
281 | fakeeyo2.Anchored = true | |
282 | fakeeyo2.CFrame = eyo2.CFrame | |
283 | fakeeyo2.CanCollide = false | |
284 | fakeeyo2.Size = Vector3.new(0.33, 0.33, 0.33) | |
285 | table.insert(ghosttable,fakeeyo2) | |
286 | removeuseless:AddItem(fakeeyo2,3) | |
287 | ||
288 | fakeeyo1 = Instance.new("Part",Head) | |
289 | fakeeyo1.BrickColor = BrickColor.new("White") | |
290 | fakeeyo1.Material = "Neon" | |
291 | fakeeyo1.Shape = "Ball" | |
292 | fakeeyo1.CanCollide = false | |
293 | fakeeyo1.Anchored = true | |
294 | fakeeyo1.CFrame = eyo1.CFrame | |
295 | fakeeyo1.Size = Vector3.new(0.33, 0.33, 0.33) | |
296 | table.insert(ghosttable,fakeeyo1) | |
297 | removeuseless:AddItem(fakeeyo1,3) | |
298 | ||
299 | fakemask = Instance.new("Part",Character) | |
300 | fakemask.Size = Vector3.new(1,1,1) | |
301 | fakemask.CFrame = mask.CFrame | |
302 | fakemask.Material = "Neon" | |
303 | fakemask.CanCollide = false | |
304 | fakemask.Anchored = true | |
305 | fakemask.BrickColor = BrickColor.new("White") | |
306 | fakemask.Transparency = .5 | |
307 | mfMask = Instance.new("SpecialMesh", fakemask) | |
308 | mfMask.MeshType = "FileMesh" | |
309 | mfMask.Scale = Vector3.new(0.13, 0.13, 0.1) | |
310 | mfMask.MeshId = 'http://www.roblox.com/asset/?id=5158270' | |
311 | table.insert(ghosttable,fakemask) | |
312 | removeuseless:AddItem(fakemask,3) | |
313 | ||
314 | ||
315 | fakejester = Instance.new("Part",Character) | |
316 | fakejester.Size = Vector3.new(2,2,2) | |
317 | fakejester.CFrame = jester.CFrame | |
318 | fakejester.CanCollide = false | |
319 | fakejester.Transparency = .5 | |
320 | fakejester.Anchored = true | |
321 | fakejester.BrickColor = BrickColor.new("White") | |
322 | fakejesterm = Instance.new("SpecialMesh", fakejester) | |
323 | fakejesterm.MeshType = "FileMesh" | |
324 | fakejesterm.Scale = Vector3.new(1.1, 1.1, 1.1) | |
325 | fakejesterm.MeshId = 'rbxassetid://1241662062' | |
326 | table.insert(ghosttable,fakejester) | |
327 | removeuseless:AddItem(fakejester,3) | |
328 | ||
329 | ||
330 | fakehead = Instance.new("Part",Character) | |
331 | fakehead.Size = Vector3.new(1.01,1.01,1.01) | |
332 | fakehead.Anchored = true | |
333 | fakehead.CanCollide = false | |
334 | fakehead.Transparency = .5 | |
335 | fakehead.BrickColor = BrickColor.new("White") | |
336 | fakehead.Material = "Neon" | |
337 | fakehead.CFrame = Head.CFrame | |
338 | fakeheadmesh = Instance.new("SpecialMesh",fakehead) | |
339 | fakeheadmesh.MeshType = "Head" | |
340 | fakeheadmesh.Scale = Vector3.new(1.255,1.255,1.255) | |
341 | table.insert(ghosttable,fakehead) | |
342 | removeuseless:AddItem(fakehead,3) | |
343 | ||
344 | ||
345 | fakelarm = Instance.new("Part",Character) | |
346 | fakelarm.CFrame = LeftArm.CFrame | |
347 | fakelarm.Size = Vector3.new(1,2,1) | |
348 | fakelarm.CanCollide = false | |
349 | fakelarm.Transparency = .5 | |
350 | fakelarm.Material = "Neon" | |
351 | fakelarm.Anchored = true | |
352 | table.insert(ghosttable,fakelarm) | |
353 | removeuseless:AddItem(fakelarm,3) | |
354 | ||
355 | ||
356 | fakerarm = Instance.new("Part",Character) | |
357 | fakerarm.CFrame = RightArm.CFrame | |
358 | fakerarm.Size = Vector3.new(1,2,1) | |
359 | fakerarm.Transparency = .5 | |
360 | fakerarm.CanCollide = false | |
361 | fakerarm.Material = "Neon" | |
362 | fakerarm.Anchored = true | |
363 | table.insert(ghosttable,fakerarm) | |
364 | removeuseless:AddItem(fakerarm,3) | |
365 | ||
366 | ||
367 | fakelleg = Instance.new("Part",Character) | |
368 | fakelleg.CFrame = LeftLeg.CFrame | |
369 | fakelleg.Size = Vector3.new(1,2,1) | |
370 | fakelleg.Transparency = .5 | |
371 | fakelleg.CanCollide = false | |
372 | fakelleg.Material = "Neon" | |
373 | fakelleg.Anchored = true | |
374 | table.insert(ghosttable,fakelleg) | |
375 | removeuseless:AddItem(fakelleg,3) | |
376 | ||
377 | ||
378 | fakerleg = Instance.new("Part",Character) | |
379 | fakerleg.CFrame = RightLeg.CFrame | |
380 | fakerleg.Size = Vector3.new(1,2,1) | |
381 | fakerleg.Transparency = .5 | |
382 | fakerleg.CanCollide = false | |
383 | fakerleg.Material = "Neon" | |
384 | fakerleg.Anchored = true | |
385 | table.insert(ghosttable,fakerleg) | |
386 | removeuseless:AddItem(fakerleg,3) | |
387 | - | hum.WalkSpeed = ws |
387 | + | |
388 | ||
389 | fakeTorso = Instance.new("Part",Character) | |
390 | fakeTorso.CFrame = Torso.CFrame | |
391 | fakeTorso.Size = Vector3.new(2,2,1) | |
392 | fakeTorso.Transparency = .5 | |
393 | fakeTorso.CanCollide = false | |
394 | fakeTorso.Material = "Neon" | |
395 | fakeTorso.Anchored = true | |
396 | table.insert(ghosttable,fakeTorso) | |
397 | removeuseless:AddItem(fakeTorso,3) | |
398 | end | |
399 | ||
400 | ghosttable={} | |
401 | coroutine.wrap(function() | |
402 | while true do | |
403 | for i,v in pairs(ghosttable) do | |
404 | v.Transparency = v.Transparency + 0.025 | |
405 | end | |
406 | wait() | |
407 | end | |
408 | end)() | |
409 | ||
410 | function MAKETRAIL(PARENT,POSITION1,POSITION2,LIFETIME,COLOR) | |
411 | A = Instance.new("Attachment", PARENT) | |
412 | A.Position = POSITION1 | |
413 | A.Name = "A" | |
414 | B = Instance.new("Attachment", PARENT) | |
415 | B.Position = POSITION2 | |
416 | B.Name = "B" | |
417 | tr1 = Instance.new("Trail", PARENT) | |
418 | tr1.Attachment0 = A | |
419 | tr1.Attachment1 = B | |
420 | tr1.Enabled = true | |
421 | tr1.Lifetime = LIFETIME | |
422 | tr1.TextureMode = "Static" | |
423 | tr1.LightInfluence = 0 | |
424 | tr1.Color = COLOR | |
425 | tr1.Transparency = NumberSequence.new(0, 1) | |
426 | end | |
427 | ||
428 | function clean() | |
429 | damageall={} | |
430 | Repeater={} | |
431 | Repeater2={} | |
432 | nonmeshRepeater={} | |
433 | nonmeshRepeater2={} | |
434 | dmgii={} | |
435 | DamageAll2={} | |
436 | SlowlyFade={} | |
437 | th1={} | |
438 | th2={} | |
439 | th3={} | |
440 | Extreme={} | |
441 | ExtremeM={} | |
442 | ExtremeM2={} | |
443 | m3={} | |
444 | th4={} | |
445 | th5={} | |
446 | UpMover={} | |
447 | openshocktable={} | |
448 | LessSize={} | |
449 | ForwardMover={} | |
450 | FadeIn={} | |
451 | signtransparency={} | |
452 | signmover={} | |
453 | signrotator={} | |
454 | end | |
455 | ||
456 | coroutine.wrap(function() | |
457 | while wait() do | |
458 | LeftArm.BrickColor = BrickColor.new("Really black") | |
459 | RightArm.BrickColor = BrickColor.new("Really black") | |
460 | Head.BrickColor = BrickColor.new("Really black") | |
461 | end | |
462 | end)() | |
463 | godmode = coroutine.wrap(function() | |
464 | for i,v in pairs(Character:GetChildren()) do | |
465 | if v:IsA("BasePart") and v ~= Root then | |
466 | v.Anchored = false | |
467 | end | |
468 | end | |
469 | while true do | |
470 | hum.MaxHealth = math.huge | |
471 | wait(0.0000001) | |
472 | hum.Health = math.huge | |
473 | wait() | |
474 | end | |
475 | end) | |
476 | godmode() | |
477 | ff = Instance.new("ForceField", Character) | |
478 | ff.Visible = false | |
479 | ||
480 | coroutine.wrap(function() | |
481 | for i,v in pairs(Character:GetChildren()) do | |
482 | if v.Name == "Animate" then v:Remove() | |
483 | end | |
484 | end | |
485 | end)() | |
486 | ||
487 | function damagealll(Radius,Position) | |
488 | local Returning = {} | |
489 | for _,v in pairs(workspace:GetChildren()) do | |
490 | if v~=Character and v:FindFirstChildOfClass('Humanoid') and v:FindFirstChild('Torso') or v:FindFirstChild('UpperTorso') then | |
491 | if v:FindFirstChild("Torso") then | |
492 | local Mag = (v.Torso.Position - Position).magnitude | |
493 | if Mag < Radius then | |
494 | table.insert(Returning,v) | |
495 | end | |
496 | elseif v:FindFirstChild("UpperTorso") then | |
497 | local Mag = (v.UpperTorso.Position - Position).magnitude | |
498 | if Mag < Radius then | |
499 | table.insert(Returning,v) | |
500 | end | |
501 | end | |
502 | end | |
503 | end | |
504 | return Returning | |
505 | end | |
506 | ||
507 | ArtificialHB = Instance.new("BindableEvent", script) | |
508 | ArtificialHB.Name = "Heartbeat" | |
509 | script:WaitForChild("Heartbeat") | |
510 | ||
511 | frame = 1 / 60 | |
512 | tf = 0 | |
513 | allowframeloss = false | |
514 | tossremainder = false | |
515 | ||
516 | ||
517 | lastframe = tick() | |
518 | script.Heartbeat:Fire() | |
519 | ||
520 | ||
521 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
522 | tf = tf + s | |
523 | if tf >= frame then | |
524 | if allowframeloss then | |
525 | script.Heartbeat:Fire() | |
526 | lastframe = tick() | |
527 | else | |
528 | for i = 1, math.floor(tf / frame) do | |
529 | script.Heartbeat:Fire() | |
530 | end | |
531 | lastframe = tick() | |
532 | end | |
533 | if tossremainder then | |
534 | tf = 0 | |
535 | else | |
536 | tf = tf - frame * math.floor(tf / frame) | |
537 | end | |
538 | end | |
539 | end) | |
540 | ||
541 | function swait(num) | |
542 | if num == 0 or num == nil then | |
543 | game:service("RunService").Stepped:wait(0) | |
544 | else | |
545 | for i = 0, num do | |
546 | game:service("RunService").Stepped:wait(0) | |
547 | end | |
548 | end | |
549 | end | |
550 | ||
551 | doomtheme = Instance.new("Sound", Torso) | |
552 | doomtheme.Volume = 0 | |
553 | doomtheme.Name = "doomtheme" | |
554 | doomtheme.Looped = true | |
555 | doomtheme.SoundId = "rbxassetid://1843358057" | |
556 | doomtheme:Play() | |
557 | ||
558 | Torso.ChildRemoved:connect(function(removed) | |
559 | if removed.Name == "doomtheme" then | |
560 | if levitate then | |
561 | doomtheme = Instance.new("Sound", Torso) | |
562 | doomtheme.Volume = 3 | |
563 | doomtheme.Name = "doomtheme" | |
564 | doomtheme.Looped = true | |
565 | doomtheme.SoundId = "rbxassetid://1382488262" | |
566 | doomtheme:Play() | |
567 | else | |
568 | doomtheme = Instance.new("Sound", Torso) | |
569 | doomtheme.Volume = 3 | |
570 | doomtheme.Name = "doomtheme" | |
571 | doomtheme.Looped = true | |
572 | doomtheme.SoundId = "rbxassetid://1843358057" | |
573 | doomtheme:Play() | |
574 | doomtheme.TimePosition = 20.7 | |
575 | end | |
576 | end | |
577 | end) | |
578 | ||
579 | for _,n in pairs(Character:GetChildren()) do | |
580 | if n:IsA("Accessory") then n:Remove() end | |
581 | end | |
582 | for _,x in pairs(Character:GetChildren()) do | |
583 | if x:IsA("Decal") then x:Remove() end | |
584 | end | |
585 | ||
586 | glow = Instance.new("Part",Head) | |
587 | glow.Size = Vector3.new(.488,.3,.1) | |
588 | glow.CanCollide = false | |
589 | glow.Material = "Neon" | |
590 | glow.Transparency = 1 | |
591 | glow.BrickColor = BrickColor.new("Really white") | |
592 | glowweld = weldBetween(glow,Head) | |
593 | glowweld.C0 = CFrame.new(0,.2,.565) | |
594 | ||
595 | leftlocation = Instance.new("Part",LeftArm) | |
596 | leftlocation.Size = Vector3.new(1,1,1) | |
597 | leftlocation.Transparency = 1 | |
598 | leftlocationweld = weldBetween(leftlocation,LeftArm) | |
599 | leftlocationweld.C0 = CFrame.new(0,1.2,0) | |
600 | rightlocation = Instance.new("Part",RightArm) | |
601 | rightlocation.Size = Vector3.new(1,1,1) | |
602 | rightlocation.Transparency = 1 | |
603 | rightlocationweld = weldBetween(rightlocation,RightArm) | |
604 | rightlocationweld.C0 = CFrame.new(0,1.2,0) | |
605 | ||
606 | shirt = Instance.new("Shirt", Character) | |
607 | shirt.Name = "Shirt" | |
608 | pants = Instance.new("Pants", Character) | |
609 | pants.Name = "Pants" | |
610 | Character.Shirt.ShirtTemplate = "rbxassetid://676428254"----lol | |
611 | Character.Pants.PantsTemplate = "rbxassetid://676428351" | |
612 | ||
613 | fakehed = Instance.new("Part",Character) | |
614 | fakehed.Size = Vector3.new(1.01,1.01,1.01) | |
615 | fakehed.Anchored = false | |
616 | fakehed.CanCollide = false | |
617 | fakehed.Transparency = 0 | |
618 | fakehed.BrickColor = BrickColor.new("Really black") | |
619 | fakehed.Material = "Neon" | |
620 | fakehed.CFrame = Head.CFrame | |
621 | fakehedweld = weldBetween(fakehed,Head) | |
622 | fakehedmesh = Instance.new("SpecialMesh",fakehed) | |
623 | fakehedmesh.MeshType = "Head" | |
624 | fakehedmesh.Scale = Vector3.new(1.255,1.255,1.255) | |
625 | ||
626 | jester = Instance.new("Part",Character) | |
627 | jester.Size = Vector3.new(2,2,2) | |
628 | jester.CFrame = Head.CFrame | |
629 | jester.CanCollide = false | |
630 | jesterWeld = Instance.new("Weld",jester) | |
631 | jesterWeld.Part0 = jester | |
632 | jesterWeld.Part1 = Head | |
633 | jesterWeld.C0 = jester.CFrame:inverse() * Head.CFrame * CFrame.new(0,-.3,0) * CFrame.Angles(math.rad(0),math.rad(90),0) | |
634 | mjester = Instance.new("SpecialMesh", jester) | |
635 | mjester.MeshType = "FileMesh" | |
636 | mjester.Scale = Vector3.new(1.1, 1.1, 1.1) | |
637 | mjester.MeshId,mjester.TextureId = 'rbxassetid://1241662062','rbxassetid://1241662395' | |
638 | ||
639 | mask = Instance.new("Part",Character) | |
640 | mask.Size = Vector3.new(1,1,1) | |
641 | mask.CFrame = Head.CFrame | |
642 | mask.CanCollide = false | |
643 | maskweld = weldBetween(mask,Head) | |
644 | maskweld.C0 = CFrame.new(0,-.555,0) * CFrame.Angles(math.rad(90),0,0) | |
645 | mMask = Instance.new("SpecialMesh", mask) | |
646 | mMask.MeshType = "FileMesh" | |
647 | mMask.Scale = Vector3.new(0.13, 0.13, 0.1) | |
648 | mMask.MeshId,mMask.TextureId = 'http://www.roblox.com/asset/?id=5158270','http://www.roblox.com/asset/?id=9543585' | |
649 | ||
650 | eyo1 = Instance.new("Part",Head) | |
651 | eyo1.BrickColor = BrickColor.new("White") | |
652 | eyo1.Material = "Neon" | |
653 | eyo1.Shape = "Ball" | |
654 | eyo1.Name = "eyo1" | |
655 | eyo1.CanCollide = false | |
656 | eyo1.Size = Vector3.new(0.33, 0.33, 0.33) | |
657 | eyo1weld = weldBetween(eyo1,Head) | |
658 | eyo1weld.C0 = CFrame.new(.215,-.05,.52) | |
659 | ||
660 | light = Instance.new("PointLight", eyo1) | |
661 | light.Color = Color3.new(1,1,1) | |
662 | light.Range = 3 | |
663 | light.Brightness = 4 | |
664 | light.Enabled = true | |
665 | ||
666 | eyo2 = Instance.new("Part",Head) | |
667 | eyo2.BrickColor = BrickColor.new("White") | |
668 | eyo2.Material = "Neon" | |
669 | eyo2.Shape = "Ball" | |
670 | eyo2.Name = "eyo2" | |
671 | eyo2.CanCollide = false | |
672 | eyo2.Size = Vector3.new(0.33, 0.33, 0.33) | |
673 | eyo2weld = weldBetween(eyo2,Head) | |
674 | eyo2weld.C0 = CFrame.new(-.215,-.05,.52) | |
675 | ||
676 | light2 = Instance.new("PointLight", eyo2) | |
677 | light2.Color = Color3.new(1,1,1) | |
678 | light2.Range = 3 | |
679 | light2.Brightness = 4 | |
680 | light2.Enabled = true | |
681 | ||
682 | function SOUND(PARENT,ID,VOL,LOOP,REMOVE) | |
683 | so = Instance.new("Sound") | |
684 | so.Parent = PARENT | |
685 | so.SoundId = "rbxassetid://"..ID | |
686 | so.Volume = VOL | |
687 | so.Looped = LOOP | |
688 | so:Play() | |
689 | removeuseless:AddItem(so,REMOVE) | |
690 | end | |
691 | ||
692 | ||
693 | mouse.KeyDown:connect(function(Press) | |
694 | Press=Press:lower() | |
695 | if Press=='r' then | |
696 | if levitate then return end | |
697 | if debounce then return end | |
698 | debounce = true | |
699 | attacking = true | |
700 | appi = true | |
701 | ws = 0 | |
702 | coroutine.wrap(function() | |
703 | while appi do | |
704 | wait() | |
705 | if Root.Velocity.Magnitude < 2 and attacking == true then | |
706 | position = "Idle2" | |
707 | end | |
708 | end | |
709 | end)() | |
710 | coroutine.wrap(function() | |
711 | while appi do | |
712 | wait() | |
713 | settime = 0.05 | |
714 | sine = sine + change | |
715 | if position == "Idle2" and attacking == true and appi == true then | |
716 | change = .4 | |
717 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
718 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
719 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + 1 * math.sin(sine/12)),math.rad(-40 + 2 * math.sin(sine/12))), 0.3) | |
720 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3) | |
721 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),.3) | |
722 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3) | |
723 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.3) | |
724 | end | |
725 | end | |
726 | end)() | |
727 | for i = 1, 20 do | |
728 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),.3) | |
729 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3) | |
730 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.3) | |
731 | RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(0,1.5,-.1),.5) | |
732 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(180),math.rad(10),math.rad(10)),.3) | |
733 | swait() | |
734 | end | |
735 | SOUND(RightArm,342337569,6,false,1) | |
736 | coroutine.wrap(function() | |
737 | for i = 1, 9 do | |
738 | RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(.1,1.6,-.1),.5) | |
739 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(180),math.rad(10),math.rad(15)),.3) | |
740 | swait() | |
741 | end | |
742 | for i = 1, 9 do | |
743 | RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(0,1.5,-.1),.5) | |
744 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(180),math.rad(10),math.rad(10)),.3) | |
745 | swait() | |
746 | end | |
747 | end)() | |
748 | shockwave = Instance.new("Part",Torso) | |
749 | shockwave.Shape = "Ball" | |
750 | shockwave.Size = Vector3.new(1,1,1) | |
751 | shockwave.BrickColor = BrickColor.new("White") | |
752 | shockwave.Material = "Neon" | |
753 | shockwave.CFrame = Torso.CFrame | |
754 | shockwave.CanCollide = false | |
755 | shockwave.Anchored = true | |
756 | coroutine.wrap(function() | |
757 | for i = 1, 20 do | |
758 | shockwave.Size = shockwave.Size + Vector3.new(1.8,1.8,1.8) | |
759 | shockwave.Transparency = shockwave.Transparency + 0.05 | |
760 | wait() | |
761 | end | |
762 | end)() | |
763 | SOUND(Torso,1072606965,0,false,10) | |
764 | coroutine.wrap(function() | |
765 | for i = 1, 10 do | |
766 | so.Volume = so.Volume + 0.3 | |
767 | wait() | |
768 | end | |
769 | end)() | |
770 | for i = 1, 35 do | |
771 | local Hit = damagealll(22,Torso.Position) | |
772 | for _,v in pairs(Hit) do | |
773 | v:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(17,35)) | |
774 | vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")) | |
775 | vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999) | |
776 | torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso") | |
777 | vel.velocity = CFrame.new(Torso.Position,torso.Position).lookVector*20 | |
778 | removeuseless:AddItem(vel,.1) | |
779 | end | |
780 | wave = Instance.new("Part", Torso) | |
781 | wave.Size = Vector3.new(1, 1, 1) | |
782 | wave.Transparency = 0 | |
783 | wave.BrickColor = BrickColor.new("White") | |
784 | wave.Anchored = true | |
785 | wave.CanCollide = false | |
786 | wave.CFrame = Root.CFrame * CFrame.new(0, -2.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
787 | wavemesh = Instance.new("SpecialMesh", wave) | |
788 | wavemesh.MeshId = "rbxassetid://20329976" | |
789 | wavemesh.Scale = Vector3.new(1, 1, 1) | |
790 | table.insert(th2,wave) | |
791 | table.insert(SlowlyFade,wave) | |
792 | table.insert(th5,wavemesh) | |
793 | removeuseless:AddItem(wave,2) | |
794 | CardStorm = Instance.new("Part",Torso) | |
795 | CardStorm.Size = Vector3.new(.1,.1,.1) | |
796 | CardStorm.CFrame = Root.CFrame * CFrame.new(0,3.2,0) | |
797 | CardStorm.Anchored = true | |
798 | CardStormMesh = Instance.new("SpecialMesh", CardStorm) | |
799 | CardStormMesh.Scale = Vector3.new(1,1,1) | |
800 | CardStormMesh.MeshId = "rbxassetid://6512150" | |
801 | CardStormMesh.TextureId = "rbxassetid://55364685" | |
802 | table.insert(SlowlyFade,CardStorm) | |
803 | table.insert(m3,CardStormMesh) | |
804 | table.insert(th1,CardStorm) | |
805 | removeuseless:AddItem(CardStorm,3) | |
806 | wait(.1) | |
807 | end | |
808 | coroutine.wrap(function() | |
809 | for i = 1, 10 do | |
810 | so.Volume = so.Volume - 0.3 | |
811 | wait() | |
812 | end | |
813 | end)() | |
814 | wait(1) | |
815 | ws = 10 | |
816 | clean() | |
817 | attacking = false | |
818 | debounce = false | |
819 | appi = false | |
820 | end | |
821 | end) | |
822 | ||
823 | mouse.KeyDown:connect(function(Press) | |
824 | Press=Press:lower() | |
825 | if Press=='e' then | |
826 | if levitate then return end | |
827 | if debounce then return end | |
828 | attacking = true | |
829 | debounce = true | |
830 | damagedebounce = false | |
831 | clickdisallowance = true | |
832 | clickdebounce = false | |
833 | notallowed = true | |
834 | appi = true | |
835 | ws = 0 | |
836 | coroutine.wrap(function() | |
837 | while appi do | |
838 | wait() | |
839 | if Root.Velocity.y > 1 and attacking == true then | |
840 | position = "Jump2" | |
841 | elseif Root.Velocity.y < -1 and attacking == true then | |
842 | position = "Falling2" | |
843 | elseif Root.Velocity.Magnitude < 2 and attacking == true then | |
844 | position = "Idle2" | |
845 | elseif Root.Velocity.Magnitude > 2 and attacking == true then | |
846 | position = "Walking2" | |
847 | end | |
848 | end | |
849 | end)() | |
850 | coroutine.wrap(function() | |
851 | while appi do | |
852 | wait() | |
853 | settime = 0.05 | |
854 | sine = sine + change | |
855 | if position == "Jump2" and attacking == true and appi == true then | |
856 | change = 1 | |
857 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
858 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
859 | RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4) | |
860 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
861 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.4,.1,-.2) * CFrame.Angles(math.rad(20),math.rad(3),math.rad(4)), 0.4) | |
862 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.4) | |
863 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.4) | |
864 | elseif position == "Falling2" and attacking == true and appi == true then | |
865 | change = 1 | |
866 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
867 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
868 | RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4) | |
869 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.2) | |
870 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(14), math.rad(-4), math.rad(0)), 0.2) | |
871 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.6, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-20)), 0.2) | |
872 | elseif position == "Idle2" and attacking == true and appi == true then | |
873 | change = .4 | |
874 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
875 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
876 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - 1 * math.sin(sine/12)),math.rad(40 - 2 * math.sin(sine/12))), 0.3) | |
877 | RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(-.2,1.2,-.3),.3) | |
878 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),.3) | |
879 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3) | |
880 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.3) | |
881 | elseif position == "Walking2" and attacking == true and appi == true then | |
882 | change = .8 | |
883 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
884 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
885 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - 1 * math.sin(sine/12)),math.rad(40 - 2 * math.sin(sine/12))), 0.3) | |
886 | RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(-.2,1.2,-.3),.3) | |
887 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,math.rad(0) + Root.RotVelocity.Y/30,math.sin(25*math.sin(sine/8))),.3) | |
888 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.92 - 0.35 * math.sin(sine/8)/2.8, 0.2 - math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) + -math.sin(sine/8)/2.3, math.rad(0)*math.sin(sine/1), math.rad(0) + RightLeg.RotVelocity.Y / 30, math.sin(25 * math.sin(sine/8))), 0.3) | |
889 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.92 + 0.35 * math.sin(sine/8)/2.8, 0.2 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) - -math.sin(sine/8)/2.3, math.rad(0)*math.sin(sine/1), math.rad(0) + LeftLeg.RotVelocity.Y / 30, math.sin(25 * math.sin(sine/8))), 0.3) | |
890 | end | |
891 | end | |
892 | end)() | |
893 | coroutine.wrap(function() | |
894 | for i = 1, 40 do | |
895 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0),.5) | |
896 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.2,1.5,0) * CFrame.Angles(math.rad(180 - 7 * math.sin(sine/6)),math.rad(7 * math.sin(sine/6)),math.rad(7*math.sin(sine/6))), 0.5) | |
897 | swait() | |
898 | end | |
899 | end)() | |
900 | haloh = Instance.new("Part", Torso) | |
901 | haloh.Size = Vector3.new(1,1,1) | |
902 | haloh.Anchored = false | |
903 | haloh.Transparency = 1 | |
904 | haloh.CanCollide = false | |
905 | halohweld = weldBetween(haloh,Torso) | |
906 | halohweld.C0 = CFrame.new(0,0,0) | |
907 | n = 0 | |
908 | x = 0 | |
909 | tab={} | |
910 | tab2={} | |
911 | SOUND(Torso,1882057730,6,false,2) | |
912 | for i = 1, 20 do | |
913 | n = n + 20 | |
914 | x = x + 5 | |
915 | halo = Instance.new("Part", Torso) | |
916 | halo.Size = Vector3.new(0.71, 0.07, 0.99) | |
917 | halo.Transparency = 1 | |
918 | halo.CanCollide = false | |
919 | halo.Material = "Neon" | |
920 | halo.BrickColor = BrickColor.new("White") | |
921 | halow = weldBetween(halo,haloh) | |
922 | halow.C0 = CFrame.new(-4,0,0) * CFrame.Angles(math.rad(90),math.rad(n),math.rad(0)) | |
923 | table.insert(FadeIn,halo) | |
924 | table.insert(tab,halow) | |
925 | table.insert(tab2,halo) | |
926 | wait() | |
927 | end | |
928 | ws = 10 | |
929 | clickdisallowance = false | |
930 | coroutine.wrap(function() | |
931 | g1 = Instance.new("BodyGyro", Root) | |
932 | g1.D = 175 | |
933 | g1.P = 20000 | |
934 | g1.MaxTorque = Vector3.new(0,9000,0) | |
935 | while notallowed do | |
936 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
937 | g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.2) | |
938 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, 1.35, 0.4) * CFrame.Angles(math.rad(-90 - 2 * math.sin(sine/12)), math.rad(3), math.rad(4)), 0.3) | |
939 | swait() | |
940 | end | |
941 | end)() | |
942 | coroutine.wrap(function() | |
943 | mouse.Button1Down:connect(function() | |
944 | if clickdisallowance then return end | |
945 | if clickdebounce then return end | |
946 | wait(.2) | |
947 | clickdebounce = true | |
948 | notallowed = false | |
949 | end) | |
950 | end)() | |
951 | while notallowed do | |
952 | for i,v in pairs(tab) do | |
953 | v.C0 = v.C0 * CFrame.Angles(math.rad(0),math.rad(0 + 1.2),math.rad(0)) | |
954 | end | |
955 | swait() | |
956 | end | |
957 | appi = false | |
958 | ws = 0 | |
959 | for i = 1, 15 do | |
960 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3) | |
961 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.3) | |
962 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.3) | |
963 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, 1.35, 0.4) * CFrame.Angles(math.rad(-50 - 2 * math.sin(sine/12)), math.rad(12), math.rad(9)), 0.3) | |
964 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(-.65, .6, 1) * CFrame.Angles(0,0,0),.3) | |
965 | swait() | |
966 | end | |
967 | for i,v in pairs(tab) do | |
968 | v:Remove() | |
969 | end | |
970 | for i,v in pairs(tab2) do | |
971 | removeuseless:AddItem(v,6) | |
972 | MAKETRAIL(v,Vector3.new(.1,0,0),Vector3.new(-.1,0,0),.8,ColorSequence.new(BrickColor.new("White").Color,BrickColor.new("Really black").Color)) | |
973 | BodyGyro=Instance.new('BodyGyro',v) | |
974 | BodyGyro.maxTorque=Vector3.new(math.huge,math.huge,math.huge) | |
975 | BodyGyro.P=2e4 | |
976 | removeuseless:AddItem(BodyGyro,.1) | |
977 | PB2 = Instance.new("BodyVelocity", v) | |
978 | PB2.MaxForce = Vector3.new(999999, 999999, 999999) | |
979 | v.CFrame = CFrame.new(v.Position,mouse.Hit.p) | |
980 | PB2.Velocity = v.CFrame.lookVector * 80 | |
981 | end | |
982 | SOUND(Torso,1499747506,3,false,1) | |
983 | for i,v in pairs(tab2) do | |
984 | v.Touched:connect(function(hit) | |
985 | if hit.Parent:IsA("Part") then | |
986 | elseif hit.Parent:IsA("SpecialMesh") then | |
987 | elseif hit.Parent.Name == game.Players.LocalPlayer.Name then | |
988 | elseif hit.Parent:findFirstChildOfClass("Humanoid") then | |
989 | if damagedebounce == true then return end | |
990 | damagedebounce = true | |
991 | Slachtoffer = hit.Parent:findFirstChildOfClass("Humanoid") | |
992 | tor = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") | |
993 | Slachtoffer:TakeDamage(math.random(17,35)) | |
994 | SOUND(tor,694703797,6,false,1) | |
995 | wait(.1) | |
996 | damagedebounce = false | |
997 | end | |
998 | end) | |
999 | end | |
1000 | for i = 1, 20 do | |
1001 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3) | |
1002 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.3) | |
1003 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0), math.rad(-25), math.rad(0)), 0.3) | |
1004 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3) | |
1005 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, 1.35, 0.4) * CFrame.Angles(math.rad(-90 - 2 * math.sin(sine/12)), math.rad(-15), math.rad(4)), 0.3) | |
1006 | swait() | |
1007 | end | |
1008 | clean() | |
1009 | g1:Remove() | |
1010 | haloh:Remove() | |
1011 | attacking = false | |
1012 | debounce = false | |
1013 | damagedebounce = false | |
1014 | clickdebounce = false | |
1015 | appi = false | |
1016 | ws = 10 | |
1017 | end | |
1018 | end) | |
1019 | ||
1020 | mouse.KeyDown:connect(function(Press) | |
1021 | Press=Press:lower() | |
1022 | if Press=='y' then | |
1023 | if levitate then return end | |
1024 | if debounce then return end | |
1025 | clickdisallowance = true | |
1026 | clickdebounce = false | |
1027 | debounce = true | |
1028 | attacking = true | |
1029 | appi = true | |
1030 | ws = 0 | |
1031 | coroutine.wrap(function() | |
1032 | while appi do | |
1033 | wait() | |
1034 | if Root.Velocity.y > 1 and attacking == true then | |
1035 | position = "Jump2" | |
1036 | elseif Root.Velocity.y < -1 and attacking == true then | |
1037 | position = "Falling2" | |
1038 | elseif Root.Velocity.Magnitude < 2 and attacking == true then | |
1039 | position = "Idle2" | |
1040 | elseif Root.Velocity.Magnitude > 2 and attacking == true then | |
1041 | position = "Walking2" | |
1042 | end | |
1043 | end | |
1044 | end)() | |
1045 | coroutine.wrap(function() | |
1046 | while appi do | |
1047 | wait() | |
1048 | settime = 0.05 | |
1049 | sine = sine + change | |
1050 | if position == "Jump2" and attacking == true and appi == true then | |
1051 | change = 1 | |
1052 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
1053 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
1054 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4) | |
1055 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
1056 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,.1,-.2) * CFrame.Angles(math.rad(20),math.rad(-3),math.rad(-4)), 0.4) | |
1057 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.4) | |
1058 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.4) | |
1059 | elseif position == "Falling2" and attacking == true and appi == true then | |
1060 | change = 1 | |
1061 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
1062 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
1063 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4) | |
1064 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.2) | |
1065 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(14), math.rad(-4), math.rad(0)), 0.2) | |
1066 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.6, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(20)), 0.2) | |
1067 | elseif position == "Idle2" and attacking == true and appi == true then | |
1068 | change = .4 | |
1069 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
1070 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
1071 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + 1 * math.sin(sine/12)),math.rad(-40 + 2 * math.sin(sine/12))), 0.3) | |
1072 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3) | |
1073 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),.3) | |
1074 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3) | |
1075 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.3) | |
1076 | elseif position == "Walking2" and attacking == true and appi == true then | |
1077 | change = .8 | |
1078 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
1079 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
1080 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + 1 * math.sin(sine/12)),math.rad(-40 + 2 * math.sin(sine/12))), 0.3) | |
1081 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3) | |
1082 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,math.rad(0) + Root.RotVelocity.Y/30,math.cos(25*math.cos(sine/8))),.3) | |
1083 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.92 - 0.35 * math.cos(sine/8)/2.8, 0.2 - math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) + -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0) + RightLeg.RotVelocity.Y / 30, math.cos(25 * math.cos(sine/8))), 0.3) | |
1084 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.92 + 0.35 * math.cos(sine/8)/2.8, 0.2 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) - -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0) + LeftLeg.RotVelocity.Y / 30, math.cos(25 * math.cos(sine/8))), 0.3) | |
1085 | end | |
1086 | end | |
1087 | end)() | |
1088 | bigcard = Instance.new("Part",Torso) | |
1089 | bigcard.Material = "Neon" | |
1090 | bigcard.Transparency = 1 | |
1091 | bigcard.BrickColor = BrickColor.new("White") | |
1092 | bigcard.Size = Vector3.new(15.65, 23.84, 0.3) | |
1093 | bigcard.CFrame = Root.CFrame * CFrame.new(0,18,0) | |
1094 | bigcard.Anchored = true | |
1095 | SOUND(bigcard,236989198,6,false,1) | |
1096 | ace = aces[math.random(1,#aces)] | |
1097 | acer = Instance.new("Decal",bigcard) | |
1098 | acer.Texture = "rbxassetid://"..ace | |
1099 | acer.Transparency = 1 | |
1100 | acer.Face = "Front" | |
1101 | ace2 = acer:Clone() | |
1102 | ace2.Parent = bigcard | |
1103 | ace2.Face = "Back" | |
1104 | table.insert(FadeIn,acer) | |
1105 | table.insert(FadeIn,ace2) | |
1106 | table.insert(FadeIn,bigcard) | |
1107 | for i = 1, 30 do | |
1108 | RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(0,1.5,-.1),.5) | |
1109 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(180),math.rad(10),math.rad(10)),.3) | |
1110 | swait() | |
1111 | end | |
1112 | ws = 10 | |
1113 | g1 = Instance.new("BodyGyro", Root) | |
1114 | g1.D = 175 | |
1115 | g1.P = 20000 | |
1116 | g1.MaxTorque = Vector3.new(0,9000,0) | |
1117 | clickdisallowance = false | |
1118 | coroutine.wrap(function() | |
1119 | mouse.Button1Down:connect(function() | |
1120 | if clickdisallowance then return end | |
1121 | if clickdebounce then return end | |
1122 | wait(.2) | |
1123 | clickdebounce = true | |
1124 | end) | |
1125 | end)() | |
1126 | while not clickdebounce do | |
1127 | g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.2) | |
1128 | bigcard.CFrame = Root.CFrame * CFrame.new(0,18,0) | |
1129 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(180),math.rad(10 + 2 *math.sin(sine/12)),math.rad(10 - 2*math.sin(sine/12))),.3) | |
1130 | swait() | |
1131 | end | |
1132 | g1:Remove() | |
1133 | ws = 0 | |
1134 | for i = 1, 13 do | |
1135 | bigcard.CFrame = bigcard.CFrame:lerp(Root.CFrame * CFrame.new(0,18,3) * CFrame.Angles(math.rad(10),0,0),.3) | |
1136 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0.2) * CFrame.Angles(math.rad(160),math.rad(10),math.rad(10)),.3) | |
1137 | swait() | |
1138 | end | |
1139 | locationpart = Instance.new("Part",bigcard) | |
1140 | locationpart.Size = Vector3.new(1,1,1) | |
1141 | locationpart.Transparency = 1 | |
1142 | locationpart.CanCollide = false | |
1143 | locationpart.Anchored = true | |
1144 | locationpart.CFrame = Root.CFrame * CFrame.new(0,-3,-21) | |
1145 | shockwave = Instance.new("Part", Torso) | |
1146 | shockwave.Size = Vector3.new(1,1,1) | |
1147 | shockwave.CanCollide = false | |
1148 | shockwave.Anchored = true | |
1149 | shockwave.Transparency = 0 | |
1150 | shockwave.BrickColor = BrickColor.new("White") | |
1151 | shockwave.CFrame = CFrame.new(locationpart.Position) | |
1152 | shockwavemesh = Instance.new("SpecialMesh", shockwave) | |
1153 | shockwavemesh.Scale = Vector3.new(5,2,5) | |
1154 | shockwavemesh.MeshId = "rbxassetid://20329976" | |
1155 | removeuseless:AddItem(shockwave,4) | |
1156 | shockwave2 = Instance.new("Part", Torso) | |
1157 | shockwave2.Size = Vector3.new(1,1,1) | |
1158 | shockwave2.CanCollide = false | |
1159 | shockwave2.Anchored = true | |
1160 | shockwave2.Transparency = 0 | |
1161 | shockwave2.BrickColor = BrickColor.new("White") | |
1162 | shockwave2.CFrame = CFrame.new(locationpart.Position) | |
1163 | shockwavemesh2 = Instance.new("SpecialMesh", shockwave2) | |
1164 | shockwavemesh2.Scale = Vector3.new(5,2,5) | |
1165 | shockwavemesh2.MeshId = "rbxassetid://20329976" | |
1166 | removeuseless:AddItem(shockwave2,4) | |
1167 | shockwave3 = Instance.new("Part", Torso) | |
1168 | shockwave3.Size = Vector3.new(1,1,1) | |
1169 | shockwave3.CanCollide = false | |
1170 | shockwave3.Anchored = true | |
1171 | shockwave3.Transparency = 0 | |
1172 | shockwave3.BrickColor = BrickColor.new("White") | |
1173 | shockwave3.CFrame = CFrame.new(locationpart.Position) | |
1174 | shockwavemesh3 = Instance.new("SpecialMesh", shockwave3) | |
1175 | shockwavemesh3.Scale = Vector3.new(5,2,5) | |
1176 | shockwavemesh3.MeshId = "rbxassetid://20329976" | |
1177 | removeuseless:AddItem(shockwave3,4) | |
1178 | shockwave4 = Instance.new("Part", Torso) | |
1179 | shockwave4.Size = Vector3.new(1,1,1) | |
1180 | shockwave4.CanCollide = false | |
1181 | shockwave4.Anchored = true | |
1182 | shockwave4.Transparency = 0 | |
1183 | shockwave4.BrickColor = BrickColor.new("White") | |
1184 | shockwave4.CFrame = CFrame.new(locationpart.Position) | |
1185 | shockwavemesh4 = Instance.new("SpecialMesh", shockwave4) | |
1186 | shockwavemesh4.Scale = Vector3.new(5,2,5) | |
1187 | shockwavemesh4.MeshId = "rbxassetid://20329976" | |
1188 | removeuseless:AddItem(shockwave4,4) | |
1189 | Hit = damagealll(20,locationpart.Position) | |
1190 | for _,v in pairs(Hit) do | |
1191 | v:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(55,85)) | |
1192 | vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")) | |
1193 | vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999) | |
1194 | torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso") | |
1195 | vel.velocity = CFrame.new(locationpart.Position,torso.Position).lookVector*110 | |
1196 | removeuseless:AddItem(vel,.1) | |
1197 | end | |
1198 | coroutine.wrap(function() | |
1199 | for i = 1, 90 do | |
1200 | shockwave.CFrame = shockwave.CFrame * CFrame.Angles(0,math.rad(0+12),0) | |
1201 | shockwavemesh.Scale = shockwavemesh.Scale + Vector3.new(1.5,.1,1.5) | |
1202 | shockwave.Transparency = shockwave.Transparency + 0.025 | |
1203 | shockwave2.CFrame = shockwave2.CFrame * CFrame.Angles(0,math.rad(0+6),0) | |
1204 | shockwavemesh2.Scale = shockwavemesh2.Scale + Vector3.new(1.25,.25,1.25) | |
1205 | shockwave2.Transparency = shockwave2.Transparency + 0.04 | |
1206 | shockwave3.CFrame = shockwave3.CFrame * CFrame.Angles(0,math.rad(0+12),0) | |
1207 | shockwavemesh3.Scale = shockwavemesh3.Scale + Vector3.new(.75,.75,.75) | |
1208 | shockwave3.Transparency = shockwave3.Transparency + 0.035 | |
1209 | shockwave4.CFrame = shockwave3.CFrame * CFrame.Angles(0,math.rad(0+5),0) | |
1210 | shockwavemesh4.Scale = shockwavemesh3.Scale + Vector3.new(2.5,.5,2.5) | |
1211 | shockwave4.Transparency = shockwave3.Transparency + 0.03 | |
1212 | swait() | |
1213 | end | |
1214 | end)() | |
1215 | SOUND(locationpart,765590102,6,false,2) | |
1216 | for i = 1, 24 do | |
1217 | bigcard.CFrame = bigcard.CFrame:lerp(Root.CFrame * CFrame.new(0,-3,-21) * CFrame.Angles(math.rad(90),0,0),.25) | |
1218 | RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(.2,.2,.2) * CFrame.Angles(0,0,0),.5) | |
1219 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1, 1.1, 0.4) * CFrame.Angles(math.rad(-75), math.rad(15), math.rad(4)), 0.5) | |
1220 | swait() | |
1221 | end | |
1222 | for i = 1, 40 do | |
1223 | bigcard.Transparency = bigcard.Transparency + 0.2 | |
1224 | acer.Transparency = acer.Transparency + .2 | |
1225 | ace2.Transparency = ace2.Transparency + .2 | |
1226 | swait() | |
1227 | end | |
1228 | attacking = false | |
1229 | debounce = false | |
1230 | appi = false | |
1231 | clickdisallowance = false | |
1232 | clickdebounce = false | |
1233 | ws = 10 | |
1234 | bigcard:Remove() | |
1235 | clean() | |
1236 | end | |
1237 | end) | |
1238 | ||
1239 | mouse.KeyDown:connect(function(Press) | |
1240 | Press=Press:lower() | |
1241 | if Press=='u' then | |
1242 | if levitate then return end | |
1243 | if mouse.Target ~= nil then end | |
1244 | if debounce then return end | |
1245 | debounce = true | |
1246 | attacking = true | |
1247 | appi = true | |
1248 | ws = 0 | |
1249 | appi = true | |
1250 | coroutine.wrap(function() | |
1251 | while appi do | |
1252 | wait() | |
1253 | if Root.Velocity.y > 1 and attacking == true then | |
1254 | position = "Jump2" | |
1255 | elseif Root.Velocity.y < -1 and attacking == true then | |
1256 | position = "Falling2" | |
1257 | elseif Root.Velocity.Magnitude < 2 and attacking == true then | |
1258 | position = "Idle2" | |
1259 | elseif Root.Velocity.Magnitude > 2 and attacking == true then | |
1260 | position = "Walking2" | |
1261 | end | |
1262 | end | |
1263 | end)() | |
1264 | coroutine.wrap(function() | |
1265 | while appi do | |
1266 | wait() | |
1267 | settime = 0.05 | |
1268 | sine = sine + change | |
1269 | if position == "Jump2" and attacking == true and appi == true then | |
1270 | change = 1 | |
1271 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
1272 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
1273 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4) | |
1274 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
1275 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,.1,-.2) * CFrame.Angles(math.rad(20),math.rad(-3),math.rad(-4)), 0.4) | |
1276 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.4) | |
1277 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.4) | |
1278 | elseif position == "Falling2" and attacking == true and appi == true then | |
1279 | change = 1 | |
1280 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
1281 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
1282 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4) | |
1283 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.2) | |
1284 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(14), math.rad(-4), math.rad(0)), 0.2) | |
1285 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.6, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(20)), 0.2) | |
1286 | elseif position == "Idle2" and attacking == true and appi == true then | |
1287 | change = .4 | |
1288 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
1289 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
1290 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + 1 * math.sin(sine/12)),math.rad(-40 + 2 * math.sin(sine/12))), 0.3) | |
1291 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3) | |
1292 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),.3) | |
1293 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3) | |
1294 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.3) | |
1295 | elseif position == "Walking2" and attacking == true and appi == true then | |
1296 | change = .8 | |
1297 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
1298 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
1299 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + 1 * math.sin(sine/12)),math.rad(-40 + 2 * math.sin(sine/12))), 0.3) | |
1300 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3) | |
1301 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,math.rad(0) + Root.RotVelocity.Y/30,math.cos(25*math.cos(sine/8))),.3) | |
1302 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.92 - 0.35 * math.cos(sine/8)/2.8, 0.2 - math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) + -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0) + RightLeg.RotVelocity.Y / 30, math.cos(25 * math.cos(sine/8))), 0.3) | |
1303 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.92 + 0.35 * math.cos(sine/8)/2.8, 0.2 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) - -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0) + LeftLeg.RotVelocity.Y / 30, math.cos(25 * math.cos(sine/8))), 0.3) | |
1304 | end | |
1305 | end | |
1306 | end)() | |
1307 | g1 = Instance.new("BodyGyro", Root) | |
1308 | g1.D = 175 | |
1309 | g1.P = 20000 | |
1310 | g1.MaxTorque = Vector3.new(0,9000,0) | |
1311 | g1.CFrame = CFrame.new(Root.Position,mouse.Hit.p) | |
1312 | for i = 1, 15 do | |
1313 | g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.2) | |
1314 | RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(0,1.5,-.1),.5) | |
1315 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(180),math.rad(10),math.rad(10)),.3) | |
1316 | swait() | |
1317 | end | |
1318 | cardportal = Instance.new("Part", Torso) | |
1319 | cardportal.Size = Vector3.new(0.5, 0.5, 0.5) | |
1320 | cardportal.Material = "Neon" | |
1321 | cardportal.BrickColor = BrickColor.new("White") | |
1322 | cardportal.Transparency = 0 | |
1323 | cardportal.Anchored = true | |
1324 | cardportal.CanCollide = false | |
1325 | cardportalMESH = Instance.new("SpecialMesh", cardportal) | |
1326 | cardportalMESH.MeshType = "Cylinder" | |
1327 | cardportalMESH.Scale = Vector3.new(.2,0.01,0.01) | |
1328 | cardportal.CFrame = CFrame.new(mouse.Hit.p) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)) | |
1329 | for i = 1, 10 do | |
1330 | cardportalMESH.Scale = cardportalMESH.Scale + Vector3.new(0,4,4) | |
1331 | swait() | |
1332 | end | |
1333 | bigzcard = Instance.new("Part",Torso) | |
1334 | bigzcard.Material = "Neon" | |
1335 | bigzcard.Transparency = 0 | |
1336 | bigzcard.BrickColor = BrickColor.new("White") | |
1337 | bigzcard.Size = Vector3.new(10, 15, 0.3) | |
1338 | bigzcard.CFrame = cardportal.CFrame * CFrame.new(-8,0,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)) | |
1339 | bigzcard.Anchored = true | |
1340 | SOUND(bigzcard,1888686669,6,false,1) | |
1341 | acer = Instance.new("Decal",bigzcard) | |
1342 | acer.Texture = "rbxassetid://1881287656" | |
1343 | acer.Transparency = 0 | |
1344 | acer.Face = "Front" | |
1345 | ace2 = acer:Clone() | |
1346 | ace2.Parent = bigzcard | |
1347 | ace2.Face = "Back" | |
1348 | spinning = true | |
1349 | coroutine.wrap(function() | |
1350 | while spinning do | |
1351 | bigzcard.CFrame = bigzcard.CFrame * CFrame.Angles(0,math.rad(0+5),0) | |
1352 | swait() | |
1353 | end | |
1354 | end)() | |
1355 | for i = 1, 20 do | |
1356 | bigzcard.CFrame = bigzcard.CFrame * CFrame.new(0,-.9,0) | |
1357 | swait() | |
1358 | end | |
1359 | coroutine.wrap(function() | |
1360 | for i = 1, 10 do | |
1361 | cardportalMESH.Scale = cardportalMESH.Scale - Vector3.new(0,4,4) | |
1362 | swait() | |
1363 | end | |
1364 | cardportal:Remove() | |
1365 | end)() | |
1366 | wait(.7) | |
1367 | ace3 = Instance.new("Decal",bigzcard) | |
1368 | ace3.Texture = "rbxassetid://1880203893" | |
1369 | ace3.Transparency = 1 | |
1370 | ace3.Face = "Front" | |
1371 | ace4 = ace3:Clone() | |
1372 | ace4.Parent = bigzcard | |
1373 | ace4.Face = "Back" | |
1374 | bigzcard2 = Instance.new("Part",Torso) | |
1375 | bigzcard2.Material = "Neon" | |
1376 | bigzcard2.Transparency = 1 | |
1377 | bigzcard2.BrickColor = BrickColor.new("Really black") | |
1378 | bigzcard2.Size = Vector3.new(10, 15, 0.29) | |
1379 | bigzcard2.CFrame = bigzcard.CFrame | |
1380 | bigzcard2.CanCollide = false | |
1381 | bigzcard2.Anchored = true | |
1382 | coroutine.wrap(function() | |
1383 | while spinning do | |
1384 | bigzcard2.CFrame = bigzcard2.CFrame * CFrame.Angles(0,math.rad(0+5),0) | |
1385 | swait() | |
1386 | end | |
1387 | end)() | |
1388 | blz = bl[math.random(1,#bl)] | |
1389 | woos = Instance.new("Sound",Torso) | |
1390 | woos.SoundId = "rbxassetid://"..blz | |
1391 | woos.Volume = 4 | |
1392 | woos:Play() | |
1393 | for i = 1, 20 do | |
1394 | bigzcard2.Transparency = bigzcard2.Transparency - .05 | |
1395 | bigzcard.Transparency = bigzcard.Transparency + .05 | |
1396 | ace3.Transparency = ace3.Transparency - 0.05 | |
1397 | ace4.Transparency = ace4.Transparency - 0.05 | |
1398 | acer.Transparency = acer.Transparency + 0.05 | |
1399 | ace2.Transparency = ace2.Transparency + 0.05 | |
1400 | wait() | |
1401 | end | |
1402 | ace3.Parent = bigzcard2 | |
1403 | ace3.Face = "Front" | |
1404 | ace4.Parent = bigzcard2 | |
1405 | ace4.Face = "Back" | |
1406 | bigzcard:Remove() | |
1407 | spinning = false | |
1408 | blackholeactive = true | |
1409 | coroutine.wrap(function() | |
1410 | blackhole={} | |
1411 | orbzfade={} | |
1412 | for i = 1, 100 do | |
1413 | orbz = Instance.new("Part", Torso) | |
1414 | orbz.Shape = "Ball" | |
1415 | orbz.Material = "Neon" | |
1416 | orbz.BrickColor = BrickColor.new("Really black") | |
1417 | orbz.Size = Vector3.new(2,2,2) | |
1418 | orbz.Anchored = true | |
1419 | orbz.CanCollide = false | |
1420 | removeuseless:AddItem(orbz,1) | |
1421 | orbz.CFrame = bigzcard2.CFrame * CFrame.new(math.random(-25,25),math.random(-25,25),math.random(-25,25)) * CFrame.Angles(math.rad(-180,180),math.rad(-180,180),math.rad(-180,180)) | |
1422 | table.insert(blackhole,orbz) | |
1423 | table.insert(orbzfade,orbz) | |
1424 | for i,v in pairs(blackhole) do | |
1425 | v.CFrame = v.CFrame:lerp(CFrame.new(bigzcard2.Position),.05) | |
1426 | end | |
1427 | for i,v in pairs(orbzfade) do | |
1428 | v.Transparency = v.Transparency + 0.025 | |
1429 | end | |
1430 | swait() | |
1431 | end | |
1432 | end)() | |
1433 | coroutine.wrap(function() | |
1434 | while blackholeactive do | |
1435 | local Hit = damagealll(45,bigzcard2.Position) | |
1436 | for _,v in pairs(Hit) do | |
1437 | coroutine.wrap(function() | |
1438 | wait(.15) | |
1439 | if blackholeactive == false then return end | |
1440 | v:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(.1,1)) | |
1441 | end)() | |
1442 | torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso") | |
1443 | torso.CFrame = torso.CFrame:lerp(CFrame.new(bigzcard2.Position),.1) | |
1444 | end | |
1445 | wait() | |
1446 | end | |
1447 | end)() | |
1448 | for i = 1, 100 do | |
1449 | bigzcard2.CFrame = bigzcard2.CFrame * CFrame.Angles(0,math.rad(0+20),0) | |
1450 | cataclysmics = Instance.new("Part", Torso) | |
1451 | cataclysmics.Shape = "Ball" | |
1452 | cataclysmics.Material = "Neon" | |
1453 | cataclysmics.BrickColor = BrickColor.new("Really black") | |
1454 | cataclysmics.Size = Vector3.new(11,11,11) | |
1455 | cataclysmics.Transparency = .3 | |
1456 | cataclysmics.Anchored = true | |
1457 | cataclysmics.CanCollide = false | |
1458 | cataclysmics.CFrame = CFrame.new(bigzcard2.Position) | |
1459 | table.insert(LessSize,cataclysmics) | |
1460 | table.insert(keyYtransparency,cataclysmics) | |
1461 | removeuseless:AddItem(cataclysmics,1) | |
1462 | swait() | |
1463 | end | |
1464 | coroutine.wrap(function() | |
1465 | for i = 1, 20 do | |
1466 | for i,v in pairs(orbzfade) do | |
1467 | v.Transparency = v.Transparency + 0.05 | |
1468 | end | |
1469 | swait() | |
1470 | end | |
1471 | end)() | |
1472 | explosiontable={} | |
1473 | ringtable={} | |
1474 | ringtable2={} | |
1475 | soundboks = Instance.new("Part",Torso) | |
1476 | soundboks.CanCollide = false | |
1477 | soundboks.Anchored = true | |
1478 | soundboks.Transparency = 1 | |
1479 | soundboks.CFrame = bigzcard2.CFrame | |
1480 | removeuseless:AddItem(soundboks,6) | |
1481 | SOUND(soundboks,472579737,6,false,1) | |
1482 | blackholeactive = false | |
1483 | bigzcard2:Remove() | |
1484 | Hit = damagealll(60,soundboks.Position) | |
1485 | for _,v in pairs(Hit) do | |
1486 | v:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(36,55)) | |
1487 | vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")) | |
1488 | vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999) | |
1489 | torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso") | |
1490 | vel.velocity = CFrame.new(soundboks.Position,torso.Position).lookVector*200 | |
1491 | removeuseless:AddItem(vel,.1) | |
1492 | end | |
1493 | coroutine.wrap(function() | |
1494 | shockwave = Instance.new("Part", Torso) | |
1495 | shockwave.Size = Vector3.new(1,1,1) | |
1496 | shockwave.CanCollide = false | |
1497 | shockwave.Anchored = true | |
1498 | shockwave.Transparency = 0 | |
1499 | shockwave.BrickColor = BrickColor.new("Really black") | |
1500 | shockwave.CFrame = CFrame.new(soundboks.Position) * CFrame.new(0,-6,0) | |
1501 | shockwavemesh = Instance.new("SpecialMesh", shockwave) | |
1502 | shockwavemesh.Scale = Vector3.new(5,2,5) | |
1503 | shockwavemesh.MeshId = "rbxassetid://20329976" | |
1504 | shockwave2 = Instance.new("Part", Torso) | |
1505 | shockwave2.Size = Vector3.new(1,1,1) | |
1506 | shockwave2.CanCollide = false | |
1507 | shockwave2.Anchored = true | |
1508 | shockwave2.Transparency = 0 | |
1509 | shockwave2.BrickColor = BrickColor.new("Really black") | |
1510 | shockwave2.CFrame = CFrame.new(soundboks.Position) * CFrame.new(0,-6,0) | |
1511 | shockwavemesh2 = Instance.new("SpecialMesh", shockwave2) | |
1512 | shockwavemesh2.Scale = Vector3.new(5,2,5) | |
1513 | shockwavemesh2.MeshId = "rbxassetid://20329976" | |
1514 | for i = 1, 40 do | |
1515 | shockwave.CFrame = shockwave.CFrame * CFrame.Angles(0,math.rad(0+15),0) | |
1516 | shockwave2.CFrame = shockwave2.CFrame * CFrame.Angles(0,math.rad(0+8),0) | |
1517 | shockwave.Transparency = shockwave.Transparency + 0.025 | |
1518 | shockwave2.Transparency = shockwave2.Transparency + 0.025 | |
1519 | shockwavemesh.Scale = shockwavemesh.Scale + Vector3.new(9,.9,9) | |
1520 | shockwavemesh2.Scale = shockwavemesh2.Scale + Vector3.new(8,.8,8) | |
1521 | swait() | |
1522 | end | |
1523 | shockwave:Remove() | |
1524 | shockwave2:Remove() | |
1525 | end)() | |
1526 | for i = 1, 4 do | |
1527 | explosion = Instance.new("Part", Torso) | |
1528 | explosion.Shape = "Ball" | |
1529 | explosion.Size = Vector3.new(1,1,1) | |
1530 | explosion.Transparency = 0 | |
1531 | explosion.CanCollide = false | |
1532 | explosion.Anchored = true | |
1533 | explosion.BrickColor = BrickColor.new("Really black") | |
1534 | explosion.Material = "Neon" | |
1535 | explosion.CFrame = CFrame.new(bigzcard2.Position) | |
1536 | table.insert(ExtremeM,explosion) | |
1537 | table.insert(SlowlyFade,explosion) | |
1538 | removeuseless:AddItem(explosion,4) | |
1539 | ring = Instance.new("Part", Torso) | |
1540 | ring.Size = Vector3.new(5, 5, 5) | |
1541 | ring.Transparency = 0 | |
1542 | ring.BrickColor = BrickColor.new("Really black") | |
1543 | ring.Anchored = true | |
1544 | ring.CanCollide = false | |
1545 | ring.CFrame = bigzcard2.CFrame * CFrame.Angles(math.rad(math.random(-180,180)), math.rad(math.random(-180,180)), math.rad(math.random(-180,180))) | |
1546 | ringh = Instance.new("SpecialMesh", ring) | |
1547 | ringh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1548 | ringh.Scale = Vector3.new(2, 2, .1) | |
1549 | table.insert(keyYsize,ringh) | |
1550 | table.insert(keyYtransparency,ring) | |
1551 | removeuseless:AddItem(ring,4) | |
1552 | swait() | |
1553 | end | |
1554 | wait(1.2) | |
1555 | clean() | |
1556 | keyYsize={} | |
1557 | keyYtransparency={} | |
1558 | blackholev = false | |
1559 | appi = false | |
1560 | g1:Remove() | |
1561 | ws = 10 | |
1562 | attacking = false | |
1563 | debounce = false | |
1564 | end | |
1565 | end) | |
1566 | ||
1567 | mouse.KeyDown:connect(function(Press) | |
1568 | Press=Press:lower() | |
1569 | if Press=='t' then | |
1570 | if levitate then | |
1571 | if tauntdebounce then return end | |
1572 | tauntdebounce = true | |
1573 | laughing = true | |
1574 | coroutine.wrap(function() | |
1575 | while laughing do | |
1576 | local b1 = Instance.new("BillboardGui",Head) | |
1577 | b1.Size = UDim2.new(0,4,0,1.6) | |
1578 | b1.StudsOffset = Vector3.new(0,0,0) | |
1579 | b1.Name = "laff" | |
1580 | b1.AlwaysOnTop = true | |
1581 | b1.Adornee = Head | |
1582 | removeuseless:AddItem(b1,3) | |
1583 | local b2 = Instance.new("TextLabel",b1) | |
1584 | b2.BackgroundTransparency = 1 | |
1585 | b2.Text = "HaHaHaHaHaHa..." | |
1586 | b2.Font = "Garamond" | |
1587 | b2.TextSize = 0 | |
1588 | b2.Name = "lafftext" | |
1589 | b2.TextStrokeTransparency = 0 | |
1590 | b2.TextColor3 = BrickColor.new("Really red").Color | |
1591 | b2.TextStrokeColor3 = Color3.new(0,0,0) | |
1592 | b2.Size = UDim2.new(1,0,.5,0) | |
1593 | table.insert(laughingtable,b2) | |
1594 | removeuseless:AddItem(b1,2) | |
1595 | coroutine.wrap(function() | |
1596 | if zxc then return end | |
1597 | zxc = true | |
1598 | while true do | |
1599 | swait() | |
1600 | for i,v in pairs(Head:GetChildren()) do | |
1601 | if v.Name == "laff" then | |
1602 | v.StudsOffset = v.StudsOffset + Vector3.new(math.random(-2,2),.3,math.random(-2,2)) | |
1603 | end | |
1604 | end | |
1605 | for i,v in pairs(laughingtable) do | |
1606 | v.TextTransparency = v.TextTransparency + .025 | |
1607 | v.TextStrokeTransparency = v.TextStrokeTransparency + 0.25 | |
1608 | v.TextSize = v.TextSize + 2 | |
1609 | v.Rotation = v.Rotation + .1 | |
1610 | end | |
1611 | end | |
1612 | end)() | |
1613 | swait(10) | |
1614 | end | |
1615 | end)() | |
1616 | laugh = laughs[math.random(1,#laughs)] | |
1617 | laughy = Instance.new("Sound",Head) | |
1618 | laughy.SoundId = "rbxassetid://"..laugh | |
1619 | laughy.Volume = 10 | |
1620 | laughy:Play() | |
1621 | wait(1) | |
1622 | wait(laughy.TimeLength) | |
1623 | laughing = false | |
1624 | laughy:Remove() | |
1625 | tauntdebounce = false | |
1626 | else | |
1627 | if mouse.Target ~= nil then | |
1628 | if debounce then return end | |
1629 | attacking = true | |
1630 | ghost() | |
1631 | tps = Instance.new("Sound", Torso) | |
1632 | tps.Volume = 5 | |
1633 | tps.SoundId = "rbxassetid://1894958339" | |
1634 | tps:Play() | |
1635 | removeuseless:AddItem(tps,2) | |
1636 | g1 = Instance.new("BodyGyro", Root) | |
1637 | g1.D = 175 | |
1638 | g1.P = 20000 | |
1639 | g1.MaxTorque = Vector3.new(0,9000,0) | |
1640 | g1.CFrame = CFrame.new(Root.Position,mouse.Hit.p) | |
1641 | removeuseless:AddItem(g1,.05) | |
1642 | Root.CFrame = CFrame.new(mouse.Hit.p) * CFrame.new(0,3.3,0) | |
1643 | wait(.1) | |
1644 | attacking = false | |
1645 | debounce = false | |
1646 | end | |
1647 | end | |
1648 | end | |
1649 | end) | |
1650 | ||
1651 | mouse.KeyDown:connect(function(Press) | |
1652 | Press=Press:lower() | |
1653 | if Press=='q' then | |
1654 | if levitate then return end | |
1655 | if mouse.Target ~= nil and mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil and mouse.Target.Parent:FindFirstChildOfClass("Humanoid").Health ~= 0 then | |
1656 | if debounce then return end | |
1657 | debounce = true | |
1658 | attacking = true | |
1659 | appi = true | |
1660 | ws = 0 | |
1661 | coroutine.wrap(function() | |
1662 | while appi do | |
1663 | wait() | |
1664 | if Root.Velocity.y > 1 and attacking == true then | |
1665 | position = "Jump2" | |
1666 | elseif Root.Velocity.y < -1 and attacking == true then | |
1667 | position = "Falling2" | |
1668 | elseif Root.Velocity.Magnitude < 2 and attacking == true then | |
1669 | position = "Idle2" | |
1670 | elseif Root.Velocity.Magnitude > 2 and attacking == true then | |
1671 | position = "Walking2" | |
1672 | end | |
1673 | end | |
1674 | end)() | |
1675 | coroutine.wrap(function() | |
1676 | while appi do | |
1677 | wait() | |
1678 | settime = 0.05 | |
1679 | sine = sine + change | |
1680 | if position == "Jump2" and attacking == true and appi == true then | |
1681 | change = 1 | |
1682 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
1683 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
1684 | RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4) | |
1685 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
1686 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.4,.1,-.2) * CFrame.Angles(math.rad(20),math.rad(3),math.rad(4)), 0.4) | |
1687 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.4) | |
1688 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.4) | |
1689 | elseif position == "Falling2" and attacking == true and appi == true then | |
1690 | change = 1 | |
1691 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
1692 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
1693 | RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4) | |
1694 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.2) | |
1695 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(14), math.rad(-4), math.rad(0)), 0.2) | |
1696 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.6, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-20)), 0.2) | |
1697 | elseif position == "Idle2" and attacking == true and appi == true then | |
1698 | change = .4 | |
1699 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
1700 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
1701 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - 1 * math.sin(sine/12)),math.rad(40 - 2 * math.sin(sine/12))), 0.3) | |
1702 | RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(-.2,1.2,-.3),.3) | |
1703 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3) | |
1704 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.3) | |
1705 | elseif position == "Walking2" and attacking == true and appi == true then | |
1706 | change = .8 | |
1707 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
1708 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
1709 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - 1 * math.sin(sine/12)),math.rad(40 - 2 * math.sin(sine/12))), 0.3) | |
1710 | RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(-.2,1.2,-.3),.3) | |
1711 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,math.rad(0) + Root.RotVelocity.Y/30,math.cos(25*math.cos(sine/8))),.3) | |
1712 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.92 - 0.35 * math.cos(sine/8)/2.8, 0.2 - math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) + -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0) + RightLeg.RotVelocity.Y / 30, math.cos(25 * math.cos(sine/8))), 0.3) | |
1713 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.92 + 0.35 * math.cos(sine/8)/2.8, 0.2 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) - -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0) + LeftLeg.RotVelocity.Y / 30, math.cos(25 * math.cos(sine/8))), 0.3) | |
1714 | end | |
1715 | end | |
1716 | end)() | |
1717 | enemyhum = mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
1718 | ETorso = enemyhum.Parent:FindFirstChild("Torso") or enemyhum.Parent:FindFirstChild("LowerTorso") | |
1719 | EHead = enemyhum.Parent:FindFirstChild("Head") | |
1720 | g1 = Instance.new("BodyGyro", Root) | |
1721 | g1.D = 175 | |
1722 | g1.P = 20000 | |
1723 | g1.MaxTorque = Vector3.new(0,9000,0) | |
1724 | brick = Instance.new("Part",Torso) | |
1725 | brick.Anchored = true | |
1726 | brick.CanCollide = false | |
1727 | brick.Material = "Neon" | |
1728 | brick.Transparency = 1 | |
1729 | brick.BrickColor = BrickColor.new("White") | |
1730 | brick.Size = Vector3.new(8,.3,12) | |
1731 | brick.CFrame = Root.CFrame * CFrame.new(math.random(-15,15),-3,math.random(-15,15)) | |
1732 | SOUND(brick,1888686669,6,false,1.5) | |
1733 | ace = aces[math.random(1,#aces)] | |
1734 | acer = Instance.new("Decal",brick) | |
1735 | acer.Texture = "rbxassetid://1898092341" | |
1736 | acer.Transparency = 1 | |
1737 | acer.Face = "Top" | |
1738 | coroutine.wrap(function() | |
1739 | for i = 1, 20 do | |
1740 | g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,ETorso.Position),.2) | |
1741 | brick.Transparency = brick.Transparency - .05 | |
1742 | acer.Transparency = acer.Transparency - .1 | |
1743 | swait() | |
1744 | end | |
1745 | end)() | |
1746 | ETorso.Anchored = true | |
1747 | EHead.Anchored = true | |
1748 | for i = 1, 25 do | |
1749 | swait() | |
1750 | g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,ETorso.Position),.2) | |
1751 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,-.2,0) * CFrame.Angles(0,0,0),.3) | |
1752 | LEFTARMLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0) | |
1753 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, 1.35, 0.4) * CFrame.Angles(math.rad(-90 - 2 * math.sin(sine/12)), math.rad(3), math.rad(4)), 0.3) | |
1754 | brick.CFrame = brick.CFrame:lerp(CFrame.new(ETorso.Position) * CFrame.new(0,-3,0) * CFrame.Angles(0,math.rad(0+10),0),.2) | |
1755 | end | |
1756 | SOUND(brick,472214107,6,false,2) | |
1757 | coroutine.wrap(function() | |
1758 | for i = 1, 10 do | |
1759 | g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,ETorso.Position),.2) | |
1760 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, .8, 0.4) * CFrame.Angles(math.rad(-60 - 2 * math.sin(sine/12)), math.rad(3), math.rad(4)), 0.3) | |
1761 | swait() | |
1762 | end | |
1763 | end)() | |
1764 | shockwave = Instance.new("Part", Torso) | |
1765 | shockwave.Size = Vector3.new(1,1,1) | |
1766 | shockwave.CanCollide = false | |
1767 | shockwave.Anchored = true | |
1768 | shockwave.Transparency = 0 | |
1769 | shockwave.BrickColor = BrickColor.new("White") | |
1770 | shockwave.CFrame = CFrame.new(brick.Position) | |
1771 | shockwavemesh = Instance.new("SpecialMesh", shockwave) | |
1772 | shockwavemesh.Scale = Vector3.new(1,1,1) | |
1773 | shockwavemesh.MeshId = "rbxassetid://20329976" | |
1774 | removeuseless:AddItem(shockwave,4) | |
1775 | shockwave2 = Instance.new("Part", Torso) | |
1776 | shockwave2.Size = Vector3.new(1,1,1) | |
1777 | shockwave2.CanCollide = false | |
1778 | shockwave2.Anchored = true | |
1779 | shockwave2.Transparency = 0 | |
1780 | shockwave2.BrickColor = BrickColor.new("White") | |
1781 | shockwave2.CFrame = CFrame.new(brick.Position) | |
1782 | shockwavemesh2 = Instance.new("SpecialMesh", shockwave2) | |
1783 | shockwavemesh2.Scale = Vector3.new(1,1,1) | |
1784 | shockwavemesh2.MeshId = "rbxassetid://20329976" | |
1785 | removeuseless:AddItem(shockwave2,4) | |
1786 | for i = 1, 35 do | |
1787 | swait() | |
1788 | shockwavemesh.Scale = shockwavemesh.Scale + Vector3.new(2,.1,2) | |
1789 | shockwave.CFrame = shockwave.CFrame * CFrame.Angles(0,math.rad(0+12),0) | |
1790 | shockwave.Transparency = shockwave.Transparency + .05 | |
1791 | shockwavemesh2.Scale = shockwavemesh2.Scale + Vector3.new(.5,.1,.5) | |
1792 | shockwave2.CFrame = shockwave2.CFrame * CFrame.Angles(0,math.rad(0+4),0) | |
1793 | shockwave2.Transparency = shockwave2.Transparency + .03 | |
1794 | EHead.CFrame = EHead.CFrame * CFrame.new(0,-.20,0) | |
1795 | ETorso.CFrame = ETorso.CFrame * CFrame.new(0,-.25,0) | |
1796 | end | |
1797 | for i = 1, 8 do | |
1798 | brick.Size = brick.Size + Vector3.new(1.5,0,2.5) | |
1799 | swait() | |
1800 | end | |
1801 | n = 0 | |
1802 | SOUND(brick,54111471,6,false,1) | |
1803 | for i = 1, 40 do | |
1804 | n = n + 6 | |
1805 | brick.Transparency = brick.Transparency + .025 | |
1806 | acer.Transparency = acer.Transparency + .075 | |
1807 | brick.CFrame = brick.CFrame * CFrame.Angles(0,math.rad(n),0) | |
1808 | brick.Size = brick.Size - Vector3.new(1.5,.025,2.5) | |
1809 | swait() | |
1810 | end | |
1811 | ws = 10 | |
1812 | brick:Remove() | |
1813 | enemyhum.Parent:Remove() | |
1814 | attacking = false | |
1815 | removeuseless:AddItem(g1,0.001) | |
1816 | debounce = false | |
1817 | appi = false | |
1818 | end | |
1819 | end | |
1820 | end) | |
1821 | ||
1822 | mouse.KeyDown:connect(function(Press) | |
1823 | Press=Press:lower() | |
1824 | if Press=='p' then | |
1825 | if levitate then return end | |
1826 | if blocking then | |
1827 | if blockedoff then return end | |
1828 | clickallowance = false | |
1829 | appi = false | |
1830 | attacking = true | |
1831 | blocking = false | |
1832 | throwing = true | |
1833 | ws = 0 | |
1834 | n = 0 | |
1835 | blockcard.CanCollide = false | |
1836 | for i = 1, 35 do | |
1837 | n = n + 20 | |
1838 | blockcard.CFrame = Root.CFrame * CFrame.new(0,3,-5) * CFrame.Angles(0,math.rad(n),0) | |
1839 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0), math.rad(25), math.rad(0)), 0.3) | |
1840 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, 1.35, 0.4) * CFrame.Angles(math.rad(-50 - 2 * math.sin(sine/12)), math.rad(12), math.rad(9)), 0.3) | |
1841 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(-.65, .6, 1) * CFrame.Angles(0,0,0),.3) | |
1842 | swait() | |
1843 | end | |
1844 | blockcard.CFrame = Root.CFrame * CFrame.new(0,3,-5 + -1) * CFrame.Angles(0,0,0) | |
1845 | blockcard.CanCollide = false | |
1846 | locater1 = Instance.new("Part",blockcard) | |
1847 | locater1.Size = Vector3.new(1,1,1) | |
1848 | locater1.CanCollide = false | |
1849 | locater1.Anchored = true | |
1850 | locater1.Transparency = 1 | |
1851 | locater2 = Instance.new("Part",blockcard) | |
1852 | locater2.Size = Vector3.new(1,1,1) | |
1853 | locater2.CanCollide = false | |
1854 | locater2.Transparency = 1 | |
1855 | locater2.Anchored = true | |
1856 | locater3 = Instance.new("Part",blockcard) | |
1857 | locater3.Size = Vector3.new(1,1,1) | |
1858 | locater3.Transparency = 1 | |
1859 | locater3.CFrame = blockcard.CFrame * CFrame.Angles(math.rad(90),0,0) | |
1860 | locater3.CanCollide = false | |
1861 | locater3.Anchored = true | |
1862 | fushfush = Instance.new("Sound",blockcard) | |
1863 | fushfush.SoundId = "rbxassetid://288641686" | |
1864 | fushfush.Volume = 8 | |
1865 | fushfush:Play() | |
1866 | boosh:Play() | |
1867 | coroutine.wrap(function() | |
1868 | n = 0 | |
1869 | for i = 1, 35 do | |
1870 | n = n + 10 | |
1871 | shockwave = Instance.new("Part", Torso) | |
1872 | shockwave.Size = Vector3.new(1,1,1) | |
1873 | shockwave.CanCollide = false | |
1874 | shockwave.Anchored = true | |
1875 | shockwave.Transparency = .5 | |
1876 | shockwave.BrickColor = BrickColor.new("White") | |
1877 | shockwave.CFrame = locater3.CFrame | |
1878 | shockwavemesh = Instance.new("SpecialMesh", shockwave) | |
1879 | shockwavemesh.Scale = Vector3.new(15,.7,15) | |
1880 | shockwavemesh.MeshId = "rbxassetid://20329976" | |
1881 | shockwave.CFrame = locater3.CFrame * CFrame.Angles(math.rad(0),math.rad(1),0) | |
1882 | removeuseless:AddItem(shockwave,1) | |
1883 | table.insert(lolzor2,shockwave) | |
1884 | for i,v in pairs(lolzor2) do | |
1885 | v.Transparency = v.Transparency + .1 | |
1886 | v.CFrame = v.CFrame * CFrame.Angles(math.rad(0),math.rad(n),0) | |
1887 | end | |
1888 | swait() | |
1889 | end | |
1890 | end)() | |
1891 | for i = 1, 35 do | |
1892 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3) | |
1893 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3) | |
1894 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, 1.35, 0.4) * CFrame.Angles(math.rad(-90 - 2 * math.sin(sine/12)), math.rad(-20), math.rad(4)), 0.3) | |
1895 | fushfush.Volume = fushfush.Volume - .2 | |
1896 | Hit = damagealll(20,blockcard.Position) | |
1897 | for _,v in pairs(Hit) do | |
1898 | v:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(7,12)) | |
1899 | vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")) | |
1900 | vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999) | |
1901 | torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso") | |
1902 | vel.velocity = CFrame.new(blockcard.Position,torso.Position).lookVector*120 | |
1903 | removeuseless:AddItem(vel,.1) | |
1904 | end | |
1905 | locater1.CFrame = blockcard.CFrame * CFrame.new(-5,-6,0) | |
1906 | locater3.CFrame = blockcard.CFrame * CFrame.new(0,0,-1) * CFrame.Angles(math.rad(90),0,0) | |
1907 | locater2.CFrame = blockcard.CFrame * CFrame.new(5,-6,0) | |
1908 | grassblocks = Instance.new("Part",Torso) | |
1909 | grassblocks.Size = Vector3.new(4,4,4) | |
1910 | grassblocks.Material = "Grass" | |
1911 | grassblocks.Anchored = true | |
1912 | grassblocks.BrickColor = BrickColor.new("Bright green") | |
1913 | grassblocks.CFrame = locater1.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180))) | |
1914 | removeuseless:AddItem(grassblocks,5) | |
1915 | grassblocks2 = Instance.new("Part",Torso) | |
1916 | grassblocks2.Size = Vector3.new(4,4,4) | |
1917 | grassblocks2.Material = "Grass" | |
1918 | grassblocks2.Anchored = true | |
1919 | grassblocks2.BrickColor = BrickColor.new("Bright green") | |
1920 | grassblocks2.CFrame = locater2.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180))) | |
1921 | removeuseless:AddItem(grassblocks2,5) | |
1922 | blockcardshadow = Instance.new("Part",Torso) | |
1923 | blockcardshadow.Transparency = .5 | |
1924 | blockcardshadow.Anchored = true | |
1925 | blockcardshadow.Material = "Neon" | |
1926 | blockcardshadow.BrickColor = BrickColor.new("White") | |
1927 | blockcardshadow.Size = Vector3.new(8, 13, 0.3) | |
1928 | blockcardshadow.CanCollide = false | |
1929 | blockcardshadow.CFrame = blockcard.CFrame | |
1930 | removeuseless:AddItem(blockcardshadow,2) | |
1931 | table.insert(lolzor,blockcardshadow) | |
1932 | for i,v in pairs(lolzor) do | |
1933 | v.Transparency = v.Transparency + 0.05 | |
1934 | end | |
1935 | blockcard.CFrame = blockcard.CFrame * CFrame.new(0,0,-4) | |
1936 | swait() | |
1937 | end | |
1938 | blockcard.Name = "Getthisshitoutofhere" | |
1939 | for i = 1, 10 do | |
1940 | blockcard.CFrame = blockcard.CFrame * CFrame.new(0,0,-2) | |
1941 | blockcard.Transparency = blockcard.Transparency + .1 | |
1942 | acer.Transparency = blockcard.Transparency | |
1943 | ace2.Transparency = blockcard.Transparency | |
1944 | for i,v in pairs(lolzor) do | |
1945 | v.Transparency = v.Transparency + .05 | |
1946 | end | |
1947 | for i,v in pairs(lolzor2) do | |
1948 | v.Transparency = v.Transparency + .1 | |
1949 | end | |
1950 | swait() | |
1951 | end | |
1952 | lolzor={} | |
1953 | lolzor2={} | |
1954 | attacking = false | |
1955 | debounce = false | |
1956 | blocking = false | |
1957 | throwing = false | |
1958 | fushfush:Remove() | |
1959 | clickallowance = false | |
1960 | appi = false | |
1961 | blockcard:Remove() | |
1962 | g1:Remove() | |
1963 | ws = 10 | |
1964 | else | |
1965 | if debounce then return end | |
1966 | if throwing then return end | |
1967 | debounce = true | |
1968 | ws = 10 | |
1969 | attacking = true | |
1970 | blocking = true | |
1971 | boosh = Instance.new("Sound",nil) | |
1972 | boosh.SoundId = "rbxassetid://413682983" | |
1973 | boosh.Volume = 6 | |
1974 | appi = true | |
1975 | coroutine.wrap(function() | |
1976 | while appi do | |
1977 | wait() | |
1978 | if Root.Velocity.y > 1 and attacking == true then | |
1979 | position = "Jump2" | |
1980 | elseif Root.Velocity.y < -1 and attacking == true then | |
1981 | position = "Falling2" | |
1982 | elseif Root.Velocity.Magnitude < 2 and attacking == true then | |
1983 | position = "Idle2" | |
1984 | elseif Root.Velocity.Magnitude > 2 and attacking == true then | |
1985 | position = "Walking2" | |
1986 | end | |
1987 | end | |
1988 | end)() | |
1989 | coroutine.wrap(function() | |
1990 | while appi do | |
1991 | wait() | |
1992 | settime = 0.05 | |
1993 | sine = sine + change | |
1994 | if position == "Jump2" and attacking == true and appi == true then | |
1995 | change = 1 | |
1996 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
1997 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
1998 | RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4) | |
1999 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
2000 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.4,.1,-.2) * CFrame.Angles(math.rad(20),math.rad(3),math.rad(4)), 0.4) | |
2001 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.4) | |
2002 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.4) | |
2003 | elseif position == "Falling2" and attacking == true and appi == true then | |
2004 | change = 1 | |
2005 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
2006 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
2007 | RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4) | |
2008 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.2) | |
2009 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(14), math.rad(-4), math.rad(0)), 0.2) | |
2010 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.6, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-20)), 0.2) | |
2011 | elseif position == "Idle2" and attacking == true and appi == true then | |
2012 | change = .4 | |
2013 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
2014 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
2015 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - 1 * math.sin(sine/12)),math.rad(40 - 2 * math.sin(sine/12))), 0.3) | |
2016 | RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(-.2,1.2,-.3),.3) | |
2017 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3) | |
2018 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.3) | |
2019 | elseif position == "Walking2" and attacking == true and appi == true then | |
2020 | change = .8 | |
2021 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
2022 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
2023 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - 1 * math.sin(sine/12)),math.rad(40 - 2 * math.sin(sine/12))), 0.3) | |
2024 | RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(-.2,1.2,-.3),.3) | |
2025 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,math.rad(0) + Root.RotVelocity.Y/30,math.cos(25*math.cos(sine/8))),.3) | |
2026 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.92 - 0.35 * math.cos(sine/8)/2.8, 0.2 - math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) + -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0)), 0.3) | |
2027 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.92 + 0.35 * math.cos(sine/8)/2.8, 0.2 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) - -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0)), 0.3) | |
2028 | end | |
2029 | end | |
2030 | end)() | |
2031 | blockcard = Instance.new("Part",Torso) | |
2032 | blockcard.Material = "Neon" | |
2033 | blockcard.Transparency = 1 | |
2034 | blockcard.BrickColor = BrickColor.new("White") | |
2035 | blockcard.Size = Vector3.new(8, 13, 0.3) | |
2036 | blockcard.CFrame = Root.CFrame * CFrame.new(0,2,-5) | |
2037 | blockcard.Anchored = true | |
2038 | boosh.Parent = blockcard | |
2039 | SOUND(blockcard,236989198,6,false,1) | |
2040 | ace = aces[math.random(1,#aces)] | |
2041 | acer = Instance.new("Decal",blockcard) | |
2042 | acer.Texture = "rbxassetid://"..ace | |
2043 | acer.Transparency = 1 | |
2044 | acer.Face = "Front" | |
2045 | ace2 = acer:Clone() | |
2046 | ace2.Parent = blockcard | |
2047 | ace2.Face = "Back" | |
2048 | coroutine.wrap(function() | |
2049 | for i = 1, 20 do | |
2050 | blockcard.Transparency = blockcard.Transparency - 0.05 | |
2051 | acer.Transparency = blockcard.Transparency | |
2052 | ace2.Transparency = blockcard.Transparency | |
2053 | swait() | |
2054 | end | |
2055 | clickallowance = true | |
2056 | end)() | |
2057 | g1 = Instance.new("BodyGyro", Root) | |
2058 | g1.D = 175 | |
2059 | g1.P = 20000 | |
2060 | g1.MaxTorque = Vector3.new(0,9000,0) | |
2061 | coroutine.wrap(function() | |
2062 | while blocking do | |
2063 | if not blockedoff then | |
2064 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,-.2, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2065 | blockcard.CFrame = Root.CFrame * CFrame.new(0,3,-5) | |
2066 | g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.2) | |
2067 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.3) | |
2068 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, 1.35, 0.4) * CFrame.Angles(math.rad(-90 - 2 * math.sin(sine/12)), math.rad(3), math.rad(4)), 0.3) | |
2069 | end | |
2070 | swait() | |
2071 | end | |
2072 | end)() | |
2073 | wait(1) | |
2074 | mouse.Button1Down:connect(function() | |
2075 | if throwing then return end | |
2076 | if not clickallowance then return end | |
2077 | clickallowance = false | |
2078 | blockedoff = true | |
2079 | ws = 0 | |
2080 | for i = 1, 15 do | |
2081 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0), math.rad(25), math.rad(0)), 0.3) | |
2082 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, 1.35, 0.4) * CFrame.Angles(math.rad(-50 - 2 * math.sin(sine/12)), math.rad(12), math.rad(9)), 0.3) | |
2083 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(-.65, .6, 1) * CFrame.Angles(0,0,0),.3) | |
2084 | swait() | |
2085 | end | |
2086 | boosh:Play() | |
2087 | hitdebounce = false | |
2088 | blockcard.Touched:connect(function(hit) | |
2089 | if hit.Parent:IsA("Part") then | |
2090 | elseif hit.Parent:IsA("SpecialMesh") then | |
2091 | elseif hit.Parent.Name == game.Players.LocalPlayer.Name then | |
2092 | elseif hit.Parent:findFirstChildOfClass("Humanoid") then | |
2093 | for i,v in pairs(hit.Parent:GetChildren()) do | |
2094 | Slachtoffer = v.Parent:FindFirstChildOfClass("Humanoid") | |
2095 | if hitdebounce then return end | |
2096 | hitdebounce = true | |
2097 | vel = Instance.new("BodyVelocity",hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")) | |
2098 | vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999) | |
2099 | if Slachtoffer.RigType == Enum.HumanoidRigType.R15 then | |
2100 | tors = hit.Parent:FindFirstChild("UpperTorso") | |
2101 | else | |
2102 | tors = hit.Parent:FindFirstChild("Torso") | |
2103 | end | |
2104 | vel.velocity = CFrame.new(Root.Position,tors.Position).lookVector*120 | |
2105 | removeuseless:AddItem(vel,.1) | |
2106 | Slachtoffer:TakeDamage(math.random(23,44)) | |
2107 | end | |
2108 | end | |
2109 | end) | |
2110 | for i = 1, 10 do | |
2111 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3) | |
2112 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3) | |
2113 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, 1.35, 0.4) * CFrame.Angles(math.rad(-90 - 2 * math.sin(sine/12)), math.rad(-20), math.rad(4)), 0.3) | |
2114 | blockcard.CFrame = blockcard.CFrame * CFrame.new(0,0,0-1) | |
2115 | swait() | |
2116 | end | |
2117 | for i = 1, 10 do | |
2118 | blockcard.CFrame = blockcard.CFrame * CFrame.new(0,0,0+1) | |
2119 | swait() | |
2120 | end | |
2121 | hitdebounce = true | |
2122 | ws = 10 | |
2123 | clickallowance = true | |
2124 | blockedoff = false | |
2125 | end) | |
2126 | end | |
2127 | end | |
2128 | end) | |
2129 | ||
2130 | ||
2131 | mouse.KeyDown:connect(function(Press) | |
2132 | Press=Press:lower() | |
2133 | if Press=='f' then | |
2134 | if debounce then return end | |
2135 | if notallowedtransform then return end | |
2136 | debounce = true | |
2137 | if levitate then | |
2138 | levitate = false | |
2139 | mjester.VertexColor = Vector3.new(1, 1, 1) | |
2140 | glow.Transparency = 1 | |
2141 | blastwave = Instance.new("Part",Torso) | |
2142 | blastwave.CFrame = Torso.CFrame | |
2143 | blastwave.Anchored = true | |
2144 | blastwave.Material = "Neon" | |
2145 | blastwave.CanCollide = false | |
2146 | blastwave.Shape = "Ball" | |
2147 | blastwave.Size = Vector3.new(3,3,3) | |
2148 | coroutine.wrap(function() | |
2149 | for i = 1, 20 do | |
2150 | levitatewave.Transparency = levitatewave.Transparency + 0.05 | |
2151 | levitatewave2.Transparency = levitatewave2.Transparency + 0.05 | |
2152 | blastwave.Size = blastwave.Size + Vector3.new(2,2,2) | |
2153 | blastwave.Transparency = blastwave.Transparency + 0.05 | |
2154 | swait() | |
2155 | end | |
2156 | blastwave:Remove() | |
2157 | levitatewave2:Remove() | |
2158 | levitatewave:Remove() | |
2159 | end)() | |
2160 | ws = 10 | |
2161 | notallowedtransform = true | |
2162 | attacking = true | |
2163 | coroutine.wrap(function() | |
2164 | for i = 1, 10 do | |
2165 | for i,v in pairs(LeftArm:GetChildren()) do if v.Name == lmagic.Name then | |
2166 | v.Transparency = v.Transparency + 0.1 | |
2167 | end | |
2168 | end | |
2169 | for i,v in pairs(RightArm:GetChildren()) do if v.Name == rmagic.Name then | |
2170 | v.Transparency = v.Transparency + 0.1 | |
2171 | end | |
2172 | end | |
2173 | wait() | |
2174 | end | |
2175 | end)() | |
2176 | doomtheme.SoundId = "rbxassetid://1843358057" | |
2177 | jesterWeld.C0 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0) | |
2178 | wait(0.000001) | |
2179 | jesterWeld.C0 = jester.CFrame:inverse() * Head.CFrame * CFrame.new(0,-.3,0) * CFrame.Angles(math.rad(0),math.rad(90),0) | |
2180 | mjester.Scale = Vector3.new(1.1, 1.1, 1.1) | |
2181 | mjester.MeshId,mjester.TextureId = 'rbxassetid://1241662062','rbxassetid://1241662395' | |
2182 | ||
2183 | mMask.Scale = Vector3.new(0.13, 0.13, 0.1) | |
2184 | mMask.MeshId,mMask.TextureId = 'http://www.roblox.com/asset/?id=5158270','http://www.roblox.com/asset/?id=9543585' | |
2185 | maskweld.C0 = CFrame.new(0,0,0)*CFrame.Angles(0,0,0) | |
2186 | wait(0.000001) | |
2187 | maskweld.C0 = CFrame.new(0,-.555,0) * CFrame.Angles(math.rad(90),0,0) | |
2188 | ||
2189 | eyo1 = Instance.new("Part",Head) | |
2190 | eyo1.BrickColor = BrickColor.new("White") | |
2191 | eyo1.Material = "Neon" | |
2192 | eyo1.Shape = "Ball" | |
2193 | eyo1.Name = "eyo1" | |
2194 | eyo1.CanCollide = false | |
2195 | eyo1.Size = Vector3.new(0.33, 0.33, 0.33) | |
2196 | eyo1weld = weldBetween(eyo1,Head) | |
2197 | eyo1weld.C0 = CFrame.new(.215,-.05,.52) | |
2198 | ||
2199 | light = Instance.new("PointLight", eyo1) | |
2200 | light.Color = Color3.new(1,1,1) | |
2201 | light.Range = 3 | |
2202 | light.Brightness = 4 | |
2203 | light.Enabled = true | |
2204 | ||
2205 | eyo2 = Instance.new("Part",Head) | |
2206 | eyo2.BrickColor = BrickColor.new("White") | |
2207 | eyo2.Material = "Neon" | |
2208 | eyo2.Shape = "Ball" | |
2209 | eyo2.Name = "eyo2" | |
2210 | eyo2.CanCollide = false | |
2211 | eyo2.Size = Vector3.new(0.33, 0.33, 0.33) | |
2212 | eyo2weld = weldBetween(eyo2,Head) | |
2213 | eyo2weld.C0 = CFrame.new(-.215,-.05,.52) | |
2214 | ||
2215 | light2 = Instance.new("PointLight", eyo2) | |
2216 | light2.Color = Color3.new(1,1,1) | |
2217 | light2.Range = 3 | |
2218 | light2.Brightness = 4 | |
2219 | light2.Enabled = true | |
2220 | ||
2221 | Character.Shirt.ShirtTemplate = "rbxassetid://676428254" | |
2222 | Character.Pants.PantsTemplate = "rbxassetid://676428351" | |
2223 | hum.HipHeight = 0 | |
2224 | ws = 10 | |
2225 | debounce = false | |
2226 | attacking = false | |
2227 | coroutine.wrap(function() | |
2228 | wait(3) | |
2229 | notallowedtransform = false | |
2230 | end)() | |
2231 | else | |
2232 | ws = 50 | |
2233 | notallowedtransform = true | |
2234 | levitate = true | |
2235 | ws = 50 | |
2236 | glow.Transparency = 0 | |
2237 | eyo1:Remove() | |
2238 | eyo2:Remove() | |
2239 | coroutine.wrap(function() | |
2240 | while levitate do | |
2241 | for i,v in pairs(Head:GetChildren()) do | |
2242 | if v.Name == "eyo1" or v.Name == "eyo2" then | |
2243 | v:Remove() | |
2244 | end | |
2245 | end | |
2246 | wait() | |
2247 | end | |
2248 | end)() | |
2249 | mnb = 0 | |
2250 | levitatewave = Instance.new("Part", Torso) | |
2251 | levitatewave.Size = Vector3.new(1,1,1) | |
2252 | levitatewave.CanCollide = false | |
2253 | levitatewave.Anchored = true | |
2254 | levitatewave.Transparency = .5 | |
2255 | levitatewave.BrickColor = BrickColor.new("Really black") | |
2256 | levitatewave.CFrame = CFrame.new(Root.Position) * CFrame.new(0,-5,0) | |
2257 | levitatewavemesh = Instance.new("SpecialMesh", levitatewave) | |
2258 | levitatewavemesh.Scale = Vector3.new(2.5,.3,2.5) | |
2259 | levitatewavemesh.MeshId = "rbxassetid://20329976" | |
2260 | levitatewave2 = Instance.new("Part", Torso) | |
2261 | levitatewave2.Size = Vector3.new(1,1,1) | |
2262 | levitatewave2.CanCollide = false | |
2263 | levitatewave2.Anchored = true | |
2264 | levitatewave2.Transparency = .5 | |
2265 | levitatewave2.BrickColor = BrickColor.new("Really red") | |
2266 | levitatewave2.CFrame = CFrame.new(Root.Position) * CFrame.new(0,-5,0) | |
2267 | levitatewavemesh2 = Instance.new("SpecialMesh", levitatewave2) | |
2268 | levitatewavemesh2.Scale = Vector3.new(2,.4,2) | |
2269 | levitatewavemesh2.MeshId = "rbxassetid://20329976" | |
2270 | blastwave = Instance.new("Part",Torso) | |
2271 | blastwave.CFrame = Torso.CFrame | |
2272 | blastwave.Anchored = true | |
2273 | blastwave.Material = "Neon" | |
2274 | blastwave.CanCollide = false | |
2275 | blastwave.Shape = "Ball" | |
2276 | blastwave.Size = Vector3.new(3,3,3) | |
2277 | coroutine.wrap(function() | |
2278 | for i = 1, 20 do | |
2279 | blastwave.Size = blastwave.Size + Vector3.new(2,2,2) | |
2280 | blastwave.Transparency = blastwave.Transparency + 0.05 | |
2281 | swait() | |
2282 | end | |
2283 | blastwave:Remove() | |
2284 | end)() | |
2285 | coroutine.wrap(function() | |
2286 | while levitate do | |
2287 | mnb = mnb + 15 | |
2288 | levitatewave.CFrame = CFrame.new(Root.Position) * CFrame.new(0,-6 + .5 * math.sin(sine/9),0) * CFrame.Angles(0,math.rad(mnb),0) | |
2289 | levitatewave2.CFrame = CFrame.new(Root.Position) * CFrame.new(0,-6 + .5 * math.sin(sine/9),0) * CFrame.Angles(0,math.rad(mnb),0) | |
2290 | colors = colortable[math.random(1,#colortable)] | |
2291 | lmagic = Instance.new("Part",LeftArm) | |
2292 | lmagic.Material = "Neon" | |
2293 | lmagic.CanCollide = false | |
2294 | lmagic.Anchored = true | |
2295 | lmagic.BrickColor = BrickColor.new(colors) | |
2296 | lmagic.Size = Vector3.new(1,1,1) | |
2297 | lmagic.CFrame = leftlocation.CFrame * CFrame.Angles(math.random(-180,180),math.random(-180,180),math.random(-180,180)) | |
2298 | removeuseless:AddItem(lmagic,2) | |
2299 | rmagic = Instance.new("Part",RightArm) | |
2300 | rmagic.Material = "Neon" | |
2301 | rmagic.CanCollide = false | |
2302 | rmagic.Anchored = true | |
2303 | rmagic.BrickColor = BrickColor.new(colors) | |
2304 | rmagic.Size = Vector3.new(1,1,1) | |
2305 | rmagic.CFrame = rightlocation.CFrame * CFrame.Angles(math.random(-180,180),math.random(-180,180),math.random(-180,180)) | |
2306 | removeuseless:AddItem(rmagic,2) | |
2307 | for i,v in pairs(LeftArm:GetChildren()) do if v.Name == lmagic.Name then | |
2308 | v.Transparency = v.Transparency + 0.05 | |
2309 | end | |
2310 | end | |
2311 | for i,v in pairs(RightArm:GetChildren()) do if v.Name == rmagic.Name then | |
2312 | v.Transparency = v.Transparency + 0.05 | |
2313 | end | |
2314 | end | |
2315 | swait() | |
2316 | end | |
2317 | end)() | |
2318 | framee = Instance.new("Frame") | |
2319 | framee.Parent = screenGui | |
2320 | framee.Position = UDim2.new(0, 8, 0, -500) | |
2321 | framee.Size = UDim2.new(100000000,10000000,10000000,10000000) | |
2322 | framee.BackgroundColor3 = BrickColor.new("White").Color | |
2323 | framee.BackgroundTransparency = 0 | |
2324 | coroutine.wrap(function() | |
2325 | wait(.2) | |
2326 | for i = 1, 40 do | |
2327 | hum.CameraOffset = Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-0,0)) | |
2328 | framee.BackgroundTransparency = framee.BackgroundTransparency + 0.025 | |
2329 | swait() | |
2330 | end | |
2331 | hum.CameraOffset = Vector3.new(0,0,0) | |
2332 | framee:Remove() | |
2333 | end)() | |
2334 | doomtheme.SoundId = "rbxassetid://1382488262" | |
2335 | doomtheme:Play() | |
2336 | doomtheme.Volume = 2 | |
2337 | doomtheme.TimePosition = 20.7 | |
2338 | jesterWeld.C0 = jesterWeld.C0 * CFrame.new(.3,-.3,0) * CFrame.Angles(math.rad(0),math.rad(-90),0) | |
2339 | mjester.MeshId = "rbxassetid://193760002" | |
2340 | mjester.TextureId = "rbxassetid://379225327" | |
2341 | mjester.VertexColor = Vector3.new(1, 0, 0) | |
2342 | Character.Shirt.ShirtTemplate = "rbxassetid://238537827" | |
2343 | Character.Pants.PantsTemplate = "rbxassetid://486031443" | |
2344 | maskweld.C0 = maskweld.C0 * CFrame.new(0,.55,-.5) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)) | |
2345 | mMask.MeshId = "rbxassetid://13520257" | |
2346 | mMask.Scale = Vector3.new(1.1, 1, 1) | |
2347 | mMask.TextureId = "rbxassetid://13520260" | |
2348 | eyo1:Remove() | |
2349 | eyo2:Remove() | |
2350 | coroutine.wrap(function() | |
2351 | while levitate do | |
2352 | hum.HipHeight = 3 - .5 * math.sin(sine/9) | |
2353 | swait() | |
2354 | end | |
2355 | end)() | |
2356 | attacking = false | |
2357 | debounce = false | |
2358 | coroutine.wrap(function() | |
2359 | wait(3) | |
2360 | notallowedtransform = false | |
2361 | end)() | |
2362 | end | |
2363 | end | |
2364 | end) | |
2365 | ||
2366 | mouse.KeyDown:connect(function(Press) | |
2367 | Press=Press:lower() | |
2368 | if Press=='.' then | |
2369 | hum.Parent:BreakJoints() | |
2370 | end | |
2371 | end) | |
2372 | ||
2373 | checks1 = coroutine.wrap(function() -------Checks | |
2374 | while true do | |
2375 | if Root.Velocity.y > 1 and levitate == false then | |
2376 | position = "Jump" | |
2377 | elseif Root.Velocity.y < -1 and levitate == false then | |
2378 | position = "Falling" | |
2379 | elseif Root.Velocity.Magnitude < 2 and running == false and not levitate then | |
2380 | position = "Idle" | |
2381 | elseif Root.Velocity.Magnitude < 2 and running == false then | |
2382 | position = "Idle2" | |
2383 | elseif Root.Velocity.Magnitude < 20 and running == false and levitate == false then | |
2384 | position = "Walking" | |
2385 | elseif Root.Velocity.Magnitude > 20 and running == false and levitate then | |
2386 | position = "Walking2" | |
2387 | elseif Root.Velocity.Magnitude > 20 and levitate == false then | |
2388 | position = "Running" | |
2389 | else | |
2390 | end | |
2391 | wait() | |
2392 | end | |
2393 | end) | |
2394 | checks1() | |
2395 | ||
2396 | function ray(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
2397 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
2398 | end | |
2399 | ||
2400 | function ray2(StartPos, EndPos, Distance, Ignore) | |
2401 | local DIRECTION = CFrame.new(StartPos,EndPos).lookVector | |
2402 | return ray(StartPos, DIRECTION, Distance, Ignore) | |
2403 | end | |
2404 | ||
2405 | OrgnC0 = Neck.C0 | |
2406 | local movelimbs = coroutine.wrap(function() | |
2407 | while RunSrv.RenderStepped:wait() do | |
2408 | TrsoLV = Torso.CFrame.lookVector | |
2409 | Dist = nil | |
2410 | Diff = nil | |
2411 | if not MseGuide then | |
2412 | print("Failed to recognize") | |
2413 | else | |
2414 | local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, mouse.Hit.lookVector), Workspace, false, true) | |
2415 | Dist = (Head.CFrame.p-Point).magnitude | |
2416 | Diff = Head.CFrame.Y-Point.Y | |
2417 | local _, Point2 = Workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, mouse.Hit.lookVector), Workspace, false, true) | |
2418 | Dist2 = (LeftArm.CFrame.p-Point).magnitude | |
2419 | Diff2 = LeftArm.CFrame.Y-Point.Y | |
2420 | HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
2421 | Neck.C0 = Neck.C0:lerp(OrgnC0*CFrame.Angles((math.tan(Diff/Dist)*1), 0, (((Head.CFrame.p-Point).Unit):Cross(Torso.CFrame.lookVector)).Y*1), .1) | |
2422 | end | |
2423 | end | |
2424 | end) | |
2425 | movelimbs() | |
2426 | immortal = {} | |
2427 | for i,v in pairs(Character:GetDescendants()) do | |
2428 | if v:IsA("BasePart") and v.Name ~= "lmagic" and v.Name ~= "rmagic" then | |
2429 | if v ~= Root and v ~= Torso and v ~= Head and v ~= RightArm and v ~= LeftArm and v ~= RightLeg and v.Name ~= "lmagic" and v.Name ~= "rmagic" and v ~= LeftLeg then | |
2430 | v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
2431 | end | |
2432 | table.insert(immortal,{v,v.Parent,v.Material,v.Color,v.Transparency}) | |
2433 | elseif v:IsA("JointInstance") then | |
2434 | table.insert(immortal,{v,v.Parent,nil,nil,nil}) | |
2435 | end | |
2436 | end | |
2437 | for e = 1, #immortal do | |
2438 | if immortal[e] ~= nil then | |
2439 | local STUFF = immortal[e] | |
2440 | local PART = STUFF[1] | |
2441 | local PARENT = STUFF[2] | |
2442 | local MATERIAL = STUFF[3] | |
2443 | local COLOR = STUFF[4] | |
2444 | local TRANSPARENCY = STUFF[5] | |
2445 | if levitate then | |
2446 | if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= eyo1 and PART.Name ~= eyo2 and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then | |
2447 | PART.Material = MATERIAL | |
2448 | PART.Color = COLOR | |
2449 | PART.Transparency = TRANSPARENCY | |
2450 | end | |
2451 | PART.AncestryChanged:connect(function() | |
2452 | PART.Parent = PARENT | |
2453 | end) | |
2454 | else | |
2455 | if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then | |
2456 | PART.Material = MATERIAL | |
2457 | PART.Color = COLOR | |
2458 | PART.Transparency = TRANSPARENCY | |
2459 | end | |
2460 | PART.AncestryChanged:connect(function() | |
2461 | PART.Parent = PARENT | |
2462 | end) | |
2463 | end | |
2464 | end | |
2465 | end | |
2466 | function immortality() | |
2467 | for e = 1, #immortal do | |
2468 | if immortal[e] ~= nil then | |
2469 | local STUFF = immortal[e] | |
2470 | local PART = STUFF[1] | |
2471 | local PARENT = STUFF[2] | |
2472 | local MATERIAL = STUFF[3] | |
2473 | local COLOR = STUFF[4] | |
2474 | local TRANSPARENCY = STUFF[5] | |
2475 | if PART.ClassName == "Part" and PART == Root then | |
2476 | PART.Material = MATERIAL | |
2477 | PART.Color = COLOR | |
2478 | PART.Transparency = TRANSPARENCY | |
2479 | end | |
2480 | if PART.Parent ~= PARENT then | |
2481 | hum:Remove() | |
2482 | PART.Parent = PARENT | |
2483 | hum = Instance.new("Humanoid",Character) | |
2484 | if levitate then | |
2485 | eyo1:Remove() | |
2486 | eyo2:Remove() | |
2487 | end | |
2488 | hum.Name = "noneofurbusiness" | |
2489 | end | |
2490 | end | |
2491 | end | |
2492 | end | |
2493 | coroutine.wrap(function() | |
2494 | while true do | |
2495 | if hum.Health < .1 then | |
2496 | deadsound = Instance.new("Sound", Torso) | |
2497 | deadsound.Volume = 6 | |
2498 | deadsound.SoundId = "rbxassetid://1411352723" | |
2499 | deadsound:Play() | |
2500 | immortality() | |
2501 | end | |
2502 | wait() | |
2503 | end | |
2504 | end)() | |
2505 | ||
2506 | mouse.KeyDown:connect(function(Press) | |
2507 | Press=Press:lower() | |
2508 | if Press=='g' then | |
2509 | if not levitate then return end | |
2510 | if debounce then return end | |
2511 | debounce = true | |
2512 | attacking = true | |
2513 | FireBall:Play() | |
2514 | ws = 15 | |
2515 | g1 = Instance.new("BodyGyro", Root) | |
2516 | g1.D = 175 | |
2517 | g1.P = 20000 | |
2518 | g1.MaxTorque = Vector3.new(0,9000,0) | |
2519 | for i = 1, 15 do | |
2520 | g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.2) | |
2521 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(-10),math.rad(-15),math.rad(0)),.5) | |
2522 | RIGHTARMLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0) | |
2523 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(14), math.rad(20), math.rad(-90)), 0.3) | |
2524 | swait() | |
2525 | end | |
2526 | local swoosh = Instance.new("Part",Torso) | |
2527 | swoosh.Name = "swoosh" | |
2528 | swoosh.CFrame = rightlocation.CFrame * CFrame.new(0,0,0) | |
2529 | swoosh.Size = Vector3.new(1.7,1.7,1.7) | |
2530 | swoosh.Shape = "Ball" | |
2531 | swoosh.Material = "Neon" | |
2532 | swoosh.BrickColor = BrickColor.new("Really black") | |
2533 | swoosh.CanCollide = false | |
2534 | swoosh.Touched:connect(function(hit) | |
2535 | if hit.Parent:IsA("Part") then | |
2536 | elseif hit.Parent:IsA("SpecialMesh") then | |
2537 | elseif hit.Parent.Name == game.Players.LocalPlayer.Name then | |
2538 | elseif hit.Parent:findFirstChildOfClass("Humanoid") then | |
2539 | Slachtoffer = hit.Parent:findFirstChildOfClass("Humanoid") | |
2540 | if Slachtoffer.Health < 1 then return end | |
2541 | if damagedebounce == true then return end | |
2542 | damagedebounce = true | |
2543 | swoosh:Remove() | |
2544 | explosion = Instance.new("Part",LeftArm) | |
2545 | explosion.CFrame = hit.CFrame | |
2546 | explosion.Anchored = true | |
2547 | explosion.CanCollide = false | |
2548 | explosion.Name = "explo" | |
2549 | explosion.Shape = "Ball" | |
2550 | explosion.BrickColor = swoosh.BrickColor | |
2551 | explosion.Material = "Neon" | |
2552 | vel = Instance.new("BodyVelocity",hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")) | |
2553 | vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999) | |
2554 | torso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") | |
2555 | vel.velocity = CFrame.new(swoosh.Position,torso.Position).lookVector*60 | |
2556 | removeuseless:AddItem(vel,.1) | |
2557 | shockwavevv = Instance.new("Part",LeftArm) | |
2558 | shockwavevv.Size = Vector3.new(1,1,1) | |
2559 | shockwavevv.CanCollide = false | |
2560 | shockwavevv.Anchored = true | |
2561 | shockwavevv.Name = "shock" | |
2562 | shockwavevv.Transparency = 0 | |
2563 | shockwavevv.BrickColor = BrickColor.new("Really black") | |
2564 | shockwavevv.CFrame = CFrame.new(explosion.Position) * CFrame.Angles(math.random(-180,180),math.random(-180,180),math.random(-180,180)) | |
2565 | shockwavemeshs = Instance.new("SpecialMesh", shockwavevv) | |
2566 | shockwavemeshs.Name = "ring" | |
2567 | shockwavemeshs.Scale = Vector3.new(.1,3,3) | |
2568 | shockwavemeshs.MeshId = "rbxassetid://3270017" | |
2569 | shockwave2vv = Instance.new("Part", LeftArm) | |
2570 | shockwave2vv.Size = Vector3.new(1,1,1) | |
2571 | shockwave2vv.CanCollide = false | |
2572 | shockwave2vv.Anchored = true | |
2573 | shockwave2vv.Name = "shock2" | |
2574 | shockwave2vv.Transparency = 0 | |
2575 | shockwave2vv.BrickColor = BrickColor.new("Really black") | |
2576 | shockwave2vv.CFrame = CFrame.new(explosion.Position) * CFrame.Angles(math.random(-180,180),math.random(-180,180),math.random(-180,180)) | |
2577 | shockwavemeshs2 = Instance.new("SpecialMesh", shockwave2vv) | |
2578 | shockwavemeshs2.Scale = Vector3.new(.1,3,3) | |
2579 | shockwavemeshs2.Name = "ring2" | |
2580 | shockwavemeshs2.MeshId = "rbxassetid://3270017" | |
2581 | removeuseless:AddItem(shockwavevv,3) | |
2582 | removeuseless:AddItem(shockwavevv2,3) | |
2583 | removeuseless:AddItem(explosion,3) | |
2584 | SOUND(explosion,472579737,6,false,3) | |
2585 | coroutine.wrap(function() | |
2586 | if firsttime2 then return end | |
2587 | firsttime2 = true | |
2588 | while true do | |
2589 | for i,v in pairs(LeftArm:GetChildren()) do | |
2590 | if v.Name == "explo" then | |
2591 | v.Size = v.Size + Vector3.new(2.5,2.5,2.5) | |
2592 | v.Transparency = v.Transparency + .05 | |
2593 | end | |
2594 | end | |
2595 | for i,v in pairs(shockwavevv:GetChildren()) do | |
2596 | if v.Name == "ring" then | |
2597 | v.Scale = v.Scale + Vector3.new(2.5,2.5,0) | |
2598 | end | |
2599 | end | |
2600 | for i,v in pairs(shockwave2vv:GetChildren()) do | |
2601 | if v.Name == "ring2" then | |
2602 | v.Scale = v.Scale + Vector3.new(2.5,2.5,0) | |
2603 | end | |
2604 | end | |
2605 | for i,v in pairs(LeftArm:GetChildren()) do | |
2606 | if v.Name == "shock" then | |
2607 | v.Transparency = v.Transparency + .05 | |
2608 | end | |
2609 | end | |
2610 | for i,v in pairs(LeftArm:GetChildren()) do | |
2611 | if v.Name == "shock2" then | |
2612 | v.Transparency = v.Transparency + .05 | |
2613 | end | |
2614 | end | |
2615 | swait() | |
2616 | end | |
2617 | end)() | |
2618 | Slachtoffer:TakeDamage(math.random(27,48)) | |
2619 | wait(.1) | |
2620 | damagedebounce = false | |
2621 | end | |
2622 | end) | |
2623 | coroutine.wrap(function() | |
2624 | if firsttime then return end | |
2625 | firsttime = true | |
2626 | while wait() do | |
2627 | for i,v in pairs(Torso:GetChildren()) do | |
2628 | if v.Name == "swoosh" then | |
2629 | magiccc = Instance.new("Part",RightArm) | |
2630 | magiccc.Material = "Neon" | |
2631 | magiccc.CanCollide = false | |
2632 | magiccc.Anchored = true | |
2633 | magiccc.BrickColor = BrickColor.new(colors) | |
2634 | magiccc.Size = Vector3.new(1.5,1.5,1.5) | |
2635 | magiccc.CFrame = v.CFrame * CFrame.Angles(math.random(-180,180),math.random(-180,180),math.random(-180,180)) | |
2636 | removeuseless:AddItem(magiccc,2) | |
2637 | end | |
2638 | end | |
2639 | end | |
2640 | end)() | |
2641 | bov = Instance.new("BodyVelocity",swoosh) | |
2642 | bov.maxForce = Vector3.new(99999,99999,99999) | |
2643 | swoosh.CFrame = CFrame.new(swoosh.Position,mouse.Hit.p) | |
2644 | bov.velocity = swoosh.CFrame.lookVector*120 | |
2645 | removeuseless:AddItem(swoosh,4) | |
2646 | for i = 1, 15 do | |
2647 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(10),math.rad(15),math.rad(0)),.5) | |
2648 | RIGHTARMLERP.C1 = CFrame.new(0,0,0) | |
2649 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.2,1,.5) * CFrame.Angles(math.rad(-90),math.rad(-25),math.rad(0)), 0.5) | |
2650 | swait() | |
2651 | end | |
2652 | ws = 50 | |
2653 | removeuseless:AddItem(g1,0.01) | |
2654 | debounce = false | |
2655 | attacking = false | |
2656 | end | |
2657 | end) | |
2658 | ||
2659 | mouse.KeyDown:connect(function(Press) | |
2660 | Press=Press:lower() | |
2661 | if Press=='h' then | |
2662 | if not levitate then return end | |
2663 | if debounce then return end | |
2664 | debounce = true | |
2665 | attacking = true | |
2666 | ws = 0 | |
2667 | appi = true | |
2668 | coroutine.wrap(function() | |
2669 | while appi do | |
2670 | swait() | |
2671 | if Root.Velocity.Magnitude < 2 and attacking == true then | |
2672 | position = "Idle3" | |
2673 | end | |
2674 | end | |
2675 | end)() | |
2676 | coroutine.wrap(function() | |
2677 | while appi do | |
2678 | swait() | |
2679 | settime = 0.05 | |
2680 | sine = sine + change | |
2681 | if position == "Idle3" and attacking == true and appi == true then | |
2682 | change = .4 | |
2683 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
2684 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(-.2,.2,0) * CFrame.Angles(0,0,0),.1) | |
2685 | LEFTARMLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0) | |
2686 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.6, 0.8 - .1 * math.sin(sine/9), 0) * CFrame.Angles(math.rad(0), math.rad(0 + 3 * math.sin(sine/9)), math.rad(35 - 5 * math.sin(sine/9))), 0.4) | |
2687 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.4) | |
2688 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 2.0,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10 + 2 * math.sin(sine/9))), 0.4) | |
2689 | end | |
2690 | end | |
2691 | end)() | |
2692 | coroutine.wrap(function() | |
2693 | for i = 1, 20 do | |
2694 | RIGHTARMLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0) | |
2695 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(0,math.rad(50),0),.3) | |
2696 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.1,1.3,1.1) * CFrame.Angles(math.rad(180),math.rad(-50),math.rad(0)), 0.3) | |
2697 | swait() | |
2698 | end | |
2699 | end)() | |
2700 | SOUND(LeftArm,1982011510,8,false,15) | |
2701 | blackhole={} | |
2702 | orbzfade={} | |
2703 | xz = 0 | |
2704 | for i = 1, 220 do | |
2705 | xz = xz + .009 | |
2706 | bigrmagic = Instance.new("Part",RightArm) | |
2707 | bigrmagic.Material = "Neon" | |
2708 | bigrmagic.CanCollide = false | |
2709 | bigrmagic.Anchored = true | |
2710 | bigrmagic.BrickColor = BrickColor.new(colors) | |
2711 | bigrmagic.Size = Vector3.new(xz,xz,xz) | |
2712 | bigrmagic.CFrame = rightlocation.CFrame * CFrame.Angles(math.random(-180,180),math.random(-180,180),math.random(-180,180)) | |
2713 | removeuseless:AddItem(bigrmagic,1) | |
2714 | orbz = Instance.new("Part", Torso) | |
2715 | orbz.Material = "Neon" | |
2716 | orbz.BrickColor = BrickColor.new(colors) | |
2717 | orbz.Size = Vector3.new(2,2,2) | |
2718 | orbz.Anchored = true | |
2719 | orbz.CanCollide = false | |
2720 | removeuseless:AddItem(orbz,1) | |
2721 | orbz.CFrame = rightlocation.CFrame * CFrame.new(math.random(-25,25),math.random(-25,25),math.random(-25,25)) * CFrame.Angles(math.rad(-180,180),math.rad(-180,180),math.rad(-180,180)) | |
2722 | table.insert(blackhole,orbz) | |
2723 | table.insert(orbzfade,orbz) | |
2724 | for i,v in pairs(blackhole) do | |
2725 | v.Size = v.Size - Vector3.new(.1,.1,.1) | |
2726 | v.CFrame = v.CFrame:lerp(CFrame.new(rightlocation.Position),.09) | |
2727 | end | |
2728 | for i,v in pairs(orbzfade) do | |
2729 | v.Transparency = v.Transparency + 0.025 | |
2730 | end | |
2731 | swait() | |
2732 | end | |
2733 | coroutine.wrap(function() | |
2734 | for i = 1, 10 do | |
2735 | for i,v in pairs(blackhole) do | |
2736 | v.Size = v.Size + Vector3.new(.5,.5,.5) | |
2737 | v.Transparency = v.Transparency + .1 | |
2738 | end | |
2739 | swait() | |
2740 | end | |
2741 | for i,v in pairs(blackhole) do | |
2742 | v:Remove() | |
2743 | end | |
2744 | clean() | |
2745 | end)() | |
2746 | charging = true | |
2747 | coroutine.wrap(function() | |
2748 | while charging do | |
2749 | bigrmagic = Instance.new("Part",RightArm) | |
2750 | bigrmagic.Material = "Neon" | |
2751 | bigrmagic.CanCollide = false | |
2752 | bigrmagic.Anchored = true | |
2753 | bigrmagic.BrickColor = BrickColor.new(colors) | |
2754 | bigrmagic.Size = Vector3.new(xz,xz,xz) | |
2755 | bigrmagic.CFrame = rightlocation.CFrame * CFrame.Angles(math.random(-180,180),math.random(-180,180),math.random(-180,180)) | |
2756 | removeuseless:AddItem(bigrmagic,.2) | |
2757 | swait() | |
2758 | end | |
2759 | end)() | |
2760 | g1 = Instance.new("BodyGyro", Root) | |
2761 | g1.D = 175 | |
2762 | g1.P = 20000 | |
2763 | g1.MaxTorque = Vector3.new(0,9000,0) | |
2764 | BigFireBall:Play() | |
2765 | for i = 1, 15 do | |
2766 | g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.2) | |
2767 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(-10),math.rad(-15),math.rad(0)),.5) | |
2768 | RIGHTARMLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0) | |
2769 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(14), math.rad(20), math.rad(-90)), 0.3) | |
2770 | swait() | |
2771 | end | |
2772 | coroutine.wrap(function() | |
2773 | for i = 1, 15 do | |
2774 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(10),math.rad(15),math.rad(0)),.5) | |
2775 | RIGHTARMLERP.C1 = CFrame.new(0,0,0) | |
2776 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.2,1,.5) * CFrame.Angles(math.rad(-90),math.rad(-25),math.rad(0)), 0.5) | |
2777 | swait() | |
2778 | end | |
2779 | end)() | |
2780 | charging = false | |
2781 | local ballzor = Instance.new("Part",Torso) | |
2782 | ballzor.Name = "ballzor" | |
2783 | ballzor.Material = "Neon" | |
2784 | ballzor.BrickColor = BrickColor.new("Really black") | |
2785 | ballzor.CanCollide = false | |
2786 | ballzor.Size = Vector3.new(xz,xz,xz) | |
2787 | ballzor.Anchored = false | |
2788 | ballzor.CFrame = Root.CFrame * CFrame.new(1,0,-5) | |
2789 | ballzor.Shape = "Ball" | |
2790 | removeuseless:AddItem(g1,.0001) | |
2791 | zx = xz + .05 | |
2792 | coroutine.wrap(function() | |
2793 | if firsttime5 then return end | |
2794 | firsttime5 = true | |
2795 | while true do | |
2796 | swait() | |
2797 | for i,v in pairs(Torso:GetChildren()) do | |
2798 | if v.Name == "ballzor" then | |
2799 | magicccc = Instance.new("Part",RightArm) | |
2800 | magicccc.Material = "Neon" | |
2801 | magicccc.CanCollide = false | |
2802 | magicccc.Name = "magicccc" | |
2803 | magicccc.Anchored = true | |
2804 | magicccc.Transparency = 0 | |
2805 | magicccc.BrickColor = BrickColor.new(colors) | |
2806 | magicccc.Size = Vector3.new(zx,zx,zx) | |
2807 | magicccc.CFrame = v.CFrame * CFrame.Angles(math.random(-180,180),math.random(-180,180),math.random(-180,180)) | |
2808 | removeuseless:AddItem(magicccc,2) | |
2809 | end | |
2810 | end | |
2811 | for i,v in pairs(RightArm:GetChildren()) do | |
2812 | if v.Name == "magicccc" then | |
2813 | v.Transparency = v.Transparency + 0.025 | |
2814 | end | |
2815 | end | |
2816 | end | |
2817 | end)() | |
2818 | ballzor.Touched:connect(function(hit) | |
2819 | if hit.Name ~= "magicccc" then | |
2820 | if bigball then return end | |
2821 | bigball = true | |
2822 | local explosionwave = Instance.new("Part",Torso) | |
2823 | explosionwave.Shape = "Ball" | |
2824 | explosionwave.BrickColor = BrickColor.new("Really black") | |
2825 | explosionwave.Anchored = true | |
2826 | explosionwave.CanCollide = false | |
2827 | explosionwave.Transparency = .2 | |
2828 | explosionwave.Material = "Neon" | |
2829 | explosionwave.Size = Vector3.new(1,1,1) | |
2830 | explosionwave.CFrame = ballzor.CFrame | |
2831 | render = Instance.new("Sound",explosionwave) | |
2832 | render.SoundId = "rbxassetid://2006635781" | |
2833 | render.Volume = 10 * 10 | |
2834 | render:Play() | |
2835 | local explosionwave2 = Instance.new("Part",Torso) | |
2836 | explosionwave2.Shape = "Ball" | |
2837 | explosionwave2.BrickColor = BrickColor.new("Really red") | |
2838 | explosionwave2.Anchored = true | |
2839 | explosionwave2.CanCollide = false | |
2840 | explosionwave2.Material = "Neon" | |
2841 | explosionwave2.Size = Vector3.new(.8,.8,.8) | |
2842 | explosionwave2.CFrame = ballzor.CFrame | |
2843 | deadlywave = Instance.new("Part", explosionwave) | |
2844 | deadlywave.Size = Vector3.new(1,1,1) | |
2845 | deadlywave.CanCollide = false | |
2846 | deadlywave.Anchored = true | |
2847 | deadlywave.Transparency = .5 | |
2848 | deadlywave.BrickColor = BrickColor.new("Really red") | |
2849 | deadlywave.CFrame = CFrame.new(explosionwave.Position) | |
2850 | deadlywavemesh = Instance.new("SpecialMesh", deadlywave) | |
2851 | deadlywavemesh.Scale = Vector3.new(1,2,1) | |
2852 | deadlywavemesh.MeshId = "rbxassetid://20329976" | |
2853 | deadlywave2 = Instance.new("Part", explosionwave) | |
2854 | deadlywave2.Size = Vector3.new(1,1,1) | |
2855 | deadlywave2.CanCollide = false | |
2856 | deadlywave2.Anchored = true | |
2857 | deadlywave2.Transparency = .5 | |
2858 | deadlywave2.BrickColor = BrickColor.new("Really black") | |
2859 | deadlywave2.CFrame = CFrame.new(explosionwave.Position) | |
2860 | deadlywave2mesh = Instance.new("SpecialMesh", deadlywave2) | |
2861 | deadlywave2mesh.Scale = Vector3.new(3,2,3) | |
2862 | deadlywave2mesh.MeshId = "rbxassetid://20329976" | |
2863 | deadlyring = Instance.new("Part", Torso) | |
2864 | deadlyring.Size = Vector3.new(5, 5, 5) | |
2865 | deadlyring.Transparency = 0.5 | |
2866 | deadlyring.BrickColor = BrickColor.new("Really black") | |
2867 | deadlyring.Anchored = true | |
2868 | deadlyring.CanCollide = false | |
2869 | deadlyring.CFrame = deadlywave.CFrame * CFrame.Angles(math.rad(math.random(-180,180)), math.rad(math.random(-180,180)), math.rad(math.random(-180,180))) | |
2870 | deadlyringh = Instance.new("SpecialMesh", deadlyring) | |
2871 | deadlyringh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2872 | deadlyringh.Scale = Vector3.new(8, 8, .1) | |
2873 | deadlyring2 = Instance.new("Part", Torso) | |
2874 | deadlyring2.Size = Vector3.new(5, 5, 5) | |
2875 | deadlyring2.Transparency = 0.5 | |
2876 | deadlyring2.BrickColor = BrickColor.new("Really black") | |
2877 | deadlyring2.Anchored = true | |
2878 | deadlyring2.CanCollide = false | |
2879 | deadlyring2.CFrame = deadlywave.CFrame * CFrame.Angles(math.rad(math.random(-180,180)), math.rad(math.random(-180,180)), math.rad(math.random(-180,180))) | |
2880 | deadlyringh2 = Instance.new("SpecialMesh", deadlyring2) | |
2881 | deadlyringh2.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2882 | deadlyringh2.Scale = Vector3.new(8, 8, .1) | |
2883 | ballzor:Remove() | |
2884 | bigball = false | |
2885 | staybooming = true | |
2886 | d = 5 | |
2887 | coroutine.wrap(function() | |
2888 | while staybooming do | |
2889 | Hit = damagealll(d,deadlywave.Position) | |
2890 | for _,v in pairs(Hit) do | |
2891 | v:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(10,20)) | |
2892 | vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")) | |
2893 | vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999) | |
2894 | torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso") | |
2895 | vel.velocity = CFrame.new(deadlywave.Position,torso.Position).lookVector*50 | |
2896 | removeuseless:AddItem(vel,.1) | |
2897 | end | |
2898 | wait(.1) | |
2899 | end | |
2900 | end)() | |
2901 | for i = 1, 70 do | |
2902 | d = d + 1 | |
2903 | deadlyringh2.Scale = deadlyringh2.Scale + Vector3.new(.5, .5, .1) | |
2904 | deadlyringh.Scale = deadlyringh.Scale + Vector3.new(.5, .5, .1) | |
2905 | deadlyring.CFrame = deadlyring.CFrame * CFrame.Angles(math.rad(0+7),math.rad(0-7),math.rad(0+7)) | |
2906 | deadlyring2.CFrame = deadlyring2.CFrame * CFrame.Angles(math.rad(0-7),math.rad(0+7),math.rad(0-7)) | |
2907 | deadlywave.CFrame = deadlywave.CFrame * CFrame.Angles(0,math.rad(0+7),0) | |
2908 | deadlywave2.CFrame = deadlywave2.CFrame * CFrame.Angles(0,math.rad(0+4),0) | |
2909 | deadlywavemesh.Scale = deadlywavemesh.Scale + Vector3.new(.4,0,.4) | |
2910 | deadlywave2mesh.Scale = deadlywave2mesh.Scale + Vector3.new(.5,0,.5) | |
2911 | explosionwave.Size = explosionwave.Size + Vector3.new(.5,.5,.5) | |
2912 | explosionwave2.Size = explosionwave2.Size + Vector3.new(.5,.5,.5) | |
2913 | swait() | |
2914 | end | |
2915 | for i = 1, 80 do | |
2916 | d = d + 3 | |
2917 | hum.CameraOffset = Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1)) | |
2918 | deadlyringh2.Scale = deadlyringh2.Scale + Vector3.new(4, 4, .2) | |
2919 | deadlyringh.Scale = deadlyringh.Scale + Vector3.new(4, 4, .2) | |
2920 | deadlyring.CFrame = deadlyring.CFrame * CFrame.Angles(math.rad(0+12),math.rad(0-12),math.rad(0+12)) | |
2921 | deadlyring2.CFrame = deadlyring2.CFrame * CFrame.Angles(math.rad(0-12),math.rad(0+12),math.rad(0-12)) | |
2922 | deadlywave.CFrame = deadlywave.CFrame * CFrame.Angles(0,math.rad(0+20),0) | |
2923 | deadlywave2.CFrame = deadlywave2.CFrame * CFrame.Angles(0,math.rad(0+14),0) | |
2924 | deadlywavemesh.Scale = deadlywavemesh.Scale + Vector3.new(3,2,3) | |
2925 | deadlywave2mesh.Scale = deadlywave2mesh.Scale + Vector3.new(4,1,4) | |
2926 | explosionwave.Size = explosionwave.Size + Vector3.new(4,4,4) | |
2927 | explosionwave2.Size = explosionwave2.Size + Vector3.new(4,4,4) | |
2928 | swait() | |
2929 | end | |
2930 | staybooming = false | |
2931 | for i = 1, 20 do | |
2932 | d = d + 3 | |
2933 | hum.CameraOffset = Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1)) | |
2934 | deadlyringh2.Scale = deadlyringh2.Scale + Vector3.new(4, 4, .2) | |
2935 | deadlyringh.Scale = deadlyringh.Scale + Vector3.new(4, 4, .2) | |
2936 | deadlyring.CFrame = deadlyring.CFrame * CFrame.Angles(math.rad(0+12),math.rad(0-12),math.rad(0+12)) | |
2937 | deadlyring2.CFrame = deadlyring2.CFrame * CFrame.Angles(math.rad(0-12),math.rad(0+12),math.rad(0-12)) | |
2938 | deadlyring.Transparency = deadlyring.Transparency + .25 | |
2939 | deadlyring2.Transparency = deadlyring2.Transparency + .25 | |
2940 | deadlywave.CFrame = deadlywave.CFrame * CFrame.Angles(0,math.rad(0+20),0) | |
2941 | deadlywave2.CFrame = deadlywave2.CFrame * CFrame.Angles(0,math.rad(0+14),0) | |
2942 | deadlywavemesh.Scale = deadlywavemesh.Scale + Vector3.new(3,0,3) | |
2943 | deadlywave2mesh.Scale = deadlywave2mesh.Scale + Vector3.new(4,0,4) | |
2944 | deadlywave.Transparency = deadlywave.Transparency + .25 | |
2945 | deadlywave2.Transparency = deadlywave2.Transparency + .25 | |
2946 | explosionwave.Size = explosionwave.Size + Vector3.new(4,4,4) | |
2947 | explosionwave2.Size = explosionwave2.Size + Vector3.new(4,4,4) | |
2948 | explosionwave.Transparency = explosionwave.Transparency + 0.25 | |
2949 | explosionwave2.Transparency = explosionwave2.Transparency + 0.05 | |
2950 | swait() | |
2951 | end | |
2952 | hum.CameraOffset = Vector3.new(0,0,0) | |
2953 | explosionwave:Remove() | |
2954 | explosionwave2:Remove() | |
2955 | end | |
2956 | end) | |
2957 | bov = Instance.new("BodyVelocity",ballzor) | |
2958 | bov.maxForce = Vector3.new(99999,99999,99999) | |
2959 | ballzor.CFrame = CFrame.new(ballzor.Position,mouse.Hit.p) | |
2960 | bov.velocity = ballzor.CFrame.lookVector*200 | |
2961 | removeuseless:AddItem(ballzor,4) | |
2962 | ws = 50 | |
2963 | attacking = false | |
2964 | debounce = false | |
2965 | appi = false | |
2966 | end | |
2967 | end) | |
2968 | ||
2969 | mouse.KeyDown:connect(function(Press) | |
2970 | Press=Press:lower() | |
2971 | if Press=='j' then | |
2972 | if not levitate then return end | |
2973 | if debounce then return end | |
2974 | debounce = true | |
2975 | charging = true | |
2976 | attacking = true | |
2977 | downpress = false | |
2978 | x = 1 | |
2979 | ws = 0 | |
2980 | g1 = Instance.new("BodyGyro", Root) | |
2981 | g1.D = 175 | |
2982 | g1.P = 20000 | |
2983 | g1.MaxTorque = Vector3.new(0,9000,0) | |
2984 | SOUND(RightArm,2014087015,8,false,3) | |
2985 | coroutine.wrap(function() | |
2986 | Charge = Instance.new("Sound",RightArm) | |
2987 | Charge.SoundId = "rbxassetid://101153932" | |
2988 | Charge.Looped = false | |
2989 | Charge.Volume = 8 | |
2990 | Charge:Play() | |
2991 | end)() | |
2992 | appi = true | |
2993 | coroutine.wrap(function() | |
2994 | while appi do | |
2995 | swait() | |
2996 | if Root.Velocity.Magnitude < 2 and attacking == true then | |
2997 | position = "Idle3" | |
2998 | end | |
2999 | end | |
3000 | end)() | |
3001 | coroutine.wrap(function() | |
3002 | while appi do | |
3003 | swait() | |
3004 | settime = 0.05 | |
3005 | sine = sine + change | |
3006 | if position == "Idle3" and attacking == true and appi == true then | |
3007 | change = .4 | |
3008 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
3009 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(-.2,.2,0) * CFrame.Angles(0,0,0),.1) | |
3010 | LEFTARMLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0) | |
3011 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.6, 0.8 - .1 * math.sin(sine/9), 0) * CFrame.Angles(math.rad(0), math.rad(0 + 3 * math.sin(sine/9)), math.rad(35 - 5 * math.sin(sine/9))), 0.4) | |
3012 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.4) | |
3013 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 2.0,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10 + 2 * math.sin(sine/9))), 0.4) | |
3014 | end | |
3015 | end | |
3016 | end)() | |
3017 | for i = 1, 15 do | |
3018 | g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.2) | |
3019 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(-10),math.rad(-15),math.rad(0)),.5) | |
3020 | RIGHTARMLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0) | |
3021 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(14), math.rad(20), math.rad(-90)), 0.3) | |
3022 | swait() | |
3023 | end | |
3024 | for i = 1, 3 do | |
3025 | g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.4) | |
3026 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(-10),math.rad(-15),math.rad(0)),.5) | |
3027 | RIGHTARMLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0) | |
3028 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(14), math.rad(20), math.rad(-90)), 0.3) | |
3029 | x = x + .1 | |
3030 | blastborb = Instance.new("Part",Torso) | |
3031 | blastborb.CFrame = rightlocation.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180))) | |
3032 | blastborb.BrickColor = BrickColor.new(colors) | |
3033 | blastborb.Anchored = true | |
3034 | blastborb.Size = Vector3.new(10,10,10) | |
3035 | blastborb.CanCollide = false | |
3036 | blastborb.Material = "Neon" | |
3037 | for i = 1, 5 do | |
3038 | g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.4) | |
3039 | blastborb.Size = blastborb.Size - Vector3.new(1,1,1) | |
3040 | swait() | |
3041 | end | |
3042 | blastborb:Remove() | |
3043 | swait() | |
3044 | end | |
3045 | downpress = true | |
3046 | while charging and x < 5 do | |
3047 | g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.4) | |
3048 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(-10),math.rad(-15),math.rad(0)),.5) | |
3049 | RIGHTARMLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0) | |
3050 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(14), math.rad(20), math.rad(-90)), 0.3) | |
3051 | x = x + .1 | |
3052 | blastborb = Instance.new("Part",Torso) | |
3053 | blastborb.CFrame = rightlocation.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180))) | |
3054 | blastborb.BrickColor = BrickColor.new(colors) | |
3055 | blastborb.Anchored = true | |
3056 | blastborb.Size = Vector3.new(10,10,10) | |
3057 | blastborb.CanCollide = false | |
3058 | blastborb.Material = "Neon" | |
3059 | for i = 1, 5 do | |
3060 | g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.4) | |
3061 | blastborb.Size = blastborb.Size - Vector3.new(1,1,1) | |
3062 | swait() | |
3063 | end | |
3064 | blastborb:Remove() | |
3065 | swait() | |
3066 | end | |
3067 | coroutine.wrap(function() | |
3068 | for i = 1, 20 do | |
3069 | Charge.Volume = Charge.Volume - .5 | |
3070 | swait() | |
3071 | end | |
3072 | end)() | |
3073 | local bigswoosh = Instance.new("Part",Torso) | |
3074 | bigswoosh.Name = "bigswoosh" | |
3075 | bigswoosh.CFrame = Root.CFrame * CFrame.new(1,0,-5) | |
3076 | bigswoosh.Size = Vector3.new(1,1,1) | |
3077 | bigswoosh.Material = "Neon" | |
3078 | bigswoosh.Anchored = true | |
3079 | bigswoosh.Transparency = 1 | |
3080 | bigswoosh.BrickColor = BrickColor.new("Really red") | |
3081 | bigswoosh.CanCollide = false | |
3082 | SOUND(bigswoosh,842332424,10,false,6) | |
3083 | SOUND(bigswoosh,2017948224,10,false,6) | |
3084 | SOUND(bigswoosh,138677306,10,false,4) | |
3085 | coroutine.wrap(function() | |
3086 | local loc1 = Instance.new("Part",bigswoosh) | |
3087 | loc1.CFrame = bigswoosh.CFrame * CFrame.new(-3,0,0) | |
3088 | loc1.Size = Vector3.new(2,2,2) | |
3089 | loc1.Anchored = true | |
3090 | loc1.Transparency = 1 | |
3091 | loc1.CanCollide = false | |
3092 | local loc2 = Instance.new("Part",bigswoosh) | |
3093 | loc2.CFrame = bigswoosh.CFrame * CFrame.new(3,0,0) | |
3094 | loc2.Size = Vector3.new(2,2,2) | |
3095 | loc2.Anchored = true | |
3096 | loc2.Transparency = 1 | |
3097 | loc2.CanCollide = false | |
3098 | n = 0 | |
3099 | nb = 0 | |
3100 | for i = 1, 125 do | |
3101 | n = n + x | |
3102 | nb = nb - x | |
3103 | Hit = damagealll(n,bigswoosh.Position) | |
3104 | for _,v in pairs(Hit) do | |
3105 | if x > 4.5 then | |
3106 | v:FindFirstChildOfClass("Humanoid").Parent:BreakJoints() | |
3107 | else | |
3108 | v:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(4+x,10+x)) | |
3109 | end | |
3110 | vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")) | |
3111 | vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999) | |
3112 | torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso") | |
3113 | vel.velocity = CFrame.new(bigswoosh.Position,torso.Position).lookVector*150 | |
3114 | removeuseless:AddItem(vel,.1) | |
3115 | end | |
3116 | local bigtrail = Instance.new("Part",LeftArm) | |
3117 | bigtrail.Size = bigswoosh.Size | |
3118 | bigtrail.BrickColor = BrickColor.new(colors) | |
3119 | bigtrail.Anchored = true | |
3120 | bigtrail.Material = "Neon" | |
3121 | bigtrail.CFrame = bigswoosh.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180))) | |
3122 | bigtrail.CanCollide = false | |
3123 | removeuseless:AddItem(bigtrail,2) | |
3124 | local irritatedground = Instance.new("Part",Torso) | |
3125 | irritatedground.Size = Vector3.new(n*1.5,1,3*x) | |
3126 | irritatedground.BrickColor = BrickColor.new(colors) | |
3127 | irritatedground.Material = "Neon" | |
3128 | irritatedground.CFrame = bigswoosh.CFrame * CFrame.new(0,-6,0) | |
3129 | irritatedground.CanCollide = false | |
3130 | irritatedground.Anchored = true | |
3131 | removeuseless:AddItem(irritatedground,10) | |
3132 | local grassblocks = Instance.new("Part",Torso) | |
3133 | grassblocks.Size = Vector3.new(n/2,n/2,n/2) | |
3134 | grassblocks.Material = "Grass" | |
3135 | grassblocks.Anchored = true | |
3136 | grassblocks.Name = "grassblocks" | |
3137 | grassblocks.BrickColor = BrickColor.new("Bright green") | |
3138 | grassblocks.CFrame = loc1.CFrame * CFrame.new(0,-1,0) * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180))) | |
3139 | removeuseless:AddItem(grassblocks,10) | |
3140 | local grassblocks2 = Instance.new("Part",Torso) | |
3141 | grassblocks2.Size = Vector3.new(n/2,n/2,n/2) | |
3142 | grassblocks2.Material = "Grass" | |
3143 | grassblocks2.Anchored = true | |
3144 | grassblocks2.Name = "grassblocks2" | |
3145 | grassblocks2.BrickColor = BrickColor.new("Bright green") | |
3146 | grassblocks2.CFrame = loc2.CFrame * CFrame.new(0,-1,0) * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180))) | |
3147 | removeuseless:AddItem(grassblocks2,10) | |
3148 | bigswoosh.Size = bigswoosh.Size + Vector3.new(x,x,x) | |
3149 | loc1.CFrame = bigswoosh.CFrame * CFrame.new(n,-3,0) | |
3150 | loc2.CFrame = bigswoosh.CFrame * CFrame.new(nb,-3,0) | |
3151 | bigswoosh.CFrame = bigswoosh.CFrame * CFrame.new(0,0,-3 - x) | |
3152 | swait() | |
3153 | end | |
3154 | for i = 1, 20 do | |
3155 | bigswoosh.CFrame = bigswoosh.CFrame * CFrame.new(0,0,-3) | |
3156 | bigswoosh.Transparency = bigswoosh.Transparency + 0.05 | |
3157 | swait() | |
3158 | end | |
3159 | bigswoosh:Remove() | |
3160 | end)() | |
3161 | for i = 1, 50 do | |
3162 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(10),math.rad(15),math.rad(0)),.5) | |
3163 | RIGHTARMLERP.C1 = CFrame.new(0,0,0) | |
3164 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.2,1,.5) * CFrame.Angles(math.rad(-90),math.rad(-25),math.rad(0)), 0.5) | |
3165 | swait() | |
3166 | end | |
3167 | ws = 50 | |
3168 | attacking = false | |
3169 | debounce = false | |
3170 | appi = false | |
3171 | g1:Remove() | |
3172 | end | |
3173 | end) | |
3174 | ||
3175 | mouse.KeyDown:connect(function(Press) | |
3176 | Press=Press:lower() | |
3177 | if Press=='k' then | |
3178 | if debounce then return end | |
3179 | debounce = true | |
3180 | attacking = true | |
3181 | charging = true | |
3182 | appi = true | |
3183 | coroutine.wrap(function() | |
3184 | while appi do | |
3185 | swait() | |
3186 | if Root.Velocity.Magnitude < 2 and attacking == true then | |
3187 | position = "Idle3" | |
3188 | end | |
3189 | end | |
3190 | end)() | |
3191 | coroutine.wrap(function() | |
3192 | while appi do | |
3193 | swait() | |
3194 | settime = 0.05 | |
3195 | sine = sine + change | |
3196 | if position == "Idle3" and attacking == true and appi == true then | |
3197 | change = .4 | |
3198 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
3199 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(-.2,.2,0) * CFrame.Angles(0,0,0),.1) | |
3200 | LEFTARMLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0) | |
3201 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.6, 0.8 - .1 * math.sin(sine/9), 0) * CFrame.Angles(math.rad(0), math.rad(0 + 3 * math.sin(sine/9)), math.rad(35 - 5 * math.sin(sine/9))), 0.4) | |
3202 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.4) | |
3203 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 2.0,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10 + 2 * math.sin(sine/9))), 0.4) | |
3204 | end | |
3205 | end | |
3206 | end)() | |
3207 | ws = 0 | |
3208 | g1 = Instance.new("BodyGyro", Root) | |
3209 | g1.D = 175 | |
3210 | g1.P = 20000 | |
3211 | g1.MaxTorque = Vector3.new(0,9000,0) | |
3212 | g1.CFrame = CFrame.new(Root.Position,mouse.Hit.p) | |
3213 | for i = 1, 15 do | |
3214 | g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.3) | |
3215 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),.3) | |
3216 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3) | |
3217 | swait() | |
3218 | end | |
3219 | r = 0 | |
3220 | for i = 1, 10 do | |
3221 | r = r + .1 | |
3222 | g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.3) | |
3223 | blass = Instance.new("Part",RightArm) | |
3224 | blass.Size = Vector3.new(r,r,r) | |
3225 | blass.Material = "Neon" | |
3226 | blass.CFrame = rightlocation.CFrame * CFrame.new(0,-r/1.5,0) * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180))) | |
3227 | blass.Anchored = true | |
3228 | blass.CanCollide = false | |
3229 | blass.BrickColor = BrickColor.new(colors) | |
3230 | removeuseless:AddItem(blass,2) | |
3231 | swait() | |
3232 | end | |
3233 | while r < 16 and charging == true do | |
3234 | r = r + .1 | |
3235 | g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.3) | |
3236 | blass = Instance.new("Part",RightArm) | |
3237 | blass.Size = Vector3.new(r,r,r) | |
3238 | blass.Material = "Neon" | |
3239 | blass.CFrame = rightlocation.CFrame * CFrame.new(0,-r/1.5,0) * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180))) | |
3240 | blass.Anchored = true | |
3241 | blass.CanCollide = false | |
3242 | blass.BrickColor = BrickColor.new(colors) | |
3243 | removeuseless:AddItem(blass,2) | |
3244 | swait() | |
3245 | end | |
3246 | local TheBeam = Instance.new("Part",RightArm) | |
3247 | TheBeam.Name = "zebeam" | |
3248 | TheBeam.Size = Vector3.new(1,1,1) | |
3249 | TheBeam.Material = "Neon" | |
3250 | TheBeam.Shape = "Cylinder" | |
3251 | TheBeam.BrickColor = BrickColor.new("Really red") | |
3252 | TheBeam.Anchored = true | |
3253 | TheBeam.CanCollide = false | |
3254 | ws = 12 | |
3255 | bemmo = Instance.new("Sound",RightArm) | |
3256 | bemmo.SoundId = "rbxassetid://1910988873" | |
3257 | bemmo.Volume = 8 | |
3258 | bemmo.Looped = false | |
3259 | bemmo:Play() | |
3260 | bemmo.TimePosition = 2 | |
3261 | for i = 1, 100 * r/3 do | |
3262 | if r > 15 then | |
3263 | hum.CameraOffset = Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-0,0)) | |
3264 | end | |
3265 | g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.3) | |
3266 | local blass = Instance.new("Part",RightArm) | |
3267 | blass.Size = Vector3.new(r,r,r) | |
3268 | blass.Material = "Neon" | |
3269 | blass.CFrame = rightlocation.CFrame * CFrame.new(0,-r/1.5,0) * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180))) | |
3270 | blass.Anchored = true | |
3271 | blass.CanCollide = false | |
3272 | blass.BrickColor = BrickColor.new(colors) | |
3273 | removeuseless:AddItem(blass,2) | |
3274 | local STARTPOS = blass.CFrame*CFrame.new(0,0,0).p | |
3275 | local ENDHIT,ENDPOS = ray2(STARTPOS,mouse.Hit.p,650,Character) | |
3276 | local DISTANCE = (STARTPOS - ENDPOS).magnitude | |
3277 | TheBeam.CFrame = CFrame.new(STARTPOS,ENDPOS)*CFrame.new(0,0,-DISTANCE/2) * CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)) | |
3278 | TheBeam.Size = Vector3.new(DISTANCE,r/math.random(1,2),r/math.random(1,2)) | |
3279 | boom = Instance.new("Part",RightArm) | |
3280 | boom.Size = Vector3.new(r,r,r) | |
3281 | boom.BrickColor = BrickColor.new(colors) | |
3282 | boom.Anchored = true | |
3283 | boom.CanCollide = false | |
3284 | boom.Material = "Neon" | |
3285 | boom.CFrame = CFrame.new(ENDPOS) * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180))) | |
3286 | removeuseless:AddItem(boom,3) | |
3287 | boom.Touched:connect(function(getbase) | |
3288 | if hitdebounce then return end | |
3289 | hitdebounce = true | |
3290 | if getbase:IsA("Part") then | |
3291 | damagedground = Instance.new("Part",RightArm) | |
3292 | damagedground.Size = Vector3.new(.1,5+r,.1) | |
3293 | damagedground.Material = "Neon" | |
3294 | damagedground.CanCollide = false | |
3295 | damagedground.BrickColor = BrickColor.new(colors) | |
3296 | damagedground.Anchored = true | |
3297 | damagedground.CFrame = boom.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180))) | |
3298 | removeuseless:AddItem(damagedground,2) | |
3299 | wait(.1) | |
3300 | hitdebounce = false | |
3301 | end | |
3302 | end) | |
3303 | Hit = damagealll(r+3,boom.Position) | |
3304 | for _,v in pairs(Hit) do | |
3305 | v:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(r/1.1,r)) | |
3306 | vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")) | |
3307 | vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999) | |
3308 | torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso") | |
3309 | vel.velocity = CFrame.new(boom.Position,torso.Position).lookVector*r | |
3310 | removeuseless:AddItem(vel,.1) | |
3311 | end | |
3312 | swait() | |
3313 | end | |
3314 | removeuseless:AddItem(g1,.001) | |
3315 | coroutine.wrap(function() | |
3316 | for i = 1, 20 do | |
3317 | bemmo.Volume = bemmo.Volume - 0.5 | |
3318 | blass.Transparency = blass.Transparency + 0.05 | |
3319 | TheBeam.Transparency = TheBeam.Transparency + 0.05 | |
3320 | swait() | |
3321 | end | |
3322 | bemmo:Remove() | |
3323 | if r > 15 then | |
3324 | hum.CameraOffset = Vector3.new(0,0,0) | |
3325 | end | |
3326 | blass:Remove() | |
3327 | TheBeam:Remove() | |
3328 | end)() | |
3329 | ws = 50 | |
3330 | appi = false | |
3331 | attacking = false | |
3332 | debounce = false | |
3333 | end | |
3334 | end) | |
3335 | ||
3336 | mouse.KeyUp:connect(function(Press) | |
3337 | Press=Press:lower() | |
3338 | if Press=='j' then | |
3339 | charging = false | |
3340 | end | |
3341 | end) | |
3342 | ||
3343 | mouse.KeyUp:connect(function(Press) | |
3344 | Press=Press:lower() | |
3345 | if Press=='k' then | |
3346 | charging = false | |
3347 | end | |
3348 | end) | |
3349 | ||
3350 | doit = coroutine.wrap(function() | |
3351 | while true do | |
3352 | for _,v in pairs(Repeater) do | |
3353 | v.Scale = v.Scale + Vector3.new(1, 1, 1) | |
3354 | end | |
3355 | ||
3356 | for _,v in pairs(openshocktable) do | |
3357 | v.Scale = v.Scale + Vector3.new(3, 3, 3) | |
3358 | end | |
3359 | ||
3360 | for _,v in pairs(nonmeshRepeater) do | |
3361 | v.Size = v.Size + Vector3.new(2, 2, 2) | |
3362 | end | |
3363 | ||
3364 | for _,v in pairs(Extreme) do | |
3365 | v.Size = v.Size + Vector3.new(6, 6, 6) | |
3366 | end | |
3367 | ||
3368 | for _,v in pairs(LessSize) do | |
3369 | v.Size = v.Size - Vector3.new(1, 1, 1) | |
3370 | end | |
3371 | ||
3372 | for _,v in pairs(nonmeshRepeater2) do | |
3373 | v.Transparency = v.Transparency + 0.05 | |
3374 | end | |
3375 | ||
3376 | for _,v in pairs(Repeater2) do | |
3377 | v.Transparency = v.Transparency - 0.05 | |
3378 | end | |
3379 | ||
3380 | for _,v in pairs(th1) do | |
3381 | v.CFrame = v.CFrame * CFrame.new(0,0+.3,0) * CFrame.Angles(0,math.rad(0+8),0) | |
3382 | end | |
3383 | ||
3384 | for _,v in pairs(th2) do | |
3385 | v.CFrame = v.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(0+15),0) | |
3386 | end | |
3387 | ||
3388 | for _,v in pairs(th3) do | |
3389 | v.Scale = v.Scale + Vector3.new(2, 2, 2) | |
3390 | end | |
3391 | ||
3392 | for _,v in pairs(th5) do | |
3393 | v.Scale = v.Scale + Vector3.new(1, .1, 1) | |
3394 | end | |
3395 | ||
3396 | for _,v in pairs(ExtremeM) do | |
3397 | v.Size = v.Size + Vector3.new(8, 8, 8) | |
3398 | end | |
3399 | ||
3400 | for _,v in pairs(m3) do | |
3401 | v.Scale = v.Scale + Vector3.new(.2,.2,.2) | |
3402 | end | |
3403 | ||
3404 | for _,v in pairs(ExtremeM2) do | |
3405 | v.Size = v.Size - Vector3.new(2,2,2) | |
3406 | end | |
3407 | ||
3408 | for _,v in pairs(keyYsize) do | |
3409 | v.Scale = v.Scale + Vector3.new(8, 8, 1) | |
3410 | end | |
3411 | ||
3412 | for _,v in pairs(th4) do | |
3413 | v.Transparency = v.Transparency + 0.009 | |
3414 | v.Rotation = v.Rotation + Vector3.new(3,0,0) | |
3415 | end | |
3416 | ||
3417 | for _,v in pairs(SlowlyFade) do | |
3418 | v.Transparency = v.Transparency + 0.05 | |
3419 | end | |
3420 | ||
3421 | for _,v in pairs(keyYtransparency) do | |
3422 | v.Transparency = v.Transparency + 0.05 | |
3423 | end | |
3424 | ||
3425 | for _,v in pairs(UpMover) do | |
3426 | v.Position = v.Position + Vector3.new(0, 3, 0) | |
3427 | end | |
3428 | ||
3429 | for _,v in pairs(ForwardMover) do | |
3430 | v.CFrame = v.CFrame * CFrame.new(0, 0, 2.4 +(i/.1)) * CFrame.Angles(0, 0, math.rad(0)) | |
3431 | end | |
3432 | ||
3433 | for _,v in pairs(FadeIn) do | |
3434 | v.Transparency = v.Transparency - .05 | |
3435 | end | |
3436 | ||
3437 | for _,v in pairs(signtransparency) do | |
3438 | v.TextTransparency = v.TextTransparency + 0.025 | |
3439 | end | |
3440 | ||
3441 | for _,v in pairs(signmover) do | |
3442 | v.StudsOffset = v.StudsOffset + Vector3.new(math.random(-2,2),.3,math.random(-2,2)) | |
3443 | end | |
3444 | ||
3445 | for _,v in pairs(signrotator) do | |
3446 | v.Rotation = v.Rotation + 2 | |
3447 | end | |
3448 | swait() | |
3449 | end | |
3450 | end) | |
3451 | doit() | |
3452 | t = 0 | |
3453 | ||
3454 | mouse.KeyDown:connect(function(Press) | |
3455 | Press=Press:lower() | |
3456 | if Press=='0' then | |
3457 | if levitate then return end | |
3458 | shoov = true | |
3459 | if debounce then return end | |
3460 | ws = 50 | |
3461 | end | |
3462 | end) | |
3463 | ||
3464 | mouse.KeyUp:connect(function(Press) | |
3465 | Press=Press:lower() | |
3466 | if Press=='0' then | |
3467 | if levitate then return end | |
3468 | shoov = false | |
3469 | if debounce then return end | |
3470 | ws = 10 | |
3471 | end | |
3472 | end) | |
3473 | ||
3474 | ||
3475 | local anims = coroutine.wrap(function() | |
3476 | while true do | |
3477 | settime = 0.05 | |
3478 | sine = sine + change | |
3479 | if position == "Jump" and attacking == false then | |
3480 | change = 1 | |
3481 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
3482 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
3483 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4) | |
3484 | RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4) | |
3485 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
3486 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,.1,-.2) * CFrame.Angles(math.rad(20),math.rad(-3),math.rad(-4)), 0.4) | |
3487 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.4,.1,-.2) * CFrame.Angles(math.rad(20),math.rad(3),math.rad(4)), 0.4) | |
3488 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.4) | |
3489 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.4) | |
3490 | elseif position == "Jump2" and attacking == false and levitate then | |
3491 | change = 1 | |
3492 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20 - 1 * math.sin(sine/9)), math.rad(0 + 0 * math.cos(sine/8)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(10 * math.cos(sine/10))), 0.3) | |
3493 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3) | |
3494 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.3) | |
3495 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - .1 * math.sin(sine/12)),math.rad(40 - .5 * math.sin(sine/12))), 0.3) | |
3496 | RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(-.2,1.2,-.3),.3) | |
3497 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + .1 * math.sin(sine/12)),math.rad(-40 + .5 * math.sin(sine/12))), 0.3) | |
3498 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3) | |
3499 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.3) | |
3500 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.54, 2.0 + .02 * math.sin(sine/9), 0.2 + .1 * math.sin(sine/9)) * CFrame.Angles(math.rad(25 + 5 * math.sin(sine/9)), math.rad(20), math.rad(0)), 0.3) | |
3501 | elseif position == "Falling" and attacking == false and levitate == false then | |
3502 | change = 1 | |
3503 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
3504 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
3505 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4) | |
3506 | RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4) | |
3507 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.2) | |
3508 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(14), math.rad(-4), math.rad(0)), 0.2) | |
3509 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.6, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(20)), 0.2) | |
3510 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.6, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-20)), 0.2) | |
3511 | elseif position == "Falling2" and attacking == false and levitate then | |
3512 | change = 1 | |
3513 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20 - 1 * math.sin(sine/9)), math.rad(0 + 0 * math.cos(sine/8)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(10 * math.cos(sine/10))), 0.3) | |
3514 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3) | |
3515 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.3) | |
3516 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - .1 * math.sin(sine/12)),math.rad(40 - .5 * math.sin(sine/12))), 0.3) | |
3517 | RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(-.2,1.2,-.3),.3) | |
3518 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + .1 * math.sin(sine/12)),math.rad(-40 + .5 * math.sin(sine/12))), 0.3) | |
3519 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3) | |
3520 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.3) | |
3521 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.54, 2.0 + .02 * math.sin(sine/9), 0.2 + .1 * math.sin(sine/9)) * CFrame.Angles(math.rad(25 + 5 * math.sin(sine/9)), math.rad(20), math.rad(0)), 0.3) | |
3522 | elseif position == "Walking" and attacking == false and running == false then | |
3523 | change = 1 | |
3524 | walking = true | |
3525 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
3526 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
3527 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - .1 * math.sin(sine/12)),math.rad(40 - .5 * math.sin(sine/12))), 0.3) | |
3528 | RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(-.2,1.2,-.3),.3) | |
3529 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + .1 * math.sin(sine/12)),math.rad(-40 + .5 * math.sin(sine/12))), 0.3) | |
3530 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3) | |
3531 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-10), math.rad(5 * math.cos(sine/7)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(25 * math.cos(sine/10))), 0.3) | |
3532 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.92 - 0.35 * math.cos(sine/8)/2.8, 0.2 - math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) + -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0) + RightLeg.RotVelocity.Y / 30, math.cos(25 * math.cos(sine/8))), 0.3) | |
3533 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.92 + 0.35 * math.cos(sine/8)/2.8, 0.2 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) - -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0) + LeftLeg.RotVelocity.Y / 30, math.cos(25 * math.cos(sine/8))), 0.3) | |
3534 | elseif position == "Idle" and attacking == false and running == false and not levitate then | |
3535 | change = .5 | |
3536 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),.1) | |
3537 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - 1 * math.sin(sine/12)),math.rad(40 - 2 * math.sin(sine/12))), 0.1) | |
3538 | RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(-.2,1.2,-.3),.1) | |
3539 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + 1 * math.sin(sine/12)),math.rad(-40 + 2 * math.sin(sine/12))), 0.1) | |
3540 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.1) | |
3541 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
3542 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.1) | |
3543 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
3544 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.1) | |
3545 | elseif position == "Idle2" and attacking == false and running == false then | |
3546 | change = .75 | |
3547 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0 - 3 * math.sin(sine/9)),0,0),.1) | |
3548 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
3549 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(-.2,.2,0) * CFrame.Angles(0,0,0),.1) | |
3550 | LEFTARMLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0) | |
3551 | RIGHTARMLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0) | |
3552 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.6, 0.8 - .1 * math.sin(sine/9), 0) * CFrame.Angles(math.rad(0), math.rad(0 + 3 * math.sin(sine/9)), math.rad(35 - 5 * math.sin(sine/9))), 0.4) | |
3553 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.6, 0.8 - .1 * math.sin(sine/9), 0) * CFrame.Angles(math.rad(0), math.rad(0 - 3 * math.sin(sine/9)), math.rad(-35 + 5 * math.sin(sine/9))), 0.4) | |
3554 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.4) | |
3555 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 2.0,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10 + 2 * math.sin(sine/9))), 0.4) | |
3556 | elseif position == "Walking2" and attacking == false and running == false then | |
3557 | ws = 50 | |
3558 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20 - 1 * math.sin(sine/9)), math.rad(0 + 0 * math.cos(sine/8)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(10 * math.cos(sine/10))), 0.3) | |
3559 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3) | |
3560 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.3) | |
3561 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - .1 * math.sin(sine/12)),math.rad(40 - .5 * math.sin(sine/12))), 0.3) | |
3562 | RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(-.2,1.2,-.3),.3) | |
3563 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + .1 * math.sin(sine/12)),math.rad(-40 + .5 * math.sin(sine/12))), 0.3) | |
3564 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3) | |
3565 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.3) | |
3566 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.54, 2.0 + .02 * math.sin(sine/9), 0.2 + .1 * math.sin(sine/9)) * CFrame.Angles(math.rad(25 + 5 * math.sin(sine/9)), math.rad(20), math.rad(0)), 0.3) | |
3567 | elseif position == "Running" and attacking == false then | |
3568 | change = 1 | |
3569 | RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(1.24+.6*math.sin(sine/4)/1.4, 0.54, 0+0.8*math.sin(sine/4)) * CFrame.Angles(math.rad(6-140*math.sin(sine/4)/1.2), math.rad(0), math.rad(-20+70*math.sin(sine/4))), 0.3) | |
3570 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.3) | |
3571 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(-1.24+.6*math.sin(sine/4)/1.4, 0.54, 0-0.8*math.sin(sine/4))*CFrame.Angles(math.rad(6+140*math.sin(sine/4)/1.2), math.rad(0), math.rad(20+70*math.sin(sine/4))), 0.3) | |
3572 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
3573 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(-20 - 0 * math.sin(sine/4)), math.rad(0 + 6 * math.sin(sine/4)), math.rad(0) + Root.RotVelocity.Y / 30, math.sin(10 * math.sin(sine/4))), 0.3) | |
3574 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*-math.sin(sine/4)),.3) | |
3575 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.6+0.1*math.sin(sine/4),.7*-math.sin(sine/4)) * CFrame.Angles(math.rad(15+ -50 * math.sin(sine/4)),0,0),.3) | |
3576 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*math.sin(sine/4)),.3) | |
3577 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.6-0.1*math.sin(sine/4),.7*math.sin(sine/4)) * CFrame.Angles(math.rad(15 + 50 * math.sin(sine/4)),0,0),.3) | |
3578 | end | |
3579 | swait() | |
3580 | end | |
3581 | end) | |
3582 | anims() | |
3583 | warn("Prepare for a magic trick full of pain and regret. Made by Supr14") |