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