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