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