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