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