SHOW:
|
|
- or go back to the newest paste.
1 | -- Nightmare Edit | |
2 | -- By Jeff223311, Sawyerqqqqq, Nicolas Cage | |
3 | -- I'm love you :3 | |
4 | ||
5 | print("Don't remove someone") | |
6 | local a = Instance.new("Part") | |
7 | a.BrickColor = BrickColor.new("White") | |
8 | a.Material = "Sand" | |
9 | a.Size = Vector3.new(2048, 5, 2048) | |
10 | a.Position = Vector3.new(0, 0, 0) | |
11 | a.Anchored = true | |
12 | a.Archivable = true | |
13 | a.CanCollide = true | |
14 | a.Parent = game.Workspace | |
15 | local m = Instance.new("SpecialMesh") | |
16 | m.Parent = a | |
17 | m.MeshType = "Brick" | |
18 | m.Scale = Vector3.new(10, 1, 10) | |
19 | ||
20 | local l = game.Lighting | |
21 | local sky = Instance.new("Sky",l) | |
22 | l.TimeOfDay = "00:00:00" | |
23 | l.Brightness = 1 | |
24 | l.Ambient = Color3.new(0.25, 0.5, 0.75) | |
25 | sky.CelestialBodiesShown = false | |
26 | sky.SkyboxBk = "http://www.roblox.com/asset/?id=1010388" | |
27 | sky.SkyboxDn = "http://www.roblox.com/asset/?id=1010389" | |
28 | sky.SkyboxFt = "http://www.roblox.com/asset/?id=1010386" | |
29 | sky.SkyboxLf = "http://www.roblox.com/asset/?id=1010387" | |
30 | sky.SkyboxRt = "http://www.roblox.com/asset/?id=1010385" | |
31 | sky.SkyboxUp = "http://www.roblox.com/asset/?id=1010390" | |
32 | sky.StarCount = 0 | |
33 | sky.Name = "IcySkies" | |
34 | ||
35 | p = game.Players.LocalPlayer | |
36 | char = p.Character | |
37 | local char = p.Character | |
38 | torso = char.Torso | |
39 | neck = char.Torso.Neck | |
40 | hum = char.Humanoid | |
41 | hum.MaxHealth = math.huge | |
42 | wait() | |
43 | hum.Health =hum.MaxHealth | |
44 | ||
45 | local s = Instance.new("Sound",char) | |
46 | s.SoundId = "http://www.roblox.com/asset/?id=524128854" | |
47 | s.Pitch = 1 | |
48 | s.Volume = 4 | |
49 | s.Looped = true | |
50 | wait(0) | |
51 | s:play() | |
52 | ||
53 | CV="Hot pink" | |
54 | ||
55 | for i,v in pairs(char:children()) do | |
56 | if v:IsA("Hat") or v:IsA("Accessory") then | |
57 | v:Destroy() | |
58 | end | |
59 | end | |
60 | ||
61 | local txt = Instance.new("BillboardGui", char) | |
62 | txt.Adornee = char .Head | |
63 | txt.Name = "_status" | |
64 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
65 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
66 | local text = Instance.new("TextLabel", txt) | |
67 | text.Size = UDim2.new(10, 0, 7, 0) | |
68 | text.FontSize = "Size24" | |
69 | text.TextScaled = true | |
70 | text.TextTransparency = 0 | |
71 | text.BackgroundTransparency = 1 | |
72 | text.TextTransparency = 0 | |
73 | text.TextStrokeTransparency = 0 | |
74 | text.Font = "Bodoni" | |
75 | text.TextStrokeColor3 = Color3.new(1,1,1) | |
76 | ||
77 | ypcall(function() | |
78 | char.Shirt:Destroy() | |
79 | char.Pants:Destroy() | |
80 | shirt = Instance.new("Shirt", char) | |
81 | shirt.Name = "Shirt" | |
82 | pants = Instance.new("Pants", char) | |
83 | pants.Name = "Pants" | |
84 | char.Shirt.ShirtTemplate = "rbxassetid://586991044" | |
85 | char.Pants.PantsTemplate = "rbxassetid://586991044" | |
86 | end) | |
87 | ||
88 | local BC = char["Body Colors"] | |
89 | BC.HeadColor = BrickColor.new("Really black") | |
90 | BC.LeftArmColor = BrickColor.new("Really black") | |
91 | BC.LeftLegColor = BrickColor.new("Really black") | |
92 | BC.RightArmColor = BrickColor.new("Really black") | |
93 | BC.RightLegColor = BrickColor.new("Really black") | |
94 | BC.TorsoColor = BrickColor.new("Really black") | |
95 | ||
96 | v=Instance.new("Part") | |
97 | v.Name = "ColorBrick" | |
98 | v.Parent=p.Character | |
99 | v.FormFactor="Symmetric" | |
100 | v.Anchored=true | |
101 | v.CanCollide=false | |
102 | v.BottomSurface="Smooth" | |
103 | v.TopSurface="Smooth" | |
104 | v.Size=Vector3.new(10,5,3) | |
105 | v.Transparency=1 | |
106 | v.CFrame=char.Torso.CFrame | |
107 | v.BrickColor=BrickColor.new(CV) | |
108 | v.Transparency=1 | |
109 | text.TextColor3 = Color3.new(0.0,0.0,0) | |
110 | v.Shape="Block" | |
111 | text.Text = "Nightmare of Christmas" | |
112 | ||
113 | ||
114 | Player = game:GetService("Players").LocalPlayer | |
115 | Character = Player.Character | |
116 | PlayerGui = Player.PlayerGui | |
117 | Backpack = Player.Backpack | |
118 | Torso = Character.Torso | |
119 | Head = Character.Head | |
120 | Humanoid = Character.Humanoid | |
121 | Face = Head.face | |
122 | LeftArm = Character["Left Arm"] | |
123 | LeftLeg = Character["Left Leg"] | |
124 | RightArm = Character["Right Arm"] | |
125 | RightLeg = Character["Right Leg"] | |
126 | LS = Torso["Left Shoulder"] | |
127 | LH = Torso["Left Hip"] | |
128 | RS = Torso["Right Shoulder"] | |
129 | RH = Torso["Right Hip"] | |
130 | Neck = Torso.Neck | |
131 | it = Instance.new | |
132 | vt = Vector3.new | |
133 | cf = CFrame.new | |
134 | euler = CFrame.fromEulerAnglesXYZ | |
135 | angles = CFrame.Angles | |
136 | necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
137 | necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
138 | LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
139 | LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
140 | RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
141 | RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
142 | RootPart = Character.HumanoidRootPart | |
143 | RootJoint = RootPart.RootJoint | |
144 | RootCF = euler(-1.57, 0, 3.14) | |
145 | Reaper = Instance.new("Model") | |
146 | Reaper.Parent = Player.Character | |
147 | Reaper.Name = "Reaper" | |
148 | rh = Instance.new("Part") | |
149 | rh.Parent = Reaper | |
150 | rh.Locked = true | |
151 | rh.CanCollide = false | |
152 | mesh = Instance.new("SpecialMesh") | |
153 | rh.formFactor = "Symmetric" | |
154 | mesh.MeshType = "FileMesh" | |
155 | mesh.MeshId = "http://www.roblox.com/asset/?id=16150814" | |
156 | mesh.TextureId = "http://www.roblox.com/asset/?id=16150799" | |
157 | mesh.Parent = rh | |
158 | local weld = Instance.new("Weld") | |
159 | weld.Parent = rh | |
160 | rh.Transparency = 1 | |
161 | weld.Part0 = rh | |
162 | weld.Part1 = Player.Character.Head | |
163 | weld.C0 = CFrame.new(0, -0.045, 0)*CFrame.Angles(0, 0, 0) | |
164 | e1 = Instance.new("Part") | |
165 | e1.Parent = Reaper | |
166 | e1.Locked = true | |
167 | e1.CanCollide = false | |
168 | e1.formFactor = "Symmetric" | |
169 | e1.Size = Vector3.new(-3.05,-5.05, -3.05) | |
170 | e1.Material = "Neon" | |
171 | e1.BrickColor = BrickColor.new("Really red") | |
172 | e1.Shape = "Ball" | |
173 | e1.Transparency = 1 | |
174 | local weld = Instance.new("Weld") | |
175 | weld.Parent = e1 | |
176 | weld.Part0 = e1 | |
177 | weld.Part1 = Player.Character.Head | |
178 | weld.C0 = CFrame.new(0.17, 0.01, 0.76)*CFrame.Angles(0, 0, 0) | |
179 | e2 = Instance.new("Part") | |
180 | e2.Parent = Reaper | |
181 | e2.Locked = true | |
182 | e2.CanCollide = false | |
183 | e2.formFactor = "Symmetric" | |
184 | e2.Size = Vector3.new(-3.05,-5.05, -3.05) | |
185 | e2.Material = "Neon" | |
186 | e2.BrickColor = BrickColor.new("White") | |
187 | e2.Shape = "Ball" | |
188 | e2.Transparency = 1 | |
189 | local weld = Instance.new("Weld") | |
190 | weld.Parent = e2 | |
191 | weld.Part0 = e2 | |
192 | weld.Part1 = Player.Character.Head | |
193 | weld.C0 = CFrame.new(-0.17, 0.01, 0.76)*CFrame.Angles(0, 0, 0) | |
194 | attack = false | |
195 | attackdebounce = false | |
196 | MMouse = nil | |
197 | combo = 0 | |
198 | local hitfloor, posfloor = nil, nil | |
199 | local idle = 0 | |
200 | local Anim = "Idle" | |
201 | local arcorb = false | |
202 | local Effects = {} | |
203 | local Weapon = {} | |
204 | local Welds = {} | |
205 | local invisible = false | |
206 | local doing2 = false | |
207 | local doing4 = false | |
208 | local Marked = {} | |
209 | local MarkedGUI = {} | |
210 | local decreaseatk = 0 | |
211 | local decreasedef = 0 | |
212 | local decreasemvmt = 0 | |
213 | local pursuitnum = 0 | |
214 | local move1 = "(Z)\nBlack Christmas Shot" | |
215 | local move2 = "(X)\nChistmas Strike" | |
216 | local move3 = "(C)\nAbstract christmas" | |
217 | local move4 = "(V)\nBLACK CHRISTMAS!!" | |
218 | local cooldowns = {} | |
219 | local cooldown1 = 0 | |
220 | table.insert(cooldowns, cooldown1) | |
221 | local cooldown2 = 0 | |
222 | table.insert(cooldowns, cooldown2) | |
223 | local cooldown3 = 0 | |
224 | table.insert(cooldowns, cooldown3) | |
225 | local cooldown4 = 0 | |
226 | table.insert(cooldowns, cooldown4) | |
227 | local cooldownsadd = {} | |
228 | local cooldownadd1 = 100 | |
229 | table.insert(cooldownsadd, cooldownadd1) | |
230 | local cooldownadd2 = 100 | |
231 | table.insert(cooldownsadd, cooldownadd2) | |
232 | local cooldownadd3 = 100 | |
233 | table.insert(cooldownsadd, cooldownadd3) | |
234 | local cooldownadd4 = 100 | |
235 | table.insert(cooldownsadd, cooldownadd4) | |
236 | local cooldownmax = 100 | |
237 | player = nil | |
238 | RSH = nil | |
239 | RW = Instance.new("Motor") | |
240 | LW = Instance.new("Motor") | |
241 | RW.Name = "Right Shoulder" | |
242 | LW.Name = "Left Shoulder" | |
243 | LH = Torso["Left Hip"] | |
244 | RH = Torso["Right Hip"] | |
245 | TorsoColor = Torso.BrickColor | |
246 | TorsoRed = TorsoColor.Color.r | |
247 | TorsoGreen = TorsoColor.Color.g | |
248 | TorsoBlue = TorsoColor.Color.b | |
249 | NewCol = Color3.new(255, 255, 255) | |
250 | NewCol2 = Color3.new(255, 255, 255) | |
251 | if Player:findFirstChild("Color1") ~= nil then | |
252 | NewCol = Player.Color1.Value | |
253 | end | |
254 | if Player:findFirstChild("Color2") ~= nil then | |
255 | NewCol2 = Player.Color2.Value | |
256 | end | |
257 | print(BrickColor.new(NewCol)) | |
258 | local mdec = Instance.new("NumberValue", Decrease) | |
259 | mdec.Name = "DecreaseDef" | |
260 | mdec.Value = 0.4 | |
261 | local mdec2 = Instance.new("NumberValue", Decrease) | |
262 | mdec2.Name = "DecreaseMvmt" | |
263 | mdec2.Value = 0.1 | |
264 | if Character:findFirstChild("Effects", true) ~= nil then | |
265 | Character:findFirstChild("Effects", true).Parent = nil | |
266 | end | |
267 | local effects = it("Model", Character) | |
268 | effects.Name = "Effects" | |
269 | local Animate = Humanoid.Animator | |
270 | local canjump = true | |
271 | local AddInstance = function(Object, ...) | |
272 | local Obj = Instance.new(Object) | |
273 | for i,v in next,(...) do | |
274 | Obj[i] = v | |
275 | end | |
276 | return Obj | |
277 | end | |
278 | ||
279 | local nana = AddInstance("Part",{ | |
280 | Parent = weld.Part1, | |
281 | CFrame = weld.Part1.CFrame, | |
282 | formFactor = "Symmetric", | |
283 | Size = Vector3.new(1, 1, 1), | |
284 | CanCollide = false, | |
285 | TopSurface = "Smooth", | |
286 | BottomSurface = "Smooth", | |
287 | Locked = true, | |
288 | }) | |
289 | local Weld = AddInstance("Weld",{ | |
290 | Parent = nana, | |
291 | Part0 = weld.Part1, | |
292 | C0 = CFrame.new(0, 0, 0)*CFrame.Angles(0, 0, 0), | |
293 | Part1 = nana, | |
294 | }) | |
295 | local Mesh = AddInstance("SpecialMesh",{ | |
296 | Parent = nana, | |
297 | MeshId = "rbxassetid://16150814", | |
298 | TextureId = "rbxassetid://16150799", | |
299 | Scale = Vector3.new(1, 1, 1), | |
300 | VertexColor = Vector3.new(0.3, 0.3, 0.3), | |
301 | }) | |
302 | ||
303 | removeControl = function() | |
304 | canjump = false | |
305 | end | |
306 | resumeControl = function() | |
307 | canjump = true | |
308 | end | |
309 | ||
310 | Player.Character.Humanoid.Changed:connect(function() | |
311 | if canjump == false then | |
312 | Player.Character.Humanoid.Jump = false | |
313 | end | |
314 | end) | |
315 | ArtificialHB = Instance.new("BindableEvent", script) | |
316 | ArtificialHB.Name = "Heartbeat" | |
317 | ||
318 | script:WaitForChild("Heartbeat") | |
319 | ||
320 | frame = 1 / 30 | |
321 | tf = 0 | |
322 | allowframeloss = true | |
323 | tossremainder = false | |
324 | lastframe = tick() | |
325 | script.Heartbeat:Fire() | |
326 | ||
327 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
328 | tf = tf + s | |
329 | if tf >= frame then | |
330 | if allowframeloss then | |
331 | script.Heartbeat:Fire() | |
332 | lastframe = tick() | |
333 | else | |
334 | for i = 1, math.floor(tf / frame) do | |
335 | script.Heartbeat:Fire() | |
336 | end | |
337 | lastframe = tick() | |
338 | end | |
339 | if tossremainder then | |
340 | tf = 0 | |
341 | else | |
342 | tf = tf - frame * math.floor(tf / frame) | |
343 | end | |
344 | end | |
345 | end) | |
346 | ||
347 | function swait(num) | |
348 | if num == 0 or num == nil then | |
349 | ArtificialHB.Event:wait() | |
350 | else | |
351 | for i = 0, num do | |
352 | ArtificialHB.Event:wait() | |
353 | end | |
354 | end | |
355 | end | |
356 | if Character:findFirstChild("Carnufico", true) ~= nil then | |
357 | Character:findFirstChild("Carnufico", true).Parent = nil | |
358 | end | |
359 | if Player.PlayerGui:findFirstChild("WeaponGUI", true) ~= nil then | |
360 | Player.PlayerGui:findFirstChild("WeaponGUI", true).Parent = nil | |
361 | end | |
362 | if Character:findFirstChild("Stats", true) ~= nil then | |
363 | Character:findFirstChild("Stats", true).Parent = nil | |
364 | end | |
365 | local Stats = Instance.new("BoolValue") | |
366 | Stats.Name = "Stats" | |
367 | Stats.Parent = Character | |
368 | local Atk = Instance.new("NumberValue") | |
369 | Atk.Name = "Damage" | |
370 | Atk.Parent = Stats | |
371 | Atk.Value = 1 | |
372 | local Def = Instance.new("NumberValue") | |
373 | Def.Name = "Defense" | |
374 | Def.Parent = Stats | |
375 | Def.Value = 1 | |
376 | local Mvmt = Instance.new("NumberValue") | |
377 | Mvmt.Name = "Movement" | |
378 | Mvmt.Parent = Stats | |
379 | Mvmt.Value = 1 | |
380 | local Block = Instance.new("BoolValue") | |
381 | Block.Name = "Block" | |
382 | Block.Parent = Stats | |
383 | Block.Value = false | |
384 | local Stun = Instance.new("NumberValue") | |
385 | Stun.Name = "Stun" | |
386 | Stun.Parent = Stats | |
387 | Stun.Value = 0 | |
388 | local StunT = Instance.new("NumberValue") | |
389 | StunT.Name = "StunThreshold" | |
390 | StunT.Parent = Stats | |
391 | StunT.Value = 100 | |
392 | local Rooted = Instance.new("BoolValue") | |
393 | Rooted.Name = "Rooted" | |
394 | Rooted.Parent = Stats | |
395 | Rooted.Value = false | |
396 | local Stunned = Instance.new("BoolValue") | |
397 | Stunned.Name = "Stunned" | |
398 | Stunned.Parent = Stats | |
399 | Stunned.Value = false | |
400 | local Stagger = Instance.new("BoolValue") | |
401 | Stagger.Name = "Stagger" | |
402 | Stagger.Parent = Stats | |
403 | Stagger.Value = false | |
404 | local StaggerHit = Instance.new("BoolValue") | |
405 | StaggerHit.Name = "StaggerHit" | |
406 | StaggerHit.Parent = Stats | |
407 | StaggerHit.Value = false | |
408 | local RecentEnemy = Instance.new("ObjectValue") | |
409 | RecentEnemy.Name = "RecentEnemy" | |
410 | RecentEnemy.Parent = Stats | |
411 | RecentEnemy.Value = nil | |
412 | local Decrease = Instance.new("BoolValue") | |
413 | Decrease.Name = "Decrease" | |
414 | Decrease.Parent = Stats | |
415 | Decrease.Value = false | |
416 | local mana = Instance.new("NumberValue") | |
417 | mana.Name = "Mana" | |
418 | mana.Parent = Stats | |
419 | mana.Value = 0 | |
420 | local invisnum = Instance.new("NumberValue") | |
421 | invisnum.Name = "Pursuit" | |
422 | invisnum.Parent = Stats | |
423 | invisnum.Value = 0 | |
424 | local isinvis = Instance.new("BoolValue") | |
425 | isinvis.Name = "IsInvisible" | |
426 | isinvis.Parent = Stats | |
427 | isinvis.Value = false | |
428 | local passive = Instance.new("NumberValue", Decrease) | |
429 | passive.Name = "DecreaseAtk" | |
430 | passive.Value = 0 | |
431 | local passive2 = Instance.new("NumberValue", nil) | |
432 | passive2.Name = "DecreaseDef" | |
433 | passive2.Value = 0.2 | |
434 | local passive3 = Instance.new("NumberValue", nil) | |
435 | passive3.Name = "DecreaseMvmt" | |
436 | passive3.Value = -0.2 | |
437 | NoOutline = function(Part) | |
438 | Part.TopSurface = 10 | |
439 | end | |
440 | part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size) | |
441 | local fp = it("Part") | |
442 | fp.formFactor = formfactor | |
443 | fp.Parent = parent | |
444 | fp.Reflectance = reflectance | |
445 | fp.Transparency = transparency | |
446 | fp.CanCollide = false | |
447 | fp.Locked = true | |
448 | fp.BrickColor = brickcolor | |
449 | fp.Name = name | |
450 | fp.Size = size | |
451 | fp.Position = Torso.Position | |
452 | NoOutline(fp) | |
453 | fp.Material = "SmoothPlastic" | |
454 | fp:BreakJoints() | |
455 | return fp | |
456 | end | |
457 | mesh = function(Mesh, part, meshtype, meshid, offset, scale) | |
458 | local mesh = it(Mesh) | |
459 | mesh.Parent = part | |
460 | if Mesh == "SpecialMesh" then | |
461 | mesh.MeshType = meshtype | |
462 | if meshid ~= "nil" then | |
463 | mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid | |
464 | end | |
465 | end | |
466 | mesh.Offset = offset | |
467 | mesh.Scale = scale | |
468 | return mesh | |
469 | end | |
470 | weld = function(parent, part0, part1, c0) | |
471 | local weld = it("Motor") | |
472 | weld.Parent = parent | |
473 | weld.Part0 = part0 | |
474 | weld.Part1 = part1 | |
475 | weld.C0 = c0 | |
476 | return weld | |
477 | end | |
478 | gui = function(GuiType, parent, text, backtrans, backcol, pos, size) | |
479 | local gui = it(GuiType) | |
480 | gui.Parent = parent | |
481 | gui.Text = text | |
482 | gui.BackgroundTransparency = backtrans | |
483 | gui.BackgroundColor3 = backcol | |
484 | gui.SizeConstraint = "RelativeXY" | |
485 | gui.TextXAlignment = "Center" | |
486 | gui.TextYAlignment = "Center" | |
487 | gui.Position = pos | |
488 | gui.Size = size | |
489 | gui.Font = "Bodoni" | |
490 | gui.FontSize = "Size24" | |
491 | gui.TextWrapped = false | |
492 | gui.TextStrokeTransparency = 0 | |
493 | gui.TextColor = BrickColor.new("Really red") | |
494 | return gui | |
495 | end | |
496 | local Color1 = Torso.BrickColor | |
497 | local fengui = it("GuiMain") | |
498 | fengui.Parent = Player.PlayerGui | |
499 | fengui.Name = "WeaponGUI" | |
500 | local fenframe = it("Frame") | |
501 | fenframe.Parent = fengui | |
502 | fenframe.BackgroundColor3 = Color3.new(255, 255, 255) | |
503 | fenframe.BackgroundTransparency = 1 | |
504 | fenframe.BorderColor3 = Color3.new(17, 17, 17) | |
505 | fenframe.Size = UDim2.new(0.1, 0, 0.1, 0) | |
506 | fenframe.Position = UDim2.new(0.95, 0, 0.7, 0) | |
507 | local fenframe2 = it("Frame") | |
508 | fenframe2.Parent = fengui | |
509 | fenframe2.BackgroundColor3 = Color3.new(255, 255, 255) | |
510 | fenframe2.BackgroundTransparency = 1 | |
511 | fenframe2.BorderColor3 = Color3.new(17, 17, 17) | |
512 | fenframe2.Size = UDim2.new(0.2, 0, 0.1, 0) | |
513 | fenframe2.Position = UDim2.new(0.4, 0, 0.85, 0) | |
514 | local fenframe3 = it("Frame") | |
515 | fenframe3.Parent = fengui | |
516 | fenframe3.BackgroundColor3 = Color3.new(255, 255, 255) | |
517 | fenframe3.BackgroundTransparency = 1 | |
518 | fenframe3.BorderColor3 = Color3.new(17, 17, 17) | |
519 | fenframe3.Size = UDim2.new(0.2, 0, 0.2, 0) | |
520 | fenframe3.Position = UDim2.new(0.8, 0, 0.8, 0) | |
521 | fenframe3.Name = "MoveFrame" | |
522 | local fenframe4 = it("Frame") | |
523 | fenframe4.Parent = fengui | |
524 | fenframe4.BackgroundColor3 = Color3.new(255, 255, 255) | |
525 | fenframe4.BackgroundTransparency = 1 | |
526 | fenframe4.BorderColor3 = Color3.new(17, 17, 17) | |
527 | fenframe4.Size = UDim2.new(0.1, 0, 0.1, 0) | |
528 | fenframe4.Position = UDim2.new(0, 0, 0.7, 0) | |
529 | local pressedf = false | |
530 | local fenframe5 = it("Frame") | |
531 | fenframe5.Parent = fengui | |
532 | fenframe5.BackgroundColor3 = Color3.new(0, 0, 0) | |
533 | fenframe5.BackgroundTransparency = 1 | |
534 | fenframe5.BorderColor3 = Color3.new(0, 0, 0) | |
535 | fenframe5.Size = UDim2.new(1, 0, 1, 0) | |
536 | fenframe5.Position = UDim2.new(0, 0, 0, 0) | |
537 | fenframe5.ZIndex = 2 | |
538 | local tellbar = gui("TextLabel", fenframe5, "Press F to equip weapon.", 1, Color3.new(0, 0, 0), UDim2.new(0.25, 0, 0.25, 0), UDim2.new(0.5, 0, 0.5, 0)) | |
539 | tellbar.Font = "Bodoni" | |
540 | tellbar.TextScaled = true | |
541 | tellbar.TextTransparency = 1 | |
542 | tellbar.TextStrokeTransparency = 1 | |
543 | tellbar.ZIndex = 2 | |
544 | local fnumb = 0 | |
545 | local fenbarmana1 = gui("TextLabel", fenframe, "", 0, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, -4, 0)) | |
546 | local fenbarmana2 = gui("TextLabel", fenframe, "", 0, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, 0, 0)) | |
547 | local fenbarmana4 = gui("TextLabel", fenframe, "Mana(" .. mana.Value .. ")", 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0.2, 0), UDim2.new(0.4, 0, 0.2, 0)) | |
548 | local fenbarblock1 = gui("TextLabel", fenframe, "", 0, Color3.new(0, 0, 0), UDim2.new(-0.7, 0, 0, 0), UDim2.new(0.4, 0, -4, 0)) | |
549 | local fenbarblock2 = gui("TextLabel", fenframe, "", 0, BrickColor.new("White").Color, UDim2.new(-0.7, 0, 0, 0), UDim2.new(0.4, 0, 0, 0)) | |
550 | local fenbarblock3 = gui("TextLabel", fenframe, "Pursuit(" .. invisnum.Value .. ")", 1, Color3.new(0, 0, 0), UDim2.new(-0.7, 0, 0.2, 0), UDim2.new(0.4, 0, 0.2, 0)) | |
551 | local fenbardamage = gui("TextLabel", fenframe2, "Damage", 0.55, Color3.new(0.6078431372549, 0, 0), UDim2.new(-0.23, 0, 0, 0), UDim2.new(0.2, 0, 1, 0)) | |
552 | local fenbardef = gui("TextLabel", fenframe2, "Defense", 0.55, Color3.new(0, 0, 0.6078431372549), UDim2.new(-0.46, 0, 0, 0), UDim2.new(0.2, 0, 1, 0)) | |
553 | local fenbarmove = gui("TextLabel", fenframe2, "Walkspeed", 0.55, Color3.new(0, 0.6078431372549, 0), UDim2.new(1.03, 0, 0, 0), UDim2.new(0.2, 0, 1, 0)) | |
554 | local fenbarhp1 = gui("TextLabel", fenframe2, "", 0, Color3.new(0, 0, 0), UDim2.new(-0.46, 0, 1, 0), UDim2.new(1.92, 0, 0.4, 0)) | |
555 | local fenbarhp2 = gui("TextLabel", fenbarhp1, "", 0, Color3.new(1, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0)) | |
556 | local fenbarhp3 = gui("TextLabel", fenbarhp1, "(100)", 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0)) | |
557 | local fenbarstun1 = gui("TextLabel", fenframe4, "", 0, Color3.new(0, 0, 0), UDim2.new(0.2, 0, 0, 0), UDim2.new(0.4, 0, -4, 0)) | |
558 | local fenbarstun2 = gui("TextLabel", fenframe4, "", 0, Color3.new(0.960784, 0.803922, 0.188235), UDim2.new(0.2, 0, 0, 0), UDim2.new(0.4, 0, 0, 0)) | |
559 | local fenbarstun3 = gui("TextLabel", fenframe4, "Stun(" .. Stun.Value .. ")", 1, Color3.new(0.960784, 0.803922, 0.188235), UDim2.new(0.2, 0, 0.2, 0), UDim2.new(0.4, 0, 0.2, 0)) | |
560 | local fenbarmove1 = gui("TextButton", fenframe3, move1, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.1, 0, 0.1, 0), UDim2.new(0.4, 0, 0.4, 0)) | |
561 | fenbarmove1.ZIndex = 2 | |
562 | local fenbarmove1b = gui("TextLabel", fenbarmove1, "", 0.55, BrickColor.new(NewCol2).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0)) | |
563 | local fenbarmove2 = gui("TextButton", fenframe3, move2, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.6, 0, 0.1, 0), UDim2.new(0.4, 0, 0.4, 0)) | |
564 | fenbarmove2.ZIndex = 2 | |
565 | local fenbarmove2b = gui("TextLabel", fenbarmove2, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0)) | |
566 | local fenbarmove3 = gui("TextButton", fenframe3, move3, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.1, 0, 0.6, 0), UDim2.new(0.4, 0, 0.4, 0)) | |
567 | fenbarmove3.ZIndex = 2 | |
568 | local fenbarmove3b = gui("TextLabel", fenbarmove3, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0)) | |
569 | local fenbarmove4 = gui("TextButton", fenframe3, move4, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.6, 0, 0.6, 0), UDim2.new(0.4, 0, 0.4, 0)) | |
570 | fenbarmove4.ZIndex = 2 | |
571 | local fenbarmove4b = gui("TextLabel", fenbarmove4, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0)) | |
572 | local testpart = part(3, effects, 0, 1, BrickColor.new("White"), "Handle", vt()) | |
573 | testpart.Anchored = true | |
574 | local scarfp2 = part(3, effects, 0, 1, BrickColor.new("White"), "Handle", vt()) | |
575 | scarfp2.Anchored = true | |
576 | local modelzorz = Instance.new("Model") | |
577 | modelzorz.Parent = Character | |
578 | modelzorz.Name = "Carnufico" | |
579 | local handle = part(3, modelzorz, 0, 0.5, BrickColor.new(NewCol), "Handle", vt()) | |
580 | local prt1 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol2), "Part01", vt()) | |
581 | local prt2 = part(3, modelzorz, 0, 0, BrickColor.new("White"), "Part02", vt()) | |
582 | local prt3 = part(3, modelzorz, 0, 0, BrickColor.new("Really black"), "Part03", vt()) | |
583 | local prt4 = part(3, modelzorz, 0, 0, BrickColor.new("White"), "Part04", vt()) | |
584 | local prt5 = part(3, modelzorz, 0, 0, BrickColor.new("White"), "Part05", vt()) | |
585 | local prt6 = part(3, modelzorz, 0, 0, BrickColor.new("Really black"), "Part06", vt()) | |
586 | local prt7 = part(3, modelzorz, 0.5, 0, BrickColor.new("Really black"), "Part07", vt()) | |
587 | local prt8 = part(3, modelzorz, 0.5, 0, BrickColor.new(NewCol), "Part07", vt()) | |
588 | local prt9 = part(3, modelzorz, 0.5, 0, BrickColor.new("Really black"), "Part09", vt()) | |
589 | local prt10 = part(3, modelzorz, 0.5, 0, BrickColor.new(NewCol), "Part10", vt()) | |
590 | msh1 = mesh("CylinderMesh", prt1, "", "", vt(0, 0, 0), vt(2, 30, 2)) | |
591 | msh2 = mesh("SpecialMesh", prt2, "FileMesh", "9756362", vt(0, 0, 0), vt(1, 1, 1)) | |
592 | msh3 = mesh("CylinderMesh", prt3, "", "", vt(0, 0, 0), vt(3, 3, 3)) | |
593 | msh4 = mesh("SpecialMesh", prt4, "FileMesh", "3270017", vt(0, 0, 0), vt(1, 1, 1)) | |
594 | msh5 = mesh("SpecialMesh", prt5, "FileMesh", "3270017", vt(0, 0, 0), vt(1, 1, 1)) | |
595 | msh6 = mesh("SpecialMesh", prt6, "FileMesh", "9756362", vt(0, 0, 0), vt(0.8, 1, 0.5)) | |
596 | msh7 = mesh("BlockMesh", prt7, "", "", vt(0, 0, 0), vt(1, 2, 2)) | |
597 | msh8 = mesh("BlockMesh", prt8, "", "", vt(0, 0, 0), vt(1, 1, 2)) | |
598 | msh9 = mesh("SpecialMesh", prt9, "Wedge", "nil", vt(0, 0, 0), vt(1, 2, 4)) | |
599 | msh10 = mesh("SpecialMesh", prt10, "Wedge", "nil", vt(0, 0, 0), vt(1, 2, 4)) | |
600 | local handlewld = weld(handle, handle, Torso, euler(-2, 1.57, 0) * cf(-1, -0.5, -0.6)) | |
601 | local wld1 = weld(prt1, prt1, handle, euler(0, 0, 0) * cf(0, 0, 0)) | |
602 | local wld2 = weld(prt1, prt2, prt1, euler(3.14, 0, 0) * cf(0, 3, 0)) | |
603 | local wld3 = weld(prt1, prt3, prt1, euler(0, 0, 0) * cf(0, -3.2, 0)) | |
604 | local wld4 = weld(prt1, prt4, prt3, euler(-1.57, 0, 1.57) * euler(0, -0.7, 0) * cf(-0.16, -0.2, -0.1)) | |
605 | local wld5 = weld(prt1, prt5, prt3, euler(-1.57, 0, -1.57) * euler(0, 0.7, 0) * cf(0.16, -0.2, -0.1)) | |
606 | local wld6 = weld(prt1, prt6, prt3, euler(0, 0, 0) * cf(0, -0.2, 0.1)) | |
607 | local wld7 = weld(prt1, prt7, prt6, euler(0, 0, 0) * cf(0, 0.2, 0.2)) | |
608 | local wld8 = weld(prt1, prt8, prt6, euler(0, 0, 0) * cf(0, -0.1, 0.2)) | |
609 | local wld9 = weld(prt1, prt9, prt7, euler(0, 0, 0) * cf(0, 0, 0.7)) | |
610 | local wld10 = weld(prt1, prt10, prt8, euler(0, 0, 0) * cf(0, -0.1, 0.7)) | |
611 | for i = 0, 2.355, 0.785 do | |
612 | local prt4 = part(3, modelzorz, 0, 0, BrickColor.new("Black"), "Part04", vt()) | |
613 | msh4 = mesh("SpecialMesh", prt4, "FileMesh", "9756362", vt(0, 0, 0), vt(1, 0.2, 0.2)) | |
614 | local wld4 = weld(prt1, prt4, prt3, euler(0, i, 0) * cf(0, 0.6, 0)) | |
615 | end | |
616 | oldprt = prt9 | |
617 | oldprt2 = prt10 | |
618 | cff = 0.1 | |
619 | eul = 0.02 | |
620 | siz = 0.99 | |
621 | for i = 1, 6 do | |
622 | local prt11 = part(3, modelzorz, 0.5, 0, BrickColor.new("Really black"), "Part11", vt()) | |
623 | msh11 = mesh("SpecialMesh", prt11, "Wedge", "nil", vt(0, 0, 0), vt(siz, 2, 6)) | |
624 | local wld11 = weld(prt1, prt11, oldprt, euler(0, 0, 0) * cf(0, 0, cff) * euler(eul, 0, 0)) | |
625 | if i < 4 then | |
626 | num = 6 | |
627 | if i == 3 then | |
628 | num = 6.8 | |
629 | end | |
630 | local prt12 = part(3, modelzorz, 0.5, 0, BrickColor.new("Black"), "Part12", vt()) | |
631 | msh12 = mesh("BlockMesh", prt12, "", "", vt(0, 0, 0), vt(siz / 2, 2, num)) | |
632 | local wld12 = weld(prt1, prt12, prt11, euler(0, 0, 0) * cf(0, 0, cff) * euler(eul, 0, 0)) | |
633 | end | |
634 | do | |
635 | do | |
636 | oldprt = prt11 | |
637 | cff = 0.6 | |
638 | eul = 0.15 | |
639 | siz = siz - 0.1 | |
640 | -- DECOMPILER ERROR at PC2114: LeaveBlock: unexpected jumping out DO_STMT | |
641 | ||
642 | end | |
643 | end | |
644 | end | |
645 | oldprt2 = prt10 | |
646 | cff = 0.1 | |
647 | eul = 0.02 | |
648 | siz = 0.99 | |
649 | for i = 1, 7 do | |
650 | local prt13 = part(3, modelzorz, 0.5, 0, BrickColor.new(NewCol), "Part13", vt()) | |
651 | msh13 = mesh("SpecialMesh", prt13, "Wedge", "nil", vt(0, 0, 0), vt(siz, 2, 6)) | |
652 | local wld13 = weld(prt1, prt13, oldprt2, euler(0, 0, 0) * cf(0, 0, cff) * euler(eul, 0, 0)) | |
653 | oldprt2 = prt13 | |
654 | cff = 0.6 | |
655 | eul = 0.14 | |
656 | siz = siz - 0.1 | |
657 | end | |
658 | for _,c in pairs(modelzorz:children()) do | |
659 | table.insert(Weapon, c) | |
660 | end | |
661 | for _,c in pairs(prt1:children()) do | |
662 | if c.className == "Motor" then | |
663 | table.insert(Welds, c) | |
664 | end | |
665 | end | |
666 | local hitbox = part(3, modelzorz, 0, 1, BrickColor.new("Black"), "Hitbox2", vt()) | |
667 | hitbox.Anchored = false | |
668 | local hbwld = weld(hitbox, hitbox, RootPart, euler(0, 0, 0) * cf(0, 0, 0)) | |
669 | local hitbox2 = part(3, nil, 0, 1, BrickColor.new("Black"), "Hitbox", vt(1, 1, 1)) | |
670 | hitbox2.Anchored = true | |
671 | local hitboxCF = cf(0, 0, 0) | |
672 | hboxpos = Instance.new("BodyPosition", nil) | |
673 | hboxpos.P = 2000 | |
674 | hboxpos.D = 100 | |
675 | hboxpos.maxForce = Vector3.new(545000, 545000, 545000) | |
676 | hitboxweld = function() | |
677 | hbwld.Parent = modelzorz | |
678 | hbwld.Part0 = hitbox | |
679 | hbwld.Part1 = prt6 | |
680 | end | |
681 | if script.Parent.className ~= "HopperBin" then | |
682 | Tool = Instance.new("HopperBin") | |
683 | Tool.Parent = Backpack | |
684 | Tool.Name = "Carnufico" | |
685 | script.Parent = Tool | |
686 | end | |
687 | Bin = script.Parent | |
688 | if Bin.Name == "Renegade: Adjudicator" then | |
689 | Bin.Name = "Carnufico" | |
690 | end | |
691 | local bodvel = Instance.new("BodyVelocity") | |
692 | local bg = Instance.new("BodyGyro") | |
693 | so = function(id, par, vol, pit) | |
694 | local sou = Instance.new("Sound", par or workspace) | |
695 | sou.Volume = vol | |
696 | sou.Pitch = pit or 1 | |
697 | sou.SoundId = "http://www.roblox.com/asset/?id=" .. id | |
698 | coroutine.resume(coroutine.create(function(Sound) | |
699 | swait() | |
700 | Sound:play() | |
701 | end), sou) | |
702 | game:GetService("Debris"):AddItem(sou, 6) | |
703 | end | |
704 | function clerp(a,b,t) | |
705 | local qa = {QuaternionFromCFrame(a)} | |
706 | local qb = {QuaternionFromCFrame(b)} | |
707 | local ax, ay, az = a.x, a.y, a.z | |
708 | local bx, by, bz = b.x, b.y, b.z | |
709 | local _t = 1-t | |
710 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
711 | end | |
712 | ||
713 | function QuaternionFromCFrame(cf) | |
714 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
715 | local trace = m00 + m11 + m22 | |
716 | if trace > 0 then | |
717 | local s = math.sqrt(1 + trace) | |
718 | local recip = 0.5/s | |
719 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
720 | else | |
721 | local i = 0 | |
722 | if m11 > m00 then | |
723 | i = 1 | |
724 | end | |
725 | if m22 > (i == 0 and m00 or m11) then | |
726 | i = 2 | |
727 | end | |
728 | if i == 0 then | |
729 | local s = math.sqrt(m00-m11-m22+1) | |
730 | local recip = 0.5/s | |
731 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
732 | elseif i == 1 then | |
733 | local s = math.sqrt(m11-m22-m00+1) | |
734 | local recip = 0.5/s | |
735 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
736 | elseif i == 2 then | |
737 | local s = math.sqrt(m22-m00-m11+1) | |
738 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
739 | end | |
740 | end | |
741 | end | |
742 | ||
743 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
744 | local xs, ys, zs = x + x, y + y, z + z | |
745 | local wx, wy, wz = w*xs, w*ys, w*zs | |
746 | local xx = x*xs | |
747 | local xy = x*ys | |
748 | local xz = x*zs | |
749 | local yy = y*ys | |
750 | local yz = y*zs | |
751 | local zz = z*zs | |
752 | return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) | |
753 | end | |
754 | ||
755 | function QuaternionSlerp(a, b, t) | |
756 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
757 | local startInterp, finishInterp; | |
758 | if cosTheta >= 0.0001 then | |
759 | if (1 - cosTheta) > 0.0001 then | |
760 | local theta = math.acos(cosTheta) | |
761 | local invSinTheta = 1/math.sin(theta) | |
762 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
763 | finishInterp = math.sin(t*theta)*invSinTheta | |
764 | else | |
765 | startInterp = 1-t | |
766 | finishInterp = t | |
767 | end | |
768 | else | |
769 | if (1+cosTheta) > 0.0001 then | |
770 | local theta = math.acos(-cosTheta) | |
771 | local invSinTheta = 1/math.sin(theta) | |
772 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
773 | finishInterp = math.sin(t*theta)*invSinTheta | |
774 | else | |
775 | startInterp = t-1 | |
776 | finishInterp = t | |
777 | end | |
778 | end | |
779 | return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp | |
780 | end | |
781 | hideanim = function() | |
782 | equipped = false | |
783 | for i = 0, 1, 0.5 do | |
784 | swait() | |
785 | handlewld.C0 = clerp(handlewld.C0, euler(0, -1.57, 0) * cf(0, 1, 0), 0.4) | |
786 | wld1.C0 = clerp(wld1.C0, cf(0, -1.5, 0) * euler(0.2, 0, 0.4), 0.4) | |
787 | Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.4), 0.4) | |
788 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4) | |
789 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(3, 0, 1), 0.4) | |
790 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
791 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2), 0.4) | |
792 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
793 | end | |
794 | for i = 0, 1, 0.2 do | |
795 | swait() | |
796 | handlewld.C0 = clerp(handlewld.C0, euler(0, -1.57, 0) * cf(0, 1, 0), 0.4) | |
797 | wld1.C0 = clerp(wld1.C0, cf(0, -1.5, 0) * euler(0.2, 0, 0.4), 0.4) | |
798 | Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.4), 0.4) | |
799 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4) | |
800 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(4, 0, 1), 0.4) | |
801 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
802 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2), 0.4) | |
803 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
804 | RH.C0 = clerp(RH.C0, RHC0, 0.4) | |
805 | LH.C0 = clerp(LH.C0, LHC0, 0.4) | |
806 | end | |
807 | mdec2.Parent = nil | |
808 | handlewld.Part1 = Torso | |
809 | handlewld.C0 = euler(-2, 1.57, 0) * cf(-1, -0.5, -0.6) | |
810 | wld1.C0 = euler(0, 0, 0) * cf(0, 0, 0) | |
811 | for i = 0, 1, 0.3 do | |
812 | swait() | |
813 | Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.4) | |
814 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4) | |
815 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 0), 0.4) | |
816 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
817 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, 0), 0.4) | |
818 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
819 | end | |
820 | mdec.Parent = Decrease | |
821 | end | |
822 | mdec.Parent = Decrease | |
823 | equipanim = function() | |
824 | equipped = true | |
825 | mdec.Parent = nil | |
826 | for i = 0, 1, 0.5 do | |
827 | swait() | |
828 | Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.4), 0.4) | |
829 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4) | |
830 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2, 0, 0.2), 0.4) | |
831 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
832 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2), 0.4) | |
833 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
834 | end | |
835 | for i = 0, 1, 0.2 do | |
836 | swait() | |
837 | Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.4), 0.4) | |
838 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4) | |
839 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(4, 0, 1), 0.4) | |
840 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
841 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2), 0.4) | |
842 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
843 | end | |
844 | mdec2.Parent = Decrease | |
845 | handlewld.Part1 = RightArm | |
846 | handlewld.C0 = euler(0, -1.57, 0) * cf(0, 1, 0) | |
847 | wld1.C0 = cf(0, -1.5, 0) * euler(0.2, 0, 0.4) | |
848 | end | |
849 | StaggerAnim = function() | |
850 | attack = true | |
851 | removeControl() | |
852 | if invisible == true then | |
853 | Clone(0.1) | |
854 | end | |
855 | for i = 1, math.random(2, 4) do | |
856 | ClangEffect(BrickColor.new("New Yeller"), cf(hitbox.Position) * euler(math.random(-50, 50) / 100, math.random(-50, 50), math.random(-50, 50) / 100), 0, 0.1, 0.2, math.random(150, 300) / 1000) | |
857 | end | |
858 | for i = 0, 1, 0.35 do | |
859 | swait() | |
860 | if Rooted.Value == false then | |
861 | Torso.Velocity = RootPart.CFrame.lookVector * -40 | |
862 | end | |
863 | Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.3) | |
864 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, -0.4), 0.3) | |
865 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.3) | |
866 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3) | |
867 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.3) | |
868 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3) | |
869 | RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.3) | |
870 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3) | |
871 | end | |
872 | for i = 0, 1, 0.2 do | |
873 | swait() | |
874 | if Rooted.Value == false then | |
875 | Torso.Velocity = RootPart.CFrame.lookVector * -40 | |
876 | end | |
877 | Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.4) | |
878 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(-0.5, 0, -0.4), 0.4) | |
879 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.4) | |
880 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
881 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.4) | |
882 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
883 | RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.4) | |
884 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.5), 0.4) | |
885 | end | |
886 | for i = 0, 1, 0.1 do | |
887 | swait() | |
888 | Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.5, 0, 0), 0.3) | |
889 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.8) * euler(-0.2, 0, -0.4), 0.3) | |
890 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.3, 0, 0.4) * euler(0, -0.4, 0), 0.3) | |
891 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3) | |
892 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.3, 0, -0.2) * euler(0, 0.4, 0), 0.3) | |
893 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3) | |
894 | RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 1.2), 0.3) | |
895 | LH.C0 = clerp(LH.C0, cf(-1, 0, -1) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3) | |
896 | end | |
897 | for i = 1, 50 do | |
898 | swait() | |
899 | if StunT.Value <= Stun.Value then | |
900 | break | |
901 | end | |
902 | end | |
903 | do | |
904 | resumeControl() | |
905 | combo = 0 | |
906 | attack = false | |
907 | end | |
908 | end | |
909 | StaggerHitt = function() | |
910 | attack = true | |
911 | if invisible == true then | |
912 | Clone(0.1) | |
913 | end | |
914 | for i = 1, math.random(2, 4) do | |
915 | ClangEffect(BrickColor.new("New Yeller"), cf(hitbox.Position) * euler(math.random(-50, 50) / 100, math.random(-50, 50), math.random(-50, 50) / 100), 0, 0.1, 0.2, math.random(150, 300) / 1000) | |
916 | end | |
917 | for i = 0, 1, 0.1 do | |
918 | swait() | |
919 | Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.7) * euler(0.1, 0, 0), 0.3) | |
920 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, -0.6), 0.3) | |
921 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.9) * euler(0, -0.7, 0), 0.3) | |
922 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3) | |
923 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.3) | |
924 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3) | |
925 | RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.4), 0.3) | |
926 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3) | |
927 | end | |
928 | attack = false | |
929 | end | |
930 | StunAnim = function() | |
931 | attack = true | |
932 | removeControl() | |
933 | Stunned.Value = true | |
934 | showDamage(Character, "Stunned", "Interrupt") | |
935 | local dec = Instance.new("NumberValue", Decrease) | |
936 | dec.Name = "DecreaseMvmt" | |
937 | dec.Value = 10 | |
938 | for i = 0, 1, 0.3 do | |
939 | swait() | |
940 | handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3) | |
941 | wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0) * euler(1.57, 0, 0), 0.3) | |
942 | Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.5), 0.2) | |
943 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.2, 0, -3), 0.2) | |
944 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 1.3), 0.2) | |
945 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2) | |
946 | LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.4) * euler(1, 0, 0.4) * euler(0, -0.1, 0), 0.2) | |
947 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2) | |
948 | RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.3), 0.25) | |
949 | LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0), 0.25) | |
950 | end | |
951 | for i = 0, 1, 0.3 do | |
952 | swait() | |
953 | handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3) | |
954 | wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0) * euler(1.57, 0, 0), 0.3) | |
955 | Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -0.5), 0.2) | |
956 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0.8, 0, -3), 0.2) | |
957 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2) | |
958 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2) | |
959 | LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.4) * euler(1.2, 0, 0.8) * euler(0, -0.1, 0), 0.2) | |
960 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2) | |
961 | RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.25) | |
962 | LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(0.1, 0, 0.7), 0.25) | |
963 | end | |
964 | for i = 0, 1, 0.3 do | |
965 | swait() | |
966 | Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -1), 0.2) | |
967 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1.57, 0, -3), 0.2) | |
968 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2) | |
969 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2) | |
970 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, -0.8) * euler(0, -0.1, 0), 0.2) | |
971 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2) | |
972 | RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, 0.6), 0.25) | |
973 | LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.3), 0.25) | |
974 | end | |
975 | local gairost = Instance.new("BodyGyro") | |
976 | gairost.Parent = RootPart | |
977 | gairost.maxTorque = Vector3.new(400000, 0, 400000) * math.huge | |
978 | gairost.P = 20000 | |
979 | gairost.cframe = cf(0, 0, 0) | |
980 | for i = 0, 1, 0.1 do | |
981 | swait() | |
982 | if hitfloor ~= nil then | |
983 | Torso.Velocity = vt(0, 0, 0) | |
984 | end | |
985 | Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.57), 0.3) | |
986 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2.5) * euler(1.57, 0, -3.14), 0.3) | |
987 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1.5) * euler(0.2, 0, 0), 0.3) | |
988 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3) | |
989 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.5, 0, -1.57) * euler(0, 0, 0), 0.3) | |
990 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3) | |
991 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0), 0.3) | |
992 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 0), 0.3) | |
993 | end | |
994 | for i = 1, 70 do | |
995 | swait() | |
996 | gairost.cframe = RootPart.CFrame | |
997 | if hitfloor ~= nil then | |
998 | Torso.Velocity = vt(0, 0, 0) | |
999 | end | |
1000 | end | |
1001 | for i = 0, 1, 0.2 do | |
1002 | swait() | |
1003 | Stun.Value = 0 | |
1004 | gairost.cframe = RootPart.CFrame | |
1005 | Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.3) | |
1006 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1, 0, -4), 0.3) | |
1007 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1) * euler(0.2, -1, 0), 0.3) | |
1008 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3) | |
1009 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, 0.2) * euler(0, 0, 0), 0.3) | |
1010 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3) | |
1011 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0.4), 0.3) | |
1012 | LH.C0 = clerp(LH.C0, cf(-1, -1, -1) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 1), 0.3) | |
1013 | end | |
1014 | resumeControl() | |
1015 | gairost.Parent = nil | |
1016 | dec.Parent = nil | |
1017 | Stun.Value = 0 | |
1018 | combo = 0 | |
1019 | Stunned.Value = false | |
1020 | attack = false | |
1021 | for i = 1, 10 do | |
1022 | swait() | |
1023 | Stun.Value = 0 | |
1024 | end | |
1025 | end | |
1026 | attackone = function() | |
1027 | attack = true | |
1028 | for i = 0, 1, 0.2 do | |
1029 | swait() | |
1030 | handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.5) | |
1031 | wld1.C0 = clerp(wld1.C0, euler(0, -0.4, 0) * cf(0, -2, 0) * euler(1.8, 0, 0), 0.5) | |
1032 | Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.6) * euler(0.4, 0, 0), 0.5) | |
1033 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1.4), 0.5) | |
1034 | RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1.57, 0, -0.5) * euler(0, 1.8, 0), 0.5) | |
1035 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5) | |
1036 | LW.C0 = clerp(LW.C0, cf(-1.4, 0.5, -0.2) * euler(0.9, 0, -0.3) * euler(0, 1.57, 0), 0.5) | |
1037 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5) | |
1038 | RH.C0 = clerp(RH.C0, cf(0.6, -1, 0.5) * euler(0, 1.57, 0) * euler(0, -1.4, -0.1), 0.5) | |
1039 | LH.C0 = clerp(LH.C0, cf(-0.6, -1, -0.5) * euler(0, -1.57, 0) * euler(0, -1.4, 0.3), 0.5) | |
1040 | if Stagger.Value ~= true and StunT.Value > Stun.Value then | |
1041 | do | |
1042 | if StaggerHit.Value == true then | |
1043 | break | |
1044 | end | |
1045 | -- DECOMPILER ERROR at PC237: LeaveBlock: unexpected jumping out IF_THEN_STMT | |
1046 | ||
1047 | -- DECOMPILER ERROR at PC237: LeaveBlock: unexpected jumping out IF_STMT | |
1048 | ||
1049 | end | |
1050 | end | |
1051 | end | |
1052 | so("92597369", prt6, 1, 0.6) | |
1053 | hbwld.Parent = nil | |
1054 | hboxpos.Parent = hitbox | |
1055 | hitbox.Parent = modelzorz | |
1056 | hitbox.Size = vt(3, 2, 7) | |
1057 | hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2) | |
1058 | hitbox.CFrame = hitboxCF | |
1059 | for i = 0, 1, 0.15 do | |
1060 | swait() | |
1061 | hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2) | |
1062 | hitbox.CFrame = hitboxCF | |
1063 | MagniDamage(hitbox, 4, 5, 7, math.random(5, 10), "Normal", RootPart, 0.5, 2, (math.random(5, 7)), nil, true) | |
1064 | handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.4) | |
1065 | wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, -2, 0) * euler(2.5, 0, 0), 0.4) | |
1066 | Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0, 0, 0), 0.4) | |
1067 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -1), 0.4) | |
1068 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1.4) * euler(0, 1.8, 0), 0.4) | |
1069 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
1070 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1, 0, -1), 0.4) | |
1071 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
1072 | RH.C0 = clerp(RH.C0, cf(0.8, -1, -0.3) * euler(0, 1.57, 0) * euler(0, 1, -0.3), 0.4) | |
1073 | LH.C0 = clerp(LH.C0, cf(-0.8, -1, 0.3) * euler(0, -1.57, 0) * euler(0, 1, 0.1), 0.4) | |
1074 | if Stagger.Value ~= true and StunT.Value > Stun.Value then | |
1075 | do | |
1076 | if StaggerHit.Value == true then | |
1077 | break | |
1078 | end | |
1079 | -- DECOMPILER ERROR at PC546: LeaveBlock: unexpected jumping out IF_THEN_STMT | |
1080 | ||
1081 | -- DECOMPILER ERROR at PC546: LeaveBlock: unexpected jumping out IF_STMT | |
1082 | ||
1083 | end | |
1084 | end | |
1085 | end | |
1086 | hitbox.Parent = modelzorz | |
1087 | hitbox.Size = vt() | |
1088 | hitboxweld() | |
1089 | hboxpos.Parent = nil | |
1090 | attack = false | |
1091 | end | |
1092 | attacktwo = function() | |
1093 | attack = true | |
1094 | for i = 0, 1, 0.2 do | |
1095 | swait() | |
1096 | handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.4) | |
1097 | wld1.C0 = clerp(wld1.C0, euler(0, -1.57, 0) * cf(0, 0, 0) * euler(2.5, 0, 0), 0.4) | |
1098 | Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0, 0, 0), 0.4) | |
1099 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -1), 0.4) | |
1100 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1.7) * euler(0, 1.8, 0), 0.4) | |
1101 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
1102 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.5, 0, -0.5), 0.4) | |
1103 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
1104 | RH.C0 = clerp(RH.C0, cf(0.8, -1, -0.3) * euler(0, 1.57, 0) * euler(0, 1, -0.3), 0.4) | |
1105 | LH.C0 = clerp(LH.C0, cf(-0.8, -1, 0.3) * euler(0, -1.57, 0) * euler(0, 1, 0.1), 0.4) | |
1106 | if Stagger.Value ~= true and StunT.Value > Stun.Value then | |
1107 | do | |
1108 | if StaggerHit.Value == true then | |
1109 | break | |
1110 | end | |
1111 | -- DECOMPILER ERROR at PC231: LeaveBlock: unexpected jumping out IF_THEN_STMT | |
1112 | ||
1113 | -- DECOMPILER ERROR at PC231: LeaveBlock: unexpected jumping out IF_STMT | |
1114 | ||
1115 | end | |
1116 | end | |
1117 | end | |
1118 | so("92597369", prt6, 1, 0.8) | |
1119 | so("92597296", prt6, 1, 1) | |
1120 | hbwld.Parent = nil | |
1121 | hboxpos.Parent = hitbox | |
1122 | hitbox.Parent = modelzorz | |
1123 | hitbox.Size = vt(1, 2, 7) | |
1124 | hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2) | |
1125 | hitbox.CFrame = hitboxCF | |
1126 | for i = 0, 1, 0.05 do | |
1127 | swait() | |
1128 | if (i >= 0.3 and i <= 0.33) or i >= 0.7 and i <= 0.73 then | |
1129 | so("92597369", prt6, 1, 0.8) | |
1130 | so("92597296", prt6, 1, 1) | |
1131 | end | |
1132 | hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2) | |
1133 | hitbox.CFrame = hitboxCF | |
1134 | MagniDamage(hitbox, 4, 4, 6, math.random(5, 10), "Normal", RootPart, 0.2, 2, (math.random(2, 5)), nil, true) | |
1135 | handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.5) | |
1136 | wld1.C0 = euler(22 * i, -1.57 + 1.7 * i, 0) * euler(0, 0, 0) * cf(0, 0, 0) * euler(2.5 - 0.93 * i, 0, 0) | |
1137 | Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1) * euler(0, 0, 0), 0.5) | |
1138 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1), 0.5) | |
1139 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1) * euler(0, 0, 0), 0.3) | |
1140 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3) | |
1141 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -1.3), 0.5) | |
1142 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5) | |
1143 | RH.C0 = clerp(RH.C0, cf(0.8, -1, 0.3) * euler(0, 1.57, 0) * euler(0, -1, -0.1), 0.5) | |
1144 | LH.C0 = clerp(LH.C0, cf(-0.8, -1, -0.3) * euler(0, -1.57, 0) * euler(0, -1, 0.3), 0.5) | |
1145 | if Stagger.Value ~= true and StunT.Value > Stun.Value then | |
1146 | do | |
1147 | if StaggerHit.Value == true then | |
1148 | break | |
1149 | end | |
1150 | -- DECOMPILER ERROR at PC569: LeaveBlock: unexpected jumping out IF_THEN_STMT | |
1151 | ||
1152 | -- DECOMPILER ERROR at PC569: LeaveBlock: unexpected jumping out IF_STMT | |
1153 | ||
1154 | end | |
1155 | end | |
1156 | end | |
1157 | RW.C0 = cf(1.5, 0.5, 0) * euler(1.57, 0, 1) * euler(0, 0, 0) | |
1158 | hitbox.Parent = modelzorz | |
1159 | hitbox.Size = vt() | |
1160 | hitboxweld() | |
1161 | hboxpos.Parent = nil | |
1162 | attack = false | |
1163 | end | |
1164 | attackthree = function() | |
1165 | attack = true | |
1166 | for i = 0, 1, 0.2 do | |
1167 | swait() | |
1168 | handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.5) | |
1169 | wld1.C0 = clerp(wld1.C0, euler(0, -0.4, 0) * cf(0, -2, 0) * euler(1.8, 0, 0), 0.5) | |
1170 | Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.6) * euler(0.4, 0, 0), 0.5) | |
1171 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1.4), 0.5) | |
1172 | RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1.57, 0, -0.5) * euler(0, 1.8, 0), 0.5) | |
1173 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5) | |
1174 | LW.C0 = clerp(LW.C0, cf(-1.4, 0.5, -0.2) * euler(0.9, 0, -0.3) * euler(0.1, 57, 0), 0.5) | |
1175 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5) | |
1176 | RH.C0 = clerp(RH.C0, cf(0.6, -1, 0.5) * euler(0, 1.57, 0) * euler(0, -1.4, -0.1), 0.5) | |
1177 | LH.C0 = clerp(LH.C0, cf(-0.6, -1, -0.5) * euler(0, -1.57, 0) * euler(0, -1.4, 0.3), 0.5) | |
1178 | if Stagger.Value ~= true and StunT.Value > Stun.Value then | |
1179 | do | |
1180 | if StaggerHit.Value == true then | |
1181 | break | |
1182 | end | |
1183 | -- DECOMPILER ERROR at PC237: LeaveBlock: unexpected jumping out IF_THEN_STMT | |
1184 | ||
1185 | -- DECOMPILER ERROR at PC237: LeaveBlock: unexpected jumping out IF_STMT | |
1186 | ||
1187 | end | |
1188 | end | |
1189 | end | |
1190 | so("92597369", prt6, 1, 0.5) | |
1191 | hbwld.Parent = nil | |
1192 | hboxpos.Parent = hitbox | |
1193 | hitbox.Parent = modelzorz | |
1194 | hitbox.Size = vt(1, 2, 7) | |
1195 | hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2) | |
1196 | hitbox.CFrame = hitboxCF | |
1197 | for i = 0, 1, 0.05 do | |
1198 | swait() | |
1199 | if i >= 0.7 and i <= 0.73 then | |
1200 | so("92597369", prt6, 1, 0.5) | |
1201 | end | |
1202 | hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2) | |
1203 | hitbox.CFrame = hitboxCF | |
1204 | MagniDamage(hitbox, 4, 5, 6, math.random(5, 10), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true) | |
1205 | handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.4) | |
1206 | wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, -2, 0) * euler(2.5, 0, 0), 0.4) | |
1207 | Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0, 0, 0), 0.4) | |
1208 | RootJoint.C0 = RootCF * cf(0, 0, -0.2) * euler(0, 0, 1.4 - 9.28 * i) | |
1209 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1.4) * euler(0, 1.8, 0), 0.4) | |
1210 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
1211 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1, 0, -1), 0.4) | |
1212 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
1213 | RH.C0 = clerp(RH.C0, cf(0.8, -1, -0.3) * euler(0, 1.57, 0) * euler(0, 1, -0.3), 0.4) | |
1214 | LH.C0 = clerp(LH.C0, cf(-0.8, -1, 0.3) * euler(0, -1.57, 0) * euler(0, 1, 0.1), 0.4) | |
1215 | if Stagger.Value ~= true and StunT.Value > Stun.Value then | |
1216 | do | |
1217 | if StaggerHit.Value == true then | |
1218 | break | |
1219 | end | |
1220 | -- DECOMPILER ERROR at PC552: LeaveBlock: unexpected jumping out IF_THEN_STMT | |
1221 | ||
1222 | -- DECOMPILER ERROR at PC552: LeaveBlock: unexpected jumping out IF_STMT | |
1223 | ||
1224 | end | |
1225 | end | |
1226 | end | |
1227 | hitbox.Parent = modelzorz | |
1228 | hitbox.Size = vt() | |
1229 | hitboxweld() | |
1230 | hboxpos.Parent = nil | |
1231 | attack = false | |
1232 | end | |
1233 | attackfour = function() | |
1234 | attack = true | |
1235 | for i = 0, 1, 0.1 do | |
1236 | swait() | |
1237 | handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3) | |
1238 | wld1.C0 = clerp(wld1.C0, euler(0, 0.8, 0) * cf(0, -2, 0) * euler(1.57, 0, 0), 0.3) | |
1239 | Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.3) | |
1240 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, 0), 0.3) | |
1241 | RW.C0 = clerp(RW.C0, cf(1, 1.2, 0) * euler(3.6, 0, -0.8), 0.3) | |
1242 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3) | |
1243 | LW.C0 = clerp(LW.C0, cf(-1, 1.2, 0) * euler(3.6, 0, 0.8), 0.3) | |
1244 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3) | |
1245 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, -0.2), 0.3) | |
1246 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0.2), 0.3) | |
1247 | if Stagger.Value ~= true and StunT.Value > Stun.Value then | |
1248 | do | |
1249 | if StaggerHit.Value == true then | |
1250 | break | |
1251 | end | |
1252 | -- DECOMPILER ERROR at PC213: LeaveBlock: unexpected jumping out IF_THEN_STMT | |
1253 | ||
1254 | -- DECOMPILER ERROR at PC213: LeaveBlock: unexpected jumping out IF_STMT | |
1255 | ||
1256 | end | |
1257 | end | |
1258 | end | |
1259 | so("28144425", prt6, 1, 0.7) | |
1260 | so("92597369", prt6, 1, 0.5) | |
1261 | hbwld.Parent = nil | |
1262 | hboxpos.Parent = hitbox | |
1263 | hitbox.Parent = modelzorz | |
1264 | hitbox.Size = vt(1, 2, 7) | |
1265 | hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2) | |
1266 | hitbox.CFrame = hitboxCF | |
1267 | blcf = nil | |
1268 | scfr = nil | |
1269 | for i = 0, 1, 0.1 do | |
1270 | swait() | |
1271 | handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3) | |
1272 | wld1.C0 = clerp(wld1.C0, euler(0, 0.8, 0) * cf(0, -2, 0) * euler(1.57, 0, 0), 0.3) | |
1273 | hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2) | |
1274 | hitbox.CFrame = hitboxCF | |
1275 | MagniDamage(hitbox, 4, 5, 7, math.random(5, 10), "Normal", RootPart, 0.5, 2, (math.random(5, 8)), nil, true) | |
1276 | Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.4) | |
1277 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.4, 0, 0), 0.4) | |
1278 | RW.C0 = clerp(RW.C0, cf(1, 0.3, -0.5) * euler(0.5, 0, -0.8), 0.4) | |
1279 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
1280 | LW.C0 = clerp(LW.C0, cf(-1, 0.3, -0.5) * euler(0.5, 0, 0.8), 0.4) | |
1281 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
1282 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, 0.3), 0.4) | |
1283 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, -0.7), 0.4) | |
1284 | if Stagger.Value ~= true and StunT.Value > Stun.Value then | |
1285 | do | |
1286 | if StaggerHit.Value == true then | |
1287 | break | |
1288 | end | |
1289 | -- DECOMPILER ERROR at PC514: LeaveBlock: unexpected jumping out IF_THEN_STMT | |
1290 | ||
1291 | -- DECOMPILER ERROR at PC514: LeaveBlock: unexpected jumping out IF_STMT | |
1292 | ||
1293 | end | |
1294 | end | |
1295 | end | |
1296 | hitbox.Parent = modelzorz | |
1297 | hitbox.Size = vt() | |
1298 | hitboxweld() | |
1299 | hboxpos.Parent = nil | |
1300 | attack = false | |
1301 | end | |
1302 | Invisibility = function() | |
1303 | if invisible == false then | |
1304 | so("324867021", Torso, 1, 1.4) | |
1305 | MagicWave(BrickColor.new("Black"), scarfp2.CFrame * euler(math.rad(180), 0, 0), 1, 1, 1, 0.5, 1.5, 0.5, 0.1) | |
1306 | MagicWave(BrickColor.new("Black"), scarfp2.CFrame * euler(math.rad(180), 0, 0), 1, 1, 1, 1, 0.5, 1, 0.1) | |
1307 | invisnum.Value = invisnum.Value - 10 | |
1308 | for _,c in pairs(Decrease:children()) do | |
1309 | if c.Name == "DecreaseMvmt" and c:findFirstChild("Renegade") ~= nil then | |
1310 | c.Parent = nil | |
1311 | end | |
1312 | end | |
1313 | d = Instance.new("NumberValue", Decrease) | |
1314 | d.Name = "DecreaseMvmt" | |
1315 | d.Value = -0.5 | |
1316 | dur = Instance.new("NumberValue", d) | |
1317 | dur.Name = "Duration" | |
1318 | dur.Value = 50 | |
1319 | display = "+Movement" | |
1320 | showDamage(Character, display, "Debuff") | |
1321 | da = Instance.new("BoolValue", d) | |
1322 | da.Name = "Renegade" | |
1323 | DecreaseStat(Character, "Defense", 0.1, 80) | |
1324 | invisible = true | |
1325 | isinvis.Value = true | |
1326 | passive3.Parent = Decrease | |
1327 | else | |
1328 | invisible = false | |
1329 | isinvis.Value = false | |
1330 | passive3.Parent = nil | |
1331 | end | |
1332 | end | |
1333 | ||
1334 | Runes = {"rbxassetid://200326272", "rbxassetid://200326330", "rbxassetid://200326394", "rbxassetid://200326465", "rbxassetid://200326593", "rbxassetid://200326667", "rbxassetid://200326796", "rbxassetid://200326880", "rbxassetid://200327025", "rbxassetid://200327088", "rbxassetid://200327279", "rbxassetid://200327394", "rbxassetid://200327439", "rbxassetid://200327517", "rbxassetid://200327625", "rbxassetid://200327725", "rbxassetid://200327804", "rbxassetid://200327922", "rbxassetid://200327991", "rbxassetid://200328063", "rbxassetid://200328131", "rbxassetid://200328211", "rbxassetid://200328319", "rbxassetid://200328365", "rbxassetid://200328401", "rbxassetid://200328461", "rbxassetid://200328530", "rbxassetid://200328645", "rbxassetid://200328713"} | |
1335 | ContentProvider = game:GetService("ContentProvider") | |
1336 | for _,v in pairs(Runes) do | |
1337 | ContentProvider:Preload(v) | |
1338 | end | |
1339 | secrit = function() | |
1340 | print("git dunked on n00b") | |
1341 | end | |
1342 | do1 = function() | |
1343 | if attack == true then | |
1344 | return | |
1345 | end | |
1346 | if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then | |
1347 | return | |
1348 | end | |
1349 | if cooldownmax <= cooldowns[1] and mana.Value >= 0 then | |
1350 | deb = 0.2 | |
1351 | attack = true | |
1352 | cooldowns[1] = 100 | |
1353 | mana.Value = mana.Value - 20 | |
1354 | local orb = part(3, modelzorz, 0, 0.5, BrickColor.new(NewCol), "Effect", vt()) | |
1355 | do | |
1356 | swait() | |
1357 | local dec = Instance.new("NumberValue", Decrease) | |
1358 | dec.Name = "DecreaseMvmt" | |
1359 | dec.Value = 0.2 | |
1360 | for i = 0, 1, 0.2 do | |
1361 | swait() | |
1362 | handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3) | |
1363 | wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0) * euler(1.57, 0, 0), 0.3) | |
1364 | Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.57) * euler(0, 0, 0), 0.3) | |
1365 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -1.57), 0.3) | |
1366 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1, 0, 1) * euler(0, 1.5, 0), 0.3) | |
1367 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3) | |
1368 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.57, 0, -1.57) * euler(0, 0, 0), 0.3) | |
1369 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3) | |
1370 | RH.C0 = clerp(RH.C0, cf(0.5, -1, -0.3) * euler(0, 1.57, 0) * euler(0, 1.57, -0.3), 0.3) | |
1371 | LH.C0 = clerp(LH.C0, cf(-0.5, -1, 0.3) * euler(0, -1.57, 0) * euler(0, 1.57, 0.1), 0.3) | |
1372 | if Stagger.Value ~= true and StunT.Value > Stun.Value then | |
1373 | do | |
1374 | if StaggerHit.Value == true then | |
1375 | break | |
1376 | end | |
1377 | end | |
1378 | end | |
1379 | end | |
1380 | if Stagger.Value ~= true then --and StunT.Value > Stun.Value then | |
1381 | if StaggerHit.Value ~= true then | |
1382 | swait() | |
1383 | arcorb = true | |
1384 | orb.Anchored = true | |
1385 | orb.CFrame = RootPart.CFrame * cf(0, 0.5, -3) | |
1386 | so("199145761", orb, 3.5, 1) | |
1387 | do | |
1388 | local msh = mesh("SpecialMesh", orb, "Sphere", "nil", vt(0, 0, 0), vt(10, 10, 10)) | |
1389 | ogui = Instance.new("BillboardGui") | |
1390 | ogui.Parent = orb | |
1391 | ogui.Size = UDim2.new(5, 0, 5, 0) | |
1392 | oimg = Instance.new("ImageLabel") | |
1393 | oimg.Parent = ogui | |
1394 | oimg.BackgroundTransparency = 1 | |
1395 | oimg.Size = UDim2.new(1, 0, 1, 0) | |
1396 | oimg.Image = Runes[math.random(1, #Runes)] | |
1397 | oimg.ImageColor3 = BrickColor.new(NewCol).Color | |
1398 | orbnum = 100 | |
1399 | while arcorb==true do | |
1400 | if arcorb == true then | |
1401 | swait() | |
1402 | end | |
1403 | if Stagger.Value ~= true and StunT.Value > Stun.Value then | |
1404 | if StaggerHit.Value == true then | |
1405 | break | |
1406 | end | |
1407 | orb.CFrame = RootPart.CFrame * cf(0, 0.5, -3) | |
1408 | MagicBlock(BrickColor.new(NewCol), cf(orb.Position) * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 1, 1, 1, 0.1, 2) | |
1409 | MagicCircle(BrickColor.new(NewCol), cf(orb.Position), 0, 0, 0, 1, 1, 1, 0.05) | |
1410 | MagicCircle(BrickColor.new(NewCol), cf(orb.Position) * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 10, 10, 10, -1, -1, -1, 0.05) | |
1411 | if orbnum < 0 or MMouse == nil then | |
1412 | arcorb = false | |
1413 | end | |
1414 | swait() | |
1415 | orbnum = orbnum - 1 | |
1416 | if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then | |
1417 | arcorb = false | |
1418 | break | |
1419 | end | |
1420 | end | |
1421 | end | |
1422 | if MMouse.Hit.p ~= nil then | |
1423 | swait() | |
1424 | local MainPos = orb.Position | |
1425 | local MainPos2 = MMouse.Hit.p | |
1426 | local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2) | |
1427 | so("200633492", orb, 1, 0.75) | |
1428 | coroutine.resume(coroutine.create(function(Pos1, Pos2, Look) | |
1429 | local num = 50 | |
1430 | repeat | |
1431 | swait() | |
1432 | local ohit, opos = rayCast(Pos1, Look.lookVector, 5, Character) | |
1433 | orb.CFrame = CFrame.new((Pos1 + opos) / 2, opos) | |
1434 | MagniDamage(orb, 15, 5, 8, math.random(5, 10), "Normal", RootPart, 0.5, 2, (math.random(5, 7)), nil, true) | |
1435 | MagicBlock(BrickColor.new(NewCol), cf(orb.Position) * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 2.5, 2.5, 2.5, 0.1, 2) | |
1436 | MagicWave(BrickColor.new("Really black"), cf(orb.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * cf(0, -2, 0), 1, 5, 1, 1.25, 0, 1.25, 0.065, 5) | |
1437 | MagicCircle(BrickColor.new(NewCol), cf(orb.Position), 10, 10, 10, 5, 5, 5, 0.05) | |
1438 | Pos1 = Pos1 + Look.lookVector * 10 | |
1439 | orb.CFrame = CFrame.new(orb.Position, MMouse.Hit.p) | |
1440 | if ohit ~= nil then | |
1441 | num = 0 | |
1442 | end | |
1443 | num = num - 1 | |
1444 | until num <= 0 | |
1445 | local ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Effect", vt()) | |
1446 | ref.Anchored = true | |
1447 | ref.CFrame = cf(orb.Position) | |
1448 | so("203691653", ref, 10, 0.75) | |
1449 | so("199146035", ref, 5, 1) | |
1450 | game:GetService("Debris"):AddItem(ref, 0.5) | |
1451 | MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 0, 0, 0, 60, 60, 60, 0.065) | |
1452 | MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 0, 0, 0, 40, 40, 40, 0.065) | |
1453 | MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 0, 0, 0, 20, 20, 20, 0.025) | |
1454 | MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 0, 0, 0, 25, 25, 25, 0.065) | |
1455 | MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 100, 100, 100, -5, -5, -5, 0.065) | |
1456 | MagniDamage(ref, 25, 10, 17, math.random(5, 10), "Normal", RootPart, 0.5, 2, (math.random(5, 7)), nil, true) | |
1457 | if isjugg == false then | |
1458 | end | |
1459 | orb.Parent = nil | |
1460 | end | |
1461 | ), MainPos, MainPos2, MouseLook) | |
1462 | end | |
1463 | do | |
1464 | dec.Parent = nil | |
1465 | swait() | |
1466 | attack = false | |
1467 | end | |
1468 | end | |
1469 | end | |
1470 | end | |
1471 | end | |
1472 | end | |
1473 | end | |
1474 | do2 = function() | |
1475 | if attack == true then | |
1476 | return | |
1477 | end | |
1478 | if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then | |
1479 | return | |
1480 | end | |
1481 | if cooldownmax <= cooldowns[3] and mana.Value >= 30 then | |
1482 | attack = true | |
1483 | cooldowns[3] = 0 | |
1484 | local dec = Instance.new("NumberValue", Decrease) | |
1485 | dec.Name = "DecreaseMvmt" | |
1486 | dec.Value = 10 | |
1487 | local dec2 = Instance.new("NumberValue", Decrease) | |
1488 | dec2.Name = "DecreaseDef" | |
1489 | dec2.Value = -10 | |
1490 | LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(2, 0, 1), 0.5) | |
1491 | for i = 0, 1, 0.1 do | |
1492 | swait() | |
1493 | Neck.C0 = clerp(Neck.C0, necko * euler(-0.4, 0, -0.2), 0.4) | |
1494 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * euler(0.8, 0, 0.5), 0.4) | |
1495 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.4, 0, 0.5), 0.4) | |
1496 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
1497 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4), 0.4) | |
1498 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
1499 | RH.C0 = clerp(RH.C0, RHC0 * cf(0, 0, 0) * euler(0, -0.5, -0.5), 0.4) | |
1500 | LH.C0 = clerp(LH.C0, LHC0 * cf(-0.5, 1, 0) * euler(0.5, 0, -0.5), 0.4) | |
1501 | if Stagger.Value ~= true and StunT.Value > Stun.Value then | |
1502 | do | |
1503 | if StaggerHit.Value == true then | |
1504 | break | |
1505 | end | |
1506 | -- DECOMPILER ERROR at PC281: LeaveBlock: unexpected jumping out IF_THEN_STMT | |
1507 | ||
1508 | -- DECOMPILER ERROR at PC281: LeaveBlock: unexpected jumping out IF_STMT | |
1509 | ||
1510 | end | |
1511 | end | |
1512 | end | |
1513 | so("200633077", workspace, 1, 1) | |
1514 | for i = 1, 50 do | |
1515 | swait(1) | |
1516 | CF = RootPart.CFrame * cf(math.random(-100,100), 0, math.random(-100,100)) | |
1517 | ref2 = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt()) | |
1518 | ref2.Anchored = true | |
1519 | ref2.CFrame = CF | |
1520 | game:GetService("Debris"):AddItem(ref2, 5) | |
1521 | so("199146035", ref2, 3, 1.5) | |
1522 | hitfloor2, posfloor2 = rayCast(ref2.Position, CFrame.new(ref2.Position, ref2.Position - Vector3.new(0, 1, 0)).lookVector, 100, Character) | |
1523 | if hitfloor2 ~= nil then | |
1524 | mana.Value = mana.Value - 30 | |
1525 | ref2.CFrame = cf(posfloor2) | |
1526 | MagicCircle(BrickColor.new("Really black"), cf(posfloor2), 150, 1, 150, 0, 0, 0, 0.025) | |
1527 | MagicCircle(BrickColor.new("Really black"), cf(posfloor2), 150, 1, 150, 5, 0, 5, 0.05) | |
1528 | MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 1, 0, 4, 0, 4, 0.0285) | |
1529 | MagicCircle(BrickColor.new("Really black"), cf(posfloor2), 0, 0, 0, 40, 40, 40, 0.1) | |
1530 | for i = 0, 1, 0.05 do | |
1531 | end | |
1532 | so("278596476", ref2, 10, 1.5) | |
1533 | so("278596476", ref2, 10, 1.5) | |
1534 | so("199146035", ref2, 2.5, 1) | |
1535 | MagniDamage(ref2, 12, 5, 10, math.random(-50, -30), "Knockdown2", RootPart, 0, 1, (math.random(5, 10)), nil, nil, true) | |
1536 | MagicBlock(BrickColor.new("Really black"), cf(posfloor2), 0, 0, 0, 18, 18, 18, 0.05, 1) | |
1537 | MagicBlock(BrickColor.new("Really black"), cf(posfloor2), 0, 0, 0, 12, 12, 12, 0.05, 1) | |
1538 | MagicBlock(BrickColor.new("Really black"), cf(posfloor2), 0, 0, 0, 6, 6, 6, 0.05, 1) | |
1539 | MagicBlock(BrickColor.new("Really black"), cf(posfloor2), 2.5, 0, 2.5, -0.025, 50, -0.025, 0.05, 1) | |
1540 | MagicBlock(BrickColor.new("Really black"), cf(posfloor2), 2.5, 0, 2.5, -0.025, 50, -0.025, 0.05, 1) | |
1541 | MagicBlock(BrickColor.new("Really black"), cf(posfloor2), 2.5, 0, 2.5, -0.025, 50, -0.025, 0.05, 1) | |
1542 | MagicBlock(BrickColor.new("Really black"), cf(posfloor2), 2.5, 0, 2.5, -0.025, 50, -0.025, 0.05, 1) | |
1543 | MagicCircle(BrickColor.new("Really black"), cf(posfloor2), 5, 0, 5, -0.125, 9001, -0.125, 0.075) | |
1544 | end | |
1545 | swait(1) | |
1546 | MagicWave(BrickColor.new("Really black"), cf(RootPart.Position) * euler(0, math.random(-50, 50), 0) * cf(0, -2, 0), 30, 0, 30, -1.5, 1, -1.5, 0.05, 3) | |
1547 | MagicWave(BrickColor.new("Really black"), cf(RootPart.Position) * euler(0, math.random(-50, 50), 0) * cf(0, -2, 0), 30, 3, 30, 0.5, -0.05, 0.5, 0.05, 3) | |
1548 | end | |
1549 | do | |
1550 | mana.Value = mana.Value - 30 | |
1551 | passivenum = -30 | |
1552 | dec.Parent = nil | |
1553 | dec2.Parent = nil | |
1554 | passive.Value = -1 | |
1555 | MagicCircle(BrickColor.new(NewCol2), cf(Torso.Position), 0, 0, 0, 0, 0, 0, 1) | |
1556 | MagniDamage(RootPart, 0, 0, 0, math.random(30, 50), "Knockdown2", RootPart, 0, 1, (math.random(4, 8)), nil, nil, false) | |
1557 | for i = 0, 1, 0.1 do | |
1558 | swait() | |
1559 | Neck.C0 = clerp(Neck.C0, necko * euler(-0.4, 0, -0.2), 0.4) | |
1560 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * euler(0.8, 0, 0.5), 0.4) | |
1561 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.4, 0, 0.5), 0.4) | |
1562 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
1563 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4), 0.4) | |
1564 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
1565 | RH.C0 = clerp(RH.C0, RHC0 * cf(0, 0, 0) * euler(0, -0.5, -0.5), 0.4) | |
1566 | LH.C0 = clerp(LH.C0, LHC0 * cf(-0.5, 1, 0) * euler(0.5, 0, -0.5), 0.4) | |
1567 | if Stagger.Value ~= true and StunT.Value > Stun.Value then | |
1568 | do | |
1569 | if StaggerHit.Value == true then | |
1570 | break | |
1571 | end | |
1572 | -- DECOMPILER ERROR at PC648: LeaveBlock: unexpected jumping out IF_THEN_STMT | |
1573 | ||
1574 | -- DECOMPILER ERROR at PC648: LeaveBlock: unexpected jumping out IF_STMT | |
1575 | ||
1576 | end | |
1577 | end | |
1578 | end | |
1579 | dec.Parent = nil | |
1580 | dec2.Parent = nil | |
1581 | attack = false | |
1582 | end | |
1583 | end | |
1584 | end | |
1585 | do3 = function() | |
1586 | if attack == true then | |
1587 | return | |
1588 | end | |
1589 | if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then | |
1590 | return | |
1591 | end | |
1592 | if cooldownmax <= cooldowns[3] and mana.Value >= 30 then | |
1593 | attack = true | |
1594 | cooldowns[3] = 0 | |
1595 | local doinvisatk = false | |
1596 | for i = 0, 1, 0.1 do | |
1597 | swait() | |
1598 | handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3) | |
1599 | wld1.C0 = clerp(wld1.C0, euler(0, 0.8, 0) * cf(0, -2, 0) * euler(1.57, 0, 0), 0.3) | |
1600 | Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.3) | |
1601 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, 0), 0.3) | |
1602 | RW.C0 = clerp(RW.C0, cf(1, 1.2, 0) * euler(3.6, 0, -0.8), 0.3) | |
1603 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3) | |
1604 | LW.C0 = clerp(LW.C0, cf(-1, 1.2, 0) * euler(3.6, 0, 0.8), 0.3) | |
1605 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3) | |
1606 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, -0.2), 0.3) | |
1607 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0.2), 0.3) | |
1608 | if Stagger.Value ~= true and StunT.Value > Stun.Value then | |
1609 | do | |
1610 | if StaggerHit.Value == true then | |
1611 | break | |
1612 | end | |
1613 | end | |
1614 | end | |
1615 | end | |
1616 | so("92597369", prt6, 0, 0) | |
1617 | blcf = nil | |
1618 | scfr = nil | |
1619 | for i = 0, 1, 0.1 do | |
1620 | swait() | |
1621 | handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3) | |
1622 | wld1.C0 = clerp(wld1.C0, euler(0, 0.8, 0) * cf(0, -2, 0) * euler(1.57, 0, 0), 0.3) | |
1623 | Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.4) | |
1624 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.4, 0, 0), 0.4) | |
1625 | RW.C0 = clerp(RW.C0, cf(1, 0.3, -0.5) * euler(0.5, 0, -0.8), 0.4) | |
1626 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
1627 | LW.C0 = clerp(LW.C0, cf(-1, 0.3, -0.5) * euler(0.5, 0, 0.8), 0.4) | |
1628 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
1629 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, 0.3), 0.4) | |
1630 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, -0.7), 0.4) | |
1631 | if Stagger.Value ~= true and StunT.Value > Stun.Value then | |
1632 | do | |
1633 | if StaggerHit.Value == true then | |
1634 | break | |
1635 | end | |
1636 | end | |
1637 | end | |
1638 | end | |
1639 | attack = false | |
1640 | CF = RootPart.CFrame * cf(0, 0, -75) | |
1641 | ref2 = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt()) | |
1642 | ref2.Anchored = true | |
1643 | ref2.CFrame = CF | |
1644 | game:GetService("Debris"):AddItem(ref2, 5) | |
1645 | so("199145761", ref2, 1, 0.75) | |
1646 | so("199146035", ref2, 3, 0.75) | |
1647 | hitfloor2, posfloor2 = rayCast(ref2.Position, CFrame.new(ref2.Position, ref2.Position - Vector3.new(0, 1, 0)).lookVector, 100, Character) | |
1648 | if hitfloor2 ~= nil then | |
1649 | mana.Value = mana.Value - 30 | |
1650 | ref2.CFrame = cf(posfloor2) | |
1651 | MagicCircle(BrickColor.new("Really black"), cf(posfloor2), 400, 400, 400, 0, 0, 0, 0.01) | |
1652 | MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 4.5, 4.5, 4.5, 0.0125) | |
1653 | MagicCircle(BrickColor.new("Really black"), cf(posfloor2), 400, 400, 400, 10, 10, 10, 0.075) | |
1654 | for i = 0, 1, 0.05 do | |
1655 | swait(4) | |
1656 | MagicBlock(BrickColor.new("White"), cf(posfloor2) * cf(math.random(-2000, 2000) / 100, math.random(-2000, 2000) / 100, math.random(-2000, 2000) / 100), 15, 15, 15, 1, 1, 1, 0.1, 1) | |
1657 | end | |
1658 | so("203691653", ref2, 5, 0.75) | |
1659 | so("203691653", ref2, 5, 1) | |
1660 | so("199146035", ref2, 10, 0.75) | |
1661 | MagniDamage(ref2, 125, 7, 21, math.random(-50, -30), "Knockdown2", RootPart, 0, 1, (math.random(5, 10)), nil, nil, true) | |
1662 | MagicBlock(BrickColor.new("Really black"), cf(posfloor2), 0, 0, 0, 100, 100, 100, 0.05, 1) | |
1663 | MagicBlock(BrickColor.new("Really black"), cf(posfloor2), 0, 0, 0, 75, 75, 75, 0.05, 1) | |
1664 | MagicBlock(BrickColor.new("Really black"), cf(posfloor2), 0, 0, 0, 50, 50, 50, 0.05, 1) | |
1665 | MagicCircle(BrickColor.new("Really black"), cf(posfloor2), 400, 400, 400, 50, 50, 50, 0.05) | |
1666 | MagicCircle(BrickColor.new("Really black"), cf(posfloor2), 0, 0, 0, 0.5, 9001, 0.5, 0.01) | |
1667 | MagicCircle(BrickColor.new("Really black"), cf(posfloor2), 0, 0, 0, 1, 9001, 1, 0.01) | |
1668 | end | |
1669 | end | |
1670 | end | |
1671 | do4 = function() | |
1672 | if attack == true then | |
1673 | return | |
1674 | end | |
1675 | if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then | |
1676 | return | |
1677 | end | |
1678 | if cooldownmax <= cooldowns[3] and mana.Value >= 30 then | |
1679 | attack = true | |
1680 | cooldowns[3] = 0 | |
1681 | local dec = Instance.new("NumberValue", Decrease) | |
1682 | dec.Name = "DecreaseMvmt" | |
1683 | dec.Value = 10 | |
1684 | local dec2 = Instance.new("NumberValue", Decrease) | |
1685 | dec2.Name = "DecreaseDef" | |
1686 | dec2.Value = -10 | |
1687 | LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(2, 0, 1), 0.5) | |
1688 | for i = 0, 1, 0.1 do | |
1689 | swait() | |
1690 | Neck.C0 = clerp(Neck.C0, necko * euler(-0.4, 0, -0.2), 0.4) | |
1691 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * euler(0.8, 0, 0.5), 0.4) | |
1692 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.4, 0, 0.5), 0.4) | |
1693 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
1694 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4), 0.4) | |
1695 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
1696 | RH.C0 = clerp(RH.C0, RHC0 * cf(0, 0, 0) * euler(0, -0.5, -0.5), 0.4) | |
1697 | LH.C0 = clerp(LH.C0, LHC0 * cf(-0.5, 1, 0) * euler(0.5, 0, -0.5), 0.4) | |
1698 | if Stagger.Value ~= true and StunT.Value > Stun.Value then | |
1699 | do | |
1700 | if StaggerHit.Value == true then | |
1701 | break | |
1702 | end | |
1703 | -- DECOMPILER ERROR at PC281: LeaveBlock: unexpected jumping out IF_THEN_STMT | |
1704 | ||
1705 | -- DECOMPILER ERROR at PC281: LeaveBlock: unexpected jumping out IF_STMT | |
1706 | ||
1707 | end | |
1708 | end | |
1709 | end | |
1710 | so("315746833", workspace, 2, 0.75) | |
1711 | for i = 1, 50 do | |
1712 | swait(1) | |
1713 | CF = RootPart.CFrame * cf(math.random(-100,100), 0, math.random(-100,100)) | |
1714 | ref2 = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt()) | |
1715 | ref2.Anchored = true | |
1716 | ref2.CFrame = CF | |
1717 | game:GetService("Debris"):AddItem(ref2, 5) | |
1718 | so("199146035", ref2, 3, 1.5) | |
1719 | hitfloor2, posfloor2 = rayCast(ref2.Position, CFrame.new(ref2.Position, ref2.Position - Vector3.new(0, 1, 0)).lookVector, 100, Character) | |
1720 | if hitfloor2 ~= nil then | |
1721 | mana.Value = mana.Value - 30 | |
1722 | ref2.CFrame = cf(posfloor2) | |
1723 | MagicCircle(BrickColor.new("Really black"), cf(posfloor2), 50, 1, 50, 0, 0, 0, 0.025) | |
1724 | MagicCircle(BrickColor.new("Really black"), cf(posfloor2), 50, 1, 50, 1.25, 0, 1.25, 0.05) | |
1725 | MagicCircle(BrickColor.new("Really black"), cf(posfloor2), 0, 1, 0, 1, 0, 1, 0.0285) | |
1726 | MagicCircle(BrickColor.new("Really black"), cf(posfloor2), 0, 0, 0, 20, 20, 20, 0.1) | |
1727 | for i = 0, 1, 0.05 do | |
1728 | end | |
1729 | so("199146035", ref2, 5, 1) | |
1730 | MagniDamage(ref2, 4, 2, 5, math.random(-50, -30), "Knockdown2", RootPart, 0, 1, (math.random(5, 10)), nil, nil, true) | |
1731 | MagicCircle(BrickColor.new("Really black"), cf(posfloor2), 0, 0, 0, 9, 9, 9, 0.05) | |
1732 | MagicCircle(BrickColor.new("Really black"), cf(posfloor2), 0, 0, 0, 6, 6, 6, 0.05) | |
1733 | MagicCircle(BrickColor.new("Really black"), cf(posfloor2), 0, 0, 0, 3, 3, 3, 0.05) | |
1734 | MagicCircle(BrickColor.new("Really black"), cf(posfloor2), 5, 0, 5, -0.125, 9001, -0.125, 0.075) | |
1735 | end | |
1736 | CF = RootPart.CFrame * cf(math.random(-100,100), 0, math.random(-100,100)) | |
1737 | ref2 = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt()) | |
1738 | ref2.Anchored = true | |
1739 | ref2.CFrame = CF | |
1740 | game:GetService("Debris"):AddItem(ref2, 5) | |
1741 | so("199146035", ref2, 3, 1.5) | |
1742 | hitfloor2, posfloor2 = rayCast(ref2.Position, CFrame.new(ref2.Position, ref2.Position - Vector3.new(0, 1, 0)).lookVector, 100, Character) | |
1743 | if hitfloor2 ~= nil then | |
1744 | mana.Value = mana.Value - 30 | |
1745 | ref2.CFrame = cf(posfloor2) | |
1746 | MagicCircle(BrickColor.new("Really black"), cf(posfloor2), 50, 1, 50, 0, 0, 0, 0.025) | |
1747 | MagicCircle(BrickColor.new("Really black"), cf(posfloor2), 50, 1, 50, 1.25, 0, 1.25, 0.05) | |
1748 | MagicCircle(BrickColor.new("Really black"), cf(posfloor2), 0, 1, 0, 1, 0, 1, 0.0285) | |
1749 | MagicCircle(BrickColor.new("Really black"), cf(posfloor2), 0, 0, 0, 20, 20, 20, 0.1) | |
1750 | for i = 0, 1, 0.05 do | |
1751 | end | |
1752 | so("199146035", ref2, 5, 1) | |
1753 | MagniDamage(ref2, 4, 2, 5, math.random(-50, -30), "Knockdown2", RootPart, 0, 1, (math.random(5, 10)), nil, nil, true) | |
1754 | MagicCircle(BrickColor.new("Really black"), cf(posfloor2), 0, 0, 0, 9, 9, 9, 0.05) | |
1755 | MagicCircle(BrickColor.new("Really black"), cf(posfloor2), 0, 0, 0, 6, 6, 6, 0.05) | |
1756 | MagicCircle(BrickColor.new("Really black"), cf(posfloor2), 0, 0, 0, 3, 3, 3, 0.05) | |
1757 | MagicCircle(BrickColor.new("Really black"), cf(posfloor2), 5, 0, 5, -0.125, 9001, -0.125, 0.075) | |
1758 | end | |
1759 | swait(1) | |
1760 | MagicBlock(BrickColor.new(NewCol2), cf(RootPart.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * cf(0, -8, 0), 10, 10, 10, -0.75, -0.75, -0.75, 0.05, 3) | |
1761 | MagicWave(BrickColor.new("Really black"), cf(RootPart.Position) * euler(0, math.random(-50, 50), 0) * cf(0, -2, 0), 1, 4, 1, 2.5, -0.1, 2.5, 0.05, 3) | |
1762 | MagicCircle(BrickColor.new(NewCol2), cf(Torso.Position), 60, 0, 60, -6, 500, -6, 0.075, 3) | |
1763 | end | |
1764 | do | |
1765 | mana.Value = mana.Value - 30 | |
1766 | passivenum = -30 | |
1767 | dec.Parent = nil | |
1768 | dec2.Parent = nil | |
1769 | passive.Value = -1 | |
1770 | so("87767777", workspace, 10, 1) | |
1771 | so("178452221", workspace, 10, 0.6) | |
1772 | so("87767777", workspace, 10, 0.75) | |
1773 | MagicWave(BrickColor.new("Really black"), cf(RootPart.Position) * euler(0, math.random(-50, 50), 0) * cf(0, -2, 0), 1, 4, 1, 10, 4, 10, 0.0075) | |
1774 | MagicWave(BrickColor.new(NewCol2), cf(RootPart.Position) * euler(0, math.random(-50, 50), 0) * cf(0, -2, 0), 1, 4, 1, 10, 4, 10, 0.025) | |
1775 | MagicWave(BrickColor.new("Really black"), cf(RootPart.Position) * euler(0, math.random(-50, 50), 0) * cf(0, -2, 0), 1, 8, 1, 10, 6, 10, 0.0075) | |
1776 | MagicWave(BrickColor.new(NewCol2), cf(RootPart.Position) * euler(0, math.random(-50, 50), 0) * cf(0, -2, 0), 1, 8, 1, 10, 6, 10, 0.025) | |
1777 | MagicWave(BrickColor.new("Really black"), cf(RootPart.Position) * euler(0, math.random(-50, 50), 0) * cf(0, -2, 0), 1, 12, 1, 10, 8, 10, 0.0075) | |
1778 | MagicWave(BrickColor.new(NewCol2), cf(RootPart.Position) * euler(0, math.random(-50, 50), 0) * cf(0, -2, 0), 1, 12, 1, 10, 8, 10, 0.0075) | |
1779 | MagicWave(BrickColor.new("Really black"), cf(RootPart.Position) * euler(0, math.random(-50, 50), 0) * cf(0, -2, 0), 1, 16, 1, 10, 10, 10, 0.0075) | |
1780 | MagicCircle(BrickColor.new(NewCol2), cf(Torso.Position), 1, 1, 1, 100, 100, 100, 0.02) | |
1781 | MagicCircle(BrickColor.new("Really black"), cf(Torso.Position), 1, 1, 1, 105, 105, 105, 0.02) | |
1782 | MagicCircle(BrickColor.new(NewCol2), cf(Torso.Position), 400, 1, 400, 1, 500, 1, 0.01) | |
1783 | MagniDamage(RootPart, 125, 4, 6, math.random(30, 50), "Knockdown2", RootPart, 0, 1, (math.random(4, 8)), nil, nil, false) | |
1784 | for i = 0, 1, 0.1 do | |
1785 | swait() | |
1786 | Neck.C0 = clerp(Neck.C0, necko * euler(-0.4, 0, -0.2), 0.4) | |
1787 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * euler(0.8, 0, 0.5), 0.4) | |
1788 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.4, 0, 0.5), 0.4) | |
1789 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
1790 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4), 0.4) | |
1791 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
1792 | RH.C0 = clerp(RH.C0, RHC0 * cf(0, 0, 0) * euler(0, -0.5, -0.5), 0.4) | |
1793 | LH.C0 = clerp(LH.C0, LHC0 * cf(-0.5, 1, 0) * euler(0.5, 0, -0.5), 0.4) | |
1794 | if Stagger.Value ~= true and StunT.Value > Stun.Value then | |
1795 | do | |
1796 | if StaggerHit.Value == true then | |
1797 | break | |
1798 | end | |
1799 | -- DECOMPILER ERROR at PC648: LeaveBlock: unexpected jumping out IF_THEN_STMT | |
1800 | ||
1801 | -- DECOMPILER ERROR at PC648: LeaveBlock: unexpected jumping out IF_STMT | |
1802 | ||
1803 | end | |
1804 | end | |
1805 | end | |
1806 | dec.Parent = nil | |
1807 | dec2.Parent = nil | |
1808 | attack = false | |
1809 | end | |
1810 | end | |
1811 | end | |
1812 | DecreaseStat = function(Model, Stat, Amount, Duration, cangui) | |
1813 | if Model:findFirstChild("Stats") ~= nil and Model.Stats[Stat] ~= nil then | |
1814 | Model.Stats[Stat].Value = Model.Stats[Stat].Value - Amount | |
1815 | d = Instance.new("NumberValue", Model.Stats.Decrease) | |
1816 | dur = Instance.new("NumberValue", d) | |
1817 | dur.Name = "Duration" | |
1818 | dur.Value = Duration | |
1819 | game:GetService("Debris"):AddItem(d, 20) | |
1820 | if Stat == "Damage" then | |
1821 | d.Name = "DecreaseAtk" | |
1822 | else | |
1823 | if Stat == "Defense" then | |
1824 | d.Name = "DecreaseDef" | |
1825 | else | |
1826 | if Stat == "Movement" then | |
1827 | d.Name = "DecreaseMvmt" | |
1828 | end | |
1829 | end | |
1830 | end | |
1831 | if Model:findFirstChild("Torso") ~= nil then | |
1832 | display = "" | |
1833 | if Stat == "Damage" then | |
1834 | if Amount > 0 then | |
1835 | display = "-Damage" | |
1836 | else | |
1837 | display = "+Damage" | |
1838 | end | |
1839 | else | |
1840 | if Stat == "Defense" then | |
1841 | if Amount > 0 then | |
1842 | display = "-Defense" | |
1843 | else | |
1844 | display = "+Defense" | |
1845 | end | |
1846 | else | |
1847 | if Stat == "Movement" then | |
1848 | if Amount > 0 then | |
1849 | display = "-Movement" | |
1850 | else | |
1851 | display = "+Movement" | |
1852 | end | |
1853 | end | |
1854 | end | |
1855 | end | |
1856 | if cangui ~= true then | |
1857 | showDamage(Model, display, "Debuff") | |
1858 | end | |
1859 | end | |
1860 | d.Value = Amount | |
1861 | end | |
1862 | end | |
1863 | GetDist = function(Part1, Part2, magni) | |
1864 | local targ = Part1.Position - Part2.Position | |
1865 | local mag = targ.magnitude | |
1866 | if mag <= magni then | |
1867 | return true | |
1868 | else | |
1869 | return false | |
1870 | end | |
1871 | end | |
1872 | MagniDamage = function(Part, magni, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration) | |
1873 | for _,c in pairs(workspace:children()) do | |
1874 | local hum = c:findFirstChild("Humanoid") | |
1875 | if hum ~= nil then | |
1876 | local head = nil | |
1877 | for _,d in pairs(c:children()) do | |
1878 | if d.className == "Model" and ranged ~= true then | |
1879 | head = d:findFirstChild("Hitbox") | |
1880 | if d.Parent == Character then | |
1881 | break | |
1882 | end | |
1883 | if head ~= nil then | |
1884 | local targ = head.Position - Part.Position | |
1885 | local mag = targ.magnitude | |
1886 | if mag <= magni and c.Name ~= Player.Name then | |
1887 | ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt()) | |
1888 | ref.Anchored = true | |
1889 | ref.CFrame = cf(head.Position) | |
1890 | game:GetService("Debris"):AddItem(ref, 1) | |
1891 | hitnum = math.random(1, 5) | |
1892 | if hitnum == 1 then | |
1893 | so("199148971", ref, 1, 1) | |
1894 | else | |
1895 | if hitnum == 2 then | |
1896 | so("199149025", ref, 1, 1) | |
1897 | else | |
1898 | if hitnum == 3 then | |
1899 | so("199149072", ref, 1, 1) | |
1900 | else | |
1901 | if hitnum == 4 then | |
1902 | so("199149109", ref, 1, 1) | |
1903 | else | |
1904 | if hitnum == 5 then | |
1905 | so("199149119", ref, 1, 1) | |
1906 | end | |
1907 | end | |
1908 | end | |
1909 | end | |
1910 | end | |
1911 | StaggerHit.Value = true | |
1912 | end | |
1913 | end | |
1914 | end | |
1915 | do | |
1916 | if d.className == "Part" and d.Name=="Torso" then | |
1917 | head = d | |
1918 | if head ~= nil then | |
1919 | local targ = head.Position - Part.Position | |
1920 | local mag = targ.magnitude | |
1921 | if mag <= magni and c.Name ~= Player.Name then | |
1922 | if stun == nil then | |
1923 | stun = math.random(5, 10) | |
1924 | end | |
1925 | local Rang = nil | |
1926 | if Ranged == false then | |
1927 | Rang = true | |
1928 | end | |
1929 | local stag = nil | |
1930 | if shbash == true then | |
1931 | stag = true | |
1932 | end | |
1933 | Damagefunc(head, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration) | |
1934 | end | |
1935 | end | |
1936 | end | |
1937 | do | |
1938 | -- DECOMPILER ERROR at PC183: LeaveBlock: unexpected jumping out DO_STMT | |
1939 | ||
1940 | end | |
1941 | end | |
1942 | end | |
1943 | end | |
1944 | end | |
1945 | end | |
1946 | rayCast = function(Pos, Dir, Max, Ignore) | |
1947 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
1948 | end | |
1949 | local Point = Torso.CFrame * cf(0, Torso.Size.Y, 0) | |
1950 | LastPoint = Point | |
1951 | effect = function(Color, Ref, LP, P1, returnn) | |
1952 | if LP == nil or P1 == nil then | |
1953 | return | |
1954 | end | |
1955 | local effectsmsh = Instance.new("CylinderMesh") | |
1956 | effectsmsh.Scale = Vector3.new(0.2, 1, 0.2) | |
1957 | effectsmsh.Name = "Mesh" | |
1958 | local effectsg = Instance.new("Part") | |
1959 | NoOutline(effectsg) | |
1960 | effectsg.formFactor = 3 | |
1961 | effectsg.CanCollide = false | |
1962 | effectsg.Name = "Eff" | |
1963 | effectsg.Locked = true | |
1964 | effectsg.Anchored = true | |
1965 | effectsg.Size = Vector3.new(0.5, 1, 0.5) | |
1966 | effectsg.Parent = workspace | |
1967 | effectsmsh.Parent = effectsg | |
1968 | effectsg.BrickColor = BrickColor.new(Color) | |
1969 | effectsg.Reflectance = Ref | |
1970 | local point1 = P1 | |
1971 | local mg = (LP.p - point1.p).magnitude | |
1972 | effectsg.Size = Vector3.new(0.5, mg, 0.5) | |
1973 | effectsg.CFrame = cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(90), 0, 0) | |
1974 | effectsmsh.Scale = Vector3.new(0.2, 1, 0.2) | |
1975 | game:GetService("Debris"):AddItem(effectsg, 2) | |
1976 | if returnn then | |
1977 | return effectsg | |
1978 | end | |
1979 | if not returnn then | |
1980 | table.insert(Effects, {effectsg, "Cylinder", 0.2, 0.01, 0, 0.01, effectsmsh}) | |
1981 | end | |
1982 | end | |
1983 | MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, parent) | |
1984 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
1985 | prt.Anchored = true | |
1986 | prt.CFrame = cframe | |
1987 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1988 | game:GetService("Debris"):AddItem(prt, 10) | |
1989 | if Type == 1 or Type == nil then | |
1990 | table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh}) | |
1991 | else | |
1992 | if Type == 2 then | |
1993 | table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh}) | |
1994 | else | |
1995 | if Type == 3 then | |
1996 | table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh, prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0}) | |
1997 | end | |
1998 | end | |
1999 | end | |
2000 | end | |
2001 | MagicSkull = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, goe) | |
2002 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
2003 | prt.Anchored = true | |
2004 | prt.CFrame = cframe | |
2005 | msh = mesh("SpecialMesh", prt, "FileMesh", "4770583", vt(0, 0, 0), vt(x1, y1, z1)) | |
2006 | game:GetService("Debris"):AddItem(prt, 10) | |
2007 | table.insert(Effects, {prt, "Skull", delay, x3, y3, z3, msh, goe}) | |
2008 | end | |
2009 | MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
2010 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
2011 | prt.Anchored = true | |
2012 | prt.CFrame = cframe | |
2013 | local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1)) | |
2014 | game:GetService("Debris"):AddItem(prt, 10) | |
2015 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
2016 | end | |
2017 | MagicCircle2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, push) | |
2018 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
2019 | prt.Anchored = true | |
2020 | prt.CFrame = cframe | |
2021 | local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1)) | |
2022 | game:GetService("Debris"):AddItem(prt, 10) | |
2023 | table.insert(Effects, {prt, "Blood", delay, x3, y3, z3, msh, push}) | |
2024 | end | |
2025 | MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
2026 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
2027 | prt.Anchored = true | |
2028 | prt.CFrame = cframe | |
2029 | local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
2030 | game:GetService("Debris"):AddItem(prt, 10) | |
2031 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
2032 | end | |
2033 | MagicCylinder2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, goe) | |
2034 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
2035 | prt.Anchored = true | |
2036 | prt.CFrame = cframe | |
2037 | local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
2038 | game:GetService("Debris"):AddItem(prt, 10) | |
2039 | table.insert(Effects, {prt, "Cylinder2", delay, x3, y3, z3, msh, goe}) | |
2040 | end | |
2041 | MagicHead = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
2042 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
2043 | prt.Anchored = true | |
2044 | prt.CFrame = cframe | |
2045 | local msh = mesh("SpecialMesh", prt, "Head", "nil", vt(0, 0, 0), vt(x1, y1, z1)) | |
2046 | game:GetService("Debris"):AddItem(prt, 10) | |
2047 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
2048 | end | |
2049 | ClangEffect = function(brickcolor, cframe, duration, decrease, size, power) | |
2050 | local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt()) | |
2051 | prt.Anchored = true | |
2052 | prt.CFrame = cframe | |
2053 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(5, 5, 5)) | |
2054 | game:GetService("Debris"):AddItem(prt, 10) | |
2055 | table.insert(Effects, {prt, "CylinderClang", duration, decrease, size, power, prt.CFrame, nil}) | |
2056 | end | |
2057 | MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
2058 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
2059 | prt.Anchored = true | |
2060 | prt.CFrame = cframe | |
2061 | local msh = mesh("SpecialMesh", prt, "FileMesh", "20329976", vt(0, 0, 0), vt(x1, y1, z1)) | |
2062 | game:GetService("Debris"):AddItem(prt, 10) | |
2063 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
2064 | end | |
2065 | MagicFire = function(brickcolor, cframe, x1, y1, z1, delay) | |
2066 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
2067 | prt.Anchored = true | |
2068 | prt.CFrame = cframe | |
2069 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
2070 | game:GetService("Debris"):AddItem(prt, 10) | |
2071 | table.insert(Effects, {prt, "Fire", delay, 1, 1, 1, msh}) | |
2072 | end | |
2073 | MagicFireWave = function(brickcolor, cframe, x1, y1, z1) | |
2074 | local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt()) | |
2075 | prt.Anchored = true | |
2076 | prt.CFrame = cframe | |
2077 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
2078 | d = Instance.new("Decal") | |
2079 | d.Parent = prt | |
2080 | d.Texture = "http://www.roblox.com/asset/?id=26356434" | |
2081 | d.Face = "Top" | |
2082 | d = Instance.new("Decal") | |
2083 | d.Parent = prt | |
2084 | d.Texture = "http://www.roblox.com/asset/?id=26356434" | |
2085 | d.Face = "Bottom" | |
2086 | game:GetService("Debris"):AddItem(prt, 10) | |
2087 | table.insert(Effects, {prt, "FireWave", 1, 30, math.random(400, 600) / 100, msh}) | |
2088 | end | |
2089 | ElecEffect = function(cff, x, y, z) | |
2090 | local prt = part(3, workspace, 0, 0, BrickColor.new("Really black"), "Part", vt(1, 1, 1)) | |
2091 | prt.Anchored = true | |
2092 | prt.CFrame = cff * cf(math.random(-x, x), math.random(-y, y), math.random(-z, z)) | |
2093 | prt.CFrame = cf(prt.Position) | |
2094 | game:GetService("Debris"):AddItem(prt, 10) | |
2095 | xval = math.random() / 3 | |
2096 | yval = math.random() / 3 | |
2097 | zval = math.random() / 3 | |
2098 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(xval, yval, zval)) | |
2099 | Effects[#Effects + 1] = {prt, "Elec", 0.2, x, y, z, xval, yval, zval, msh} | |
2100 | end | |
2101 | CloneBody = function() | |
2102 | for _,v in pairs(Torso.Parent:children()) do | |
2103 | if v.className == "Part" and v.Name ~= "HumanoidRootPart" then | |
2104 | local c = part(3, workspace, 0, 0.5, BrickColor.new("Really black"), "Effect", v.Size) | |
2105 | c.Anchored = true | |
2106 | c.CFrame = v.CFrame | |
2107 | game:GetService("Debris"):AddItem(c, 5) | |
2108 | if v.Name == "Head" then | |
2109 | cmsh = mesh("SpecialMesh", c, "Head", "nil", vt(0, 0, 0), v.Mesh.Scale) | |
2110 | end | |
2111 | table.insert(Effects, {c, "Disappear", 0.05}) | |
2112 | end | |
2113 | end | |
2114 | end | |
2115 | Clone = function(duration) | |
2116 | for _,v in pairs(Torso.Parent:children()) do | |
2117 | if v.className == "Part" and v.Name ~= "HumanoidRootPart" then | |
2118 | local c = part(3, workspace, 0, 0, BrickColor.new("Really black"), "Effect", v.Size) | |
2119 | c.Anchored = true | |
2120 | c.CFrame = v.CFrame | |
2121 | game:GetService("Debris"):AddItem(c, 5) | |
2122 | if v.Name == "Head" then | |
2123 | cmsh = mesh("SpecialMesh", c, "Head", "nil", vt(0, 0, 0), v.Mesh.Scale) | |
2124 | end | |
2125 | table.insert(Effects, {c, "Disappear", duration}) | |
2126 | else | |
2127 | do | |
2128 | do | |
2129 | if v.className == "Hat" then | |
2130 | n = v.Handle:clone() | |
2131 | n:BreakJoints() | |
2132 | n.archivable = true | |
2133 | n.Anchored = true | |
2134 | n.CanCollide = false | |
2135 | n.Name = "Effect" | |
2136 | n.BrickColor = BrickColor.new("Really black") | |
2137 | n.Parent = workspace | |
2138 | n.CFrame = v.Handle.CFrame | |
2139 | n.Transparency = 1 | |
2140 | n:BreakJoints() | |
2141 | table.insert(Effects, {n, "Disappear", duration}) | |
2142 | end | |
2143 | -- DECOMPILER ERROR at PC108: LeaveBlock: unexpected jumping out DO_STMT | |
2144 | ||
2145 | -- DECOMPILER ERROR at PC108: LeaveBlock: unexpected jumping out IF_ELSE_STMT | |
2146 | ||
2147 | -- DECOMPILER ERROR at PC108: LeaveBlock: unexpected jumping out IF_STMT | |
2148 | ||
2149 | end | |
2150 | end | |
2151 | end | |
2152 | end | |
2153 | for _,v in pairs(modelzorz:children()) do | |
2154 | if v.className == "Part" and v.Name ~= "Hitbox" and v.Name ~= "Hitbox2" then | |
2155 | n = v:clone() | |
2156 | for _,b in pairs(n:children()) do | |
2157 | if b.className == "Motor" then | |
2158 | b.Parent = nil | |
2159 | end | |
2160 | end | |
2161 | n.archivable = true | |
2162 | n.Anchored = true | |
2163 | n.CanCollide = false | |
2164 | n.Name = "Effect" | |
2165 | n.BrickColor = BrickColor.new("Really black") | |
2166 | n.Parent = workspace | |
2167 | n.CFrame = v.CFrame | |
2168 | n.Transparency = 0 | |
2169 | n:BreakJoints() | |
2170 | table.insert(Effects, {n, "Disappear", duration}) | |
2171 | end | |
2172 | end | |
2173 | end | |
2174 | Cloak = function() | |
2175 | so("697784157", Torso, 1, 1) | |
2176 | Face.Parent = nil | |
2177 | Clone(0.02) | |
2178 | for _,v in pairs(Torso.Parent:children()) do | |
2179 | do | |
2180 | if v.className == "Part" and v.Name ~= "HumanoidRootPart" then | |
2181 | coroutine.resume(coroutine.create(function() | |
2182 | for i = 0, 1, 0.1 do | |
2183 | wait() | |
2184 | v.Transparency = v.Transparency + 0.1 | |
2185 | end | |
2186 | v.Transparency = 1 | |
2187 | end)) | |
2188 | end | |
2189 | if v.className == "Hat" then | |
2190 | do | |
2191 | hatp = v.Handle | |
2192 | coroutine.resume(coroutine.create(function(derp) | |
2193 | for i = 0, 1, 0.1 do | |
2194 | wait() | |
2195 | derp.Transparency = derp.Transparency + 0.1 | |
2196 | end | |
2197 | derp.Transparency = 1 | |
2198 | end), hatp) | |
2199 | -- DECOMPILER ERROR at PC45: LeaveBlock: unexpected jumping out IF_THEN_STMT | |
2200 | ||
2201 | -- DECOMPILER ERROR at PC45: LeaveBlock: unexpected jumping out IF_STMT | |
2202 | ||
2203 | end | |
2204 | end | |
2205 | end | |
2206 | end | |
2207 | for _,v in pairs(modelzorz:children()) do | |
2208 | if v.className == "Part" and v.Name ~= "Hitbox" and v.Name ~= "Hitbox2" then | |
2209 | coroutine.resume(coroutine.create(function() | |
2210 | for i = 0, 1, 0.1 do | |
2211 | wait() | |
2212 | v.Transparency = v.Transparency + 0.1 | |
2213 | end | |
2214 | v.Transparency = 1 | |
2215 | end)) | |
2216 | end | |
2217 | end | |
2218 | end | |
2219 | UnCloak = function() | |
2220 | so("697784157", Torso, 1, 1.1) | |
2221 | Face.Parent = Head | |
2222 | for _,v in pairs(Torso.Parent:children()) do | |
2223 | do | |
2224 | if v.className == "Part" and v.Name ~= "HumanoidRootPart" then | |
2225 | coroutine.resume(coroutine.create(function() | |
2226 | for i = 0, 1, 0.1 do | |
2227 | wait() | |
2228 | v.Transparency = v.Transparency - 0.1 | |
2229 | end | |
2230 | v.Transparency = 0 | |
2231 | end)) | |
2232 | end | |
2233 | if v.className == "Hat" then | |
2234 | do | |
2235 | hatp = v.Handle | |
2236 | coroutine.resume(coroutine.create(function(derp) | |
2237 | for i = 0, 1, 0.1 do | |
2238 | wait() | |
2239 | derp.Transparency = derp.Transparency - 0.1 | |
2240 | end | |
2241 | derp.Transparency = 1 | |
2242 | end), hatp) | |
2243 | -- DECOMPILER ERROR at PC43: LeaveBlock: unexpected jumping out IF_THEN_STMT | |
2244 | ||
2245 | -- DECOMPILER ERROR at PC43: LeaveBlock: unexpected jumping out IF_STMT | |
2246 | ||
2247 | end | |
2248 | end | |
2249 | end | |
2250 | end | |
2251 | for _,v in pairs(modelzorz:children()) do | |
2252 | if v.className == "Part" and v.Name ~= "Hitbox" and v.Name ~= "Hitbox2" then | |
2253 | coroutine.resume(coroutine.create(function() | |
2254 | for i = 0, 1, 0.1 do | |
2255 | wait() | |
2256 | v.Transparency = v.Transparency - 0.1 | |
2257 | end | |
2258 | for i = 0, 1, 0.3 do | |
2259 | wait() | |
2260 | v.Transparency = 0 | |
2261 | end | |
2262 | end)) | |
2263 | end | |
2264 | end | |
2265 | end | |
2266 | Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration) | |
2267 | if hit.Parent == nil then | |
2268 | return | |
2269 | end | |
2270 | if hit.Name == "Hitbox" and hit.Parent ~= modelzorz and ranged ~= true then | |
2271 | ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt()) | |
2272 | ref.Anchored = true | |
2273 | ref.CFrame = cf(hit.Position) | |
2274 | game:GetService("Debris"):AddItem(ref, 1) | |
2275 | hitnum = math.random(1, 5) | |
2276 | if hitnum == 1 then | |
2277 | so("199148971", ref, 1, 1) | |
2278 | else | |
2279 | if hitnum == 2 then | |
2280 | so("199149025", ref, 1, 1) | |
2281 | else | |
2282 | if hitnum == 3 then | |
2283 | so("199149072", ref, 1, 1) | |
2284 | else | |
2285 | if hitnum == 4 then | |
2286 | so("199149109", ref, 1, 1) | |
2287 | else | |
2288 | if hitnum == 5 then | |
2289 | so("199149119", ref, 1, 1) | |
2290 | end | |
2291 | end | |
2292 | end | |
2293 | end | |
2294 | end | |
2295 | StaggerHit.Value = true | |
2296 | end | |
2297 | h = hit.Parent:FindFirstChild("Humanoid") | |
2298 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
2299 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then | |
2300 | return | |
2301 | end | |
2302 | if Player.Neutral == false then | |
2303 | if hit.Parent:findFirstChild("Alignment") ~= nil and hit.Parent.Alignment.Value == Player.TeamColor.Color then | |
2304 | return | |
2305 | end | |
2306 | if game.Players:GetPlayerFromCharacter(hit.Parent) ~= nil and game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == Player.TeamColor then | |
2307 | return | |
2308 | end | |
2309 | end | |
2310 | c = Instance.new("ObjectValue") | |
2311 | c.Name = "creator" | |
2312 | c.Value = game:service("Players").LocalPlayer | |
2313 | c.Parent = h | |
2314 | RecentEnemy.Value = hit.Parent | |
2315 | game:GetService("Debris"):AddItem(c, 0.5) | |
2316 | if doing4 == false then | |
2317 | minim = minim * Atk.Value | |
2318 | maxim = maxim * Atk.Value | |
2319 | end | |
2320 | Damage = 0 | |
2321 | if minim == maxim then | |
2322 | Damage = maxim | |
2323 | else | |
2324 | Damage = math.random(minim, maxim) | |
2325 | end | |
2326 | blocked = false | |
2327 | enblock = nil | |
2328 | Stats = hit.Parent:findFirstChild("Stats") | |
2329 | if Stats == nil then | |
2330 | Character.Stats:Clone().Parent=hit.Parent | |
2331 | end | |
2332 | if Stats ~= nil then | |
2333 | Stats.Defense.Value=1 | |
2334 | invis = Stats:findFirstChild("Invisibility") | |
2335 | if (ranged == false or ranged == nil) and invis ~= nil then | |
2336 | invis.Value = 0 | |
2337 | end | |
2338 | enblock = Stats:findFirstChild("Block") | |
2339 | if enblock ~= nil and enblock.Value == true then | |
2340 | blocked = true | |
2341 | end | |
2342 | if Stats:findFirstChild("Defense") ~= nil then | |
2343 | if doing2 ~= true and doing4 ~= true then | |
2344 | local divide = Stats.Defense.Value | |
2345 | Damage = Damage / divide | |
2346 | end | |
2347 | do | |
2348 | Damage = Damage | |
2349 | if Damage <= 3 and (ranged == false or ranged == nil) and blocked ~= true then | |
2350 | hitnum = math.random(1, 5) | |
2351 | if hitnum == 1 then | |
2352 | so("199149321", hit, 1, 1) | |
2353 | else | |
2354 | if hitnum == 2 then | |
2355 | so("199149338", hit, 1, 1) | |
2356 | else | |
2357 | if hitnum == 3 then | |
2358 | so("199149367", hit, 1, 1) | |
2359 | else | |
2360 | if hitnum == 4 then | |
2361 | so("199149409", hit, 1, 1) | |
2362 | else | |
2363 | if hitnum == 5 then | |
2364 | so("199149452", hit, 1, 1) | |
2365 | end | |
2366 | end | |
2367 | end | |
2368 | end | |
2369 | end | |
2370 | else | |
2371 | if ranged == false or ranged == nil and blocked ~= true then | |
2372 | hitnum = math.random(1, 6) | |
2373 | if hitnum == 1 then | |
2374 | so("199149137", hit, 1, 1) | |
2375 | else | |
2376 | if hitnum == 2 then | |
2377 | so("199149186", hit, 1, 1) | |
2378 | else | |
2379 | if hitnum == 3 then | |
2380 | so("199149221", hit, 1, 1) | |
2381 | else | |
2382 | if hitnum == 4 then | |
2383 | so("199149235", hit, 1, 1) | |
2384 | else | |
2385 | if hitnum == 5 then | |
2386 | so("199149269", hit, 1, 1) | |
2387 | else | |
2388 | if hitnum == 6 then | |
2389 | so("199149297", hit, 1, 1) | |
2390 | end | |
2391 | end | |
2392 | end | |
2393 | end | |
2394 | end | |
2395 | end | |
2396 | end | |
2397 | end | |
2398 | if Damage <= 3 and staghit == true and ranged ~= true then | |
2399 | StaggerHit.Value = true | |
2400 | end | |
2401 | if Stats:findFirstChild("Stun") ~= nil then | |
2402 | if blocked == true then | |
2403 | incstun = incstun / 2 | |
2404 | end | |
2405 | if Stats.Stun.Value < Stats.StunThreshold.Value then | |
2406 | Stats.Stun.Value = Stats.Stun.Value + incstun | |
2407 | end | |
2408 | end | |
2409 | if Stats:findFirstChild("Stagger") ~= nil and stagger == true then | |
2410 | Stats.Stagger.Value = true | |
2411 | end | |
2412 | if blocked == true then | |
2413 | showDamage(hit.Parent, "Block", "Damage") | |
2414 | if ranged ~= true then | |
2415 | enblock.Value = false | |
2416 | Stagger.Value = true | |
2417 | hitnum = math.random(1, 2) | |
2418 | if hitnum == 1 then | |
2419 | so("199148933", hit, 1, 1) | |
2420 | else | |
2421 | if hitnum == 2 then | |
2422 | so("199148947", hit, 1, 1) | |
2423 | end | |
2424 | end | |
2425 | end | |
2426 | else | |
2427 | Damage = math.floor(Damage) | |
2428 | if hit.Parent:findFirstChild("Mark") == nil then | |
2429 | d = it("BoolValue", hit.Parent) | |
2430 | d.Name = "Mark" | |
2431 | b = it("NumberValue", d) | |
2432 | b.Name = "MarkTime" | |
2433 | b.Value = 200 | |
2434 | v = it("NumberValue", d) | |
2435 | v.Name = "MarkValue" | |
2436 | v.Value = 0 | |
2437 | if doing4 == true then | |
2438 | v.Value = 10 | |
2439 | end | |
2440 | sz = it("NumberValue", d) | |
2441 | sz.Name = "MarkSize" | |
2442 | sz.Value = 5 | |
2443 | st = it("StringValue", d) | |
2444 | st.Name = "MarkType" | |
2445 | st.Value = "Adjudicator" | |
2446 | local tehpart = hit.Parent:findFirstChild("HumanoidRootPart") | |
2447 | if tehpart == nil then | |
2448 | tehpart = hit.Parent:findFirstChild("Torso") | |
2449 | end | |
2450 | if hit.Parent.Name == "Neflhelm" then | |
2451 | tehpart = hit | |
2452 | end | |
2453 | if tehpart ~= nil then | |
2454 | markgui = it("BillboardGui", tehpart) | |
2455 | markgui.Name = "Mark Gui" | |
2456 | markgui.Size = UDim2.new(7, 0, 7, 0) | |
2457 | markgui.StudsOffset = vt(0, 10, 0) | |
2458 | markgui.AlwaysOnTop = true | |
2459 | markscy = it("ImageLabel", markgui) | |
2460 | markscy.Name = "Scythe" | |
2461 | markscy.BackgroundTransparency = 1 | |
2462 | markscy.Image = "rbxassetid://278007861" | |
2463 | markscy.ImageColor3 = Color3.new(1, 0, 0) | |
2464 | markscy.Size = UDim2.new(1, 0, 1, 0) | |
2465 | table.insert(MarkedGUI, {markgui, markscy}) | |
2466 | end | |
2467 | table.insert(Marked, {d, b, v, sz}) | |
2468 | else | |
2469 | mark = hit.Parent:findFirstChild("Mark") | |
2470 | if mark:findFirstChild("MarkTime") ~= nil then | |
2471 | mark.MarkTime.Value = 700 | |
2472 | end | |
2473 | if mark:findFirstChild("MarkValue") ~= nil then | |
2474 | if mark.MarkValue.Value >= 10 then | |
2475 | if mark:findFirstChild("MarkTime") ~= nil then | |
2476 | mark.MarkTime.Value = 400 | |
2477 | end | |
2478 | if mark.MarkType.Value == "Classic" then | |
2479 | mark.Parent = nil | |
2480 | Damage = Damage * 2 | |
2481 | print("double damage") | |
2482 | if hit.Parent:findFirstChild("HumanoidRootPart") ~= nil then | |
2483 | ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt()) | |
2484 | ref.Anchored = true | |
2485 | ref.CFrame = hit.Parent.HumanoidRootPart.CFrame | |
2486 | game:GetService("Debris"):AddItem(ref, 5) | |
2487 | local nr = NumberRange.new | |
2488 | local ns = NumberSequence.new | |
2489 | local cs = ColorSequence.new | |
2490 | local parti = it("ParticleEmitter") | |
2491 | parti.Color = cs(NewCol, Color3.new(0, 0, 0)) | |
2492 | parti.LightEmission = 0 | |
2493 | parti.Size = ns(10) | |
2494 | parti.Texture = "http://www.roblox.com/asset/?id=243660364" | |
2495 | transseq = ns({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)}) | |
2496 | parti.Transparency = transseq | |
2497 | parti.ZOffset = 1 | |
2498 | parti.Acceleration = vt(0, 0, 0) | |
2499 | parti.Lifetime = nr(1) | |
2500 | parti.Rate = 20 | |
2501 | parti.Rotation = nr(0, 360) | |
2502 | parti.Speed = nr(0) | |
2503 | parti.VelocitySpread = 0 | |
2504 | parti.Parent = ref | |
2505 | parti.Enabled = true | |
2506 | table.insert(Effects, {parti, "PartiEmi", 20}) | |
2507 | markscy = it("ImageLabel", markgui) | |
2508 | markscy.Name = "Scythe" | |
2509 | markscy.BackgroundTransparency = 1 | |
2510 | markscy.Image = "rbxassetid://258927926" | |
2511 | markscy.ImageColor3 = Color3.new(1, 0, 0) | |
2512 | markscy.Size = UDim2.new(1, 0, 1, 0) | |
2513 | table.insert(Effects, {markgui, "AdjuEff", 10, markscy}) | |
2514 | end | |
2515 | elseif mark.MarkType.Value == "Adjudicator" and hit.Parent:findFirstChild("HumanoidRootPart") ~= nil then | |
2516 | da = math.random(1, 4) | |
2517 | inc = 1 | |
2518 | if doing2 == true then | |
2519 | inc = 2 | |
2520 | end | |
2521 | if da == 1 then | |
2522 | DecreaseStat(Character, "Damage", -math.random(6, 10) / 100 * inc, 150, true) | |
2523 | DecreaseStat(Character, "Movement", -math.random(2, 6) / 100 * inc, 200, true) | |
2524 | else | |
2525 | if da == 2 then | |
2526 | DecreaseStat(Character, "Defense", -math.random(2, 6) / 100 * inc, 150, true) | |
2527 | DecreaseStat(Character, "Movement", -math.random(2, 6) / 100 * inc, 200, true) | |
2528 | else | |
2529 | if da == 3 then | |
2530 | DecreaseStat(hit.Parent, "Damage", math.random(6, 10) / 100 * inc, 150, true) | |
2531 | DecreaseStat(hit.Parent, "Movement", math.random(1, 3) / 100 * inc, 200, true) | |
2532 | else | |
2533 | if da == 4 then | |
2534 | DecreaseStat(hit.Parent, "Defense", math.random(2, 6) / 100 * inc, 150, true) | |
2535 | DecreaseStat(hit.Parent, "Movement", math.random(1, 3) / 100 * inc, 200, true) | |
2536 | end | |
2537 | end | |
2538 | end | |
2539 | end | |
2540 | ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt()) | |
2541 | ref.Anchored = true | |
2542 | ref.CFrame = hit.Parent.HumanoidRootPart.CFrame | |
2543 | game:GetService("Debris"):AddItem(ref, 5) | |
2544 | markgui = it("BillboardGui", ref) | |
2545 | markgui.Name = "Mark Gui" | |
2546 | markgui.Size = UDim2.new(7, 0, 7, 0) | |
2547 | markgui.StudsOffset = vt(0, 10, 0) | |
2548 | markgui.AlwaysOnTop = true | |
2549 | markscy = it("ImageLabel", markgui) | |
2550 | markscy.Name = "Scythe" | |
2551 | markscy.BackgroundTransparency = 1 | |
2552 | markscy.Image = "rbxassetid://278007453" | |
2553 | markscy.ImageColor3 = Color3.new(1, 0, 0) | |
2554 | markscy.Size = UDim2.new(1, 0, 1, 0) | |
2555 | table.insert(Effects, {markgui, "AdjuEff", 10, markscy}) | |
2556 | end | |
2557 | elseif --[[mark.MarkType.Value ~= "Thanatos" or --]]doing4 == true then | |
2558 | mark.MarkValue.Value = 10 | |
2559 | else | |
2560 | mark.MarkValue.Value = mark.MarkValue.Value + 1 | |
2561 | end | |
2562 | end | |
2563 | if mark:findFirstChild("MarkSize") ~= nil then | |
2564 | mark.MarkSize.Value = 5 | |
2565 | end | |
2566 | coroutine.resume(coroutine.create(function(Hum, Dam) | |
2567 | hit.Parent.Humanoid:TakeDamage(Damage) | |
2568 | end), h, Damage) | |
2569 | pursuitnum = 0 | |
2570 | if isinvis.Value == false then | |
2571 | invisnum.Value = math.floor(invisnum.Value + math.random(4, 8) + Damage / 5) | |
2572 | end | |
2573 | showDamage(hit.Parent, Damage, "Damage") | |
2574 | if DecreaseState ~= nil then | |
2575 | DecreaseStat(hit.Parent, DecreaseState, DecreaseAmount, Duration) | |
2576 | end | |
2577 | if Type == "NormalDecreaseMvmt1" then | |
2578 | DecreaseStat(hit.Parent, "Movement", 0.1, 200) | |
2579 | end | |
2580 | if Type == "Knockdown" then | |
2581 | hum = hit.Parent.Humanoid | |
2582 | hum.PlatformStand = true | |
2583 | coroutine.resume(coroutine.create(function(HHumanoid) | |
2584 | swait(1) | |
2585 | HHumanoid.PlatformStand = false | |
2586 | end), hum) | |
2587 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
2588 | local bodvol = Instance.new("BodyVelocity") | |
2589 | bodvol.velocity = angle * knockback | |
2590 | bodvol.P = 500 | |
2591 | bodvol.maxForce = Vector3.new(2000, 2000, 2000) | |
2592 | bodvol.Parent = hit | |
2593 | rl = Instance.new("BodyAngularVelocity") | |
2594 | rl.P = 3000 | |
2595 | rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000 | |
2596 | rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)) | |
2597 | rl.Parent = hit | |
2598 | game:GetService("Debris"):AddItem(bodvol, 0.5) | |
2599 | game:GetService("Debris"):AddItem(rl, 0.5) | |
2600 | else | |
2601 | do | |
2602 | if Type == "Knockdown2" then | |
2603 | hum = hit.Parent.Humanoid | |
2604 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
2605 | local bodvol = Instance.new("BodyVelocity") | |
2606 | bodvol.velocity = angle * knockback | |
2607 | bodvol.P = 500 | |
2608 | bodvol.maxForce = Vector3.new(2000, 2000, 2000) | |
2609 | bodvol.Parent = hit | |
2610 | game:GetService("Debris"):AddItem(bodvol, 0.5) | |
2611 | else | |
2612 | do | |
2613 | if Type == "Normal" or Type == "NormalDecreaseMvmt1" then | |
2614 | vp = Instance.new("BodyVelocity") | |
2615 | vp.P = 500 | |
2616 | vp.maxForce = Vector3.new(math.huge, 0, math.huge) | |
2617 | if KnockbackType == 1 then | |
2618 | vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
2619 | else | |
2620 | if KnockbackType == 2 then | |
2621 | vp.velocity = Property.CFrame.lookVector * knockback | |
2622 | end | |
2623 | end | |
2624 | game:GetService("Debris"):AddItem(vp, 0.5) | |
2625 | if knockback > 0 then | |
2626 | vp.Parent = hit.Parent.Torso | |
2627 | end | |
2628 | end | |
2629 | debounce = Instance.new("BoolValue") | |
2630 | debounce.Name = "DebounceHit" | |
2631 | debounce.Parent = hit.Parent | |
2632 | debounce.Value = true | |
2633 | game:GetService("Debris"):AddItem(debounce, Delay) | |
2634 | c = Instance.new("ObjectValue") | |
2635 | c.Name = "creator" | |
2636 | c.Value = Player | |
2637 | c.Parent = h | |
2638 | game:GetService("Debris"):AddItem(c, 0.5) | |
2639 | CRIT = false | |
2640 | end | |
2641 | end | |
2642 | end | |
2643 | end | |
2644 | end | |
2645 | end | |
2646 | end | |
2647 | end | |
2648 | end | |
2649 | end | |
2650 | end | |
2651 | -- end | |
2652 | --end | |
2653 | --end | |
2654 | --end | |
2655 | --end | |
2656 | showDamage = function(Char, Dealt, Type) | |
2657 | m = Instance.new("Model") | |
2658 | m.Name = "Effect" | |
2659 | c = Instance.new("Part") | |
2660 | c.Transparency = 1 | |
2661 | c.Name = "Head" | |
2662 | c.TopSurface = 0 | |
2663 | c.BottomSurface = 0 | |
2664 | c.formFactor = "Plate" | |
2665 | c.Size = Vector3.new(1, 0.4, 1) | |
2666 | b = Instance.new("BillboardGui", c) | |
2667 | b.Size = UDim2.new(5, 0, 5, 0) | |
2668 | b.AlwaysOnTop = true | |
2669 | damgui = gui("TextLabel", b, tostring(Dealt), 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0)) | |
2670 | if Type == "Damage" then | |
2671 | damgui.Font = "SciFi" | |
2672 | if Dealt == "Block" then | |
2673 | damgui.TextColor3 = BrickColor.new("Really black").Color | |
2674 | else | |
2675 | if Dealt < 3 then | |
2676 | damgui.TextColor3 = BrickColor.new("Really black").Color | |
2677 | else | |
2678 | if Dealt >= 3 and Dealt < 20 then | |
2679 | damgui.TextColor3 = BrickColor.new("Really black").Color | |
2680 | else | |
2681 | damgui.TextColor3 = BrickColor.new("Really black").Color | |
2682 | damgui.Font = "SciFi" | |
2683 | end | |
2684 | end | |
2685 | end | |
2686 | else | |
2687 | if Type == "Debuff" then | |
2688 | damgui.TextColor3 = BrickColor.new("White").Color | |
2689 | else | |
2690 | if Type == "Interrupt" then | |
2691 | damgui.TextColor3 = BrickColor.new("New Yeller").Color | |
2692 | end | |
2693 | end | |
2694 | end | |
2695 | damgui.TextScaled = true | |
2696 | ms = Instance.new("CylinderMesh") | |
2697 | ms.Scale = Vector3.new(0.8, 0.8, 0.8) | |
2698 | ms.Parent = c | |
2699 | c.Reflectance = 0 | |
2700 | Instance.new("BodyGyro").Parent = c | |
2701 | c.Parent = m | |
2702 | if Char:findFirstChild("Head") ~= nil then | |
2703 | c.CFrame = cf(Char.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100)) | |
2704 | else | |
2705 | if Char.Parent:findFirstChild("Head") ~= nil then | |
2706 | c.CFrame = cf(Char.Parent.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100)) | |
2707 | end | |
2708 | end | |
2709 | f = Instance.new("BodyPosition") | |
2710 | f.P = 2000 | |
2711 | f.D = 100 | |
2712 | f.maxForce = Vector3.new(545000, 545000, 545000) | |
2713 | if Type == "Damage" then | |
2714 | f.position = c.Position + Vector3.new(0, 3, 0) | |
2715 | else | |
2716 | if Type == "Debuff" or Type == "Interrupt" then | |
2717 | f.position = c.Position + Vector3.new(0, 5, 0) | |
2718 | end | |
2719 | end | |
2720 | f.Parent = c | |
2721 | game:GetService("Debris"):AddItem(m, 5) | |
2722 | table.insert(Effects, {m, "showDamage", damgui, f, 10, 1, 15, 50, 100}) | |
2723 | c.CanCollide = false | |
2724 | m.Parent = workspace | |
2725 | c.CanCollide = false | |
2726 | end | |
2727 | combo = 0 | |
2728 | ob1d = function(mouse) | |
2729 | if arcorb == true then | |
2730 | arcorb = false | |
2731 | end | |
2732 | if attack == true or equipped == false then | |
2733 | return | |
2734 | end | |
2735 | deb = 0.5 | |
2736 | hold = true | |
2737 | if combo == 0 then | |
2738 | combo = 1 | |
2739 | attackone() | |
2740 | else | |
2741 | if combo == 1 then | |
2742 | combo = 2 | |
2743 | attacktwo() | |
2744 | else | |
2745 | if combo == 2 then | |
2746 | combo = 3 | |
2747 | attackthree() | |
2748 | else | |
2749 | if combo == 3 then | |
2750 | combo = 0 | |
2751 | attackfour() | |
2752 | end | |
2753 | end | |
2754 | end | |
2755 | end | |
2756 | coroutine.resume(coroutine.create(function() | |
2757 | for i = 1, 50 do | |
2758 | if attack == false then | |
2759 | swait() | |
2760 | end | |
2761 | end | |
2762 | if attack == false then | |
2763 | combo = 0 | |
2764 | end | |
2765 | end)) | |
2766 | end | |
2767 | ob1u = function(mouse) | |
2768 | hold = false | |
2769 | end | |
2770 | buttonhold = false | |
2771 | fenbarmove1.MouseButton1Click:connect(do1) | |
2772 | fenbarmove2.MouseButton1Click:connect(do2) | |
2773 | fenbarmove3.MouseButton1Click:connect(do3) | |
2774 | fenbarmove4.MouseButton1Click:connect(do4) | |
2775 | eul = 0 | |
2776 | equipped = false | |
2777 | key = function(key) | |
2778 | if attack == true then | |
2779 | return | |
2780 | end | |
2781 | if key == "f" then | |
2782 | pressedf = true | |
2783 | fnumb = 0 | |
2784 | attack = true | |
2785 | if equipped == false then | |
2786 | equipped = true | |
2787 | RSH = ch.Torso["Right Shoulder"] | |
2788 | LSH = ch.Torso["Left Shoulder"] | |
2789 | RSH.Parent = nil | |
2790 | LSH.Parent = nil | |
2791 | RW.Name = "Right Shoulder" | |
2792 | RW.Part0 = ch.Torso | |
2793 | RW.C0 = cf(1.5, 0.5, 0) | |
2794 | RW.C1 = cf(0, 0.5, 0) | |
2795 | RW.Part1 = ch["Right Arm"] | |
2796 | RW.Parent = ch.Torso | |
2797 | LW.Name = "Left Shoulder" | |
2798 | LW.Part0 = ch.Torso | |
2799 | LW.C0 = cf(-1.5, 0.5, 0) | |
2800 | LW.C1 = cf(0, 0.5, 0) | |
2801 | LW.Part1 = ch["Left Arm"] | |
2802 | LW.Parent = ch.Torso | |
2803 | Animate.Parent = nil | |
2804 | equipanim() | |
2805 | else | |
2806 | equipped = false | |
2807 | hideanim() | |
2808 | LH.C1 = LHC1 | |
2809 | RH.C1 = RHC1 | |
2810 | Animate.Parent = Humanoid | |
2811 | swait(0) | |
2812 | RW.Parent = nil | |
2813 | LW.Parent = nil | |
2814 | RSH.Parent = player.Character.Torso | |
2815 | LSH.Parent = player.Character.Torso | |
2816 | end | |
2817 | attack = false | |
2818 | end | |
2819 | if equipped == false then | |
2820 | return | |
2821 | end | |
2822 | if key == "e" and invisnum.Value > 5 then | |
2823 | Invisibility() | |
2824 | end | |
2825 | if key == "z" then | |
2826 | do1() | |
2827 | end | |
2828 | if key == "g" then | |
2829 | secrit() | |
2830 | end | |
2831 | if key == "x" then | |
2832 | do2() | |
2833 | end | |
2834 | if key == "c" then | |
2835 | do3() | |
2836 | end | |
2837 | if key == "v" then | |
2838 | do4() | |
2839 | end | |
2840 | end | |
2841 | key2 = function(key) | |
2842 | end | |
2843 | s = function(mouse) | |
2844 | mouse.Button1Down:connect(function() | |
2845 | ob1d(mouse) | |
2846 | end) | |
2847 | mouse.Button1Up:connect(function() | |
2848 | ob1u(mouse) | |
2849 | end) | |
2850 | mouse.KeyDown:connect(key) | |
2851 | mouse.KeyUp:connect(key2) | |
2852 | player = Player | |
2853 | ch = Character | |
2854 | MMouse = mouse | |
2855 | end | |
2856 | ds = function(mouse) | |
2857 | end | |
2858 | Bin.Selected:connect(s) | |
2859 | Bin.Deselected:connect(ds) | |
2860 | print("Renegade loaded.") | |
2861 | local mananum = 0 | |
2862 | local donum = 0 | |
2863 | local stunnum = 0 | |
2864 | local staggeranim = false | |
2865 | local stunanim = false | |
2866 | local Point, LastPoint = nil, nil | |
2867 | local passivenum = 100 | |
2868 | local pnum2 = 0 | |
2869 | local walk = 0 | |
2870 | local walkforw = true | |
2871 | local addpassive = 0 | |
2872 | local gashnum = 0 | |
2873 | while true do | |
2874 | swait() | |
2875 | if Humanoid.Health <= 0 then | |
2876 | attack = true | |
2877 | for i = 1, #Marked do | |
2878 | if MarkedGUI[i] ~= nil and MarkedGUI[i][1] ~= nil then | |
2879 | MarkedGUI[i][1].Parent = nil | |
2880 | end | |
2881 | table.remove(MarkedGUI, i) | |
2882 | table.remove(Marked, i) | |
2883 | end | |
2884 | resumeControl() | |
2885 | modelzorz.Parent = workspace | |
2886 | game:GetService("Debris"):AddItem(modelzorz, 30) | |
2887 | for i = 1, #Weapon do | |
2888 | Weapon[i].Parent = modelzorz | |
2889 | Weapon[i].CanCollide = true | |
2890 | end | |
2891 | for i = 1, #Welds do | |
2892 | if Welds[i].Part0.Parent == Character or Welds[i].Part1.Parent == Character then | |
2893 | Welds[i].Parent = nil | |
2894 | else | |
2895 | Welds[i].Parent = prt1 | |
2896 | end | |
2897 | end | |
2898 | end | |
2899 | do | |
2900 | if fnumb < 21 then | |
2901 | fnumb = fnumb + 1 | |
2902 | if pressedf == false then | |
2903 | fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency - 0.025 | |
2904 | tellbar.TextTransparency = tellbar.TextTransparency - 0.05 | |
2905 | tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency - 0.05 | |
2906 | else | |
2907 | if fnumb == 20 then | |
2908 | fenframe5.Parent = nil | |
2909 | print("daigui") | |
2910 | end | |
2911 | fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency + 0.025 | |
2912 | tellbar.TextTransparency = tellbar.TextTransparency + 0.05 | |
2913 | tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency + 0.05 | |
2914 | end | |
2915 | end | |
2916 | if hbwld.Parent == nil then | |
2917 | hitbox2.Name = "Hitbox" | |
2918 | else | |
2919 | hitbox2.Name = "Hitbox2" | |
2920 | end | |
2921 | if doing2 == true then | |
2922 | gashnum = gashnum + 1 | |
2923 | if (gashnum) % 10 == 0 then | |
2924 | if 0 < mana.Value then | |
2925 | mana.Value = mana.Value - -2 | |
2926 | else | |
2927 | do2() | |
2928 | end | |
2929 | end | |
2930 | MagicCircle(BrickColor.new(NewCol), prt6.CFrame * euler(-0.3, 0, 0), 0, 0, 0, 0.5, 0.5, 0.5, 0.05) | |
2931 | MagicBlock(BrickColor.new(NewCol), prt6.CFrame * euler(-0.3, 0, 0), 0, 0, 0, 1, 1, 1, 1, 0.025) | |
2932 | MagicBlock(BrickColor.new("Really black"), prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2) * cf(0, math.random(-100, 100) / 100, math.random(-200, 200) / 100), 0, 0, 0, 1, 1, 1, 1, 1) | |
2933 | end | |
2934 | hitbox2.Parent = hitbox.Parent | |
2935 | hitbox2.Size = hitbox.Size | |
2936 | hitbox2.CFrame = hitboxCF | |
2937 | hboxpos.position = hitbox2.Position + vt(math.random(-100, 100) / 100, math.random(-100, 100) / 100, math.random(-100, 100) / 100) | |
2938 | hitbox.Transparency = 1 | |
2939 | hitbox2.Transparency = 1 | |
2940 | for i = 1, #Marked do | |
2941 | if Marked[i] ~= nil then | |
2942 | if Marked[i][1].Parent == nil then | |
2943 | MarkedGUI[i][1].Parent = nil | |
2944 | table.remove(MarkedGUI, i) | |
2945 | table.remove(Marked, i) | |
2946 | else | |
2947 | if MarkedGUI[i][1].Parent ~= nil then | |
2948 | MarkedGUI[i][1].Size = UDim2.new(7 + Marked[i][4].Value, 0, 7 + Marked[i][4].Value, 0) | |
2949 | if 0 < Marked[i][4].Value then | |
2950 | Marked[i][4].Value = Marked[i][4].Value - 1 | |
2951 | end | |
2952 | if MarkedGUI[i][2].Parent ~= nil then | |
2953 | if Marked[i][3].Value == 0 then | |
2954 | MarkedGUI[i][2].Image = "rbxassetid://278007861" | |
2955 | else | |
2956 | if Marked[i][3].Value == 1 then | |
2957 | MarkedGUI[i][2].Image = "rbxassetid://278007839" | |
2958 | else | |
2959 | if Marked[i][3].Value == 2 then | |
2960 | MarkedGUI[i][2].Image = "rbxassetid://278007803" | |
2961 | else | |
2962 | if Marked[i][3].Value == 3 then | |
2963 | MarkedGUI[i][2].Image = "rbxassetid://278007757" | |
2964 | else | |
2965 | if Marked[i][3].Value == 4 then | |
2966 | MarkedGUI[i][2].Image = "rbxassetid://278007704" | |
2967 | else | |
2968 | if Marked[i][3].Value == 5 then | |
2969 | MarkedGUI[i][2].Image = "rbxassetid://278007663" | |
2970 | else | |
2971 | if Marked[i][3].Value == 6 then | |
2972 | MarkedGUI[i][2].Image = "rbxassetid://278007643" | |
2973 | else | |
2974 | if Marked[i][3].Value == 7 then | |
2975 | MarkedGUI[i][2].Image = "rbxassetid://278007606" | |
2976 | else | |
2977 | if Marked[i][3].Value == 8 then | |
2978 | MarkedGUI[i][2].Image = "rbxassetid://278007570" | |
2979 | else | |
2980 | if Marked[i][3].Value == 9 then | |
2981 | MarkedGUI[i][2].Image = "rbxassetid://278007545" | |
2982 | else | |
2983 | if Marked[i][3].Value == 10 then | |
2984 | MarkedGUI[i][2].Image = "rbxassetid://278007515" | |
2985 | end | |
2986 | end | |
2987 | end | |
2988 | end | |
2989 | end | |
2990 | end | |
2991 | end | |
2992 | end | |
2993 | end | |
2994 | end | |
2995 | end | |
2996 | end | |
2997 | end | |
2998 | if Marked[i][2] ~= nil then | |
2999 | Marked[i][2].Value = Marked[i][2].Value - 1 | |
3000 | if Marked[i][2].Value <= 0 then | |
3001 | Marked[i][1].Parent = nil | |
3002 | MarkedGUI[i][1].Parent = nil | |
3003 | table.remove(MarkedGUI, i) | |
3004 | table.remove(Marked, i) | |
3005 | end | |
3006 | end | |
3007 | end | |
3008 | end | |
3009 | end | |
3010 | scarfp2.CFrame = cf(RootPart.Position, testpart.Position) * cf(0, 0, 0) | |
3011 | scarfp2.CFrame = scarfp2.CFrame + scarfp2.CFrame.lookVector * 0.5 | |
3012 | scarfp2.CFrame = scarfp2.CFrame * cf(0, 0, 0) * euler(1.57, 0, 0) | |
3013 | testpart.CFrame = cf(RootPart.Position - RootPart.Velocity) * cf(0, 1, 0) | |
3014 | if invisible == true then | |
3015 | addpassive = addpassive + 1 | |
3016 | for i = 1, 1 do | |
3017 | MagicCircle2(BrickColor.new("Black"), scarfp2.CFrame * euler(0, 0, math.rad(180)) * cf(math.random(-300, 300) / 100, math.random(-200, 200) / 100, math.random(-300, 300) / 100), 1.5, 10, 1.5, -0.2, 1, -0.2, 0.2) | |
3018 | end | |
3019 | if 50 <= addpassive then | |
3020 | addpassive = 0 | |
3021 | for _,c in pairs(workspace:children()) do | |
3022 | local hum = (c:findFirstChild("Humanoid")) | |
3023 | if hum ~= nil then | |
3024 | local head = nil | |
3025 | for _,d in pairs(c:children()) do | |
3026 | if d.Name == "HumanoidRootPart" then | |
3027 | local targ = d.Position - RootPart.Position | |
3028 | local mag = targ.magnitude | |
3029 | if mag <= 60 and c.Name ~= Player.Name then | |
3030 | mark = d.Parent:findFirstChild("Mark") | |
3031 | if mark ~= nil then | |
3032 | if (mark:findFirstChild("MarkTime")) ~= nil then | |
3033 | mark.MarkTime.Value = 500 | |
3034 | end | |
3035 | if (mark:findFirstChild("MarkValue")) ~= nil then | |
3036 | if (mark:findFirstChild("MarkSize")) ~= nil then | |
3037 | mark.MarkSize.Value = 5 | |
3038 | end | |
3039 | if mark.MarkValue.Value < 10 then | |
3040 | mark.MarkValue.Value = mark.MarkValue.Value + 1 | |
3041 | end | |
3042 | end | |
3043 | end | |
3044 | end | |
3045 | end | |
3046 | end | |
3047 | end | |
3048 | end | |
3049 | end | |
3050 | end | |
3051 | do | |
3052 | pursuitnum = pursuitnum + 1 | |
3053 | if 13 <= passivenum and 150 < pursuitnum and 0 < invisnum.Value then | |
3054 | invisnum.Value = invisnum.Value - 1 | |
3055 | passivenum = 0 | |
3056 | end | |
3057 | if 8 <= passivenum and invisible == true then | |
3058 | invisnum.Value = invisnum.Value - 1 | |
3059 | pursuitnum = 0 | |
3060 | passivenum = 0 | |
3061 | end | |
3062 | if 100 <= invisnum.Value then | |
3063 | invisnum.Value = 100 | |
3064 | end | |
3065 | if invisible == true and invisnum.Value <= 0 then | |
3066 | Invisibility() | |
3067 | end | |
3068 | passivenum = passivenum + 1 | |
3069 | if Stagger.Value == true and staggeranim == false then | |
3070 | coroutine.resume(coroutine.create(function() | |
3071 | staggeranim = true | |
3072 | while attack == true do | |
3073 | swait() | |
3074 | end | |
3075 | StaggerAnim() | |
3076 | StaggerHit.Value = false | |
3077 | Stagger.Value = false | |
3078 | staggeranim = false | |
3079 | end)) | |
3080 | end | |
3081 | if StaggerHit.Value == true and staggeranim == false then | |
3082 | coroutine.resume(coroutine.create(function() | |
3083 | staggeranim = true | |
3084 | while attack == true do | |
3085 | swait() | |
3086 | end | |
3087 | StaggerHitt() | |
3088 | StaggerHit.Value = false | |
3089 | Stagger.Value = false | |
3090 | staggeranim = false | |
3091 | end)) | |
3092 | end | |
3093 | if Mvmt.Value < 0 or Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true or Rooted.Value == true then | |
3094 | Humanoid.WalkSpeed = 0 | |
3095 | else | |
3096 | Humanoid.WalkSpeed = 16 * Mvmt.Value | |
3097 | end | |
3098 | if StunT.Value <= Stun.Value and stunanim == false then | |
3099 | coroutine.resume(coroutine.create(function() | |
3100 | stunanim = true | |
3101 | while attack == true do | |
3102 | swait() | |
3103 | end | |
3104 | StunAnim() | |
3105 | Stun.Value = 0 | |
3106 | stunanim = false | |
3107 | end)) | |
3108 | end | |
3109 | local stunnum2 = 30 | |
3110 | if stunnum2 <= stunnum then | |
3111 | if 0 < Stun.Value then | |
3112 | Stun.Value = Stun.Value - 1 | |
3113 | end | |
3114 | stunnum = 0 | |
3115 | end | |
3116 | stunnum = stunnum + 1 | |
3117 | if 0.5 <= donum then | |
3118 | handidle = true | |
3119 | else | |
3120 | if donum <= 0 then | |
3121 | handidle = false | |
3122 | end | |
3123 | end | |
3124 | if handidle == false then | |
3125 | donum = donum + 0.003 | |
3126 | else | |
3127 | donum = donum - 0.003 | |
3128 | end | |
3129 | local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
3130 | local velderp = RootPart.Velocity.y | |
3131 | hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character) | |
3132 | if equipped == true then | |
3133 | if attack == false then | |
3134 | idle = idle + 1 | |
3135 | else | |
3136 | idle = 0 | |
3137 | end | |
3138 | if (500 <= idle and attack ~= false) or Anim == "Walk" then | |
3139 | if walkforw == true then | |
3140 | RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50) | |
3141 | LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50) | |
3142 | else | |
3143 | RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50) | |
3144 | LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50) | |
3145 | end | |
3146 | else | |
3147 | RH.C1 = clerp(RH.C1, RHC1, 0.2) | |
3148 | LH.C1 = clerp(LH.C1, LHC1, 0.2) | |
3149 | end | |
3150 | if 1 < RootPart.Velocity.y and hitfloor == nil then | |
3151 | Anim = "Jump" | |
3152 | if attack == false then | |
3153 | handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.2) | |
3154 | wld1.C0 = clerp(wld1.C0, cf(0, -2, 0) * euler(0.3, 0, -0.1), 0.2) | |
3155 | Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, 0), 0.2) | |
3156 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2) | |
3157 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.5, 0, 0.5), 0.2) | |
3158 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2) | |
3159 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-1, 0, -0.2), 0.2) | |
3160 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2) | |
3161 | RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * euler(-0.5, 1.57, 0) * euler(-0.2, 0, 0), 0.2) | |
3162 | LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * euler(-0.5, -1.57, 0) * euler(-0.2, 0, 0), 0.2) | |
3163 | end | |
3164 | else | |
3165 | if RootPart.Velocity.y < -1 and hitfloor == nil then | |
3166 | Anim = "Fall" | |
3167 | if attack == false then | |
3168 | handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.2) | |
3169 | wld1.C0 = clerp(wld1.C0, cf(0, -2, 0) * euler(0.3, 0, -0.1), 0.2) | |
3170 | Neck.C0 = clerp(Neck.C0, necko * euler(0.4, 0, 0), 0.2) | |
3171 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2) | |
3172 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1, 0, 1), 0.2) | |
3173 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2) | |
3174 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.3, 0, -0.2), 0.2) | |
3175 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2) | |
3176 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2) | |
3177 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2) | |
3178 | end | |
3179 | else | |
3180 | if torvel < 1 and hitfloor ~= nil then | |
3181 | Anim = "Idle" | |
3182 | if attack == false then | |
3183 | handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.2) | |
3184 | wld1.C0 = clerp(wld1.C0, euler(0, -0.4 - (donum) / 2, 0) * cf(0, -2, 0) * euler(1, 0, 0), 0.2) | |
3185 | Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1) * euler(0.2, 0, 0), 0.15) | |
3186 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1), 0.15) | |
3187 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2 + (donum) / 3, 0, 0.5 - (donum) / 3) * euler(0, 2.1, 0), 0.15) | |
3188 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15) | |
3189 | LW.C0 = clerp(LW.C0, cf(-1.3 - (donum) / 3, 0.5, -0.4 + (donum) / 3) * euler(0.7 + (donum) / 6, 0, 0.4 + (donum) / 6) * euler(0, -1.57, 0), 0.15) | |
3190 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15) | |
3191 | RH.C0 = clerp(RH.C0, cf(0.8, -1, 0.3) * euler(0, 1.57, 0) * euler(0, -1, -0.1), 0.2) | |
3192 | LH.C0 = clerp(LH.C0, cf(-0.8, -1, -0.3) * euler(0, -1.57, 0) * euler(0, -1, 0.3), 0.2) | |
3193 | end | |
3194 | else | |
3195 | if 2 < torvel and torvel < 30 and hitfloor ~= nil then | |
3196 | Anim = "Walk" | |
3197 | walk = walk + 1 | |
3198 | if 15 - 5 * Mvmt.Value <= walk then | |
3199 | walk = 0 | |
3200 | if walkforw == true then | |
3201 | walkforw = false | |
3202 | else | |
3203 | if walkforw == false then | |
3204 | walkforw = true | |
3205 | end | |
3206 | end | |
3207 | end | |
3208 | if attack == false then | |
3209 | handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.2) | |
3210 | wld1.C0 = clerp(wld1.C0, cf(0, -2, 0) * euler(0.3, 0, -0.3), 0.2) | |
3211 | Neck.C0 = clerp(Neck.C0, necko * euler(0.2 - (donum) / 5, 0, 0), 0.2) | |
3212 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2) | |
3213 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.3 + (donum) / 3, 0, 0.5 - (donum) / 3), 0.2) | |
3214 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2) | |
3215 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2 + (donum) / 3, 0, -0.4 + (donum) / 3), 0.2) | |
3216 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2) | |
3217 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.2) | |
3218 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.2) | |
3219 | end | |
3220 | else | |
3221 | if 30 <= torvel and hitfloor ~= nil then | |
3222 | Anim = "Walk" | |
3223 | walk = walk + 1 | |
3224 | if 15 - 5 * Mvmt.Value <= walk then | |
3225 | walk = 0 | |
3226 | if walkforw == true then | |
3227 | walkforw = false | |
3228 | else | |
3229 | if walkforw == false then | |
3230 | walkforw = true | |
3231 | end | |
3232 | end | |
3233 | end | |
3234 | if attack == false then | |
3235 | handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.2) | |
3236 | wld1.C0 = clerp(wld1.C0, cf(0, -2, 0) * euler(0.3, 0, -0.3), 0.2) | |
3237 | Neck.C0 = clerp(Neck.C0, necko * euler(0.2 - (donum) / 5, 0, 0), 0.2) | |
3238 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2) | |
3239 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.3 + (donum) / 3, 0, 0.5 - (donum) / 3), 0.2) | |
3240 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2) | |
3241 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2 + (donum) / 3, 0, -0.4 + (donum) / 3), 0.2) | |
3242 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2) | |
3243 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.2) | |
3244 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.2) | |
3245 | end | |
3246 | end | |
3247 | end | |
3248 | end | |
3249 | end | |
3250 | end | |
3251 | end | |
3252 | if 0 < #Effects then | |
3253 | for e = 1, #Effects do | |
3254 | if Effects[e] ~= nil then | |
3255 | local Thing = Effects[e] | |
3256 | if Thing ~= nil then | |
3257 | local Part = Thing[1] | |
3258 | local Mode = Thing[2] | |
3259 | local Delay = Thing[3] | |
3260 | local IncX = Thing[4] | |
3261 | local IncY = Thing[5] | |
3262 | local IncZ = Thing[6] | |
3263 | if Thing[2] == "CylinderClang" then | |
3264 | if Thing[3] <= 1 then | |
3265 | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 2.5 * Thing[5], 0) * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
3266 | Thing[7] = Thing[1].CFrame | |
3267 | effect("New Yeller", 0, Thing[8], Thing[7]) | |
3268 | Thing[8] = Thing[7] | |
3269 | Thing[3] = Thing[3] + Thing[4] | |
3270 | else | |
3271 | Part.Parent = nil | |
3272 | table.remove(Effects, e) | |
3273 | end | |
3274 | end | |
3275 | if Thing[2] == "showDamage" then | |
3276 | if Thing[6] < Thing[5] then | |
3277 | Thing[6] = Thing[6] + 1 | |
3278 | else | |
3279 | if Thing[6] < Thing[7] then | |
3280 | Thing[4].position = Thing[4].position + vt(0, -0.2, 0) | |
3281 | Thing[6] = Thing[6] + 1 | |
3282 | else | |
3283 | if Thing[6] < Thing[8] then | |
3284 | Thing[6] = Thing[6] + 1 | |
3285 | else | |
3286 | if Thing[6] < Thing[9] then | |
3287 | Thing[6] = Thing[6] + 1 | |
3288 | Thing[4].position = Thing[4].position + vt(0, 0.2, 0) | |
3289 | Thing[3].TextStrokeTransparency = Thing[3].TextStrokeTransparency + 0.1 | |
3290 | Thing[3].TextTransparency = Thing[3].TextTransparency + 0.1 | |
3291 | else | |
3292 | Thing[1].Parent = nil | |
3293 | table.remove(Effects, e) | |
3294 | end | |
3295 | end | |
3296 | end | |
3297 | end | |
3298 | end | |
3299 | if Thing[2] == "PartiEmi" then | |
3300 | Thing[3] = Thing[3] - 1 | |
3301 | if Thing[3] <= 0 then | |
3302 | Thing[1].Enabled = false | |
3303 | table.remove(Effects, e) | |
3304 | end | |
3305 | end | |
3306 | if Thing[2] == "AdjuEff" then | |
3307 | if 0 < Thing[3] then | |
3308 | Thing[3] = Thing[3] - 1 | |
3309 | Thing[1].Size = Thing[1].Size + UDim2.new(0.2, 0, 0.2, 0) | |
3310 | Thing[1].StudsOffset = Thing[1].StudsOffset + vt(0, -0.2, 0) | |
3311 | Thing[4].ImageTransparency = Thing[4].ImageTransparency + 0.1 | |
3312 | else | |
3313 | Thing[1].Parent = nil | |
3314 | table.remove(Effects, e) | |
3315 | end | |
3316 | end | |
3317 | if Thing[2] ~= "Shoot" and Thing[2] ~= "DecreaseStat" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" and Thing[2] ~= "showDamage" and Thing[2] ~= "PartiEmi" and Thing[2] ~= "AdjuEff" then | |
3318 | if Thing[1].Transparency <= 1 then | |
3319 | if Thing[2] == "Block1" then | |
3320 | Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
3321 | Mesh = Thing[7] | |
3322 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
3323 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
3324 | else | |
3325 | if Thing[2] == "Block2" then | |
3326 | Thing[1].CFrame = Thing[1].CFrame | |
3327 | Mesh = Thing[7] | |
3328 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
3329 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
3330 | else | |
3331 | if Thing[2] == "Block3" then | |
3332 | Thing[9] = Thing[9] + 0.5 | |
3333 | Thing[1].CFrame = Thing[8] * cf(0, Thing[9], 0) | |
3334 | Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
3335 | Mesh = Thing[7] | |
3336 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
3337 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
3338 | else | |
3339 | if Thing[2] == "Skull" then | |
3340 | Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8] / 2, -Thing[8]) | |
3341 | Mesh = Thing[7] | |
3342 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
3343 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
3344 | else | |
3345 | if Thing[2] == "Cylinder" then | |
3346 | Mesh = Thing[7] | |
3347 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
3348 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
3349 | else | |
3350 | if Thing[2] == "Cylinder2" then | |
3351 | Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8], 0) | |
3352 | Mesh = Thing[7] | |
3353 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
3354 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
3355 | else | |
3356 | if Thing[2] == "Blood" then | |
3357 | Mesh = Thing[7] | |
3358 | Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0) | |
3359 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
3360 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
3361 | else | |
3362 | if Thing[2] == "Elec" then | |
3363 | Mesh = Thing[10] | |
3364 | Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9]) | |
3365 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
3366 | else | |
3367 | if Thing[2] == "Disappear" then | |
3368 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
3369 | end | |
3370 | end | |
3371 | end | |
3372 | end | |
3373 | end | |
3374 | end | |
3375 | end | |
3376 | end | |
3377 | end | |
3378 | else | |
3379 | Part.Parent = nil | |
3380 | table.remove(Effects, e) | |
3381 | end | |
3382 | end | |
3383 | end | |
3384 | end | |
3385 | end | |
3386 | end | |
3387 | do | |
3388 | fenbarmana2:TweenSize((UDim2.new(0.4, 0, -4 * mana.Value / 100, 0)), nil, 1, 0.4, true) | |
3389 | fenbarmana4.Text = "Mana(" .. mana.Value .. ")" | |
3390 | fenbarhp2.BackgroundColor3 = Color3.new(Humanoid.Health / Humanoid.MaxHealth, 0, 0) | |
3391 | fenbarhp2:TweenSize((UDim2.new(Humanoid.Health / Humanoid.MaxHealth, 0, 1, 0)), nil, 1, 0.4, true) | |
3392 | fenbarhp3.Text = "(" .. math.floor(Humanoid.Health) .. ")" | |
3393 | fenbarblock2:TweenSize((UDim2.new(0.4, 0, -4 * invisnum.Value / 100, 0)), nil, 1, 0.4, true) | |
3394 | fenbarblock3.Text = "Pursuit(" .. invisnum.Value .. ")" | |
3395 | fenbarmove1b:TweenSize((UDim2.new(1 * cooldowns[1] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true) | |
3396 | fenbarmove2b:TweenSize((UDim2.new(1 * cooldowns[2] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true) | |
3397 | fenbarmove3b:TweenSize((UDim2.new(1 * cooldowns[3] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true) | |
3398 | fenbarmove4b:TweenSize((UDim2.new(1 * cooldowns[4] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true) | |
3399 | for _,c in pairs(Decrease:children()) do | |
3400 | if (c:findFirstChild("Duration")) ~= nil then | |
3401 | c.Duration.Value = c.Duration.Value - 1 | |
3402 | if c.Duration.Value <= 0 then | |
3403 | c.Parent = nil | |
3404 | end | |
3405 | end | |
3406 | if c.Name == "DecreaseAtk" then | |
3407 | decreaseatk = decreaseatk + c.Value | |
3408 | else | |
3409 | if c.Name == "DecreaseDef" then | |
3410 | decreasedef = decreasedef + c.Value | |
3411 | else | |
3412 | if c.Name == "DecreaseMvmt" then | |
3413 | decreasemvmt = decreasemvmt + c.Value | |
3414 | end | |
3415 | end | |
3416 | end | |
3417 | end | |
3418 | Atk.Value = math.huge - (decreaseatk) | |
3419 | if Atk.Value <= 0 then | |
3420 | Atk.Value = math.huge | |
3421 | end | |
3422 | Def.Value = math.huge - (decreasedef) | |
3423 | if Def.Value <= 0 then | |
3424 | Def.Value = math.huge | |
3425 | end | |
3426 | Mvmt.Value = 1 - (decreasemvmt) | |
3427 | if Mvmt.Value <= 0 then | |
3428 | Mvmt.Value = 0 | |
3429 | end | |
3430 | decreaseatk = 0 | |
3431 | decreasedef = 0 | |
3432 | decreasemvmt = 0 | |
3433 | AtkVal = Atk.Value * 100 | |
3434 | AtkVal = math.floor(AtkVal) | |
3435 | AtkVal = AtkVal / 100 | |
3436 | fenbardamage.Text = "Damage\n(" .. AtkVal .. ")" | |
3437 | DefVal = Def.Value * 100 | |
3438 | DefVal = math.floor(DefVal) | |
3439 | DefVal = DefVal / 100 | |
3440 | fenbardef.Text = "Defense\n(" .. DefVal .. ")" | |
3441 | MvmtVal = Mvmt.Value * 100 | |
3442 | MvmtVal = math.floor(MvmtVal) | |
3443 | MvmtVal = MvmtVal / 100 | |
3444 | if Rooted.Value == true then | |
3445 | MvmtVal = 0 | |
3446 | end | |
3447 | fenbarmove.Text = "Walkspeed\n(" .. MvmtVal .. ")" | |
3448 | if StunT.Value <= Stun.Value then | |
3449 | fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4, 0)), nil, 1, 0.4, true) | |
3450 | else | |
3451 | fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4 * Stun.Value / StunT.Value, 0)), nil, 1, 0.4, true) | |
3452 | end | |
3453 | fenbarstun3.Text = "Stun(" .. Stun.Value .. ")" | |
3454 | if 100 <= mana.Value then | |
3455 | mana.Value = 100 | |
3456 | else | |
3457 | if mananum <= 12 then | |
3458 | mananum = mananum + 1 | |
3459 | else | |
3460 | mananum = 0 | |
3461 | mana.Value = mana.Value + 100 | |
3462 | end | |
3463 | end | |
3464 | for i = 1, #cooldowns do | |
3465 | if cooldownmax <= cooldowns[i] then | |
3466 | cooldowns[i] = cooldownmax | |
3467 | else | |
3468 | cooldowns[i] = cooldowns[i] + cooldownsadd[i] | |
3469 | end | |
3470 | end | |
3471 | -- DECOMPILER ERROR at PC6064: LeaveBlock: unexpected jumping out DO_STMT | |
3472 | ||
3473 | -- DECOMPILER ERROR at PC6064: LeaveBlock: unexpected jumping out DO_STMT | |
3474 | ||
3475 | -- DECOMPILER ERROR at PC6064: LeaveBlock: unexpected jumping out DO_STMT | |
3476 | ||
3477 | end | |
3478 | end | |
3479 | end | |
3480 | end |