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