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