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