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