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