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