SHOW:
|
|
- or go back to the newest paste.
1 | - | Player = game:GetService("Players").LocalPlayer |
1 | + | Player = game:GetService("Players").GamesDanil500 |
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 | RootPart = Character.HumanoidRootPart | |
9 | RootJoint = RootPart.RootJoint | |
10 | LeftArm = Character["Left Arm"] | |
11 | LeftLeg = Character["Left Leg"] | |
12 | RightArm = Character["Right Arm"] | |
13 | RightLeg = Character["Right Leg"] | |
14 | LS = Torso["Left Shoulder"] | |
15 | LH = Torso["Left Hip"] | |
16 | RS = Torso["Right Shoulder"] | |
17 | RH = Torso["Right Hip"] | |
18 | Humanoid.MaxHealth = math.huge | |
19 | wait() | |
20 | Humanoid.Health = Humanoid.MaxHealth | |
21 | local BC = Character["Body Colors"] | |
22 | BC.HeadColor = BrickColor.new("Pastel brown") | |
23 | BC.LeftArmColor = BrickColor.new("Pastel brown") | |
24 | BC.LeftLegColor = BrickColor.new("Pastel brown") | |
25 | BC.RightArmColor = BrickColor.new("Pastel brown") | |
26 | BC.RightLegColor = BrickColor.new("Pastel brown") | |
27 | BC.TorsoColor = BrickColor.new("Pastel brown") | |
28 | for i,v in pairs(Character:children()) do | |
29 | if v:IsA("Shirt") then | |
30 | v:Destroy() | |
31 | end | |
32 | end | |
33 | for i,v in pairs(Character:children()) do | |
34 | if v:IsA("Pants") then | |
35 | v:Destroy() | |
36 | end | |
37 | end | |
38 | ------Face---------- | |
39 | Character.Head.face.Texture = "rbxassetid://0" | |
40 | ------Remover------- | |
41 | ||
42 | for i,v in pairs(Character:children()) do | |
43 | if v:IsA("Hat") then | |
44 | v:Destroy() | |
45 | end | |
46 | end | |
47 | for i,v in pairs(Character:children()) do | |
48 | if v:IsA("Accessory") then | |
49 | v:Destroy() | |
50 | end | |
51 | end | |
52 | for i,v in pairs(Character:children()) do | |
53 | if v:IsA("Hair") then | |
54 | v:Destroy() | |
55 | end | |
56 | end | |
57 | ------Heavy--------- | |
58 | CV="Maroon" | |
59 | - | Player = game.Players.LocalPlayer |
59 | + | Player = game.Players.GamesDanil500 |
60 | char = Player.Character | |
61 | local txt = Instance.new("BillboardGui", Character) | |
62 | txt.Adornee = Character .Head | |
63 | txt.Name = "_status" | |
64 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
65 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
66 | local text = Instance.new("TextLabel", txt) | |
67 | text.Size = UDim2.new(10, 0, 7, 0) | |
68 | text.FontSize = "Size24" | |
69 | text.TextScaled = true | |
70 | text.TextTransparency = 0 | |
71 | text.BackgroundTransparency = 1 | |
72 | text.TextTransparency = 0 | |
73 | text.TextStrokeTransparency = 0 | |
74 | text.Font = "Bodoni" | |
75 | text.TextStrokeColor3 = Color3.new(255,176,0) | |
76 | ||
77 | v=Instance.new("Part") | |
78 | v.Name = "ColorBrick" | |
79 | v.Parent=Player.Character | |
80 | v.FormFactor="Symmetric" | |
81 | v.Anchored=true | |
82 | v.CanCollide=false | |
83 | v.BottomSurface="Smooth" | |
84 | v.TopSurface="Smooth" | |
85 | v.Size=Vector3.new(10,5,3) | |
86 | v.Transparency=1 | |
87 | v.CFrame=Character.Torso.CFrame | |
88 | v.BrickColor=BrickColor.new(CV) | |
89 | v.Transparency=1 | |
90 | text.TextColor3 = Color3.new(255,204,153) | |
91 | v.Shape="Block" | |
92 | text.Text = "Mexican/Russian Doge" | |
93 | -------------------- | |
94 | local Hat = char:FindFirstChild("Hat_F") or Instance.new("Hat") | |
95 | Hat.AttachmentPos = Vector3.new(0, 0.46, 0.22) | |
96 | Hat.Name = "Hat_F" | |
97 | local Handle = Hat:FindFirstChild("Handle") or Instance.new("Part", Hat) | |
98 | if Handle.Name ~= "Handle" then | |
99 | Handle.Size = Vector3.new(1, 1, 1) | |
100 | end | |
101 | Handle.BottomSurface = 0 | |
102 | Handle.Name = "Handle" | |
103 | Handle.TopSurface = 0 | |
104 | Handle.Locked = 1 | |
105 | local Mesh = Hat:FindFirstChild("Mesh") or Instance.new("SpecialMesh", Handle) | |
106 | Mesh.TextureId = "http://www.roblox.com/asset/?id=151778895" | |
107 | Mesh.MeshId = "http://www.roblox.com/asset/?id=151778863" | |
108 | Mesh.Scale = Vector3.new(1.1, 1.1, 1.1) | |
109 | Hat.Parent = char | |
110 | shirt = Instance.new("Shirt", Character) | |
111 | shirt.Name = "Shirt" | |
112 | pants = Instance.new("Pants", Character) | |
113 | pants.Name = "Pants" | |
114 | Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=153262430" | |
115 | Character.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=151881647" | |
116 | sound = Instance.new("Sound", Character) | |
117 | sound.SoundId = "rbxassetid://186574330" | |
118 | sound.Volume = 100000000 | |
119 | sound.EmitterSize = 25 | |
120 | sound:Play() | |
121 | sound.Looped = true | |
122 | Face = Head.face | |
123 | Neck = Torso.Neck | |
124 | it = Instance.new | |
125 | vt = Vector3.new | |
126 | cf = CFrame.new | |
127 | rad = math.rad | |
128 | euler = CFrame.fromEulerAnglesXYZ | |
129 | angles = CFrame.Angles | |
130 | - | Mouse = Player:GetMouse() |
130 | + | |
131 | game.StarterGui:SetCore("ChatMakeSystemMessage", { | |
132 | Text = "By deivis97 / leaked mah frend :P"; | |
133 | Color = Color3.new(0, 1, 1); | |
134 | Font = Enum.Font.Code; | |
135 | FontSize = Enum.FontSize.Size24; | |
136 | }) | |
137 | end)) | |
138 | ArtificialHB = Instance.new("BindableEvent", script) | |
139 | ArtificialHB.Name = "ArtificialHB" | |
140 | script:WaitForChild("ArtificialHB") | |
141 | frame = 0.016666666666667 | |
142 | tf = 0 | |
143 | allowframeloss = false | |
144 | tossremainder = false | |
145 | lastframe = tick() | |
146 | script.ArtificialHB:Fire() | |
147 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
148 | ||
149 | tf = tf + s | |
150 | if frame <= tf then | |
151 | if allowframeloss then | |
152 | script.ArtificialHB:Fire() | |
153 | lastframe = tick() | |
154 | else | |
155 | for i = 1, math.floor(tf / frame) do | |
156 | script.ArtificialHB:Fire() | |
157 | end | |
158 | lastframe = tick() | |
159 | end | |
160 | if tossremainder then | |
161 | tf = 0 | |
162 | else | |
163 | tf = tf - frame * math.floor(tf / frame) | |
164 | end | |
165 | end | |
166 | end | |
167 | ) | |
168 | local animationspeed = 2 | |
169 | hbwait = function(number) | |
170 | ||
171 | if number == 0 or number == nil then | |
172 | ArtificialHB.Event:wait() | |
173 | else | |
174 | for i = 0, number do | |
175 | ArtificialHB.Event:wait() | |
176 | end | |
177 | end | |
178 | end | |
179 | ||
180 | local Stats = Instance.new("Folder", Character) | |
181 | Stats.Name = "Stats" | |
182 | local Defense = Instance.new("NumberValue", Stats) | |
183 | Defense.Name = "Defense" | |
184 | Defense.Value = 0.1 | |
185 | local Movement = Instance.new("NumberValue", Stats) | |
186 | Movement.Name = "Movement" | |
187 | Movement.Value = 0.35 | |
188 | local Damage = Instance.new("NumberValue", Stats) | |
189 | Damage.Name = "Damage" | |
190 | Damage.Value = 0 | |
191 | local Mana = Instance.new("NumberValue", Stats) | |
192 | Mana.Name = "Mana" | |
193 | Mana.Value = 0 | |
194 | local Rooted = Instance.new("BoolValue", Stats) | |
195 | Rooted.Name = "Rooted" | |
196 | Rooted.Value = false | |
197 | local BlockValue = Instance.new("BoolValue", Stats) | |
198 | BlockValue.Name = "BlockValue" | |
199 | BlockValue.Value = false | |
200 | local StaggerHitAnim = Instance.new("BoolValue", Stats) | |
201 | StaggerHitAnim.Name = "StaggerHitAnim" | |
202 | StaggerHitAnim.Value = false | |
203 | local StaggerAnim = Instance.new("BoolValue", Stats) | |
204 | StaggerAnim.Name = "StaggerAnim" | |
205 | StaggerAnim.Value = false | |
206 | local StunAnim = Instance.new("BoolValue", Stats) | |
207 | StunAnim.Name = "StunAnim" | |
208 | StunAnim.Value = false | |
209 | local StunValue = Instance.new("NumberValue", Stats) | |
210 | StunValue.Name = "StunValue" | |
211 | StunValue.Value = 0 | |
212 | local CanCrit = Instance.new("BoolValue", Stats) | |
213 | CanCrit.Name = "CanCrit" | |
214 | CanCrit.Value = false | |
215 | local CritChance = Instance.new("NumberValue", Stats) | |
216 | CritChance.Name = "CritChance" | |
217 | CritChance.Value = 20 | |
218 | local CanPenetrateArmor = Instance.new("BoolValue", Stats) | |
219 | CanPenetrateArmor.Name = "CanPenetrateArmor" | |
220 | CanPenetrateArmor.Value = false | |
221 | local AntiTeamKill = Instance.new("BoolValue", Stats) | |
222 | AntiTeamKill.Name = "AntiTeamKill" | |
223 | AntiTeamKill.Value = false | |
224 | necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
225 | RootCF = angles(rad(-90), 0, rad(180)) | |
226 | local idle = 0 | |
227 | local Anim = "Idle" | |
228 | local animtype = math.floor(math.random(1, 3)) | |
229 | local attacktype = 1 | |
230 | local attack = false | |
231 | local equipped = false | |
232 | local LastPoint = nil | |
233 | local staggerhitanim = false | |
234 | local staggeranim = false | |
235 | local stunanim = false | |
236 | local CritChanceNumber = 0 | |
237 | local idlen = 0 | |
238 | local donum = 0 | |
239 | local sine = 0 | |
240 | local change = 2 / animationspeed | |
241 | local walkinganim = false | |
242 | local handidle = false | |
243 | local walk = 0 | |
244 | local stundelay = 0 | |
245 | local manadelay = 0 | |
246 | local robloxidleanimation = Instance.new("Animation", Torso) | |
247 | robloxidleanimation.Name = "robloxidleanimation" | |
248 | robloxidleanimation.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
249 | local Animator = Humanoid:FindFirstChild("Animator") | |
250 | local Animate = Character:FindFirstChild("Animate") | |
251 | local HitPlayerSounds = {199149137, 199149186, 199149221, 199149235, 199149269, 199149297} | |
252 | local HitArmorSounds = {199149321, 199149338, 199149367, 199149409, 199149452} | |
253 | local HitWeaponSounds = {199148971, 199149025, 199149072, 199149109, 199149119} | |
254 | local HitBlockSounds = {199148933, 199148947} | |
255 | local cooldown1 = 0 | |
256 | local cooldown2 = 0 | |
257 | local cooldown3 = 0 | |
258 | local cooldown4 = 0 | |
259 | local scrn = Instance.new("ScreenGui", PlayerGui) | |
260 | local ud = UDim2.new | |
261 | local c3 = Color3.new | |
262 | local skillcolorscheme = c3(1, 1, 1) | |
263 | subtractmana = function(k) | |
264 | ||
265 | if k <= Mana.Value then | |
266 | Mana.Value = Mana.Value - k | |
267 | end | |
268 | end | |
269 | ||
270 | local co1 = 0 | |
271 | local co2 = 0 | |
272 | local co3 = 0 | |
273 | local co4 = 0 | |
274 | local maxmana = 0 | |
275 | local maxstun = 1 | |
276 | local recovermana = 0 | |
277 | local losestun = 0 | |
278 | local stunwait = 0 | |
279 | local manawait = 0 | |
280 | local skill1mana = 0 | |
281 | local skill2mana = 0 | |
282 | local skill3mana = 0 | |
283 | local skill4mana = 0 | |
284 | local menuupdatespeed = 0 | |
285 | local constantupdate = false | |
286 | local showstats = false | |
287 | local allowstunbar = false | |
288 | local CustomColor = Torso.BrickColor | |
289 | local Colorpart1 = CustomColor.r | |
290 | local Colorpart2 = CustomColor.g | |
291 | local Colorpart3 = CustomColor.b | |
292 | local InverseColor = BrickColor.new(Color3.new(1 - Colorpart1, 1 - Colorpart2, 1 - Colorpart3)) | |
293 | makeframe = function(par, trans, pos, size, color, name) | |
294 | ||
295 | local frame = Instance.new("Frame") | |
296 | frame.Parent = par | |
297 | frame.BackgroundTransparency = trans | |
298 | frame.BorderSizePixel = 2 | |
299 | frame.Position = pos | |
300 | frame.Size = size | |
301 | frame.BackgroundColor3 = color | |
302 | frame.Name = name | |
303 | return frame | |
304 | end | |
305 | ||
306 | makelabel = function(par, text, trans, stroketrans, name) | |
307 | ||
308 | local label = Instance.new("TextLabel") | |
309 | label.Parent = par | |
310 | label.BackgroundTransparency = 1 | |
311 | label.Size = ud(1, 0, 1, 0) | |
312 | label.Position = ud(0, 0, 0, 0) | |
313 | label.TextColor3 = c3(255, 255, 255) | |
314 | label.TextStrokeTransparency = stroketrans | |
315 | label.TextTransparency = trans | |
316 | label.FontSize = Enum.FontSize.Size32 | |
317 | label.Font = Enum.Font.Legacy | |
318 | label.BorderSizePixel = 0 | |
319 | label.TextScaled = true | |
320 | label.Text = text | |
321 | label.Name = name | |
322 | return label | |
323 | end | |
324 | ||
325 | framesk1 = makeframe(scrn, 0.5, ud(0.23, 0, 0.93, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 1") | |
326 | framesk2 = makeframe(scrn, 0.5, ud(0.5, 0, 0.93, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 2") | |
327 | framesk3 = makeframe(scrn, 0.5, ud(0.5, 0, 0.86, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 3") | |
328 | framesk4 = makeframe(scrn, 0.5, ud(0.23, 0, 0.86, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 4") | |
329 | bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 1") | |
330 | bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 2") | |
331 | bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 3") | |
332 | bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 4") | |
333 | text1 = makelabel(framesk1, "[C] Ability 3", 1, 1, "Text 1") | |
334 | text2 = makelabel(framesk2, "[V] Ability 4", 1, 1, "Text 2") | |
335 | text3 = makelabel(framesk3, "[X] Ability 2", 1, 1, "Text 3") | |
336 | text4 = makelabel(framesk4, "[Z] Ability 1", 1, 1, "Text 4") | |
337 | manabar = makeframe(scrn, 0.5, ud(0.23, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Bar") | |
338 | manacover = makeframe(manabar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Cover") | |
339 | manatext = makelabel(manabar, "Mana", 1, 1, "Mana Text") | |
340 | healthbar = makeframe(scrn, 0.5, ud(0.5, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(1, 0.19607843137255, 0.19607843137255), "Health Bar") | |
341 | healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 0.19607843137255, 0.19607843137255), "Health Cover") | |
342 | healthtext = makelabel(healthbar, "Health", 1, 1, "Health Text") | |
343 | if allowstunbar == true then | |
344 | stunframe = makeframe(scrn, 0.5, ud(0.5, 0, 0.78, 0), ud(0.26, 0, 0, 0), c3(1, 1, 0.19607843137255), "Stun Frame") | |
345 | stunbar = makeframe(stunframe, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 1, 0.19607843137255), "Stun Bar") | |
346 | stuntext = makelabel(stunframe, "Stun", 1, 1, "Stun Text") | |
347 | end | |
348 | if showstats == true then | |
349 | defenseframe = makeframe(scrn, 0.5, ud(0.23, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(0.3921568627451, 0.3921568627451, 1), "Defense Frame") | |
350 | damageframe = makeframe(scrn, 0.5, ud(0.3225, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(1, 0.3921568627451, 0.3921568627451), "Damage Frame") | |
351 | movementframe = makeframe(scrn, 0.5, ud(0.415, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(0.3921568627451, 1, 0.3921568627451), "Movement Frame") | |
352 | defensetext = makelabel(defenseframe, "Defense: " .. Defense.Value, 1, 1, "Defense Text") | |
353 | damagetext = makelabel(damageframe, "Damage: " .. Damage.Value, 1, 1, "Damage Text") | |
354 | movementtext = makelabel(movementframe, "Movement: " .. Movement.Value, 1, 1, "Movement Text") | |
355 | end | |
356 | NoOutline = function(Part) | |
357 | ||
358 | Part.TopSurface = 10 | |
359 | end | |
360 | ||
361 | local weldBetween = function(a, b) | |
362 | ||
363 | local weldd = Instance.new("ManualWeld") | |
364 | weldd.Part0 = a | |
365 | weldd.Part1 = b | |
366 | weldd.C0 = CFrame.new() | |
367 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
368 | weldd.Parent = a | |
369 | return weldd | |
370 | end | |
371 | ||
372 | nooutline = function(part) | |
373 | ||
374 | part.TopSurface = 10 | |
375 | end | |
376 | ||
377 | part = function(formfactor, parent, material, reflectance, transparency, brickcolor, name, size) | |
378 | ||
379 | local fp = it("Part") | |
380 | fp.formFactor = formfactor | |
381 | fp.Parent = parent | |
382 | fp.Reflectance = reflectance | |
383 | fp.Transparency = transparency | |
384 | fp.CanCollide = false | |
385 | fp.Locked = true | |
386 | fp.BrickColor = BrickColor.new(tostring(brickcolor)) | |
387 | fp.Name = name | |
388 | fp.Size = size | |
389 | fp.Position = Character.Torso.Position | |
390 | nooutline(fp) | |
391 | fp.Material = material | |
392 | fp:BreakJoints() | |
393 | return fp | |
394 | end | |
395 | ||
396 | mesh = function(Mesh, part, meshtype, meshid, offset, scale) | |
397 | ||
398 | local mesh = it(Mesh) | |
399 | mesh.Parent = part | |
400 | if Mesh == "SpecialMesh" then | |
401 | mesh.MeshType = meshtype | |
402 | mesh.MeshId = meshid | |
403 | end | |
404 | mesh.Offset = offset | |
405 | mesh.Scale = scale | |
406 | return mesh | |
407 | end | |
408 | ||
409 | weld = function(parent, part0, part1, c0, c1) | |
410 | ||
411 | local weld = it("Motor") | |
412 | weld.Parent = parent | |
413 | weld.Part0 = part0 | |
414 | weld.Part1 = part1 | |
415 | weld.C0 = c0 | |
416 | weld.C1 = c1 | |
417 | return weld | |
418 | end | |
419 | ||
420 | local WeaponName = "Russian Kick" | |
421 | local ClassName = "Russian Kick" | |
422 | local PlayerSize = 1 | |
423 | local RWC0 = cf(-0.5, 0, 0) * angles(rad(0), rad(90), rad(0)) | |
424 | local LWC0 = cf(0.5, 0, 0) * angles(rad(0), rad(-90), rad(0)) | |
425 | if PlayerSize ~= 1 then | |
426 | RootPart.Size = RootPart.Size * PlayerSize | |
427 | Torso.Size = Torso.Size * PlayerSize | |
428 | Head.Size = Head.Size * PlayerSize | |
429 | RightArm.Size = RightArm.Size * PlayerSize | |
430 | LeftArm.Size = LeftArm.Size * PlayerSize | |
431 | RightLeg.Size = RightLeg.Size * PlayerSize | |
432 | LeftLeg.Size = LeftLeg.Size * PlayerSize | |
433 | RootJoint.Parent = RootPart | |
434 | Neck.Parent = Torso | |
435 | LS.Parent = Torso | |
436 | RS.Parent = Torso | |
437 | LH.Parent = Torso | |
438 | RH.Parent = Torso | |
439 | RootJoint.C0 = RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) | |
440 | Neck.C0 = necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(0)) | |
441 | Neck.C1 = angles(rad(90), rad(180), 0) * cf(0, 0, -0.5 * PlayerSize) | |
442 | RS.C0 = cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * RWC0 | |
443 | LS.C0 = cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * LWC0 | |
444 | RS.C1 = angles(0, rad(90), 0) * cf(0, 0.5 * PlayerSize, -0.5) | |
445 | LS.C1 = angles(0, rad(-90), 0) * cf(0, 0.5 * PlayerSize, -0.5) | |
446 | RH.C0 = cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(0), rad(0), rad(0)) | |
447 | LH.C0 = cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(0), rad(0), rad(0)) | |
448 | RH.C1 = angles(0, rad(90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize) | |
449 | LH.C1 = angles(0, rad(-90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize) | |
450 | for _,v in pairs(Character:GetChildren()) do | |
451 | if v.ClassName == "Hat" or v.ClassName == "Accessory" then | |
452 | v.Parent = nil | |
453 | v.Parent = Character | |
454 | v.Handle.Mesh.Scale = v.Handle.Mesh.Scale * PlayerSize | |
455 | for _,b in pairs(v.Handle:GetChildren()) do | |
456 | if b.ClassName == "Weld" or b.ClassName == "Motor" then | |
457 | local p1 = b.Part1 | |
458 | b.Part1 = nil | |
459 | local c01, c02, c03, c04, c05, c06, c07, c08, c09, c010, c011, c012 = b.C0:components() | |
460 | local c11, c12, c13, c14, c15, c16, c17, c18, c19, c110, c111, c112 = b.C1:components() | |
461 | b.C0 = cf(c01 * PlayerSize, c02 * PlayerSize, c03 * PlayerSize, c04, c05, c06, c07, c08, c09, c010, c011, c012) | |
462 | b.C1 = cf(c11 * PlayerSize, c12 * PlayerSize, c13 * PlayerSize, c14, c15, c16, c17, c18, c19, c110, c111, c112) | |
463 | b.Part1 = p1 | |
464 | end | |
465 | end | |
466 | end | |
467 | end | |
468 | end | |
469 | m = Instance.new("Model", Character) | |
470 | m.Name = WeaponName | |
471 | Effects = Instance.new("Folder", m) | |
472 | Effects.Name = "Effects" | |
473 | Humanoid.Died:connect(function() | |
474 | ||
475 | attack = true | |
476 | for _,v in pairs(Character:GetChildren()) do | |
477 | if v.ClassName == "Model" then | |
478 | v:Destroy() | |
479 | end | |
480 | end | |
481 | end | |
482 | ) | |
483 | for i,v in pairs(Character:GetChildren()) do | |
484 | if v.ClassName == "Model" then | |
485 | for _,c in pairs(v:GetChildren()) do | |
486 | if c.ClassName == "Part" then | |
487 | c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) | |
488 | end | |
489 | end | |
490 | end | |
491 | end | |
492 | print(ClassName .. " loaded.") | |
493 | clerp = function(a, b, t) | |
494 | return a:lerp(b, t) | |
495 | end | |
496 | ||
497 | positiveangle = function(number) | |
498 | ||
499 | if number > 0 then | |
500 | number = 0 | |
501 | end | |
502 | return number | |
503 | end | |
504 | ||
505 | negativeangle = function(number) | |
506 | ||
507 | if number < 0 then | |
508 | number = 0 | |
509 | end | |
510 | return number | |
511 | end | |
512 | ||
513 | so = function(id, par, vol, pit) | |
514 | ||
515 | coroutine.resume(coroutine.create(function() | |
516 | ||
517 | local sou = Instance.new("Sound", par or workspace) | |
518 | sou.Volume = vol | |
519 | sou.Pitch = pit or 1 | |
520 | sou.SoundId = "http://roblox.com/asset/?id=" .. id | |
521 | hbwait() | |
522 | sou:play() | |
523 | game:GetService("Debris"):AddItem(sou, 10) | |
524 | end | |
525 | )) | |
526 | end | |
527 | ||
528 | GetDistance = function(Part1, Part2, magnitude) | |
529 | ||
530 | local target = Part1.Position - Part2.Position | |
531 | local mag = target.magnitude | |
532 | if mag <= magnitude then | |
533 | return true | |
534 | else | |
535 | return false | |
536 | end | |
537 | end | |
538 | ||
539 | rayCast = function(Pos, Dir, Max, Ignore) | |
540 | ||
541 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
542 | end | |
543 | ||
544 | DamageStatLabel = function(labeltype, cframe, text, color) | |
545 | ||
546 | local c = part(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", vt(0, 0, 0)) | |
547 | c.CFrame = cf(cframe.p + vt(0, 1.5, 0)) | |
548 | game:GetService("Debris"):AddItem(c, 5) | |
549 | Instance.new("BodyGyro", c) | |
550 | local f = Instance.new("BodyPosition", c) | |
551 | f.P = 2000 | |
552 | f.D = 100 | |
553 | f.maxForce = vt(math.huge, math.huge, math.huge) | |
554 | if labeltype == "Normal" then | |
555 | f.position = c.Position + vt(math.random(-2, 2), 6, math.random(-2, 2)) | |
556 | else | |
557 | if labeltype == "Debuff" then | |
558 | f.position = c.Position + vt(math.random(-2, 2), 8, math.random(-2, 2)) | |
559 | else | |
560 | if labeltype == "Interruption" then | |
561 | f.position = c.Position + vt(math.random(-2, 2), 8, math.random(-2, 2)) | |
562 | end | |
563 | end | |
564 | end | |
565 | game:GetService("Debris"):AddItem(c, 5) | |
566 | local bg = Instance.new("BillboardGui", c) | |
567 | bg.Adornee = c | |
568 | bg.Size = UDim2.new(2.5, 0, 2.5, 0) | |
569 | bg.StudsOffset = vt(-2, 2, 0) | |
570 | bg.AlwaysOnTop = false | |
571 | local tl = Instance.new("TextLabel", bg) | |
572 | tl.BackgroundTransparency = 1 | |
573 | tl.Size = UDim2.new(2.5, 0, 2.5, 0) | |
574 | tl.Text = text | |
575 | tl.Font = Enum.Font.SourceSans | |
576 | tl.FontSize = Enum.FontSize.Size42 | |
577 | tl.TextColor3 = color | |
578 | tl.TextScaled = false | |
579 | tl.TextStrokeTransparency = 0 | |
580 | tl.TextScaled = true | |
581 | tl.TextWrapped = true | |
582 | f.Parent = c | |
583 | coroutine.resume(coroutine.create(function(Part, BodyPosition, TextLabel) | |
584 | ||
585 | wait(0.25) | |
586 | for i = 1, 5 do | |
587 | wait() | |
588 | BodyPosition.position = Part.Position - vt(0, 0.5, 0) | |
589 | end | |
590 | wait(1.25) | |
591 | for i = 1, 5 do | |
592 | wait() | |
593 | TextLabel.TextTransparency = TextLabel.TextTransparency + 0.2 | |
594 | TextLabel.TextStrokeTransparency = TextLabel.TextStrokeTransparency + 0.2 | |
595 | BodyPosition.position = Part.Position + vt(0, 0.5, 0) | |
596 | end | |
597 | Part.Parent = nil | |
598 | end | |
599 | ), c, f, tl) | |
600 | end | |
601 | ||
602 | IncreaseStat = function(Location, Stat, Amount, Duration, ShowTheStat) | |
603 | ||
604 | -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1 | |
605 | ||
606 | -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1 | |
607 | ||
608 | if Location:FindFirstChild("Stats") ~= nil and Location.Stats:FindFirstChild("BlockValue") ~= nil and Location.Stats:FindFirstChild("BlockValue").Value ~= true and Location.Stats[Stat] ~= nil then | |
609 | Location.Stats[Stat].Value = Location.Stats[Stat].Value + Amount | |
610 | if ShowTheStat == true then | |
611 | if Stat == "Defense" then | |
612 | DamageStatLabel("Debuff", Location.Head.CFrame, "+Defense", c3(1, 1, 1)) | |
613 | else | |
614 | if Stat == "Damage" then | |
615 | DamageStatLabel("Debuff", Location.Head.CFrame, "+Damage", c3(1, 1, 1)) | |
616 | else | |
617 | if Stat == "Movement" then | |
618 | DamageStatLabel("Debuff", Location.Head.CFrame, "+Movement", c3(1, 1, 1)) | |
619 | end | |
620 | end | |
621 | end | |
622 | end | |
623 | coroutine.resume(coroutine.create(function(CurrentDecrease) | |
624 | ||
625 | wait(Duration) | |
626 | CurrentDecrease.Value = CurrentDecrease.Value - Amount | |
627 | end | |
628 | ), Location.Stats[Stat]) | |
629 | end | |
630 | DamageStatLabel("Interruption", Location.Head.CFrame, "Blocked!", Color3.new(0, 0.3921568627451, 1)) | |
631 | end | |
632 | ||
633 | DecreaseStat = function(Location, Stat, Amount, Duration, ShowTheStat) | |
634 | ||
635 | -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1 | |
636 | ||
637 | -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1 | |
638 | ||
639 | if Location:FindFirstChild("Stats") ~= nil and Location.Stats:FindFirstChild("BlockValue") ~= nil and Location.Stats:FindFirstChild("BlockValue").Value ~= true and Location.Stats[Stat] ~= nil then | |
640 | Location.Stats[Stat].Value = Location.Stats[Stat].Value - Amount | |
641 | if ShowTheStat == true then | |
642 | if Stat == "Defense" then | |
643 | DamageStatLabel("Debuff", Location.Head.CFrame, "-Defense", c3(1, 1, 1)) | |
644 | else | |
645 | if Stat == "Damage" then | |
646 | DamageStatLabel("Debuff", Location.Head.CFrame, "-Damage", c3(1, 1, 1)) | |
647 | else | |
648 | if Stat == "Movement" then | |
649 | DamageStatLabel("Debuff", Location.Head.CFrame, "-Movement", c3(1, 1, 1)) | |
650 | end | |
651 | end | |
652 | end | |
653 | end | |
654 | coroutine.resume(coroutine.create(function(CurrentDecrease) | |
655 | ||
656 | wait(Duration) | |
657 | CurrentDecrease.Value = CurrentDecrease.Value + Amount | |
658 | end | |
659 | ), Location.Stats[Stat]) | |
660 | end | |
661 | DamageStatLabel("Interruption", Location.Head.CFrame, "Blocked!", Color3.new(0, 0.3921568627451, 1)) | |
662 | end | |
663 | ||
664 | Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, DecreaseTheStat, DecreaseAmount, DecreaseDuration, ShowDecreasedStat) | |
665 | ||
666 | if hit.Parent == nil then | |
667 | return | |
668 | end | |
669 | h = hit.Parent:FindFirstChild("Humanoid") | |
670 | for _,v in pairs(hit.Parent:GetChildren()) do | |
671 | if v:IsA("Humanoid") then | |
672 | h = v | |
673 | end | |
674 | end | |
675 | if hit.Name == "Hitbox" and ranged ~= true and hit.Parent ~= m then | |
676 | StaggerHitAnim.Value = true | |
677 | so(HitWeaponSounds[math.random(1, #HitWeaponSounds)], hit, 1, 1) | |
678 | return | |
679 | end | |
680 | if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then | |
681 | h = hit.Parent.Parent:FindFirstChild("Humanoid") | |
682 | end | |
683 | if hit.Parent.className == "Hat" then | |
684 | hit = hit.Parent.Parent:FindFirstChild("Head") | |
685 | end | |
686 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
687 | if hit.Parent:FindFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then | |
688 | return | |
689 | end | |
690 | if AntiTeamKill.Value == true and Player.Neutral == false and game.Players:GetPlayerFromCharacter(hit.Parent) ~= nil and game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == Player.TeamColor then | |
691 | return | |
692 | end | |
693 | if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent:FindFirstChild("Humanoid").Health <= 0 then | |
694 | return | |
695 | end | |
696 | if hit.Parent:FindFirstChild("Stats") ~= nil and hit.Parent.Stats:FindFirstChild("StunValue") ~= nil then | |
697 | hit.Parent.Stats:FindFirstChild("StunValue").Value = hit.Parent.Stats:FindFirstChild("StunValue").Value + incstun | |
698 | end | |
699 | if hit.Parent:FindFirstChild("Stats") ~= nil and hit.Parent.Stats:FindFirstChild("StaggerAnim") ~= nil and stagger == true then | |
700 | hit.Parent.Stats:FindFirstChild("StaggerAnim").Value = true | |
701 | end | |
702 | if hit.Parent:FindFirstChild("Stats") ~= nil and hit.Parent.Stats:FindFirstChild("BlockValue") ~= nil and hit.Parent.Stats:FindFirstChild("BlockValue").Value == true then | |
703 | if hit.Parent.Stats:FindFirstChild("BlockDebounce") == nil then | |
704 | DamageStatLabel("Interruption", hit.Parent.Head.CFrame, "Blocked!", Color3.new(0, 0.3921568627451, 1)) | |
705 | local BlockDebounce = Instance.new("BoolValue", hit.Parent.Stats) | |
706 | BlockDebounce.Name = "BlockDebounce" | |
707 | BlockDebounce.Value = true | |
708 | game:GetService("Debris"):AddItem(BlockDebounce, 0.1) | |
709 | end | |
710 | do | |
711 | if ranged ~= true then | |
712 | do | |
713 | if hit.Parent.Stats:FindFirstChild("BlockDebounce2") == nil then | |
714 | local BlockDebounce2 = Instance.new("BoolValue", hit.Parent.Stats) | |
715 | BlockDebounce2.Name = "BlockDebounce2" | |
716 | BlockDebounce2.Value = true | |
717 | game:GetService("Debris"):AddItem(BlockDebounce2, 0.1) | |
718 | so(HitBlockSounds[math.random(1, #HitBlockSounds)], hit, 1, 1) | |
719 | end | |
720 | hit.Parent.Stats:FindFirstChild("BlockValue").Value = false | |
721 | StaggerAnim.Value = true | |
722 | do return end | |
723 | if DecreaseTheStat ~= nil and hit.Parent:FindFirstChild("Stats") ~= nil then | |
724 | if DecreaseTheStat == "Defense" then | |
725 | DecreaseStat(hit.Parent, "Defense", DecreaseAmount, DecreaseDuration, ShowDecreasedStat) | |
726 | else | |
727 | if DecreaseTheStat == "Damage" then | |
728 | DecreaseStat(hit.Parent, "Damage", DecreaseAmount, DecreaseDuration, ShowDecreasedStat) | |
729 | else | |
730 | if DecreaseTheStat == "Movement" then | |
731 | DecreaseStat(hit.Parent, "Movement", DecreaseAmount, DecreaseDuration, ShowDecreasedStat) | |
732 | end | |
733 | end | |
734 | end | |
735 | end | |
736 | local D = math.random(minim, maxim) * Damage.Value | |
737 | if hit.Parent:FindFirstChild("Stats") ~= nil then | |
738 | if hit.Parent.Stats:FindFirstChild("Defense") then | |
739 | if CanPenetrateArmor.Value == true then | |
740 | D = D / hit.Parent.Stats:FindFirstChild("Defense").Value | |
741 | -- DECOMPILER ERROR at PC377: Unhandled construct in 'MakeBoolean' P1 | |
742 | ||
743 | if hit.Parent.Stats:FindFirstChild("Defense") ~= nil or CanCrit.Value == true then | |
744 | CritChanceNumber = math.random(1, CritChance.Value) | |
745 | if CritChanceNumber == CritChance.Value then | |
746 | D = D * 2 | |
747 | end | |
748 | end | |
749 | D = math.floor(D) | |
750 | h.Health = h.Health - D | |
751 | if D <= 3 and staggerhit == true then | |
752 | if ranged ~= true then | |
753 | StaggerHitAnim.Value = true | |
754 | end | |
755 | if ranged ~= true then | |
756 | so(HitArmorSounds[math.random(1, #HitArmorSounds)], hit, 1, 1) | |
757 | end | |
758 | else | |
759 | if D > 3 and ranged ~= true then | |
760 | so(HitPlayerSounds[math.random(1, #HitPlayerSounds)], hit, 1, 1) | |
761 | end | |
762 | end | |
763 | if D > 3 and D < 20 then | |
764 | if CanCrit.Value == true and CritChanceNumber == CritChance.Value then | |
765 | DamageStatLabel("Normal", hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254902, 0, 0)) | |
766 | so("296102734", hit, 1, 1) | |
767 | else | |
768 | DamageStatLabel("Normal", hit.Parent.Head.CFrame, D, Color3.new(1, 0.86274509803922, 0)) | |
769 | end | |
770 | else | |
771 | if D >= 20 then | |
772 | if CanCrit.Value == true and CritChanceNumber == CritChance.Value then | |
773 | DamageStatLabel("Normal", hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254902, 0, 0)) | |
774 | so("296102734", hit, 1, 1) | |
775 | else | |
776 | DamageStatLabel("Normal", hit.Parent.Head.CFrame, D, Color3.new(1, 0, 0)) | |
777 | end | |
778 | else | |
779 | if D <= 3 then | |
780 | if CanCrit.Value == true and CritChanceNumber == CritChance.Value then | |
781 | DamageStatLabel("Normal", hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254902, 0, 0)) | |
782 | so("296102734", hit, 1, 1) | |
783 | else | |
784 | DamageStatLabel("Normal", hit.Parent.Head.CFrame, D, Color3.new(0.88235294117647, 0.88235294117647, 0.88235294117647)) | |
785 | end | |
786 | end | |
787 | end | |
788 | end | |
789 | do | |
790 | if Type == "Normal" then | |
791 | local vp = Instance.new("BodyVelocity") | |
792 | vp.P = 500 | |
793 | vp.maxForce = vt(math.huge, 0, math.huge) | |
794 | if KnockbackType == 1 then | |
795 | vp.Velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
796 | else | |
797 | if KnockbackType == 2 then | |
798 | vp.Velocity = Property.CFrame.lookVector * knockback | |
799 | end | |
800 | end | |
801 | if knockback > 0 then | |
802 | vp.Parent = hit.Parent.Torso | |
803 | end | |
804 | game:GetService("Debris"):AddItem(vp, 0.5) | |
805 | end | |
806 | local DebounceHit = Instance.new("BoolValue", hit.Parent) | |
807 | DebounceHit.Name = "DebounceHit" | |
808 | DebounceHit.Value = true | |
809 | game:GetService("Debris"):AddItem(DebounceHit, Delay) | |
810 | end | |
811 | end | |
812 | end | |
813 | end | |
814 | end | |
815 | end | |
816 | end | |
817 | end | |
818 | end | |
819 | end | |
820 | ||
821 | MagniDamage = function(Part, magni, mindam, maxdam, knock, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, MagicDecreaseTheStat, MagicDecreaseAmount, MagicDecreaseDuration, MagicShowDecreasedStat) | |
822 | ||
823 | for _,c in pairs(workspace:GetChildren()) do | |
824 | local hum = (c:FindFirstChild("Humanoid")) | |
825 | local head = nil | |
826 | if hum ~= nil then | |
827 | head = c:FindFirstChild("Torso") | |
828 | if head ~= nil then | |
829 | local targ = head.Position - Part.Position | |
830 | local mag = targ.magnitude | |
831 | if mag <= magni and c.Name ~= Player.Name then | |
832 | Damagefunc(head, mindam, maxdam, knock, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, MagicDecreaseTheStat, MagicDecreaseAmount, MagicDecreaseDuration, MagicShowDecreasedStat) | |
833 | end | |
834 | end | |
835 | do | |
836 | for _,d in pairs(c:GetChildren()) do | |
837 | if d.ClassName == "Model" and ranged ~= true then | |
838 | head = d:FindFirstChild("Hitbox") | |
839 | if head ~= nil then | |
840 | local targ = head.Position - Part.Position | |
841 | local mag = targ.magnitude | |
842 | if mag <= magni and c.Name ~= Player.Name then | |
843 | local hitrefpart = part(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", vt()) | |
844 | hitrefpart.Anchored = true | |
845 | hitrefpart.CFrame = cf(head.Position) | |
846 | so(HitWeaponSounds[math.random(1, #HitWeaponSounds)], hitrefpart, 1, 1) | |
847 | StaggerHitAnim.Value = true | |
848 | end | |
849 | end | |
850 | end | |
851 | end | |
852 | do | |
853 | -- DECOMPILER ERROR at PC107: LeaveBlock: unexpected jumping out DO_STMT | |
854 | ||
855 | -- DECOMPILER ERROR at PC107: LeaveBlock: unexpected jumping out IF_THEN_STMT | |
856 | ||
857 | -- DECOMPILER ERROR at PC107: LeaveBlock: unexpected jumping out IF_STMT | |
858 | ||
859 | end | |
860 | end | |
861 | end | |
862 | end | |
863 | end | |
864 | ||
865 | MagniBufforDebuff = function(Part, Magni, Type, Stat, Amount, Duration, ShowTheBufforDebuff, ApplyToOthersInstead) | |
866 | ||
867 | if Player.Neutral == true then | |
868 | if Type == "Buff" then | |
869 | IncreaseStat(Character, Stat, Amount, Duration, ShowTheBufforDebuff) | |
870 | else | |
871 | if Type == "Debuff" then | |
872 | DecreaseStat(Character, Stat, Amount, Duration, ShowTheBufforDebuff) | |
873 | end | |
874 | end | |
875 | end | |
876 | for _,c in pairs(workspace:GetChildren()) do | |
877 | local hum = (c:FindFirstChild("Humanoid")) | |
878 | local head = nil | |
879 | if hum ~= nil then | |
880 | head = c:FindFirstChild("Torso") | |
881 | if head ~= nil then | |
882 | local targ = head.Position - Part.Position | |
883 | local mag = targ.magnitude | |
884 | -- DECOMPILER ERROR at PC83: Unhandled construct in 'MakeBoolean' P1 | |
885 | ||
886 | if ApplyToOthersInstead == true and mag <= Magni and c.Name ~= Player.Name and Player.Neutral == false and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and game.Players:GetPlayerFromCharacter(head.Parent).TeamColor == Player.TeamColor then | |
887 | if Type == "Buff" then | |
888 | IncreaseStat(head.Parent, Stat, Amount, Duration, ShowTheBufforDebuff) | |
889 | else | |
890 | if Type == "Debuff" then | |
891 | DecreaseStat(head.Parent, Stat, Amount, Duration, ShowTheBufforDebuff) | |
892 | end | |
893 | end | |
894 | end | |
895 | end | |
896 | end | |
897 | if ApplyToOthersInstead == false and mag <= Magni and Player.Neutral == false and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and game.Players:GetPlayerFromCharacter(head.Parent).TeamColor == Player.TeamColor then | |
898 | if Type == "Buff" then | |
899 | IncreaseStat(head.Parent, Stat, Amount, Duration, ShowTheBufforDebuff) | |
900 | else | |
901 | if Type == "Debuff" then | |
902 | DecreaseStat(head.Parent, Stat, Amount, Duration, ShowTheBufforDebuff) | |
903 | end | |
904 | end | |
905 | end | |
906 | end | |
907 | end | |
908 | ||
909 | Lightning = function(p0, p1, tym, ofs, brickcolor, material, th, tra, last) | |
910 | ||
911 | local magz = p0 - p1.magnitude | |
912 | local curpos = p0 | |
913 | local trz = {-ofs, ofs} | |
914 | for i = 1, tym do | |
915 | local li = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt(th, th, magz / tym)) | |
916 | do | |
917 | li.Anchored = true | |
918 | local ofz = vt(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)]) | |
919 | local trolpos = cf(curpos, p1) * cf(0, 0, magz / tym).p + ofz | |
920 | if tym == i then | |
921 | local magz2 = curpos - p1.magnitude | |
922 | li.Size = vt(th, th, magz2) | |
923 | li.CFrame = cf(curpos, p1) * cf(0, 0, -magz2 / 2) | |
924 | else | |
925 | do | |
926 | do | |
927 | li.CFrame = cf(curpos, trolpos) * cf(0, 0, magz / tym / 2) | |
928 | curpos = li.CFrame * cf(0, 0, magz / tym / 2).p | |
929 | game.Debris:AddItem(li, last) | |
930 | coroutine.resume(coroutine.create(function() | |
931 | ||
932 | while li.Transparency ~= 1 do | |
933 | for i = 0, 1, last do | |
934 | hbwait() | |
935 | li.Transparency = li.Transparency + 0.1 / last | |
936 | end | |
937 | end | |
938 | end | |
939 | )) | |
940 | end | |
941 | -- DECOMPILER ERROR at PC118: LeaveBlock: unexpected jumping out IF_ELSE_STMT | |
942 | ||
943 | -- DECOMPILER ERROR at PC118: LeaveBlock: unexpected jumping out IF_STMT | |
944 | ||
945 | -- DECOMPILER ERROR at PC118: LeaveBlock: unexpected jumping out DO_STMT | |
946 | ||
947 | end | |
948 | end | |
949 | end | |
950 | end | |
951 | end | |
952 | ||
953 | MagicRing = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
954 | ||
955 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
956 | prt.Anchored = true | |
957 | prt.CFrame = cframe | |
958 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1)) | |
959 | game:GetService("Debris"):AddItem(prt, 10) | |
960 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
961 | ||
962 | for i = 0, 1, delay do | |
963 | hbwait() | |
964 | Part.CFrame = Part.CFrame | |
965 | Part.Transparency = i | |
966 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
967 | end | |
968 | Part.Parent = nil | |
969 | end | |
970 | ), prt, msh) | |
971 | end | |
972 | ||
973 | MagicWave = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
974 | ||
975 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
976 | prt.Anchored = true | |
977 | prt.CFrame = cframe | |
978 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, -0.1 * z1), vt(x1, y1, z1)) | |
979 | game:GetService("Debris"):AddItem(prt, 10) | |
980 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
981 | ||
982 | for i = 0, 1, delay do | |
983 | hbwait() | |
984 | Part.CFrame = Part.CFrame | |
985 | Part.Transparency = i | |
986 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
987 | end | |
988 | Part.Parent = nil | |
989 | end | |
990 | ), prt, msh) | |
991 | end | |
992 | ||
993 | MagicBlock = function(brickcolor, material, rotate, cframe, x1, y1, z1, x3, y3, z3, delay) | |
994 | ||
995 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
996 | prt.Anchored = true | |
997 | prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
998 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
999 | game:GetService("Debris"):AddItem(prt, 10) | |
1000 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1001 | ||
1002 | for i = 0, 1, delay do | |
1003 | hbwait() | |
1004 | if rotate == true then | |
1005 | Part.CFrame = Part.CFrame * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1006 | end | |
1007 | Part.Transparency = i | |
1008 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1009 | end | |
1010 | Part.Parent = nil | |
1011 | end | |
1012 | ), prt, msh) | |
1013 | end | |
1014 | ||
1015 | MagicBlock2 = function(brickcolor, material, rotate, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1016 | ||
1017 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
1018 | prt.Anchored = true | |
1019 | prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1020 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1021 | game:GetService("Debris"):AddItem(prt, 10) | |
1022 | CF = prt.CFrame | |
1023 | num = math.random(5, 20) | |
1024 | coroutine.resume(coroutine.create(function(Part, Mesh, CF2, Num) | |
1025 | ||
1026 | for i = 0, 1, delay do | |
1027 | hbwait() | |
1028 | if rotate == true then | |
1029 | Part.CFrame = CF2 * cf(0, i * Num, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1030 | else | |
1031 | Part.CFrame = CF2 * cf(0, i * Num, 0) | |
1032 | end | |
1033 | Part.Transparency = i | |
1034 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1035 | end | |
1036 | Part.Parent = nil | |
1037 | end | |
1038 | ), prt, msh, CF, num) | |
1039 | end | |
1040 | ||
1041 | MagicCylinder = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1042 | ||
1043 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
1044 | prt.Anchored = true | |
1045 | prt.CFrame = cframe | |
1046 | local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1047 | game:GetService("Debris"):AddItem(prt, 10) | |
1048 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1049 | ||
1050 | for i = 0, 1, delay do | |
1051 | hbwait() | |
1052 | Part.Transparency = i | |
1053 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1054 | end | |
1055 | Part.Parent = nil | |
1056 | end | |
1057 | ), prt, msh) | |
1058 | end | |
1059 | ||
1060 | MagicCircle = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1061 | ||
1062 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
1063 | prt.Anchored = true | |
1064 | prt.CFrame = cframe | |
1065 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1066 | game:GetService("Debris"):AddItem(prt, 10) | |
1067 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1068 | ||
1069 | for i = 0, 1, delay do | |
1070 | hbwait() | |
1071 | Part.Transparency = i | |
1072 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1073 | end | |
1074 | Part.Parent = nil | |
1075 | end | |
1076 | ), prt, msh) | |
1077 | end | |
1078 | ||
1079 | MagicHead = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1080 | ||
1081 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
1082 | prt.Anchored = true | |
1083 | prt.CFrame = cframe | |
1084 | local msh = mesh("SpecialMesh", prt, "Head", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1085 | game:GetService("Debris"):AddItem(prt, 10) | |
1086 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1087 | ||
1088 | for i = 0, 1, delay do | |
1089 | hbwait() | |
1090 | Part.Transparency = i | |
1091 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1092 | end | |
1093 | Part.Parent = nil | |
1094 | end | |
1095 | ), prt, msh) | |
1096 | end | |
1097 | ||
1098 | BreakEffect = function(brickcolor, material, rotate, cframe, x1, y1, z1, delay) | |
1099 | ||
1100 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
1101 | prt.Anchored = true | |
1102 | prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1103 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1104 | game:GetService("Debris"):AddItem(prt, 10) | |
1105 | coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb) | |
1106 | ||
1107 | CF = Part.CFrame | |
1108 | Numbb = 0 | |
1109 | randnumb = math.random() - math.random() | |
1110 | for i = 0, 1, delay do | |
1111 | hbwait() | |
1112 | CF = CF * cf(0, 1, 0) | |
1113 | if rotate == true then | |
1114 | Part.CFrame = CF * angles(Numbb, 0, 0) | |
1115 | else | |
1116 | if rotate == false then | |
1117 | Part.CFrame = CF | |
1118 | end | |
1119 | end | |
1120 | Part.Transparency = i | |
1121 | Numbb = Numbb + (randnumb) | |
1122 | end | |
1123 | Part.Parent = nil | |
1124 | end | |
1125 | ), prt, CF, Numbb, randnumb) | |
1126 | end | |
1127 | ||
1128 | ElecEffect = function(brickcolor, material, cf, x, y, z, delay) | |
1129 | ||
1130 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
1131 | prt.Anchored = true | |
1132 | prt.CFrame = cf | |
1133 | xval = math.random() | |
1134 | yval = math.random() | |
1135 | zval = math.random() | |
1136 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x, y, z)) | |
1137 | game:GetService("Debris"):AddItem(prt, 10) | |
1138 | coroutine.resume(coroutine.create(function(Part, Mesh, xvaal, yvaal, zvaal) | |
1139 | ||
1140 | for i = 0, 1, delay do | |
1141 | hbwait() | |
1142 | Part.CFrame = Part.CFrame | |
1143 | xvaal = xvaal - 0.1 * (delay * 10) | |
1144 | yvaal = yvaal - 0.1 * (delay * 10) | |
1145 | zvaal = zvaal - 0.1 * (delay * 10) | |
1146 | Mesh.Scale = Mesh.Scale + vt(xvaal, yvaal, zvaal) | |
1147 | Part.Transparency = i | |
1148 | end | |
1149 | Part.Parent = nil | |
1150 | end | |
1151 | ), prt, msh, xval, yval, zval) | |
1152 | end | |
1153 | ||
1154 | TrailEffect = function(brickcolor, material, currentcf, oldcf, meshtype, reflectance, size, x, y, z, delay) | |
1155 | ||
1156 | local magnitudecframe = currentcf.p - oldcf.p.magnitude | |
1157 | if magnitudecframe > 0.01 then | |
1158 | local prt = part(3, Effects, material, reflectance, 0, brickcolor, "Effect", vt(1, magnitudecframe, 1)) | |
1159 | prt.Anchored = true | |
1160 | prt.CFrame = cf((currentcf.p + oldcf.p) / 2, oldcf.p) * angles(rad(90), 0, 0) | |
1161 | local TheMeshType = "BlockMesh" | |
1162 | if meshtype == "Cylinder" then | |
1163 | TheMeshType = "CylinderMesh" | |
1164 | end | |
1165 | local msh = mesh(TheMeshType, prt, "", "", vt(0, 0, 0), vt(0 + size, 1, 0 + size)) | |
1166 | game:GetService("Debris"):AddItem(prt, 10) | |
1167 | coroutine.resume(coroutine.create(function(Part, Mesh, TheCurrentCFrame, TheLastCFrame) | |
1168 | ||
1169 | for i = 0, 1, delay do | |
1170 | hbwait() | |
1171 | Part.Transparency = i | |
1172 | Mesh.Scale = Mesh.Scale + vt(x, y, z) | |
1173 | end | |
1174 | Part.Parent = nil | |
1175 | end | |
1176 | ), prt, msh, currentcf, oldcf) | |
1177 | end | |
1178 | end | |
1179 | ||
1180 | ClangEffect = function(brickcolor, material, cframe, angle, duration, size, power, reflectance, x, y, z, delay) | |
1181 | ||
1182 | local prt = part(3, Effects, material, 0, 1, brickcolor, "Effect", vt()) | |
1183 | prt.Anchored = true | |
1184 | prt.CFrame = cframe | |
1185 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(0, 0, 0)) | |
1186 | game:GetService("Debris"):AddItem(prt, 10) | |
1187 | local TheLastPoint = cframe | |
1188 | coroutine.resume(coroutine.create(function(Part) | |
1189 | ||
1190 | for i = 1, duration do | |
1191 | hbwait() | |
1192 | Part.CFrame = Part.CFrame * angles(rad(angle), 0, 0) * cf(0, power, 0) | |
1193 | TrailEffect(brickcolor, material, Part.CFrame, TheLastPoint, "Cylinder", reflectance, size, x, y, z, delay) | |
1194 | TheLastPoint = Part.CFrame | |
1195 | end | |
1196 | Part.Parent = nil | |
1197 | end | |
1198 | ), prt) | |
1199 | end | |
1200 | ||
1201 | MagicCone = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1202 | ||
1203 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
1204 | prt.Anchored = true | |
1205 | prt.CFrame = cframe | |
1206 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1778999", vt(0, 0, 0), vt(x1, y1, z1)) | |
1207 | game:GetService("Debris"):AddItem(prt, 10) | |
1208 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1209 | ||
1210 | for i = 0, 1, delay do | |
1211 | hbwait() | |
1212 | Part.Transparency = i | |
1213 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1214 | end | |
1215 | Part.Parent = nil | |
1216 | end | |
1217 | ), prt, msh) | |
1218 | end | |
1219 | ||
1220 | MagicFlatCone = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1221 | ||
1222 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
1223 | prt.Anchored = true | |
1224 | prt.CFrame = cframe | |
1225 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1033714", vt(0, 0, 0), vt(x1, y1, z1)) | |
1226 | game:GetService("Debris"):AddItem(prt, 10) | |
1227 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1228 | ||
1229 | for i = 0, 1, delay do | |
1230 | hbwait() | |
1231 | Part.Transparency = i | |
1232 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1233 | end | |
1234 | Part.Parent = nil | |
1235 | end | |
1236 | ), prt, msh) | |
1237 | end | |
1238 | ||
1239 | MagicSpikedCrown = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1240 | ||
1241 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
1242 | prt.Anchored = true | |
1243 | prt.CFrame = cframe | |
1244 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1323306", vt(0, 0, 0), vt(x1, y1, z1)) | |
1245 | game:GetService("Debris"):AddItem(prt, 10) | |
1246 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1247 | ||
1248 | for i = 0, 1, delay do | |
1249 | hbwait() | |
1250 | Part.Transparency = i | |
1251 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1252 | end | |
1253 | Part.Parent = nil | |
1254 | end | |
1255 | ), prt, msh) | |
1256 | end | |
1257 | ||
1258 | MagicCrown = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1259 | ||
1260 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
1261 | prt.Anchored = true | |
1262 | prt.CFrame = cframe | |
1263 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1078075", vt(0, 0, 0), vt(x1, y1, z1)) | |
1264 | game:GetService("Debris"):AddItem(prt, 10) | |
1265 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1266 | ||
1267 | for i = 0, 1, delay do | |
1268 | hbwait() | |
1269 | Part.Transparency = i | |
1270 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1271 | end | |
1272 | Part.Parent = nil | |
1273 | end | |
1274 | ), prt, msh) | |
1275 | end | |
1276 | ||
1277 | MagicSkull = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1278 | ||
1279 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
1280 | prt.Anchored = true | |
1281 | prt.CFrame = cframe | |
1282 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=4770583", vt(0, 0, 0), vt(x1, y1, z1)) | |
1283 | game:GetService("Debris"):AddItem(prt, 10) | |
1284 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1285 | ||
1286 | for i = 0, 1, delay do | |
1287 | hbwait() | |
1288 | Part.Transparency = i | |
1289 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1290 | end | |
1291 | Part.Parent = nil | |
1292 | end | |
1293 | ), prt, msh) | |
1294 | end | |
1295 | ||
1296 | local startequipped = true | |
1297 | local startequippedwithequipanimation = false | |
1298 | local disableanimator = true | |
1299 | local disableanimate = true | |
1300 | local alternatewalk = false | |
1301 | local hidemenu = false | |
1302 | local allowmenutofunction = false | |
1303 | local allowabilitiestofunction = false | |
1304 | local canunequiporequip = false | |
1305 | local allowwalking = false | |
1306 | local disablemovingarms = false | |
1307 | local usemotorsinsteadofwelds = false | |
1308 | local leftarm = false | |
1309 | local rightarm = false | |
1310 | local allowhopperbin = false | |
1311 | local showstunbar = false | |
1312 | local walkspeeddependsonmovementvalue = true | |
1313 | local alternatemanaregensystem = false | |
1314 | local showhealthmanaandstunnumbers = false | |
1315 | local changebarcolorsifnotenoughmana = false | |
1316 | local disablejump = false | |
1317 | if hidemenu == true or allowmenutofunction == false then | |
1318 | for _,v in pairs(scrn:GetChildren()) do | |
1319 | if v.ClassName == "Frame" or v.ClassName == "TextLabel" then | |
1320 | v.Visible = false | |
1321 | v.BorderSizePixel = 0 | |
1322 | end | |
1323 | end | |
1324 | end | |
1325 | do | |
1326 | Humanoid.Changed:connect(function(Jump) | |
1327 | ||
1328 | if Jump == "Jump" and disablejump == true then | |
1329 | Humanoid.Jump = false | |
1330 | end | |
1331 | end | |
1332 | ) | |
1333 | if allowmenutofunction == true then | |
1334 | for _,v in pairs(scrn:GetChildren()) do | |
1335 | if v.ClassName == "Frame" then | |
1336 | for _,b in pairs(v:GetChildren()) do | |
1337 | if b.ClassName == "TextLabel" then | |
1338 | coroutine.resume(coroutine.create(function(TheTextLabel) | |
1339 | ||
1340 | wait(menuupdatespeed) | |
1341 | for i = 1, 0, -0.1 do | |
1342 | hbwait() | |
1343 | TheTextLabel.TextTransparency = i | |
1344 | TheTextLabel.TextStrokeTransparency = i | |
1345 | end | |
1346 | TheTextLabel.TextTransparency = 0 | |
1347 | TheTextLabel.TextStrokeTransparency = 0 | |
1348 | end | |
1349 | ), b) | |
1350 | if showstats == true then | |
1351 | coroutine.resume(coroutine.create(function(TheTextLabel) | |
1352 | ||
1353 | wait(menuupdatespeed) | |
1354 | for i = 1, 0, -0.1 do | |
1355 | hbwait() | |
1356 | TheTextLabel.TextTransparency = i | |
1357 | TheTextLabel.TextStrokeTransparency = i | |
1358 | end | |
1359 | TheTextLabel.TextTransparency = 0 | |
1360 | TheTextLabel.TextStrokeTransparency = 0 | |
1361 | end | |
1362 | ), b) | |
1363 | end | |
1364 | if showstunbar == true then | |
1365 | coroutine.resume(coroutine.create(function(TheTextLabel) | |
1366 | ||
1367 | wait(menuupdatespeed) | |
1368 | for i = 1, 0, -0.1 do | |
1369 | hbwait() | |
1370 | TheTextLabel.TextTransparency = i | |
1371 | TheTextLabel.TextStrokeTransparency = i | |
1372 | end | |
1373 | TheTextLabel.TextTransparency = 0 | |
1374 | TheTextLabel.TextStrokeTransparency = 0 | |
1375 | end | |
1376 | ), b) | |
1377 | end | |
1378 | if allowabilitiestofunction == true then | |
1379 | coroutine.resume(coroutine.create(function(TheTextLabel) | |
1380 | ||
1381 | wait(menuupdatespeed) | |
1382 | for i = 1, 0, -0.1 do | |
1383 | hbwait() | |
1384 | TheTextLabel.TextTransparency = i | |
1385 | TheTextLabel.TextStrokeTransparency = i | |
1386 | end | |
1387 | TheTextLabel.TextTransparency = 0 | |
1388 | TheTextLabel.TextStrokeTransparency = 0 | |
1389 | end | |
1390 | ), b) | |
1391 | end | |
1392 | end | |
1393 | end | |
1394 | end | |
1395 | end | |
1396 | end | |
1397 | do | |
1398 | if allowhopperbin == true then | |
1399 | if script.Parent.className ~= "HopperBin" then | |
1400 | Tool = Instance.new("HopperBin") | |
1401 | Tool.Parent = Backpack | |
1402 | Tool.Name = WeaponName | |
1403 | script.Parent = Tool | |
1404 | end | |
1405 | Bin = script.Parent | |
1406 | end | |
1407 | if disablemovingarms == true then | |
1408 | RWC0 = cf(0, 0 - (0.5 * PlayerSize - 0.5), 0) * angles(rad(0), rad(0), rad(0)) | |
1409 | LWC0 = cf(0, 0 - (0.5 * PlayerSize - 0.5), 0) * angles(rad(0), rad(0), rad(0)) | |
1410 | RSH = nil | |
1411 | if usemotorsinsteadofwelds == true then | |
1412 | RW = Instance.new("Motor") | |
1413 | LW = Instance.new("Motor") | |
1414 | else | |
1415 | RW = Instance.new("Weld") | |
1416 | LW = Instance.new("Weld") | |
1417 | end | |
1418 | RW.Name = "Right Shoulder" | |
1419 | LW.Name = "Left Shoulder" | |
1420 | RSH = Torso["Right Shoulder"] | |
1421 | LSH = Torso["Left Shoulder"] | |
1422 | RSH.Parent = Torso | |
1423 | LSH.Parent = Torso | |
1424 | RW.Name = "Right Shoulder" | |
1425 | RW.Part0 = Torso | |
1426 | RW.C0 = cf(1.5, 0.5, 0) | |
1427 | RW.C1 = cf(0, 0.5, 0) | |
1428 | RW.Part1 = Character["Right Arm"] | |
1429 | RW.Parent = nil | |
1430 | LW.Name = "Left Shoulder" | |
1431 | LW.Part0 = Torso | |
1432 | LW.C0 = cf(-1.5, 0.5, 0) | |
1433 | LW.C1 = cf(0, 0.5, 0) | |
1434 | LW.Part1 = Character["Left Arm"] | |
1435 | LW.Parent = nil | |
1436 | else | |
1437 | RW = Torso["Right Shoulder"] | |
1438 | LW = Torso["Left Shoulder"] | |
1439 | RWC0 = cf(-0.5, 0, 0) * angles(rad(0), rad(90), rad(0)) | |
1440 | LWC0 = cf(0.5, 0, 0) * angles(rad(0), rad(-90), rad(0)) | |
1441 | end | |
1442 | equipanim = function() | |
1443 | ||
1444 | attack = true | |
1445 | Movement.Value = Movement.Value - 0.1 | |
1446 | Defense.Value = Defense.Value + 0.4 | |
1447 | for i = 0, 1, 0.08 / animationspeed do | |
1448 | hbwait() | |
1449 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
1450 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
1451 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * RWC0, 0.3 / animationspeed) | |
1452 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * LWC0, 0.3 / animationspeed) | |
1453 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
1454 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
1455 | end | |
1456 | attack = false | |
1457 | end | |
1458 | ||
1459 | unequipanim = function() | |
1460 | ||
1461 | attack = true | |
1462 | for i = 0, 1, 0.08 / animationspeed do | |
1463 | hbwait() | |
1464 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
1465 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)), 0.3 / animationspeed) | |
1466 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * RWC0, 0.3 / animationspeed) | |
1467 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * LWC0, 0.3 / animationspeed) | |
1468 | if disablemovingarms == false then | |
1469 | RW.C1 = clerp(RW.C1, angles(0, rad(90), 0) * cf(0, 0.5 * PlayerSize, -0.5), 0.3 / animationspeed) | |
1470 | LW.C1 = clerp(LW.C1, angles(0, rad(-90), 0) * cf(0, 0.5 * PlayerSize, -0.5), 0.3 / animationspeed) | |
1471 | end | |
1472 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
1473 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
1474 | RH.C1 = clerp(RH.C1, angles(0, rad(90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize), 0.3 / animationspeed) | |
1475 | LH.C1 = clerp(LH.C1, angles(0, rad(-90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize), 0.3 / animationspeed) | |
1476 | end | |
1477 | RootJoint.C0 = RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) | |
1478 | Neck.C0 = necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(0)) | |
1479 | Neck.C1 = angles(rad(90), rad(180), 0) * cf(0, 0, -0.5 * PlayerSize) | |
1480 | RW.C0 = cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * RWC0 | |
1481 | LW.C0 = cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * LWC0 | |
1482 | if disablemovingarms == false then | |
1483 | RW.C1 = angles(0, rad(90), 0) * cf(0, 0.5 * PlayerSize, -0.5) | |
1484 | LW.C1 = angles(0, rad(-90), 0) * cf(0, 0.5 * PlayerSize, -0.5) | |
1485 | end | |
1486 | RH.C0 = cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(0), rad(0), rad(0)) | |
1487 | LH.C0 = cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(0), rad(0), rad(0)) | |
1488 | RH.C1 = angles(0, rad(90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize) | |
1489 | LH.C1 = angles(0, rad(-90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize) | |
1490 | Movement.Value = Movement.Value + 0.1 | |
1491 | Defense.Value = Defense.Value - 0.4 | |
1492 | attack = false | |
1493 | end | |
1494 | ||
1495 | if startequipped == true then | |
1496 | equipped = true | |
1497 | if disableanimate == true then | |
1498 | Animate.Disabled = true | |
1499 | local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation) | |
1500 | idleanimation:Play() | |
1501 | end | |
1502 | if disableanimator == true then | |
1503 | Animator.Parent = nil | |
1504 | end | |
1505 | if disablemovingarms == true then | |
1506 | RW.Parent = Torso | |
1507 | LW.Parent = Torso | |
1508 | RSH.Parent = nil | |
1509 | LSH.Parent = nil | |
1510 | end | |
1511 | Movement.Value = Movement.Value - 0.1 | |
1512 | Defense.Value = Defense.Value + 0.4 | |
1513 | end | |
1514 | if startequippedwithequipanimation == true then | |
1515 | equipped = true | |
1516 | if disableanimate == true then | |
1517 | Animate.Disabled = true | |
1518 | local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation) | |
1519 | idleanimation:Play() | |
1520 | end | |
1521 | if disableanimator == true then | |
1522 | Animator.Parent = nil | |
1523 | end | |
1524 | if disablemovingarms == true then | |
1525 | RW.Parent = Torso | |
1526 | LW.Parent = Torso | |
1527 | RSH.Parent = nil | |
1528 | LSH.Parent = nil | |
1529 | end | |
1530 | coroutine.resume(coroutine.create(function() | |
1531 | ||
1532 | hbwait() | |
1533 | equipanim() | |
1534 | end | |
1535 | )) | |
1536 | end | |
1537 | ||
1538 | StaggerHit = function() | |
1539 | ||
1540 | attack = true | |
1541 | if Hitbox ~= nil then | |
1542 | for i = 1, math.random(2, 4) do | |
1543 | ClangEffect("Bright yellow", "Neon", cf(Hitbox.Position) * angles(rad(math.random(-50, 50)), rad(math.random(-50, 50)), rad(math.random(-50, 50))), 20, 5, 0.2, math.random(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1) | |
1544 | end | |
1545 | end | |
1546 | do | |
1547 | for i = 0, 1, 0.1 / animationspeed do | |
1548 | hbwait() | |
1549 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(-10), rad(0), rad(-30)), 0.3 / animationspeed) | |
1550 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(30)) * angles(rad(5), rad(0), rad(0)), 0.3 / animationspeed) | |
1551 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-30), rad(0), rad(60)) * angles(rad(0), rad(-30), rad(0)) * RWC0, 0.3 / animationspeed) | |
1552 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-20), rad(0), rad(-20)) * angles(rad(0), rad(20), rad(0)) * LWC0, 0.3 / animationspeed) | |
1553 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.9 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(-10), rad(0), rad(-20)), 0.3 / animationspeed) | |
1554 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-70), rad(0)) * angles(rad(-5), rad(0), rad(10)), 0.3 / animationspeed) | |
1555 | if StaggerAnim.Value ~= true then | |
1556 | do | |
1557 | if StunAnim.Value == true then | |
1558 | break | |
1559 | end | |
1560 | -- DECOMPILER ERROR at PC314: LeaveBlock: unexpected jumping out IF_THEN_STMT | |
1561 | ||
1562 | -- DECOMPILER ERROR at PC314: LeaveBlock: unexpected jumping out IF_STMT | |
1563 | ||
1564 | end | |
1565 | end | |
1566 | end | |
1567 | attack = false | |
1568 | end | |
1569 | end | |
1570 | ||
1571 | Stagger = function() | |
1572 | ||
1573 | attack = true | |
1574 | disablejump = true | |
1575 | if Hitbox ~= nil then | |
1576 | for i = 1, math.random(2, 4) do | |
1577 | ClangEffect("Bright yellow", "Neon", cf(Hitbox.Position) * angles(rad(math.random(-50, 50)), rad(math.random(-50, 50)), rad(math.random(-50, 50))), 20, 5, 0.2, math.random(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1) | |
1578 | end | |
1579 | end | |
1580 | do | |
1581 | attacktype = 1 | |
1582 | DamageStatLabel("Interruption", Head.CFrame, "Staggered!", Color3.new(1, 1, 0)) | |
1583 | local staggervelocity = Instance.new("BodyVelocity", Torso) | |
1584 | staggervelocity.P = 500 | |
1585 | staggervelocity.maxForce = vt(math.huge, 0, math.huge) | |
1586 | if Rooted.Value == false then | |
1587 | staggervelocity.Velocity = RootPart.CFrame.lookVector * -25 | |
1588 | end | |
1589 | for i = 0, 1, 0.35 / animationspeed do | |
1590 | hbwait() | |
1591 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.1 * PlayerSize) * angles(rad(-20), rad(0), rad(-30)), 0.3 / animationspeed) | |
1592 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(5), rad(0), rad(35)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
1593 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(20), rad(-30), rad(40)) * RWC0, 0.3 / animationspeed) | |
1594 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(10), rad(5), rad(-20)) * LWC0, 0.3 / animationspeed) | |
1595 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.75 * PlayerSize, -0.25 * PlayerSize) * angles(rad(0), rad(100), rad(0)) * angles(rad(-20), rad(0), rad(40)), 0.3 / animationspeed) | |
1596 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0.25 * PlayerSize) * angles(rad(0), rad(-60), rad(0)) * angles(rad(-5), rad(0), rad(10)), 0.3 / animationspeed) | |
1597 | end | |
1598 | for i = 0, 1, 0.2 / animationspeed do | |
1599 | hbwait() | |
1600 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.2 * PlayerSize) * angles(rad(-30), rad(0), rad(-30)), 0.3 / animationspeed) | |
1601 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(5), rad(0), rad(35)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
1602 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(20), rad(-30), rad(40)) * RWC0, 0.3 / animationspeed) | |
1603 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(10), rad(5), rad(-20)) * LWC0, 0.3 / animationspeed) | |
1604 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.75 * PlayerSize, -0.25 * PlayerSize) * angles(rad(0), rad(100), rad(0)) * angles(rad(-20), rad(0), rad(40)), 0.3 / animationspeed) | |
1605 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -0.9 * PlayerSize, 0.25 * PlayerSize) * angles(rad(0), rad(-60), rad(0)) * angles(rad(-5), rad(0), rad(30)), 0.3 / animationspeed) | |
1606 | end | |
1607 | staggervelocity:Destroy() | |
1608 | for i = 0, 1, 0.015 / animationspeed do | |
1609 | hbwait() | |
1610 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -1.8 * PlayerSize) * angles(rad(0), rad(0), rad(-20)) * angles(rad(-5), rad(-5), rad(0)), 0.3 / animationspeed) | |
1611 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(20), rad(0), rad(20)) * angles(rad(0), rad(5), rad(0)), 0.3 / animationspeed) | |
1612 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(20)) * angles(rad(0), rad(-20), rad(0)) * RWC0, 0.3 / animationspeed) | |
1613 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-15), rad(0), rad(-10)) * angles(rad(0), rad(20), rad(0)) * LWC0, 0.3 / animationspeed) | |
1614 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.5 * PlayerSize, -0.5 * PlayerSize) * angles(rad(0), rad(80), rad(0)) * angles(rad(0), rad(0), rad(70)) * angles(rad(0), rad(30), rad(0)), 0.3 / animationspeed) | |
1615 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, 0.4 * PlayerSize, -0.5 * PlayerSize) * angles(rad(0), rad(-80), rad(0)) * angles(rad(-2.5), rad(0), rad(-10)), 0.3 / animationspeed) | |
1616 | if StunAnim.Value == true then | |
1617 | break | |
1618 | end | |
1619 | end | |
1620 | do | |
1621 | attacktype = 1 | |
1622 | disablejump = false | |
1623 | attack = false | |
1624 | end | |
1625 | end | |
1626 | end | |
1627 | ||
1628 | Stun = function() | |
1629 | ||
1630 | attack = true | |
1631 | disablejump = true | |
1632 | attacktype = 1 | |
1633 | DamageStatLabel("Interruption", Head.CFrame, "Stunned!", Color3.new(1, 1, 0)) | |
1634 | for i = 0, 1, 0.4 / animationspeed do | |
1635 | hbwait() | |
1636 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(15), rad(0), rad(-160)), 0.3 / animationspeed) | |
1637 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(10), rad(0), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
1638 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(70), rad(0), rad(15)) * RWC0, 0.3 / animationspeed) | |
1639 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(70), rad(0), rad(-15)) * LWC0, 0.3 / animationspeed) | |
1640 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(-5), rad(0), rad(-20)), 0.3 / animationspeed) | |
1641 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(-5), rad(0), rad(-20)), 0.3 / animationspeed) | |
1642 | end | |
1643 | for i = 0, 1, 0.4 / animationspeed do | |
1644 | hbwait() | |
1645 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.5 * PlayerSize) * angles(rad(45), rad(0), rad(-170)), 0.3 / animationspeed) | |
1646 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(5), rad(0), rad(-30)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
1647 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(80), rad(0), rad(45)) * RWC0, 0.3 / animationspeed) | |
1648 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(80), rad(0), rad(-45)) * LWC0, 0.3 / animationspeed) | |
1649 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(-5), rad(0), rad(-40)), 0.3 / animationspeed) | |
1650 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(-5), rad(0), rad(-20)), 0.3 / animationspeed) | |
1651 | end | |
1652 | for i = 0, 1, 0.4 / animationspeed do | |
1653 | hbwait() | |
1654 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -1 * PlayerSize) * angles(rad(75), rad(0), rad(-180)), 0.3 / animationspeed) | |
1655 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize + (1 * PlayerSize - 1)) * angles(rad(5), rad(0), rad(-60)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
1656 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(90), rad(0), rad(75)) * RWC0, 0.3 / animationspeed) | |
1657 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-45), rad(0), rad(-75)) * LWC0, 0.3 / animationspeed) | |
1658 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(-5), rad(0), rad(-40)), 0.3 / animationspeed) | |
1659 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(-5), rad(0), rad(-30)), 0.3 / animationspeed) | |
1660 | end | |
1661 | Humanoid.AutoRotate = false | |
1662 | for i = 1, 70 * animationspeed do | |
1663 | hbwait() | |
1664 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -2.5 * PlayerSize) * angles(rad(90), rad(0), rad(-180)), 0.3 / animationspeed) | |
1665 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(-90)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
1666 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(90), rad(-10), rad(90)) * RWC0, 0.3 / animationspeed) | |
1667 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-90), rad(0), rad(-90)) * LWC0, 0.3 / animationspeed) | |
1668 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0.2 * PlayerSize) * angles(rad(0), rad(70), rad(0)) * angles(rad(-10), rad(0), rad(0)), 0.3 / animationspeed) | |
1669 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-100), rad(0)) * angles(rad(-10), rad(0), rad(0)), 0.3 / animationspeed) | |
1670 | end | |
1671 | for i = 0, 1, 0.15 / animationspeed do | |
1672 | hbwait() | |
1673 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -1.5 * PlayerSize) * angles(rad(20), rad(0), rad(100)), 0.3 / animationspeed) | |
1674 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(-30)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
1675 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-20), rad(0), rad(30)) * RWC0, 0.3 / animationspeed) | |
1676 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(80), rad(0), rad(20)) * LWC0, 0.3 / animationspeed) | |
1677 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(60), rad(0)) * angles(rad(-5), rad(0), rad(70)), 0.3 / animationspeed) | |
1678 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -0.25 * PlayerSize, -1 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(-10), rad(0), rad(20)), 0.3 / animationspeed) | |
1679 | end | |
1680 | Humanoid.AutoRotate = true | |
1681 | attacktype = 1 | |
1682 | disablejump = false | |
1683 | attack = false | |
1684 | end | |
1685 | ||
1686 | EAbility = function() | |
1687 | ||
1688 | attack = true | |
1689 | attack = false | |
1690 | end | |
1691 | ||
1692 | Attack1 = function() | |
1693 | ||
1694 | attack = true | |
1695 | attack = false | |
1696 | end | |
1697 | ||
1698 | Attack2 = function() | |
1699 | ||
1700 | attack = true | |
1701 | attack = false | |
1702 | end | |
1703 | ||
1704 | Attack3 = function() | |
1705 | ||
1706 | attack = true | |
1707 | attack = false | |
1708 | end | |
1709 | ||
1710 | Attack4 = function() | |
1711 | ||
1712 | attack = true | |
1713 | attack = false | |
1714 | end | |
1715 | ||
1716 | Move1 = function() | |
1717 | ||
1718 | attack = true | |
1719 | attack = false | |
1720 | end | |
1721 | ||
1722 | Move2 = function() | |
1723 | ||
1724 | attack = true | |
1725 | attack = false | |
1726 | end | |
1727 | ||
1728 | Move3 = function() | |
1729 | ||
1730 | attack = true | |
1731 | attack = false | |
1732 | end | |
1733 | ||
1734 | Move4 = function() | |
1735 | ||
1736 | attack = true | |
1737 | attack = false | |
1738 | end | |
1739 | ||
1740 | hold = false | |
1741 | Mouse.Button1Down:connect(function() | |
1742 | ||
1743 | if attack == true or equipped == false then | |
1744 | return | |
1745 | end | |
1746 | hold = true | |
1747 | if attacktype == 1 then | |
1748 | attacktype = 2 | |
1749 | Attack1() | |
1750 | else | |
1751 | if attacktype == 2 then | |
1752 | attacktype = 3 | |
1753 | Attack2() | |
1754 | else | |
1755 | if attacktype == 3 then | |
1756 | attacktype = 4 | |
1757 | Attack3() | |
1758 | else | |
1759 | if attacktype == 4 then | |
1760 | attacktype = 1 | |
1761 | Attack4() | |
1762 | end | |
1763 | end | |
1764 | end | |
1765 | end | |
1766 | coroutine.resume(coroutine.create(function() | |
1767 | ||
1768 | for i = 1, 50 do | |
1769 | if attack == false then | |
1770 | hbwait() | |
1771 | end | |
1772 | end | |
1773 | if attack == false then | |
1774 | attacktype = 1 | |
1775 | end | |
1776 | end | |
1777 | )) | |
1778 | end | |
1779 | ) | |
1780 | if allowhopperbin == true then | |
1781 | ob1u = function(Mouse) | |
1782 | ||
1783 | hold = false | |
1784 | end | |
1785 | ||
1786 | end | |
1787 | Mouse.KeyDown:connect(function(key) | |
1788 | ||
1789 | if key == "f" and canunequiporequip == true and attack == false then | |
1790 | if equipped == false then | |
1791 | equipped = true | |
1792 | if disableanimate == true then | |
1793 | Animate.Disabled = true | |
1794 | local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation) | |
1795 | idleanimation:Play() | |
1796 | end | |
1797 | if disableanimator == true then | |
1798 | Animator.Parent = nil | |
1799 | end | |
1800 | if disablemovingarms == true then | |
1801 | RW.Parent = Torso | |
1802 | LW.Parent = Torso | |
1803 | RSH.Parent = nil | |
1804 | LSH.Parent = nil | |
1805 | end | |
1806 | equipanim() | |
1807 | elseif equipped == true then | |
1808 | equipped = false | |
1809 | unequipanim() | |
1810 | hbwait() | |
1811 | if disablemovingarms == true then | |
1812 | RW.Parent = nil | |
1813 | LW.Parent = nil | |
1814 | RSH.Parent = Torso | |
1815 | LSH.Parent = Torso | |
1816 | end | |
1817 | if disableanimator == true then | |
1818 | Animator.Parent = Humanoid | |
1819 | end | |
1820 | if disableanimate == true then | |
1821 | Animate.Disabled = false | |
1822 | end | |
1823 | end | |
1824 | end | |
1825 | if key == "e" and attack == false and equipped == true then | |
1826 | if animtype < 3 then | |
1827 | animtype = animtype + 1 | |
1828 | elseif animtype >= 3 then | |
1829 | animtype = 1 | |
1830 | end | |
1831 | end | |
1832 | if key == "z" and attack == false and equipped == true and co1 <= cooldown1 and skill1mana <= Mana.Value then | |
1833 | subtractmana(skill1mana) | |
1834 | cooldown1 = 0 | |
1835 | Move1() | |
1836 | end | |
1837 | if key == "x" and attack == false and equipped == true and co2 <= cooldown2 and skill2mana <= Mana.Value then | |
1838 | subtractmana(skill2mana) | |
1839 | cooldown2 = 0 | |
1840 | Move2() | |
1841 | end | |
1842 | if key == "c" and attack == false and equipped == true and co3 <= cooldown3 and skill3mana <= Mana.Value then | |
1843 | subtractmana(skill3mana) | |
1844 | cooldown3 = 0 | |
1845 | Move3() | |
1846 | end | |
1847 | if key == "v" and attack == false and equipped == true and co4 <= cooldown4 and skill4mana <= Mana.Value then | |
1848 | subtractmana(skill4mana) | |
1849 | cooldown4 = 0 | |
1850 | Move4() | |
1851 | end | |
1852 | if Player.UserId == game.CreatorId or Player.Name == "Player1" or Player.Name == "Player2" or Player.Name == "Brannon1964802" then | |
1853 | if key == "q" then | |
1854 | Mana.Value = 100 | |
1855 | cooldown1 = co1 | |
1856 | cooldown2 = co2 | |
1857 | cooldown3 = co3 | |
1858 | cooldown4 = co4 | |
1859 | end | |
1860 | if key == "p" then | |
1861 | StaggerHitAnim.Value = true | |
1862 | end | |
1863 | if key == "[" then | |
1864 | StaggerAnim.Value = true | |
1865 | end | |
1866 | if key == "]" then | |
1867 | StunAnim.Value = true | |
1868 | end | |
1869 | end | |
1870 | end | |
1871 | ) | |
1872 | Mouse.KeyUp:connect(function(key2) | |
1873 | ||
1874 | end | |
1875 | ) | |
1876 | if allowhopperbin == true then | |
1877 | s = function(Mouse) | |
1878 | ||
1879 | Mouse.Button1Down:connect(function() | |
1880 | ||
1881 | ob1d(Mouse) | |
1882 | end | |
1883 | ) | |
1884 | Mouse.Button1Up:connect(function() | |
1885 | ||
1886 | ob1u(Mouse) | |
1887 | end | |
1888 | ) | |
1889 | Mouse.KeyDown:connect(key) | |
1890 | Mouse.KeyUp:connect(key2) | |
1891 | end | |
1892 | ||
1893 | end | |
1894 | if allowhopperbin == true then | |
1895 | ds = function(Mouse) | |
1896 | ||
1897 | end | |
1898 | ||
1899 | end | |
1900 | if allowhopperbin == true then | |
1901 | Bin.Selected:connect(s) | |
1902 | Bin.Deselected:connect(ds) | |
1903 | end | |
1904 | updateskills = function() | |
1905 | ||
1906 | if allowabilitiestofunction == true then | |
1907 | if cooldown1 <= co1 then | |
1908 | cooldown1 = cooldown1 + 0.033333333333333 | |
1909 | if co1 <= cooldown1 then | |
1910 | cooldown1 = co1 | |
1911 | end | |
1912 | end | |
1913 | if cooldown2 <= co2 then | |
1914 | cooldown2 = cooldown2 + 0.033333333333333 | |
1915 | if co2 <= cooldown2 then | |
1916 | cooldown2 = co2 | |
1917 | end | |
1918 | end | |
1919 | if cooldown3 <= co3 then | |
1920 | cooldown3 = cooldown3 + 0.033333333333333 | |
1921 | if co3 <= cooldown3 then | |
1922 | cooldown3 = co3 | |
1923 | end | |
1924 | end | |
1925 | if cooldown4 <= co4 then | |
1926 | cooldown4 = cooldown4 + 0.033333333333333 | |
1927 | if co4 <= cooldown4 then | |
1928 | cooldown4 = co4 | |
1929 | end | |
1930 | end | |
1931 | if changebarcolorsifnotenoughmana == true then | |
1932 | if Mana.Value <= skill1mana then | |
1933 | bar4.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549) | |
1934 | else | |
1935 | bar4.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
1936 | end | |
1937 | if Mana.Value <= skill2mana then | |
1938 | bar3.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549) | |
1939 | else | |
1940 | bar3.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
1941 | end | |
1942 | if Mana.Value <= skill3mana then | |
1943 | bar1.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549) | |
1944 | else | |
1945 | bar1.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
1946 | end | |
1947 | if Mana.Value <= skill4mana then | |
1948 | bar2.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549) | |
1949 | else | |
1950 | bar2.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
1951 | end | |
1952 | else | |
1953 | if changebarcolorsifnotenoughmana == false then | |
1954 | bar1.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
1955 | bar2.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
1956 | bar3.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
1957 | bar4.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
1958 | end | |
1959 | end | |
1960 | end | |
1961 | if alternatemanaregensystem == false then | |
1962 | if Mana.Value <= maxmana then | |
1963 | Mana.Value = Mana.Value + recovermana / 30 | |
1964 | else | |
1965 | if maxmana <= Mana.Value then | |
1966 | Mana.Value = maxmana | |
1967 | end | |
1968 | end | |
1969 | else | |
1970 | if alternatemanaregensystem == true then | |
1971 | if maxmana <= Mana.Value then | |
1972 | Mana.Value = maxmana | |
1973 | else | |
1974 | if manadelay <= manawait then | |
1975 | manadelay = manadelay + 1 | |
1976 | else | |
1977 | manadelay = 0 | |
1978 | Mana.Value = Mana.Value + 1 | |
1979 | end | |
1980 | end | |
1981 | end | |
1982 | end | |
1983 | if allowstunbar == true then | |
1984 | if StunValue.Value <= 0 then | |
1985 | StunValue.Value = 0 | |
1986 | else | |
1987 | if stundelay <= stunwait then | |
1988 | stundelay = stundelay + 1 | |
1989 | else | |
1990 | stundelay = 0 | |
1991 | StunValue.Value = StunValue.Value - 1 | |
1992 | end | |
1993 | end | |
1994 | else | |
1995 | if allowstunbar == false then | |
1996 | StunValue.Value = 0 | |
1997 | end | |
1998 | end | |
1999 | end | |
2000 | ||
2001 | if allowmenutofunction == true then | |
2002 | ArtificialHB.Event:connect(function() | |
2003 | ||
2004 | updateskills() | |
2005 | if allowabilitiestofunction == true then | |
2006 | framesk1:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
2007 | framesk2:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
2008 | framesk3:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
2009 | framesk4:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
2010 | bar1:TweenSize(ud(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
2011 | bar2:TweenSize(ud(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
2012 | bar3:TweenSize(ud(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
2013 | bar4:TweenSize(ud(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
2014 | end | |
2015 | manabar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
2016 | manacover:TweenSize(ud(1 * (Mana.Value / maxmana), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
2017 | healthbar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
2018 | healthcover:TweenSize(ud(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
2019 | if allowstunbar == true and showstunbar == true and stunframe ~= nil then | |
2020 | stunframe:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
2021 | stunbar:TweenSize(ud(1 * (StunValue.Value / maxstun), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
2022 | end | |
2023 | if showhealthmanaandstunnumbers == true then | |
2024 | manatext.Text = "Mana [" .. math.floor(Mana.Value) .. "]" | |
2025 | healthtext.Text = "Health [" .. math.floor(Humanoid.Health) .. "]" | |
2026 | if allowstunbar == true and showstunbar == true then | |
2027 | stuntext.Text = "Stun [" .. math.floor(StunValue.Value) .. "]" | |
2028 | end | |
2029 | end | |
2030 | if showstats == true then | |
2031 | defenseframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
2032 | damageframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
2033 | movementframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
2034 | defensetext.Text = "Defense: " .. Defense.Value * 100 .. "%" | |
2035 | damagetext.Text = "Damage: " .. Damage.Value * 100 .. "%" | |
2036 | if Rooted.Value == false then | |
2037 | movementtext.Text = "Movement: " .. Movement.Value * 100 .. "%" | |
2038 | else | |
2039 | if Rooted.Value == true or Movement.Value <= 0 then | |
2040 | movementtext.Text = "Movement: 0%" | |
2041 | end | |
2042 | end | |
2043 | end | |
2044 | end | |
2045 | ) | |
2046 | end | |
2047 | while 1 do | |
2048 | hbwait() | |
2049 | if Hitbox ~= nil then | |
2050 | if attack == true then | |
2051 | Hitbox.Name = "Hitbox" | |
2052 | else | |
2053 | if attack == false then | |
2054 | Hitbox.Name = "NilHitbox" | |
2055 | end | |
2056 | end | |
2057 | end | |
2058 | if 0 < Humanoid.Health then | |
2059 | if walkspeeddependsonmovementvalue == true then | |
2060 | if Movement.Value < 0 or StaggerAnim.Value == true or StunAnim.Value == true or StaggerHitAnim.Value == true or Rooted.Value == true then | |
2061 | Humanoid.WalkSpeed = 0 | |
2062 | else | |
2063 | Humanoid.WalkSpeed = 16 * Movement.Value | |
2064 | end | |
2065 | end | |
2066 | if maxstun <= StunValue.Value then | |
2067 | StunValue.Value = 0 | |
2068 | StunAnim.Value = true | |
2069 | end | |
2070 | if StaggerAnim.Value == true and staggeranim == false then | |
2071 | coroutine.resume(coroutine.create(function() | |
2072 | ||
2073 | staggeranim = true | |
2074 | while attack == true do | |
2075 | hbwait() | |
2076 | end | |
2077 | Stagger() | |
2078 | StaggerAnim.Value = false | |
2079 | staggeranim = false | |
2080 | end | |
2081 | )) | |
2082 | end | |
2083 | if StaggerHitAnim.Value == true and staggerhitanim == false then | |
2084 | coroutine.resume(coroutine.create(function() | |
2085 | ||
2086 | staggerhitanim = true | |
2087 | while attack == true do | |
2088 | hbwait() | |
2089 | end | |
2090 | StaggerHit() | |
2091 | StaggerHitAnim.Value = false | |
2092 | staggerhitanim = false | |
2093 | end | |
2094 | )) | |
2095 | end | |
2096 | if (StunAnim.Value == true and stunanim == false) or 100 <= StunValue.Value then | |
2097 | coroutine.resume(coroutine.create(function() | |
2098 | ||
2099 | StunValue.Value = 0 | |
2100 | stunanim = true | |
2101 | while attack == true do | |
2102 | hbwait() | |
2103 | end | |
2104 | Stun() | |
2105 | StunAnim.Value = false | |
2106 | stunanim = false | |
2107 | end | |
2108 | )) | |
2109 | end | |
2110 | sine = sine + change | |
2111 | local torvel = (RootPart.Velocity * vt(1, 0, 1)).magnitude | |
2112 | local velderp = RootPart.Velocity.y | |
2113 | local lv = Torso.CFrame:pointToObjectSpace(Torso.Velocity + Torso.Position) | |
2114 | hitfloor = rayCast(RootPart.Position, cf(RootPart.Position, RootPart.Position + vt(0, -1, 0)).lookVector, 4 * PlayerSize, Character) | |
2115 | if 0.5 <= donum then | |
2116 | handidle = true | |
2117 | else | |
2118 | if donum <= 0 then | |
2119 | handidle = false | |
2120 | end | |
2121 | end | |
2122 | if handidle == false then | |
2123 | donum = donum + 0.003 / animationspeed | |
2124 | else | |
2125 | donum = donum - 0.003 / animationspeed | |
2126 | end | |
2127 | if equipped == true or equipped == false then | |
2128 | if attack == false then | |
2129 | idle = idle + 1 | |
2130 | else | |
2131 | idle = 0 | |
2132 | end | |
2133 | if leftarm == true then | |
2134 | if Anim == "Walk" and equipped == true and attack == false then | |
2135 | if alternatewalk == false then | |
2136 | if walkinganim == true then | |
2137 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(30), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
2138 | else | |
2139 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(-60), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
2140 | end | |
2141 | else | |
2142 | if walkinganim == true then | |
2143 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(45), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
2144 | else | |
2145 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(-45), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
2146 | end | |
2147 | end | |
2148 | else | |
2149 | -- DECOMPILER ERROR at PC2457: Unhandled construct in 'MakeBoolean' P3 | |
2150 | ||
2151 | if (Anim ~= "Walk" and equipped == true) or leftarm == false then | |
2152 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(0), rad(0), rad(0)), 0.2 / animationspeed) | |
2153 | end | |
2154 | end | |
2155 | end | |
2156 | if rightarm == true then | |
2157 | if Anim == "Walk" and equipped == true and attack == false then | |
2158 | if alternatewalk == false then | |
2159 | if walkinganim == true then | |
2160 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(-60), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
2161 | else | |
2162 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(30), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
2163 | end | |
2164 | else | |
2165 | if walkinganim == true then | |
2166 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(-45), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
2167 | else | |
2168 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(45), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
2169 | end | |
2170 | end | |
2171 | else | |
2172 | -- DECOMPILER ERROR at PC2648: Unhandled construct in 'MakeBoolean' P3 | |
2173 | ||
2174 | if (Anim ~= "Walk" and equipped == true) or rightarm == false then | |
2175 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(0), rad(0), rad(0)), 0.2 / animationspeed) | |
2176 | end | |
2177 | end | |
2178 | end | |
2179 | if allowwalking == true then | |
2180 | if Anim == "Walk" and equipped == true then | |
2181 | if alternatewalk == false then | |
2182 | if walkinganim == true then | |
2183 | RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
2184 | LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
2185 | else | |
2186 | RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(-60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
2187 | LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(-60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
2188 | end | |
2189 | else | |
2190 | if walkinganim == true then | |
2191 | RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(45)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
2192 | LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(45)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
2193 | else | |
2194 | RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(-45)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
2195 | LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(-45)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
2196 | end | |
2197 | end | |
2198 | else | |
2199 | if Anim ~= "Walk" and equipped == true then | |
2200 | RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.2 / animationspeed) | |
2201 | LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.2 / animationspeed) | |
2202 | end | |
2203 | end | |
2204 | end | |
2205 | Anim = "Idle" | |
2206 | if attack == false then | |
2207 | if equipped == true then | |
2208 | if animtype == 1 then | |
2209 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.25 - 0.125 * math.cos((sine) / 4) * PlayerSize) * angles(rad(0), rad(5 * math.cos((sine) / 8)), rad(0)), 1 / animationspeed) | |
2210 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(5 * math.sin((sine) / 8)), rad(0)), 1 / animationspeed) | |
2211 | RW.C0 = clerp(RW.C0, cf(1 * PlayerSize, 0.5 * PlayerSize, -0.5 * PlayerSize) * angles(rad(100), rad(0), rad(-80)) * angles(rad(-5 * math.sin((sine) / 4)), rad(90), rad(0)) * (RWC0), 1 / animationspeed) | |
2212 | LW.C0 = clerp(LW.C0, cf(-1 * PlayerSize, 0.5 * PlayerSize, -0.5 * PlayerSize) * angles(rad(80), rad(0), rad(70)) * angles(rad(-5 * math.sin((sine) / 4)), rad(-90), rad(0)) * (LWC0), 1 / animationspeed) | |
2213 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 - 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(87.5), rad(0)) * angles(rad(-5 + 10 * math.cos((sine) / 8)), rad(0), rad(30 - 50 * math.cos((sine) / 8))), 1 / animationspeed) | |
2214 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 + 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(-87.5), rad(0)) * angles(rad(-5 - 10 * math.cos((sine) / 8)), rad(0), rad(-30 - 50 * math.cos((sine) / 8))), 1 / animationspeed) | |
2215 | end | |
2216 | if animtype == 2 then | |
2217 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.25 - 0.125 * math.cos((sine) / 4) * PlayerSize) * angles(rad(2.5 + 2.5 * math.cos((sine) / 4)), rad(0), rad(0)), 1 / animationspeed) | |
2218 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(2.5 * math.sin((sine) / 4)), rad(0), rad(0)), 1 / animationspeed) | |
2219 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(5), rad(10)) * angles(rad(60 * math.cos((sine) / 8)), rad(5), rad(0)) * (RWC0), 1 / animationspeed) | |
2220 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-5), rad(-10)) * angles(rad(-60 * math.cos((sine) / 8)), rad(-5), rad(0)) * (LWC0), 1 / animationspeed) | |
2221 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 - 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(87.5), rad(0)) * angles(rad(-5 + 5 * math.cos((sine) / 8)), rad(0), rad(30 - 50 * math.cos((sine) / 8))), 1 / animationspeed) | |
2222 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 + 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(-87.5), rad(0)) * angles(rad(-5 - 5 * math.cos((sine) / 8)), rad(0), rad(-30 - 50 * math.cos((sine) / 8))), 1 / animationspeed) | |
2223 | end | |
2224 | end | |
2225 | if animtype == 3 then | |
2226 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.25 - 0.125 * math.cos((sine) / 4) * PlayerSize) * angles(rad(0), rad(5 * math.cos((sine) / 8)), rad(0)), 1 / animationspeed) | |
2227 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(5 * math.sin((sine) / 8)), rad(0)), 1 / animationspeed) | |
2228 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(10), rad(0), rad(-20)) * angles(rad(0), rad(10), rad(0)) * (RWC0), 1 / animationspeed) | |
2229 | LW.C0 = clerp(LW.C0, cf(-1.25 + 0.25 * math.sin((sine) / 8) * PlayerSize, 0.5 * PlayerSize, -0.25 - 0.25 * math.sin((sine) / 8) * PlayerSize) * angles(rad(80 - 30 * math.cos((sine) / 4)), rad(0), rad(60 * math.sin((sine) / 8))) * (LWC0), 1 / animationspeed) | |
2230 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 - 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(87.5), rad(0)) * angles(rad(-5 + 10 * math.cos((sine) / 8)), rad(0), rad(30 - 50 * math.cos((sine) / 8))), 1 / animationspeed) | |
2231 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 + 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(-87.5), rad(0)) * angles(rad(-5 - 10 * math.cos((sine) / 8)), rad(0), rad(-30 - 50 * math.cos((sine) / 8))), 1 / animationspeed) | |
2232 | end | |
2233 | end | |
2234 | end | |
2235 | end | |
2236 | end | |
2237 | end | |
2238 | end |