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