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