View difference between Paste ID: n9gL6zBh and 196rAAmj
SHOW: | | - or go back to the newest paste.
1-
-- params : ...
1+
--https://github.com/Mokiros/roblox-FE-compatibility
2
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
3
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
4
local RealPlayer = Player
5
do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end -- params : ...
6
7
wait(0.016666666666667)
8
Player = game:GetService("Players").LocalPlayer
9
Character = Player.Character
10
PlayerGui = Player.PlayerGui
11
Backpack = Player.Backpack
12
Torso = Character.Torso
13
Head = Character.Head
14
Humanoid = Character.Humanoid
15
LeftArm = Character["Left Arm"]
16
LeftLeg = Character["Left Leg"]
17
RightArm = Character["Right Arm"]
18
RightLeg = Character["Right Leg"]
19
LS = Torso["Left Shoulder"]
20
LH = Torso["Left Hip"]
21
RS = Torso["Right Shoulder"]
22
RH = Torso["Right Hip"]
23
Face = Head.face
24
Neck = Torso.Neck
25
it = Instance.new
26
attacktype = 1
27
vt = Vector3.new
28
cf = CFrame.new
29
euler = CFrame.fromEulerAnglesXYZ
30
angles = CFrame.Angles
31
necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
32
RootCF = angles(math.rad(-90), 0, math.rad(180))
33
RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
34
LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
35
RootPart = Character.HumanoidRootPart
36
RootJoint = RootPart.RootJoint
37
attack = false
38
equipped = false
39
Mouse = Player:GetMouse()
40
local idle = 0
41
local Anim = "Idle"
42
local ShotTarget = RootPart
43
player = nil
44
ArtificialHB = Instance.new("BindableEvent", script)
45
ArtificialHB.Name = "ArtificialHB"
46
script:WaitForChild("ArtificialHB")
47
frame = 0.016666666666667
48
tf = 0
49
allowframeloss = false
50
tossremainder = false
51
lastframe = tick()
52
script.ArtificialHB:Fire()
53
game:GetService("RunService").Heartbeat:connect(function(s, p)
54
  
55
  tf = tf + s
56
  if frame <= tf then
57
    if allowframeloss then
58
      script.ArtificialHB:Fire()
59
      lastframe = tick()
60
    else
61
      for i = 1, math.floor(tf / frame) do
62
        script.ArtificialHB:Fire()
63
      end
64
      lastframe = tick()
65
    end
66
    if tossremainder then
67
      tf = 0
68
    else
69
      tf = tf - frame * math.floor(tf / frame)
70
    end
71
  end
72
end
73
)
74
hbwait = function(number)
75
  
76
  if number == 0 or number == nil then
77
    ArtificialHB.Event:wait()
78
  else
79
    for i = 0, number do
80
      ArtificialHB.Event:wait()
81
    end
82
  end
83
end
84
85
local Stats = Instance.new("Folder", Character)
86
Stats.Name = "Stats"
87
local Defense = Instance.new("NumberValue", Stats)
88
Defense.Name = "Defense"
89
Defense.Value = 0.6
90
local Movement = Instance.new("NumberValue", Stats)
91
Movement.Name = "Movement"
92
Movement.Value = 1
93
local Damage = Instance.new("NumberValue", Stats)
94
Damage.Name = "Damage"
95
Damage.Value = 1
96
local Mana = Instance.new("NumberValue", Stats)
97
Mana.Name = "Mana"
98
Mana.Value = 0
99
local Rooted = Instance.new("BoolValue", Stats)
100
Rooted.Name = "Rooted"
101
Rooted.Value = false
102
local BlockValue = Instance.new("BoolValue", Stats)
103
BlockValue.Name = "BlockValue"
104
BlockValue.Value = false
105
local StaggerHitAnim = Instance.new("BoolValue", Stats)
106
StaggerHitAnim.Name = "StaggerHitAnim"
107
StaggerHitAnim.Value = false
108
local staggerhitanim = false
109
local StaggerAnim = Instance.new("BoolValue", Stats)
110
StaggerAnim.Name = "StaggerAnim"
111
StaggerAnim.Value = false
112
local staggeranim = false
113
local StunAnim = Instance.new("BoolValue", Stats)
114
StunAnim.Name = "StunAnim"
115
StunAnim.Value = false
116
local stunanim = false
117
local StunValue = Instance.new("NumberValue", Stats)
118
StunValue.Name = "StunValue"
119
StunValue.Value = 0
120
local CanCrit = Instance.new("BoolValue", Stats)
121
CanCrit.Name = "CanCrit"
122
CanCrit.Value = true
123
local CritChance = Instance.new("NumberValue", Stats)
124
CritChance.Name = "CritChance"
125
CritChance.Value = 20
126
local CritChanceNumber = 0
127
local CanPenetrateArmor = Instance.new("BoolValue", Stats)
128
CanPenetrateArmor.Name = "CanPenetrateArmor"
129
CanPenetrateArmor.Value = false
130
local AntiTeamKill = Instance.new("BoolValue", Stats)
131
AntiTeamKill.Name = "AntiTeamKill"
132
AntiTeamKill.Value = true
133
local LastPoint = nil
134
local CustomColor = BrickColor.new("Institutional white")
135
local Colorpart1 = CustomColor.r
136
local Colorpart2 = CustomColor.g
137
local Colorpart3 = CustomColor.b
138
local InverseColor = BrickColor.new(Color3.new(1 - Colorpart1, 1 - Colorpart2, 1 - Colorpart3))
139
local idleangle = 0
140
local idlen = 0
141
local donum = 0
142
local sine = 0
143
local change = 1
144
local val = 0
145
local walkinganim = false
146
local handidle = false
147
local walk = 0
148
local someangle = 0
149
local change2 = 1
150
local stundelay = 0
151
local manadelay = 0
152
local diemodel = false
153
local animationspeed = 2
154
local robloxidleanimation = Instance.new("Animation", Torso)
155
robloxidleanimation.Name = "robloxidleanimation"
156
robloxidleanimation.AnimationId = "http://www.roblox.com/asset/?id=180435571"
157
local Animator = Humanoid:findFirstChild("Animator")
158
local Animate = Character:findFirstChild("Animate")
159
local HitPlayerSounds = {199149137, 199149186, 199149221, 199149235, 199149269, 199149297}
160
local HitArmorSounds = {199149321, 199149338, 199149367, 199149409, 199149452}
161
local HitWeaponSounds = {199148971, 199149025, 199149072, 199149109, 199149119}
162
local HitBlockSounds = {199148933, 199148947}
163
local cooldown1 = 0
164
local cooldown2 = 0
165
local cooldown3 = 0
166
local cooldown4 = 0
167
local scrn = Instance.new("ScreenGui", PlayerGui)
168
local ud = UDim2.new
169
local c3 = Color3.new
170
local skillcolorscheme = c3(1, 1, 1)
171
subtractmana = function(k)
172
  
173
  if k <= Mana.Value then
174
    Mana.Value = Mana.Value - k
175
  end
176
end
177
178
local co1 = 1
179
local co2 = 1
180
local co3 = 1
181
local co4 = 120
182
local maxmana = 100
183
local maxstun = 100
184
local recovermana = 1
185
local losestun = 1
186
local stunwait = 100
187
local manawait = 20
188
local skill1mana = 0
189
local skill2mana = 0
190
local skill3mana = 0
191
local skill4mana = 50
192
local menuupdatespeed = 0.5
193
local constantupdate = true
194
local showstats = true
195
local allowstunbar = true
196
makeframe = function(par, trans, pos, size, color, name)
197
  
198
  local frame = Instance.new("Frame")
199
  frame.Parent = par
200
  frame.BackgroundTransparency = trans
201
  frame.BorderSizePixel = 0
202
  frame.Position = pos
203
  frame.Size = size
204
  frame.BackgroundColor3 = color
205
  frame.Name = name
206
  return frame
207
end
208
209
makelabel = function(par, text, trans, stroketrans, name)
210
  
211
  local label = Instance.new("TextLabel")
212
  label.Parent = par
213
  label.BackgroundTransparency = 1
214
  label.Size = ud(1, 0, 1, 0)
215
  label.Position = ud(0, 0, 0, 0)
216
  label.TextColor3 = c3(255, 255, 255)
217
  label.TextStrokeTransparency = stroketrans
218
  label.TextTransparency = trans
219
  label.FontSize = Enum.FontSize.Size32
220
  label.Font = Enum.Font.Legacy
221
  label.BorderSizePixel = 0
222
  label.TextScaled = true
223
  label.Text = text
224
  label.Name = name
225
  return label
226
end
227
228
framesk1 = makeframe(scrn, 0.5, ud(0.23, 0, 0.93, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 1")
229
framesk2 = makeframe(scrn, 0.5, ud(0.5, 0, 0.93, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 2")
230
framesk3 = makeframe(scrn, 0.5, ud(0.5, 0, 0.86, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 3")
231
framesk4 = makeframe(scrn, 0.5, ud(0.23, 0, 0.86, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 4")
232
bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 1")
233
bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 2")
234
bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 3")
235
bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 4")
236
text1 = makelabel(framesk1, "[C] Ability 3", 1, 1, "Text 1")
237
text2 = makelabel(framesk2, "[V] Ability 4", 1, 1, "Text 2")
238
text3 = makelabel(framesk3, "[X] Ability 2", 1, 1, "Text 3")
239
text4 = makelabel(framesk4, "[Z] Ability 1", 1, 1, "Text 4")
240
manabar = makeframe(scrn, 0.5, ud(0.23, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Bar")
241
manacover = makeframe(manabar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Cover")
242
manatext = makelabel(manabar, "Mana", 1, 1, "Mana Text")
243
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")
244
healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 0.19607843137255, 0.19607843137255), "Health Cover")
245
healthtext = makelabel(healthbar, "Health", 1, 1, "Health Text")
246
if allowstunbar == true then
247
  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")
248
  stunbar = makeframe(stunframe, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 1, 0.19607843137255), "Stun Bar")
249
  stuntext = makelabel(stunframe, "Stun", 1, 1, "Stun Text")
250
end
251
if showstats == true then
252
  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")
253
  damageframe = makeframe(scrn, 0.5, ud(0.322, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(1, 0.3921568627451, 0.3921568627451), "Damage Frame")
254
  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")
255
  defensetext = makelabel(defenseframe, "Defense: " .. Defense.Value, 1, 1, "Defense Text")
256
  damagetext = makelabel(damageframe, "Damage: " .. Damage.Value, 1, 1, "Damage Text")
257
  movementtext = makelabel(movementframe, "Movement: " .. Movement.Value, 1, 1, "Movement Text")
258
end
259
NoOutline = function(Part)
260
  
261
  Part.TopSurface = 10
262
end
263
264
local weldBetween = function(a, b)
265
  
266
  local weldd = Instance.new("ManualWeld")
267
  weldd.Part0 = a
268
  weldd.Part1 = b
269
  weldd.C0 = CFrame.new()
270
  weldd.C1 = b.CFrame:inverse() * a.CFrame
271
  weldd.Parent = a
272
  return weldd
273
end
274
275
nooutline = function(part)
276
  
277
  part.TopSurface = 10
278
end
279
280
part = function(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
281
  
282
  local fp = it("Part")
283
  fp.formFactor = formfactor
284
  fp.Parent = parent
285
  fp.Reflectance = reflectance
286
  fp.Transparency = transparency
287
  fp.CanCollide = false
288
  fp.Locked = true
289
  fp.BrickColor = BrickColor.new(tostring(brickcolor))
290
  fp.Name = name
291
  fp.Size = size
292
  fp.Position = Character.Torso.Position
293
  nooutline(fp)
294
  fp.Material = material
295
  fp:BreakJoints()
296
  return fp
297
end
298
299
mesh = function(Mesh, part, meshtype, meshid, offset, scale)
300
  
301
  local mesh = it(Mesh)
302
  mesh.Parent = part
303
  if Mesh == "SpecialMesh" then
304
    mesh.MeshType = meshtype
305
    mesh.MeshId = meshid
306
  end
307
  mesh.Offset = offset
308
  mesh.Scale = scale
309
  return mesh
310
end
311
312
weld = function(parent, part0, part1, c0, c1)
313
  
314
  local weld = it("Motor")
315
  weld.Parent = parent
316
  weld.Part0 = part0
317
  weld.Part1 = part1
318
  weld.C0 = c0
319
  weld.C1 = c1
320
  return weld
321
end
322
323
m = Instance.new("Model", Character)
324
m.Name = "Dread Scythe"
325
WeapHandle = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 1, "Bright red", "WeapHandle", Vector3.new(0.200000003, 0.200000003, 0.200000003))
326
WeapHandleweld = weld(m, Character["Right Arm"], WeapHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00391387939, 0.0059928894, 0.0461468697, 1, 2.39325693e-09, -5.96046448e-08, -5.96046448e-08, -2.88393409e-07, -1, -2.39327425e-09, 0.999999881, -2.88393437e-07))
327
Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0.5, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
328
Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-7.62939453e-06, -5.63998795, 0.500014782, 1, 0, 9.21537965e-17, 0, 1, 0, 9.21537965e-17, 0, 1))
329
mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 4, 5))
330
Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0.5, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
331
Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -5.68453789, 0.0592384338, 1, 0, 9.21537965e-17, 0, 0.984807909, -0.173647925, -8.8817842e-16, 0.17364791, 0.984807849))
332
mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.899999976, 3.5, 6))
333
Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0.5, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
334
Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -5.66816902, -0.464752197, 1, 0, 9.21537965e-17, 0, 0.939692736, -0.342019945, 0, 0.342019945, 0.939692736))
335
mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.800000012, 3, 7))
336
Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0.5, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
337
Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(7.62939453e-06, -5.57789803, -0.909360886, 1, 0, 9.21537965e-17, -3.55271368e-15, 0.866025686, -0.499999642, 0, 0.499999583, 0.866025567))
338
mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.699999988, 2.5, 8))
339
Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0.5, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
340
Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -5.42755699, -1.35415268, 1, 0, 9.21537965e-17, 3.55271368e-15, 0.766044676, -0.642787457, 0, 0.642787397, 0.766044676))
341
mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 2, 9))
342
Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0.5, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
343
Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(7.62939453e-06, -5.16989326, -1.74185753, 1, 0, 9.21537965e-17, 0, 0.642788291, -0.766043961, 0, 0.766043901, 0.642788291))
344
mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.5, 1, 10))
345
Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, CustomColor, "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
346
Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.64998817, 0, 3.81469727e-06, -5.96046448e-08, -1, 0, 1, -5.96046448e-08, -2.7533531e-14, 2.76256848e-14, 0, 1))
347
mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(35, 2, 2))
348
Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
349
Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(7.62939453e-06, 0.799987793, 9.53674316e-06, 0.965925813, -1.91820035e-07, 0.258819073, 1.98721096e-07, 1, -5.01501063e-10, -0.258819073, 5.19172261e-08, 0.965925872))
350
mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.400000006, 0.400000006, 0.400000006))
351
Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
352
Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(7.62939453e-06, 0.799987793, 1.21593475e-05, 1, 0, 9.21537965e-17, 0, 1, 0, 9.21537965e-17, 0, 1))
353
mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.400000006, 0.400000006, 0.400000006))
354
Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
355
Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.52587891e-05, 0.799987793, 7.62939453e-06, 0.866025567, -6.17053502e-08, 0.499999762, -3.27854082e-08, 1, 1.80196793e-07, -0.499999762, -1.72447727e-07, 0.866025567))
356
mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.400000006, 0.400000006, 0.400000006))
357
Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
358
Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.52587891e-05, 0.799987793, 0, 0.707107186, -3.35478688e-07, 0.707106411, 1.19350247e-07, 1, 3.55088389e-07, -0.707106352, -1.66692232e-07, 0.707107186))
359
mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.400000006, 0.400000006, 0.400000006))
360
Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
361
Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.52587891e-05, 0.799987793, 0, 0.50000006, -2.05052544e-07, 0.866025329, -1.86775395e-09, 1, 2.37852646e-07, -0.866025388, -1.20543859e-07, 0.50000006))
362
mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.400000006, 0.400000006, 0.400000006))
363
Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
364
Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.33514404e-05, 0.799987793, -7.62939453e-06, 0.258819103, -3.75949867e-07, 0.965925813, 6.00402714e-08, 1, 3.73124209e-07, -0.965925872, -3.85772232e-08, 0.258819103))
365
mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.400000006, 0.400000006, 0.400000006))
366
Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
367
Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.52587891e-05, -5.19998932, 0, 0.707107306, -2.46071693e-07, 0.707106352, 1.91452699e-07, 1, 1.56545198e-07, -0.707106292, 2.46831746e-08, 0.707107246))
368
mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.800000012, 0.100000001, 0.800000012))
369
Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
370
Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.14440918e-05, -5.19998932, 0, 0.500000119, -3.39162966e-07, 0.866025269, -1.26760824e-11, 1, 3.91639048e-07, -0.866025269, -1.95830538e-07, 0.500000119))
371
mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.800000012, 0.100000001, 0.800000012))
372
Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
373
Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.14440918e-05, -5.19998932, -7.62939453e-06, 0.258819193, -3.31246383e-07, 0.965925813, 1.80866749e-07, 1, 2.94468379e-07, -0.965925813, 9.84897994e-08, 0.258819193))
374
mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.800000012, 0.100000001, 0.800000012))
375
Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
376
Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(8.10623169e-06, -5.19998932, -7.62939453e-06, 6.87039333e-14, -2.08616285e-07, 1, 0, 1, 2.08616285e-07, -1, 0, 6.85196257e-14))
377
mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.800000012, 0.100000001, 0.800000012))
378
Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
379
Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.81469727e-06, -5.19998932, -7.62939453e-06, -0.258818895, -8.43259329e-08, 0.965925932, -3.34573258e-10, 1, 8.72109922e-08, -0.965925872, 2.22486705e-08, -0.258818895))
380
mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.800000012, 0.100000001, 0.800000012))
381
Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
382
Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(7.62939453e-06, -5.19998932, -1.52587891e-05, -0.49999997, -4.13668801e-07, 0.866025388, -7.60898899e-10, 1, 4.77224319e-07, -0.866025448, 2.37953202e-07, -0.5))
383
mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.800000012, 0.100000001, 0.800000012))
384
Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
385
Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.90734863e-06, -6.09999275, -0.00080871582, 0.000318914856, -3.57643188e-07, 1, 0.000132471323, 1, 3.15396107e-07, -1, 0.000132471221, 0.000318914885))
386
mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 0.600000024, 0.600000024))
387
Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
388
Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.90734863e-06, -6.09999275, -0.00080871582, -0.258511096, -4.0474302e-07, 0.966008306, 0.000127881329, 1, 3.46409943e-05, -0.966008306, 0.000132489498, -0.258511096))
389
mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 0.600000024, 0.600000024))
390
Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
391
Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.81469727e-06, -6.09999275, -0.00080871582, -0.499723703, -2.1256561e-07, 0.86618495, 0.000114720082, 1, 6.64302715e-05, -0.86618495, 0.00013256559, -0.499723703))
392
mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 0.600000024, 0.600000024))
393
Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
394
Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -6.09999275, -0.00080871582, -0.706881404, -4.00275098e-07, 0.707332134, 9.33918636e-05, 1, 9.38982412e-05, -0.707332134, 0.000132433983, -0.706881344))
395
mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 0.600000024, 0.600000024))
396
Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
397
Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -6.09999275, -0.00080871582, -0.865866065, -1.07567807e-07, 0.50027591, 6.62323e-05, 1, 0.000114848364, -0.50027591, 0.000132577727, -0.865866065))
398
mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 0.600000024, 0.600000024))
399
Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
400
Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(7.62939453e-06, -6.09999275, -0.00080871582, -0.96584332, -1.66173422e-07, 0.259127051, 3.42318417e-05, 1, 0.0001282335, -0.259127051, 0.000132723857, -0.96584332))
401
mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 0.600000024, 0.600000024))
402
Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
403
Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(7.62939453e-06, -6.09999275, -0.00080871582, -0.96584332, -1.66173422e-07, 0.259127051, 3.42318417e-05, 1, 0.0001282335, -0.259127051, 0.000132723857, -0.96584332))
404
mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(1.20000005, 0.100000001, 0.100000001))
405
Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
406
Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -6.09999275, -0.00080871582, -0.865866065, -1.07567807e-07, 0.50027591, 6.62323e-05, 1, 0.000114848364, -0.50027591, 0.000132577727, -0.865866065))
407
mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(1.20000005, 0.100000001, 0.100000001))
408
Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
409
Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.81469727e-06, -6.09999275, -0.00080871582, -0.499723762, -1.9766442e-07, 0.866184831, 0.000114690098, 1, 6.63957981e-05, -0.86618489, 0.0001325224, -0.499723792))
410
mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(1.20000005, 0.100000001, 0.100000001))
411
Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
412
Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.90734863e-06, -6.09999275, -0.00080871582, -0.258511215, -4.0474302e-07, 0.966008306, 0.000127911233, 1, 3.46490124e-05, -0.966008246, 0.000132520465, -0.258511215))
413
mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(1.20000005, 0.100000001, 0.100000001))
414
Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
415
Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.09944153e-06, -6.09999275, -0.00080871582, 0.000318736042, -5.51401911e-07, 1, 0.000132471323, 1, 5.09178562e-07, -1, 0.000132471163, 0.0003187361))
416
mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(1.20000005, 0.100000001, 0.100000001))
417
Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
418
Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.90734863e-06, -6.09999275, -0.00080871582, 0.259127021, -3.31240955e-07, 0.96584332, 0.000127880165, 1, -3.39661383e-05, -0.96584332, 0.000132313755, 0.259127021))
419
mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(1.20000005, 0.100000001, 0.100000001))
420
Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
421
Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.81469727e-06, -6.09999275, -0.00080871582, 0.500276268, -4.13639214e-07, 0.865865827, 0.000114550305, 1, -6.57066776e-05, -0.865865827, 0.000132056681, 0.500276268))
422
mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(1.20000005, 0.100000001, 0.100000001))
423
Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
424
Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -6.09999275, -0.000801086426, 0.707332194, -4.24834184e-07, 0.706881404, 9.36561628e-05, 1, -9.3114897e-05, -0.706881344, 0.00013206694, 0.707332134))
425
mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(1.20000005, 0.100000001, 0.100000001))
426
Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
427
Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -6.09999275, -0.000801086426, 0.866184711, -2.2554805e-07, 0.499723911, 6.6073655e-05, 1, -0.000114075876, -0.499723971, 0.00013182938, 0.866184831))
428
mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(1.20000005, 0.100000001, 0.100000001))
429
Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
430
Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -6.09999275, -0.000806808472, 0.966008365, -1.76834959e-07, 0.258511037, 3.43436259e-05, 1, -0.000127651787, -0.258511007, 0.000132190893, 0.966008306))
431
mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(1.20000005, 0.100000001, 0.100000001))
432
Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
433
Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -6.09999275, -0.000806808472, 0.99999994, -8.93150442e-08, -0.00031873578, 4.71724384e-08, 1, -0.000132218003, 0.00031873578, 0.00013221796, 0.99999994))
434
mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(1.20000005, 0.100000001, 0.100000001))
435
Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
436
Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -6.09999275, -0.00080871582, -0.706881404, -4.00275098e-07, 0.707332134, 9.33918636e-05, 1, 9.38982412e-05, -0.707332134, 0.000132433983, -0.706881344))
437
mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(1.20000005, 0.100000001, 0.100000001))
438
Hitbox = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "Hitbox", Vector3.new(0.2, 0.2, 0.2))
439
Hitboxweld = weld(m, WeapHandle, Hitbox, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.14999771, 0, 1.80000567, -5.96046448e-08, -1, 0, 1, -5.96046448e-08, -2.7533531e-14, 2.76256848e-14, 0, 1))
440
mesh("SpecialMesh", Hitbox, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
441
WeapHandleweld.Part0 = Torso
442
WeapHandleweld.C0 = cf(2.5, 1.5, 0.5) * angles(math.rad(180), math.rad(90), math.rad(0)) * angles(math.rad(30), math.rad(0), math.rad(0))
443
Effects = Instance.new("Folder", m)
444
Effects.Name = "Effects"
445
Humanoid.Died:connect(function()
446
  
447
  attack = true
448
  for _,v in pairs(Character:children()) do
449
    if v:IsA("Model") then
450
      m:Destroy()
451
    end
452
  end
453
end
454
)
455
for i,v in pairs(Character:GetChildren()) do
456
  if v:IsA("Model") then
457
    for _,c in pairs(v:GetChildren()) do
458
      if c:IsA("Part") then
459
        c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
460
      end
461
    end
462
  end
463
end
464
print("Dread Scythe loaded.")
465
so = function(id, par, vol, pit)
466
  
467
  coroutine.resume(coroutine.create(function()
468
    
469
    local sou = Instance.new("Sound", par or workspace)
470
    sou.Volume = vol
471
    sou.Pitch = pit or 1
472
    sou.SoundId = id
473
    hbwait()
474
    sou:play()
475
    game:GetService("Debris"):AddItem(sou, 6)
476
  end
477
))
478
end
479
480
function clerp(a,b,t) 
481
local qa = {QuaternionFromCFrame(a)}
482
local qb = {QuaternionFromCFrame(b)} 
483
local ax, ay, az = a.x, a.y, a.z 
484
local bx, by, bz = b.x, b.y, b.z
485
local _t = 1-t
486
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
487
end 
488
 
489
function QuaternionFromCFrame(cf) 
490
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
491
local trace = m00 + m11 + m22 
492
if trace > 0 then 
493
local s = math.sqrt(1 + trace) 
494
local recip = 0.5/s 
495
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
496
else 
497
local i = 0 
498
if m11 > m00 then
499
i = 1
500
end
501
if m22 > (i == 0 and m00 or m11) then 
502
i = 2 
503
end 
504
if i == 0 then 
505
local s = math.sqrt(m00-m11-m22+1) 
506
local recip = 0.5/s 
507
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
508
elseif i == 1 then 
509
local s = math.sqrt(m11-m22-m00+1) 
510
local recip = 0.5/s 
511
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
512
elseif i == 2 then 
513
local s = math.sqrt(m22-m00-m11+1) 
514
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
515
end 
516
end 
517
end
518
 
519
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
520
local xs, ys, zs = x + x, y + y, z + z 
521
local wx, wy, wz = w*xs, w*ys, w*zs 
522
local xx = x*xs 
523
local xy = x*ys 
524
local xz = x*zs 
525
local yy = y*ys 
526
local yz = y*zs 
527
local zz = z*zs 
528
return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) 
529
end
530
 
531
function QuaternionSlerp(a, b, t) 
532
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
533
local startInterp, finishInterp; 
534
if cosTheta >= 0.0001 then 
535
if (1 - cosTheta) > 0.0001 then 
536
local theta = math.acos(cosTheta) 
537
local invSinTheta = 1/math.sin(theta) 
538
startInterp = math.sin((1-t)*theta)*invSinTheta 
539
finishInterp = math.sin(t*theta)*invSinTheta  
540
else 
541
startInterp = 1-t 
542
finishInterp = t 
543
end 
544
else 
545
if (1+cosTheta) > 0.0001 then 
546
local theta = math.acos(-cosTheta) 
547
local invSinTheta = 1/math.sin(theta) 
548
startInterp = math.sin((t-1)*theta)*invSinTheta 
549
finishInterp = math.sin(t*theta)*invSinTheta 
550
else 
551
startInterp = t-1 
552
finishInterp = t 
553
end 
554
end 
555
return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp 
556
end
557
558
rayCast = function(Pos, Dir, Max, Ignore)
559
  
560
  return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
561
end
562
563
DamageStatLabel = function(cframe, text, color)
564
  
565
  local c = part(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", vt(0, 0, 0))
566
  c.CFrame = cf(cframe.p + vt(0, 1.5, 0))
567
  game:GetService("Debris"):AddItem(c, 5)
568
  Instance.new("BodyGyro", c)
569
  local f = Instance.new("BodyPosition", c)
570
  f.P = 2000
571
  f.D = 100
572
  f.maxForce = vt(math.huge, math.huge, math.huge)
573
  f.position = c.Position + vt(math.random(-1, 1), 6, math.random(-1, 1))
574
  game:GetService("Debris"):AddItem(c, 5)
575
  local bg = Instance.new("BillboardGui", c)
576
  bg.Adornee = c
577
  bg.Size = UDim2.new(2.5, 0, 2.5, 0)
578
  bg.StudsOffset = vt(-2, 2, 0)
579
  bg.AlwaysOnTop = false
580
  local tl = Instance.new("TextLabel", bg)
581
  tl.BackgroundTransparency = 1
582
  tl.Size = UDim2.new(2.5, 0, 2.5, 0)
583
  tl.Text = text
584
  tl.Font = Enum.Font.SourceSans
585
  tl.FontSize = Enum.FontSize.Size42
586
  tl.TextColor3 = color
587
  tl.TextScaled = false
588
  tl.TextStrokeTransparency = 0
589
  tl.TextScaled = true
590
  tl.TextWrapped = true
591
  f.Parent = c
592
  coroutine.resume(coroutine.create(function(Part, BodyPosition, TextLabel)
593
    
594
    wait(0.25)
595
    for i = 1, 5 do
596
      wait()
597
      BodyPosition.position = Part.Position - vt(0, 0.5, 0)
598
    end
599
    wait(1.25)
600
    for i = 1, 5 do
601
      wait()
602
      TextLabel.TextTransparency = TextLabel.TextTransparency + 0.2
603
      TextLabel.TextStrokeTransparency = TextLabel.TextStrokeTransparency + 0.2
604
      BodyPosition.position = Part.Position + vt(0, 0.5, 0)
605
    end
606
    Part.Parent = nil
607
  end
608
), c, f, tl)
609
end
610
611
IncreaseStat = function(Location, Stat, Amount, Duration, ShowTheStat)
612
  
613
  -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1
614
615
  -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1
616
617
  if Location:FindFirstChild("Stats") ~= nil and Location.Stats:FindFirstChild("BlockValue") ~= nil and Location.Stats:FindFirstChild("BlockValue").Value ~= true and Location.Stats[Stat] ~= nil then
618
    Location.Stats[Stat].Value = Location.Stats[Stat].Value + Amount
619
    if ShowTheStat == true then
620
      if Stat == "Defense" then
621
        DamageStatLabel(Location.Head.CFrame, "+Defense", c3(1, 1, 1))
622
      else
623
        if Stat == "Damage" then
624
          DamageStatLabel(Location.Head.CFrame, "+Damage", c3(1, 1, 1))
625
        else
626
          if Stat == "Movement" then
627
            DamageStatLabel(Location.Head.CFrame, "+Movement", c3(1, 1, 1))
628
          end
629
        end
630
      end
631
    end
632
    coroutine.resume(coroutine.create(function(CurrentDecrease)
633
    
634
    wait(Duration)
635
    CurrentDecrease.Value = CurrentDecrease.Value - Amount
636
  end
637
), Location.Stats[Stat])
638
  end
639
  DamageStatLabel(Location.Head.CFrame, "Blocked!", Color3.new(0, 0.3921568627451, 1))
640
end
641
642
DecreaseStat = function(Location, Stat, Amount, Duration, ShowTheStat)
643
  
644
  -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1
645
646
  -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1
647
648
  if Location:FindFirstChild("Stats") ~= nil and Location.Stats:FindFirstChild("BlockValue") ~= nil and Location.Stats:FindFirstChild("BlockValue").Value ~= true and Location.Stats[Stat] ~= nil then
649
    Location.Stats[Stat].Value = Location.Stats[Stat].Value - Amount
650
    if ShowTheStat == true then
651
      if Stat == "Defense" then
652
        DamageStatLabel(Location.Head.CFrame, "-Defense", c3(1, 1, 1))
653
      else
654
        if Stat == "Damage" then
655
          DamageStatLabel(Location.Head.CFrame, "-Damage", c3(1, 1, 1))
656
        else
657
          if Stat == "Movement" then
658
            DamageStatLabel(Location.Head.CFrame, "-Movement", c3(1, 1, 1))
659
          end
660
        end
661
      end
662
    end
663
    coroutine.resume(coroutine.create(function(CurrentDecrease)
664
    
665
    wait(Duration)
666
    CurrentDecrease.Value = CurrentDecrease.Value + Amount
667
  end
668
), Location.Stats[Stat])
669
  end
670
  DamageStatLabel(Location.Head.CFrame, "Blocked!", Color3.new(0, 0.3921568627451, 1))
671
end
672
673
GetDistance = function(Part1, Part2, magnitude)
674
  
675
  local target = Part1.Position - Part2.Position
676
  local mag = target.magnitude
677
  if mag <= magnitude then
678
    return true
679
  else
680
    return false
681
  end
682
end
683
684
Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, DecreaseTheStat, DecreaseAmount, DecreaseDuration, ShowDecreasedStat)
685
  
686
  if hit.Parent == nil then
687
    return 
688
  end
689
  h = hit.Parent:FindFirstChild("Humanoid")
690
  for _,v in pairs(hit.Parent:children()) do
691
    if v:IsA("Humanoid") then
692
      h = v
693
    end
694
  end
695
  if hit.Name == "Hitbox" and ranged ~= true and hit.Parent ~= m then
696
    StaggerHitAnim.Value = true
697
    so("http://roblox.com/asset/?id=" .. HitWeaponSounds[math.random(1, #HitWeaponSounds)], hit, 1, 1)
698
    return 
699
  end
700
  if AntiTeamKill.Value == true then
701
    if game.Players:FindFirstChild(hit.Parent.Name) ~= nil then
702
      opponent = game.Players:FindFirstChild(hit.Parent.Name)
703
    end
704
    if opponent ~= nil and opponent.TeamColor == Player.TeamColor then
705
      return 
706
    end
707
  end
708
  if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
709
    h = hit.Parent.Parent:FindFirstChild("Humanoid")
710
  end
711
  if hit.Parent.className == "Hat" then
712
    hit = hit.Parent.Parent:findFirstChild("Head")
713
  end
714
  if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
715
    if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
716
      return 
717
    end
718
    if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent:FindFirstChild("Humanoid").Health <= 0 then
719
      return 
720
    end
721
    if hit.Parent:findFirstChild("Stats") ~= nil and hit.Parent.Stats:findFirstChild("StunValue") ~= nil then
722
      hit.Parent.Stats:findFirstChild("StunValue").Value = hit.Parent.Stats:findFirstChild("StunValue").Value + incstun
723
    end
724
    if hit.Parent:FindFirstChild("Stats") ~= nil and hit.Parent.Stats:findFirstChild("StaggerAnim") ~= nil and stagger == true then
725
      hit.Parent.Stats:findFirstChild("StaggerAnim").Value = true
726
    end
727
    if hit.Parent:findFirstChild("Stats") ~= nil and hit.Parent.Stats:findFirstChild("BlockValue") ~= nil and hit.Parent.Stats:findFirstChild("BlockValue").Value == true then
728
      DamageStatLabel(hit.Parent.Head.CFrame, "Blocked!", Color3.new(0, 0.3921568627451, 1))
729
      so("http://roblox.com/asset/?id=" .. HitBlockSounds[math.random(1, #HitBlockSounds)], hit, 1, 1)
730
      if ranged ~= true then
731
        hit.Parent.Stats:findFirstChild("BlockValue").Value = false
732
        StaggerAnim.Value = true
733
      end
734
      return 
735
    end
736
    if DecreaseTheStat ~= nil and hit.Parent:FindFirstChild("Stats") ~= nil then
737
      if DecreaseTheStat == "Defense" then
738
        DecreaseStat(hit.Parent, "Defense", DecreaseAmount, DecreaseDuration, ShowDecreasedStat)
739
      else
740
        if DecreaseTheStat == "Damage" then
741
          DecreaseStat(hit.Parent, "Damage", DecreaseAmount, DecreaseDuration, ShowDecreasedStat)
742
        else
743
          if DecreaseTheStat == "Movement" then
744
            DecreaseStat(hit.Parent, "Movement", DecreaseAmount, DecreaseDuration, ShowDecreasedStat)
745
          end
746
        end
747
      end
748
    end
749
    local D = math.random(minim, maxim) * Damage.Value
750
    if hit.Parent:FindFirstChild("Stats") ~= nil then
751
      if hit.Parent.Stats:FindFirstChild("Defense") then
752
        if CanPenetrateArmor.Value == true then
753
          D = D / hit.Parent.Stats:FindFirstChild("Defense").Value
754
          -- DECOMPILER ERROR at PC337: Unhandled construct in 'MakeBoolean' P1
755
756
          if hit.Parent.Stats:FindFirstChild("Defense") ~= nil or CanCrit.Value == true then
757
            CritChanceNumber = math.random(1, CritChance.Value)
758
            if CritChanceNumber == CritChance.Value then
759
              D = D * 2
760
            end
761
          end
762
          D = math.floor(D)
763
          h.Health = h.Health - D
764
          if D <= 3 and staggerhit == true then
765
            if ranged ~= true then
766
              StaggerHitAnim.Value = true
767
            end
768
            if ranged ~= true then
769
              so("http://roblox.com/asset/?id=" .. HitArmorSounds[math.random(1, #HitArmorSounds)], hit, 1, 1)
770
            end
771
          else
772
            if D > 3 and ranged ~= true then
773
              so("http://roblox.com/asset/?id=" .. HitPlayerSounds[math.random(1, #HitPlayerSounds)], hit, 1, 1)
774
            end
775
          end
776
          if D > 2 and D < 20 then
777
            if CanCrit.Value == true and CritChanceNumber == CritChance.Value then
778
              DamageStatLabel(hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254902, 0, 0))
779
              so("http://www.roblox.com/asset/?id=296102734", hit, 1, 1)
780
            else
781
              DamageStatLabel(hit.Parent.Head.CFrame, D, Color3.new(1, 0.86274509803922, 0))
782
            end
783
          else
784
            if D >= 20 then
785
              if CanCrit.Value == true and CritChanceNumber == CritChance.Value then
786
                DamageStatLabel(hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254902, 0, 0))
787
                so("http://www.roblox.com/asset/?id=296102734", hit, 1, 1)
788
              else
789
                DamageStatLabel(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)), Color3.new(1, 0, 0))
790
              end
791
            else
792
              if D <= 2 then
793
                if CanCrit.Value == true and CritChanceNumber == CritChance.Value then
794
                  DamageStatLabel(hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254902, 0, 0))
795
                  so("http://www.roblox.com/asset/?id=296102734", hit, 1, 1)
796
                else
797
                  DamageStatLabel(hit.Parent.Head.CFrame, D, Color3.new(0.88235294117647, 0.88235294117647, 0.88235294117647))
798
                end
799
              end
800
            end
801
          end
802
          if Type == "Normal" then
803
            vp = Instance.new("BodyVelocity")
804
            vp.P = 500
805
            vp.maxForce = vt(math.huge, 0, math.huge)
806
            if KnockbackType == 1 then
807
              vp.Velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
808
            else
809
              if KnockbackType == 2 then
810
                vp.Velocity = Property.CFrame.lookVector * knockback
811
              end
812
            end
813
            if knockback > 0 then
814
              vp.Parent = hit.Parent.Torso
815
            end
816
            game:GetService("Debris"):AddItem(vp, 0.5)
817
          else
818
            if Type == "OrbitalStrike1" then
819
              orbitstrikevelocity = Instance.new("BodyVelocity")
820
              orbitstrikevelocity.P = 500
821
              orbitstrikevelocity.maxForce = vt(math.huge, 0, math.huge)
822
              orbitstrikevelocity.Velocity = Property.Position * knockback - hit.Position
823
              if knockback > 0 then
824
                orbitstrikevelocity.Parent = hit.Parent.Torso
825
              end
826
              game:GetService("Debris"):AddItem(orbitstrikevelocity, 0.5)
827
            else
828
              if Type == "OrbitalStrike2" then
829
                orbitstrikevelocity = Instance.new("BodyVelocity")
830
                orbitstrikevelocity.P = 500
831
                orbitstrikevelocity.maxForce = vt(math.huge, 0, math.huge)
832
                orbitstrikevelocity.Velocity = hit.Position * knockback - Property.Position
833
                if knockback > 0 then
834
                  orbitstrikevelocity.Parent = hit.Parent.Torso
835
                end
836
                game:GetService("Debris"):AddItem(orbitstrikevelocity, 0.5)
837
              end
838
            end
839
          end
840
          debounce = Instance.new("BoolValue")
841
          debounce.Name = "DebounceHit"
842
          debounce.Parent = hit.Parent
843
          debounce.Value = true
844
          game:GetService("Debris"):AddItem(debounce, Delay)
845
          c = Instance.new("ObjectValue")
846
          c.Name = "creator"
847
          c.Value = Player
848
          c.Parent = h
849
          game:GetService("Debris"):AddItem(c, 0.5)
850
        end
851
      end
852
    end
853
  end
854
end
855
856
MagniDamage = function(Part, magni, mindam, maxdam, knock, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, MagicDecreaseTheStat, MagicDecreaseAmount, MagicDecreaseDuration, MagicShowDecreasedStat)
857
  
858
  for _,c in pairs(workspace:children()) do
859
    local hum = (c:FindFirstChild("Humanoid"))
860
    local head = nil
861
    if hum ~= nil then
862
      head = c:FindFirstChild("Torso")
863
      if head ~= nil then
864
        local targ = head.Position - Part.Position
865
        local mag = targ.magnitude
866
        if mag <= magni and c.Name ~= Player.Name then
867
          Damagefunc(head, mindam, maxdam, knock, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, MagicDecreaseTheStat, MagicDecreaseAmount, MagicDecreaseDuration, MagicShowDecreasedStat)
868
        end
869
      end
870
      do
871
        for _,d in pairs(c:children()) do
872
          if d.ClassName == "Model" and ranged ~= true then
873
            head = d:FindFirstChild("Hitbox")
874
            if head ~= nil then
875
              local targ = head.Position - Part.Position
876
              local mag = targ.magnitude
877
              if mag <= magni and c.Name ~= Player.Name then
878
                local hitrefpart = part(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", vt())
879
                hitrefpart.Anchored = true
880
                hitrefpart.CFrame = cf(head.Position)
881
                so("http://roblox.com/asset/?id=" .. HitWeaponSounds[math.random(1, #HitWeaponSounds)], hitrefpart, 1, 1)
882
                StaggerHitAnim.Value = true
883
              end
884
            end
885
          end
886
        end
887
        do
888
          -- DECOMPILER ERROR at PC109: LeaveBlock: unexpected jumping out DO_STMT
889
890
          -- DECOMPILER ERROR at PC109: LeaveBlock: unexpected jumping out IF_THEN_STMT
891
892
          -- DECOMPILER ERROR at PC109: LeaveBlock: unexpected jumping out IF_STMT
893
894
        end
895
      end
896
    end
897
  end
898
end
899
900
Lightning = function(p0, p1, tym, ofs, brickcolor, th, tra, last)
901
  
902
  local magz = p0 - p1.magnitude
903
  local curpos = p0
904
  local trz = {-ofs, ofs}
905
  for i = 1, tym do
906
    local li = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(th, th, magz / tym))
907
    do
908
      li.Anchored = true
909
      local ofz = vt(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
910
      local trolpos = cf(curpos, p1) * cf(0, 0, magz / tym).p + ofz
911
      if tym == i then
912
        local magz2 = curpos - p1.magnitude
913
        li.Size = vt(th, th, magz2)
914
        li.CFrame = cf(curpos, p1) * cf(0, 0, -magz2 / 2)
915
      else
916
        do
917
          do
918
            li.CFrame = cf(curpos, trolpos) * cf(0, 0, magz / tym / 2)
919
            curpos = li.CFrame * cf(0, 0, magz / tym / 2).p
920
            game.Debris:AddItem(li, last)
921
            coroutine.resume(coroutine.create(function()
922
    
923
    while li.Transparency ~= 1 do
924
      for i = 0, 1, last do
925
        hbwait()
926
        li.Transparency = li.Transparency + 0.1 / last
927
      end
928
    end
929
  end
930
))
931
          end
932
          -- DECOMPILER ERROR at PC118: LeaveBlock: unexpected jumping out IF_ELSE_STMT
933
934
          -- DECOMPILER ERROR at PC118: LeaveBlock: unexpected jumping out IF_STMT
935
936
          -- DECOMPILER ERROR at PC118: LeaveBlock: unexpected jumping out DO_STMT
937
938
        end
939
      end
940
    end
941
  end
942
end
943
944
MagicRing = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
945
  
946
  local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
947
  prt.Anchored = true
948
  prt.CFrame = cframe
949
  local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
950
  game:GetService("Debris"):AddItem(prt, 10)
951
  coroutine.resume(coroutine.create(function(Part, Mesh)
952
    
953
    for i = 0, 1, delay do
954
      hbwait()
955
      Part.CFrame = Part.CFrame
956
      Part.Transparency = i
957
      Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
958
    end
959
    Part.Parent = nil
960
  end
961
), prt, msh)
962
end
963
964
MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
965
  
966
  local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
967
  prt.Anchored = true
968
  prt.CFrame = cframe
969
  local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
970
  game:GetService("Debris"):AddItem(prt, 10)
971
  coroutine.resume(coroutine.create(function(Part, Mesh)
972
    
973
    for i = 0, 1, delay do
974
      hbwait()
975
      Part.CFrame = Part.CFrame
976
      Part.Transparency = i
977
      Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
978
    end
979
    Part.Parent = nil
980
  end
981
), prt, msh)
982
end
983
984
MagicBlock = function(brickcolor, rotate, cframe, x1, y1, z1, x3, y3, z3, delay)
985
  
986
  local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
987
  prt.Anchored = true
988
  prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
989
  local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
990
  game:GetService("Debris"):AddItem(prt, 10)
991
  coroutine.resume(coroutine.create(function(Part, Mesh)
992
    
993
    for i = 0, 1, delay do
994
      hbwait()
995
      if rotate == true then
996
        Part.CFrame = Part.CFrame * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
997
      end
998
      Part.Transparency = i
999
      Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1000
    end
1001
    Part.Parent = nil
1002
  end
1003
), prt, msh)
1004
end
1005
1006
MagicBlock2 = function(brickcolor, rotate, cframe, x1, y1, z1, x3, y3, z3, delay)
1007
  
1008
  local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
1009
  prt.Anchored = true
1010
  prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1011
  local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
1012
  game:GetService("Debris"):AddItem(prt, 10)
1013
  CF = prt.CFrame
1014
  num = math.random(5, 20)
1015
  coroutine.resume(coroutine.create(function(Part, Mesh, CF2, Num)
1016
    
1017
    for i = 0, 1, delay do
1018
      hbwait()
1019
      if rotate == true then
1020
        Part.CFrame = CF2 * cf(0, i * Num, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1021
      else
1022
        Part.CFrame = CF2 * cf(0, i * Num, 0)
1023
      end
1024
      Part.Transparency = i
1025
      Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1026
    end
1027
    Part.Parent = nil
1028
  end
1029
), prt, msh, CF, num)
1030
end
1031
1032
MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1033
  
1034
  local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
1035
  prt.Anchored = true
1036
  prt.CFrame = cframe
1037
  local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
1038
  game:GetService("Debris"):AddItem(prt, 10)
1039
  coroutine.resume(coroutine.create(function(Part, Mesh)
1040
    
1041
    for i = 0, 1, delay do
1042
      hbwait()
1043
      Part.Transparency = i
1044
      Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1045
    end
1046
    Part.Parent = nil
1047
  end
1048
), prt, msh)
1049
end
1050
1051
MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1052
  
1053
  local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
1054
  prt.Anchored = true
1055
  prt.CFrame = cframe
1056
  local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
1057
  game:GetService("Debris"):AddItem(prt, 10)
1058
  coroutine.resume(coroutine.create(function(Part, Mesh)
1059
    
1060
    for i = 0, 1, delay do
1061
      hbwait()
1062
      Part.Transparency = i
1063
      Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1064
    end
1065
    Part.Parent = nil
1066
  end
1067
), prt, msh)
1068
end
1069
1070
BreakEffect = function(brickcolor, rotate, cframe, x1, y1, z1, delay)
1071
  
1072
  local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
1073
  prt.Anchored = true
1074
  prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1075
  local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
1076
  game:GetService("Debris"):AddItem(prt, 10)
1077
  coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb)
1078
    
1079
    CF = Part.CFrame
1080
    Numbb = 0
1081
    randnumb = math.random() - math.random()
1082
    for i = 0, 1, delay do
1083
      hbwait()
1084
      CF = CF * cf(0, 1, 0)
1085
      if rotate == true then
1086
        Part.CFrame = CF * angles(Numbb, 0, 0)
1087
      else
1088
        if rotate == false then
1089
          Part.CFrame = CF
1090
        end
1091
      end
1092
      Part.Transparency = i
1093
      Numbb = Numbb + (randnumb)
1094
    end
1095
    Part.Parent = nil
1096
  end
1097
), prt, CF, Numbb, randnumb)
1098
end
1099
1100
ElecEffect = function(brickcolor, cf, x, y, z, delay)
1101
  
1102
  local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
1103
  prt.Anchored = true
1104
  prt.CFrame = cf
1105
  xval = math.random()
1106
  yval = math.random()
1107
  zval = math.random()
1108
  local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x, y, z))
1109
  game:GetService("Debris"):AddItem(prt, 10)
1110
  coroutine.resume(coroutine.create(function(Part, Mesh, xvaal, yvaal, zvaal)
1111
    
1112
    for i = 0, 1, delay do
1113
      hbwait()
1114
      Part.CFrame = Part.CFrame
1115
      xvaal = xvaal - 0.1 * (delay * 10)
1116
      yvaal = yvaal - 0.1 * (delay * 10)
1117
      zvaal = zvaal - 0.1 * (delay * 10)
1118
      Mesh.Scale = Mesh.Scale + vt(xvaal, yvaal, zvaal)
1119
      Part.Transparency = i
1120
    end
1121
    Part.Parent = nil
1122
  end
1123
), prt, msh, xval, yval, zval)
1124
end
1125
1126
TrailEffect = function(brickcolor, currentcf, oldcf, meshtype, reflectance, neon, size, x, y, z, delay)
1127
  
1128
  local prt = part(3, Effects, "SmoothPlastic", reflectance, 0, brickcolor, "Effect", vt())
1129
  prt.Anchored = true
1130
  prt.CFrame = currentcf
1131
  local TheMeshType = "BlockMesh"
1132
  if meshtype == "Cylinder" then
1133
    TheMeshType = "CylinderMesh"
1134
  end
1135
  local msh = mesh(TheMeshType, prt, "", "", vt(0, 0, 0), vt())
1136
  if neon == true then
1137
    prt.Material = "Neon"
1138
  end
1139
  game:GetService("Debris"):AddItem(prt, 10)
1140
  local magnitudecframe = currentcf.p - oldcf.p.magnitude
1141
  prt.Size = Vector3.new(1, magnitudecframe, 1)
1142
  prt.CFrame = cf((currentcf.p + oldcf.p) / 2, oldcf.p) * angles(math.rad(90), 0, 0)
1143
  msh.Scale = vt(0 + size, 1, 0 + size)
1144
  coroutine.resume(coroutine.create(function(Part, Mesh, TheCurrentCFrame, TheLastCFrame)
1145
    
1146
    for i = 0, 1, delay do
1147
      hbwait()
1148
      Part.Transparency = i
1149
      Mesh.Scale = Mesh.Scale + vt(x, y, z)
1150
    end
1151
    Part.Parent = nil
1152
  end
1153
), prt, msh, currentcf, oldcf)
1154
end
1155
1156
ClangEffect = function(brickcolor, cframe, angle, duration, size, power, reflectance, neon, x, y, z, delay)
1157
  
1158
  local prt = part(3, Effects, "SmoothPlastic", 0, 1, brickcolor, "Effect", vt())
1159
  prt.Anchored = true
1160
  prt.CFrame = cframe
1161
  local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(0, 0, 0))
1162
  game:GetService("Debris"):AddItem(prt, 10)
1163
  local TheLastPoint = cframe
1164
  coroutine.resume(coroutine.create(function(Part)
1165
    
1166
    for i = 1, duration do
1167
      hbwait()
1168
      Part.CFrame = Part.CFrame * angles(math.rad(angle), 0, 0) * cf(0, power, 0)
1169
      TrailEffect(brickcolor, Part.CFrame, TheLastPoint, "Cylinder", reflectance, neon, size, x, y, z, delay)
1170
      TheLastPoint = Part.CFrame
1171
    end
1172
    Part.Parent = nil
1173
  end
1174
), prt)
1175
end
1176
1177
local startequipped = false
1178
local startequippedwithequipanimation = false
1179
local disableanimator = false
1180
local disableanimate = true
1181
local alternatewalk = true
1182
local hidemenu = false
1183
local allowmenutofunction = true
1184
local allowabilitestofunction = true
1185
local canunequiporequip = true
1186
local allowidle = false
1187
local allowwalking = true
1188
local disablemovingarms = true
1189
local usemotorsinsteadofwelds = true
1190
local leftarm = true
1191
local rightarm = false
1192
local allowhopperbin = true
1193
local showstunbar = true
1194
local walkspeeddependsonspeedvalue = true
1195
local alternatemanaregensystem = true
1196
local showhealthmanaandstunnumbers = true
1197
local changebarcolorsifnotenoughmana = false
1198
local disablejump = false
1199
if hidemenu == true then
1200
  for _,v in pairs(scrn:children()) do
1201
    if v.ClassName == "Frame" or v.ClassName == "TextLabel" then
1202
      v.Visible = false
1203
    end
1204
  end
1205
end
1206
  Humanoid.Changed:connect(function(Jump) 
1207
  if Jump == "Jump" and disablejump == true then
1208
    Humanoid.Jump = false
1209
  end
1210
end
1211
)
1212
  if allowmenutofunction == true then
1213
    for _,v in pairs(scrn:GetChildren()) do
1214
      if v.ClassName == "Frame" then
1215
        for _,b in pairs(v:GetChildren()) do
1216
          if b.ClassName == "TextLabel" and b.Name ~= "Text 1" and b.Name ~= "Text 2" and b.Name ~= "Text 3" and b.Name ~= "Text 4" then
1217
            coroutine.resume(coroutine.create(function(TheTextLabel)
1218
  
1219
  wait(menuupdatespeed)
1220
  for i = 1, 0, -0.1 do
1221
    hbwait()
1222
    TheTextLabel.TextTransparency = i
1223
    TheTextLabel.TextStrokeTransparency = i
1224
  end
1225
  TheTextLabel.TextTransparency = 0
1226
  TheTextLabel.TextStrokeTransparency = 0
1227
end
1228
), b)
1229
          end
1230
        end
1231
      end
1232
    end
1233
  end
1234
    if allowmenutofunction == true and allowabilitestofunction == true then
1235
      for _,v in pairs(scrn:GetChildren()) do
1236
        if v.ClassName == "Frame" then
1237
          for _,b in pairs(v:GetChildren()) do
1238
            if b.ClassName == "TextLabel" and b.Name ~= "Health Text" and b.Name ~= "Mana Text" then
1239
              coroutine.resume(coroutine.create(function(TheTextLabel)
1240
  
1241
  wait(menuupdatespeed)
1242
  for i = 1, 0, -0.1 do
1243
    hbwait()
1244
    TheTextLabel.TextTransparency = i
1245
    TheTextLabel.TextStrokeTransparency = i
1246
  end
1247
  TheTextLabel.TextTransparency = 0
1248
  TheTextLabel.TextStrokeTransparency = 0
1249
end
1250
), b)
1251
            end
1252
          end
1253
        end
1254
      end
1255
    end
1256
      if allowhopperbin == true then
1257
        if script.Parent.className ~= "HopperBin" then
1258
          Tool = Instance.new("HopperBin")
1259
          Tool.Parent = Backpack
1260
          Tool.Name = "Dread Scythe"
1261
          script.Parent = Tool
1262
        end
1263
        Bin = script.Parent
1264
      end
1265
      if disablemovingarms == true then
1266
        RWC0 = cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0))
1267
        LWC0 = cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0))
1268
        RSH = nil
1269
        if usemotorsinsteadofwelds == true then
1270
          RW = Instance.new("Motor")
1271
          LW = Instance.new("Motor")
1272
        else
1273
          RW = Instance.new("Weld")
1274
          LW = Instance.new("Weld")
1275
        end
1276
        RW.Name = "Right Shoulder"
1277
        LW.Name = "Left Shoulder"
1278
        RSH = Torso["Right Shoulder"]
1279
        LSH = Torso["Left Shoulder"]
1280
        RSH.Parent = Torso
1281
        LSH.Parent = Torso
1282
        RW.Name = "Right Shoulder"
1283
        RW.Part0 = Torso
1284
        RW.C0 = cf(1.5, 0.5, 0)
1285
        RW.C1 = cf(0, 0.5, 0)
1286
        RW.Part1 = Character["Right Arm"]
1287
        RW.Parent = nil
1288
        LW.Name = "Left Shoulder"
1289
        LW.Part0 = Torso
1290
        LW.C0 = cf(-1.5, 0.5, 0)
1291
        LW.C1 = cf(0, 0.5, 0)
1292
        LW.Part1 = Character["Left Arm"]
1293
        LW.Parent = nil
1294
      else
1295
        RW = Torso["Right Shoulder"]
1296
        LW = Torso["Left Shoulder"]
1297
        LH = Torso["Left Hip"]
1298
        RH = Torso["Right Hip"]
1299
        RWC0 = cf(-0.5, 0, 0) * angles(math.rad(0), math.rad(90), math.rad(0))
1300
        LWC0 = cf(0.5, 0, 0) * angles(math.rad(0), math.rad(-90), math.rad(0))
1301
      end
1302
      if allowidle == true then
1303
        coroutine.resume(coroutine.create(function()
1304
  
1305
  while wait() do
1306
    for i = 0, 1, 0.08 do
1307
      wait()
1308
      idleangle = idleangle + 0.005 * idlen
1309
      idlen = idlen - 0.1
1310
    end
1311
    idlen = 0
1312
    for i = 0, 1, 0.08 do
1313
      wait()
1314
      idleangle = idleangle - 0.005 * idlen
1315
      idlen = idlen - 0.1
1316
    end
1317
    idlen = 0
1318
    idleangle = 0
1319
  end
1320
end
1321
))
1322
      end
1323
      equipanim = function()  
1324
  attack = true
1325
  for i = 0, 1, 0.08 / animationspeed do
1326
    hbwait()
1327
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
1328
    Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(-20)), 0.3 / animationspeed)
1329
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(120)) * angles(math.rad(40), math.rad(0), math.rad(0)) * RWC0, 0.3 / animationspeed)
1330
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)) * LWC0, 0.3 / animationspeed)
1331
    RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
1332
    LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
1333
  end
1334
  WeapHandleweld.Part0 = RightArm
1335
  WeapHandleweld.C0 = cf(0, -1, 0) * angles(math.rad(90), math.rad(-20), math.rad(20))
1336
  Movement.Value = Movement.Value - 0.1
1337
  Defense.Value = Defense.Value + 0.4
1338
  attack = false
1339
end
1340
1341
      unequipanim = function()
1342
  
1343
  attack = true
1344
  for i = 0, 1, 0.08 / animationspeed do
1345
    hbwait()
1346
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3 / animationspeed)
1347
    Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(-20)), 0.3 / animationspeed)
1348
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(120)) * angles(math.rad(40), math.rad(0), math.rad(0)) * RWC0, 0.3 / animationspeed)
1349
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)) * LWC0, 0.3 / animationspeed)
1350
    RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-5)), 0.3 / animationspeed)
1351
    LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.3 / animationspeed)
1352
    WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -1, 0) * angles(math.rad(90), math.rad(-20), math.rad(20)), 0.3 / animationspeed)
1353
  end
1354
  WeapHandleweld.Part0 = Torso
1355
  WeapHandleweld.C0 = cf(2.5, 1.5, 0.5) * angles(math.rad(180), math.rad(90), math.rad(0)) * angles(math.rad(30), math.rad(0), math.rad(0))
1356
  for i = 0, 1, 0.08 / animationspeed do
1357
    hbwait()
1358
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
1359
    Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
1360
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * RWC0, 0.3 / animationspeed)
1361
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 0.3 / animationspeed)
1362
    RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * RWC0, 0.3 / animationspeed)
1363
    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 0.3 / animationspeed)
1364
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
1365
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
1366
  end
1367
  RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 1)
1368
  Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 1)
1369
  RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * RWC0, 1)
1370
  LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 1)
1371
  RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * RWC0, 1)
1372
  LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 1)
1373
  RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 1)
1374
  LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 1)
1375
  RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 1)
1376
  LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 1)
1377
  Movement.Value = Movement.Value + 0.1
1378
  Defense.Value = Defense.Value - 0.4
1379
  attack = false
1380
end
1381
1382
      if startequipped == true then
1383
        equipped = true
1384
        if disableanimate == true then
1385
          Animate.Disabled = true
1386
          local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
1387
          idleanimation:Play()
1388
        end
1389
          if disableanimator == true then
1390
            Animator.Parent = nil
1391
          end
1392
          if disablemovingarms == true then
1393
            RW.Parent = Torso
1394
            LW.Parent = Torso
1395
            RSH.Parent = nil
1396
            LSH.Parent = nil
1397
          end
1398
          Movement.Value = Movement.Value - 0.1
1399
          Defense.Value = Defense.Value + 0.4
1400
          if startequippedwithequipanimation == true then
1401
            equipped = true
1402
            if disableanimate == true then
1403
              Animate.Disabled = true
1404
              local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
1405
              idleanimation:Play()
1406
            end
1407
              if disableanimator == true then
1408
                Animator.Parent = nil
1409
              end
1410
              if disablemovingarms == true then
1411
                RW.Parent = Torso
1412
                LW.Parent = Torso
1413
                RSH.Parent = nil
1414
                LSH.Parent = nil
1415
              end
1416
              equipanim()
1417
end
1418
end
1419
              StaggerHit = function()
1420
  
1421
  attack = true
1422
  for i = 1, math.random(2, 4) do
1423
    ClangEffect("Bright yellow", cf(Hitbox.Position) * angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50))), 20, 5, 0.1, math.random(5, 15) / 10, 0, true, -0.005, 0, -0.005, 0.05)
1424
  end
1425
  for i = 0, 1, 0.1 / animationspeed do
1426
    hbwait()
1427
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(-10), math.rad(0), math.rad(-30)), 0.3 / animationspeed)
1428
    Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30)) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.3 / animationspeed)
1429
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-30), math.rad(0), math.rad(60)) * angles(math.rad(0), math.rad(-30), math.rad(0)) * RWC0, 0.3 / animationspeed)
1430
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)) * angles(math.rad(0), math.rad(20), math.rad(0)) * LWC0, 0.3 / animationspeed)
1431
    RH.C0 = clerp(RH.C0, cf(1, -0.9 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.3 / animationspeed)
1432
    LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(10)), 0.3 / animationspeed)
1433
    WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -1, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
1434
    if StaggerAnim.Value ~= true then
1435
      do
1436
        if StunAnim.Value == true then
1437
          break
1438
        end
1439
        -- DECOMPILER ERROR at PC360: LeaveBlock: unexpected jumping out IF_THEN_STMT
1440
1441
        -- DECOMPILER ERROR at PC360: LeaveBlock: unexpected jumping out IF_STMT
1442
1443
      end
1444
    end
1445
  end
1446
  attack = false
1447
end
1448
1449
              Stagger = function()
1450
  
1451
  attack = true
1452
  disablejump = true
1453
  for i = 1, math.random(2, 4) do
1454
    ClangEffect("Bright yellow", cf(Hitbox.Position) * angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50))), 20, 5, 0.2, math.random(5, 15) / 10, 0, true, -0.01, 0, -0.01, 0.05)
1455
  end
1456
  attacktype = 1
1457
  local staggervelocity = Instance.new("BodyVelocity", Torso)
1458
  staggervelocity.P = 500
1459
  staggervelocity.maxForce = vt(math.huge, 0, math.huge)
1460
  if Rooted.Value == false then
1461
    staggervelocity.Velocity = RootPart.CFrame.lookVector * -25
1462
  end
1463
  for i = 0, 1, 0.35 / animationspeed do
1464
    hbwait()
1465
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1 + idleangle) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3 / animationspeed)
1466
    Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(35)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
1467
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(20), math.rad(-30), math.rad(40)) * RWC0, 0.3 / animationspeed)
1468
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(10), math.rad(5), math.rad(-20)) * LWC0, 0.3 / animationspeed)
1469
    RH.C0 = clerp(RH.C0, cf(1, -0.75 - idleangle, -0.25) * angles(math.rad(0), math.rad(100), math.rad(0)) * angles(math.rad(-20), math.rad(0), math.rad(40)), 0.3 / animationspeed)
1470
    LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0.25) * angles(math.rad(0), math.rad(-60), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(10)), 0.3 / animationspeed)
1471
    WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -1, 0) * angles(math.rad(0), math.rad(0), math.rad(70)), 0.3 / animationspeed)
1472
  end
1473
  for i = 0, 1, 0.2 / animationspeed do
1474
    hbwait()
1475
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2 + idleangle) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3 / animationspeed)
1476
    Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(35)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
1477
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(20), math.rad(-30), math.rad(40)) * RWC0, 0.3 / animationspeed)
1478
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(10), math.rad(5), math.rad(-20)) * LWC0, 0.3 / animationspeed)
1479
    RH.C0 = clerp(RH.C0, cf(1, -0.75 - idleangle, -0.25) * angles(math.rad(0), math.rad(100), math.rad(0)) * angles(math.rad(-20), math.rad(0), math.rad(40)), 0.3 / animationspeed)
1480
    LH.C0 = clerp(LH.C0, cf(-1, -0.9 - idleangle, 0.25) * angles(math.rad(0), math.rad(-60), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(30)), 0.3 / animationspeed)
1481
    WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -1, 0) * angles(math.rad(0), math.rad(0), math.rad(70)), 0.3 / animationspeed)
1482
  end
1483
  staggervelocity:Destroy()
1484
  for i = 0, 1, 0.015 / animationspeed do
1485
    hbwait()
1486
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.8 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(-20)) * angles(math.rad(-5), math.rad(-5), math.rad(0)), 0.3 / animationspeed)
1487
    Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(20)) * angles(math.rad(0), math.rad(5), math.rad(0)), 0.3 / animationspeed)
1488
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(20)) * angles(math.rad(0), math.rad(-20), math.rad(0)) * RWC0, 0.3 / animationspeed)
1489
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(-10)) * angles(math.rad(0), math.rad(20), math.rad(0)) * LWC0, 0.3 / animationspeed)
1490
    RH.C0 = clerp(RH.C0, cf(1, -0.5 - idleangle, -0.5) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(70)) * angles(math.rad(0), math.rad(30), math.rad(0)), 0.3 / animationspeed)
1491
    LH.C0 = clerp(LH.C0, cf(-1, 0.4 - idleangle, -0.5) * angles(math.rad(0), math.rad(-80), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-10)), 0.3 / animationspeed)
1492
    WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -1, 0) * angles(math.rad(0), math.rad(0), math.rad(70)), 0.3 / animationspeed)
1493
    if StunAnim.Value == true then
1494
      break
1495
    end
1496
  end
1497
  do
1498
    attacktype = 1
1499
    disablejump = false
1500
    attack = false
1501
  end
1502
end
1503
1504
              Stun = function()
1505
  
1506
  attack = true
1507
  disablejump = true
1508
  attacktype = 1
1509
  DamageStatLabel(Head.CFrame, "Stunned!", Color3.new(1, 1, 0))
1510
  for i = 0, 1, 0.4 / animationspeed do
1511
    hbwait()
1512
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(15), math.rad(0), math.rad(-160)), 0.3 / animationspeed)
1513
    Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
1514
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(70), math.rad(0), math.rad(15)) * RWC0, 0.3 / animationspeed)
1515
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(70), math.rad(0), math.rad(-15)) * LWC0, 0.3 / animationspeed)
1516
    RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-20)), 0.3 / animationspeed)
1517
    LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-20)), 0.3 / animationspeed)
1518
    WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -1, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
1519
  end
1520
  for i = 0, 1, 0.4 / animationspeed do
1521
    hbwait()
1522
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5 + idleangle) * angles(math.rad(45), math.rad(0), math.rad(-170)), 0.3 / animationspeed)
1523
    Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(-30)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
1524
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(80), math.rad(0), math.rad(45)) * RWC0, 0.3 / animationspeed)
1525
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(80), math.rad(0), math.rad(-45)) * LWC0, 0.3 / animationspeed)
1526
    RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-40)), 0.3 / animationspeed)
1527
    LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-20)), 0.3 / animationspeed)
1528
    WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -1, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
1529
  end
1530
  for i = 0, 1, 0.4 / animationspeed do
1531
    hbwait()
1532
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1 + idleangle) * angles(math.rad(75), math.rad(0), math.rad(-180)), 0.3 / animationspeed)
1533
    Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(-60)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
1534
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(75)) * RWC0, 0.3 / animationspeed)
1535
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-45), math.rad(0), math.rad(-75)) * LWC0, 0.3 / animationspeed)
1536
    RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-40)), 0.3 / animationspeed)
1537
    LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-30)), 0.3 / animationspeed)
1538
    WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -1, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
1539
  end
1540
  gyro = Instance.new("BodyGyro")
1541
  gyro.Parent = nil
1542
  gyro.P = 10000000
1543
  gyro.D = 1000
1544
  gyro.MaxTorque = vt(10000000, 10000000, 10000000)
1545
  gyro.cframe = RootPart.CFrame
1546
  for i = 1, 70 * animationspeed do
1547
    hbwait()
1548
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2.5 + idleangle) * angles(math.rad(90), math.rad(0), math.rad(-180)), 0.3 / animationspeed)
1549
    Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
1550
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(-10), math.rad(90)) * RWC0, 0.3 / animationspeed)
1551
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-90), math.rad(0), math.rad(-90)) * LWC0, 0.3 / animationspeed)
1552
    RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0.2) * angles(math.rad(0), math.rad(70), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3 / animationspeed)
1553
    LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-100), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3 / animationspeed)
1554
    WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -1, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
1555
  end
1556
  for i = 0, 1, 0.5 / animationspeed do
1557
    hbwait()
1558
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1 + idleangle) * angles(math.rad(90), math.rad(0), math.rad(-180)), 0.3 / animationspeed)
1559
    Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
1560
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(-10), math.rad(120)) * RWC0, 0.3 / animationspeed)
1561
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-90), math.rad(0), math.rad(-120)) * LWC0, 0.3 / animationspeed)
1562
    RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0.2) * angles(math.rad(0), math.rad(70), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-30)), 0.3 / animationspeed)
1563
    LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-100), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(30)), 0.3 / animationspeed)
1564
    WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -1, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
1565
  end
1566
  for i = 0, 1, 0.15 / animationspeed do
1567
    hbwait()
1568
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5 + idleangle) * angles(math.rad(30), math.rad(0), math.rad(120)), 0.3 / animationspeed)
1569
    Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
1570
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-40), math.rad(0), math.rad(30)) * RWC0, 0.3 / animationspeed)
1571
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(80), math.rad(0), math.rad(20)) * LWC0, 0.3 / animationspeed)
1572
    RH.C0 = clerp(RH.C0, cf(1, -0.5 - idleangle, 0) * angles(math.rad(0), math.rad(60), math.rad(0)) * angles(math.rad(-15), math.rad(0), math.rad(70)), 0.3 / animationspeed)
1573
    LH.C0 = clerp(LH.C0, cf(-1, -0.25 - idleangle, -1) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(5), math.rad(0), math.rad(30)), 0.3 / animationspeed)
1574
    WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -1, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
1575
  end
1576
  gyro.Parent = nil
1577
  attacktype = 1
1578
  disablejump = false
1579
  attack = false
1580
end
1581
1582
              EAbility = function()
1583
  
1584
  attack = true
1585
  attack = false
1586
end
1587
1588
              attackone = function()
1589
  
1590
  attack = true
1591
  for i = 0, 1, 0.1 / animationspeed do
1592
    hbwait()
1593
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3 / animationspeed)
1594
    Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(10)), 0.3 / animationspeed)
1595
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(20)) * angles(math.rad(0), math.rad(10), math.rad(0)) * RWC0, 0.3 / animationspeed)
1596
    LW.C0 = clerp(LW.C0, cf(0.1, 0.75 + idleangle, -1) * angles(math.rad(170), math.rad(0), math.rad(70)) * angles(math.rad(-10), math.rad(0), math.rad(10)) * LWC0, 0.3 / animationspeed)
1597
    RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(70), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-5)), 0.3 / animationspeed)
1598
    LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-60), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(5)), 0.3 / animationspeed)
1599
    WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(-0.2, 0, 1) * angles(math.rad(-40), math.rad(-10), math.rad(0)), 0.3 / animationspeed)
1600
    if StaggerHitAnim.Value ~= true and StaggerAnim.Value ~= true then
1601
      do
1602
        if StunAnim.Value == true then
1603
          break
1604
        end
1605
        -- DECOMPILER ERROR at PC291: LeaveBlock: unexpected jumping out IF_THEN_STMT
1606
1607
        -- DECOMPILER ERROR at PC291: LeaveBlock: unexpected jumping out IF_STMT
1608
1609
      end
1610
    end
1611
  end
1612
  so("http://roblox.com/asset/?id=92597369", Hitbox, 1, 1.2)
1613
  so("http://roblox.com/asset/?id=28144425", Hitbox, 1, 1.2)
1614
  for i = 0, 1, 0.1 / animationspeed do
1615
    hbwait()
1616
    MagniDamage(Hitbox, 5, 5, 10, math.random(5, 10), "Normal", RootPart, 0.5, 1, (math.random(5, 10)), nil, true, false, nil, 0, 0, false)
1617
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.45 / animationspeed)
1618
    Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(-10)), 0.45 / animationspeed)
1619
    RW.C0 = clerp(RW.C0, cf(0, 0.25 + idleangle, -0.75) * angles(math.rad(20), math.rad(0), math.rad(-50)) * angles(math.rad(0), math.rad(-20), math.rad(0)) * RWC0, 0.45 / animationspeed)
1620
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(20), math.rad(0), math.rad(10)) * angles(math.rad(0), math.rad(-20), math.rad(0)) * LWC0, 0.45 / animationspeed)
1621
    RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(60), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-5)), 0.45 / animationspeed)
1622
    LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(5)), 0.45 / animationspeed)
1623
    WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -1, 1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.45 / animationspeed)
1624
    if StaggerHitAnim.Value ~= true and StaggerAnim.Value ~= true then
1625
      do
1626
        if StunAnim.Value == true then
1627
          break
1628
        end
1629
        -- DECOMPILER ERROR at PC620: LeaveBlock: unexpected jumping out IF_THEN_STMT
1630
1631
        -- DECOMPILER ERROR at PC620: LeaveBlock: unexpected jumping out IF_STMT
1632
1633
      end
1634
    end
1635
  end
1636
  attack = false
1637
end
1638
1639
              attacktwo = function()
1640
  
1641
  attack = true
1642
  for i = 0, 1, 0.1 / animationspeed do
1643
    hbwait()
1644
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(40)), 0.3 / animationspeed)
1645
    Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-10), math.rad(10), math.rad(-20)), 0.3 / animationspeed)
1646
    RW.C0 = clerp(RW.C0, cf(0.25, 0.5 + idleangle, -0.75) * angles(math.rad(90), math.rad(0), math.rad(-90)) * angles(math.rad(10), math.rad(80), math.rad(0)) * RWC0, 0.3 / animationspeed)
1647
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.25 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(25)) * LWC0, 0.3 / animationspeed)
1648
    RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(50), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-5)), 0.3 / animationspeed)
1649
    LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(5)), 0.3 / animationspeed)
1650
    WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -0.5, 1) * angles(math.rad(-20), math.rad(0), math.rad(20)), 0.3 / animationspeed)
1651
    if StaggerHitAnim.Value ~= true and StaggerAnim.Value ~= true then
1652
      do
1653
        if StunAnim.Value == true then
1654
          break
1655
        end
1656
        -- DECOMPILER ERROR at PC276: LeaveBlock: unexpected jumping out IF_THEN_STMT
1657
1658
        -- DECOMPILER ERROR at PC276: LeaveBlock: unexpected jumping out IF_STMT
1659
1660
      end
1661
    end
1662
  end
1663
  so("http://roblox.com/asset/?id=92597369", Hitbox, 1, 1)
1664
  so("http://roblox.com/asset/?id=28144425", Hitbox, 1, 1)
1665
  for i = 0, 1, 0.1 / animationspeed do
1666
    hbwait()
1667
    MagniDamage(Hitbox, 5, 5, 10, math.random(5, 10), "Normal", RootPart, 0.5, 1, (math.random(5, 10)), nil, true, false, nil, 0, 0, false)
1668
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.45 / animationspeed)
1669
    Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(10)), 0.45 / animationspeed)
1670
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(80)) * angles(math.rad(-20), math.rad(80), math.rad(0)) * RWC0, 0.45 / animationspeed)
1671
    LW.C0 = clerp(LW.C0, cf(-1, 0.25 + idleangle, -0.75) * angles(math.rad(110), math.rad(0), math.rad(50)) * LWC0, 0.45 / animationspeed)
1672
    RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(2.5)), 0.45 / animationspeed)
1673
    LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-50), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(5)), 0.45 / animationspeed)
1674
    WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -0.25, 1) * angles(math.rad(-30), math.rad(0), math.rad(0)), 0.45 / animationspeed)
1675
    if StaggerHitAnim.Value ~= true and StaggerAnim.Value ~= true then
1676
      do
1677
        if StunAnim.Value == true then
1678
          break
1679
        end
1680
        -- DECOMPILER ERROR at PC590: LeaveBlock: unexpected jumping out IF_THEN_STMT
1681
1682
        -- DECOMPILER ERROR at PC590: LeaveBlock: unexpected jumping out IF_STMT
1683
1684
      end
1685
    end
1686
  end
1687
  attack = false
1688
end
1689
1690
              attackthree = function()
1691
  
1692
  attack = true
1693
  for i = 0, 1, 0.1 / animationspeed do
1694
    hbwait()
1695
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3 / animationspeed)
1696
    Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3 / animationspeed)
1697
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(190), math.rad(0), math.rad(-20)) * RWC0, 0.3 / animationspeed)
1698
    LW.C0 = clerp(LW.C0, cf(0.5, 1 + idleangle, -0.75) * angles(math.rad(190), math.rad(0), math.rad(20)) * LWC0, 0.3 / animationspeed)
1699
    RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-5)), 0.3 / animationspeed)
1700
    LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(5)), 0.3 / animationspeed)
1701
    WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -1.15, 1) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.3 / animationspeed)
1702
    if StaggerHitAnim.Value ~= true and StaggerAnim.Value ~= true then
1703
      do
1704
        if StunAnim.Value == true then
1705
          break
1706
        end
1707
        -- DECOMPILER ERROR at PC261: LeaveBlock: unexpected jumping out IF_THEN_STMT
1708
1709
        -- DECOMPILER ERROR at PC261: LeaveBlock: unexpected jumping out IF_STMT
1710
1711
      end
1712
    end
1713
  end
1714
  so("http://roblox.com/asset/?id=92597369", Hitbox, 1, 1.4)
1715
  so("http://roblox.com/asset/?id=28144425", Hitbox, 1, 1.4)
1716
  for i = 0, 1, 0.1 / animationspeed do
1717
    hbwait()
1718
    MagniDamage(Hitbox, 5, 5, 10, math.random(5, 10), "Normal", RootPart, 0.5, 1, (math.random(5, 10)), nil, true, false, nil, 0, 0, false)
1719
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.45 / animationspeed)
1720
    Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.45 / animationspeed)
1721
    RW.C0 = clerp(RW.C0, cf(0.35, 0.5 + idleangle, -0.75) * angles(math.rad(30), math.rad(0), math.rad(-20)) * RWC0, 0.45 / animationspeed)
1722
    LW.C0 = clerp(LW.C0, cf(-0.65, 0.25 + idleangle, -0.5) * angles(math.rad(10), math.rad(0), math.rad(30)) * LWC0, 0.45 / animationspeed)
1723
    RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.45 / animationspeed)
1724
    LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(5)), 0.45 / animationspeed)
1725
    WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -0.65, 1) * angles(math.rad(-20), math.rad(-5), math.rad(20)), 0.45 / animationspeed)
1726
    if StaggerHitAnim.Value ~= true and StaggerAnim.Value ~= true then
1727
      do
1728
        if StunAnim.Value == true then
1729
          break
1730
        end
1731
        -- DECOMPILER ERROR at PC560: LeaveBlock: unexpected jumping out IF_THEN_STMT
1732
1733
        -- DECOMPILER ERROR at PC560: LeaveBlock: unexpected jumping out IF_STMT
1734
1735
      end
1736
    end
1737
  end
1738
  attack = false
1739
end
1740
1741
              attackfour = function()
1742
  
1743
  attack = true
1744
  for i = 0, 1, 0.1 / animationspeed do
1745
    hbwait()
1746
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(60)), 0.3 / animationspeed)
1747
    Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(-50)), 0.3 / animationspeed)
1748
    RW.C0 = clerp(RW.C0, cf(0, 0.5 + idleangle, -0.75) * angles(math.rad(80), math.rad(0), math.rad(-110)) * angles(math.rad(10), math.rad(80), math.rad(0)) * RWC0, 0.3 / animationspeed)
1749
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.25 + idleangle, 0) * angles(math.rad(100), math.rad(0), math.rad(7.5)) * LWC0, 0.3 / animationspeed)
1750
    RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(50), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(5)), 0.3 / animationspeed)
1751
    LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(10)), 0.3 / animationspeed)
1752
    WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -0.5, 1) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.3 / animationspeed)
1753
    if StaggerHitAnim.Value ~= true and StaggerAnim.Value ~= true then
1754
      do
1755
        if StunAnim.Value == true then
1756
          break
1757
        end
1758
        -- DECOMPILER ERROR at PC276: LeaveBlock: unexpected jumping out IF_THEN_STMT
1759
1760
        -- DECOMPILER ERROR at PC276: LeaveBlock: unexpected jumping out IF_STMT
1761
1762
      end
1763
    end
1764
  end
1765
  so("http://roblox.com/asset/?id=203691467", Torso, 0.5, 1.2)
1766
  so("http://roblox.com/asset/?id=92597369", Hitbox, 1, 0.8)
1767
  so("http://roblox.com/asset/?id=28144425", Hitbox, 1, 0.8)
1768
  for i = 0, 1, 0.15 / animationspeed do
1769
    hbwait()
1770
    MagniDamage(Hitbox, 5, 5, 10, math.random(5, 10), "Normal", RootPart, 0.25, 1, (math.random(5, 10)), nil, true, false, nil, 0, 0, false)
1771
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(-10 - 360 * i)), 0.45 / animationspeed)
1772
    Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(20)), 0.45 / animationspeed)
1773
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(80), math.rad(0), math.rad(60)) * angles(math.rad(0), math.rad(80), math.rad(0)) * RWC0, 0.45 / animationspeed)
1774
    LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(60)) * LWC0, 0.45 / animationspeed)
1775
    RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.45 / animationspeed)
1776
    LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-50), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(5)), 0.45 / animationspeed)
1777
    WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -0.5, 1) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.45 / animationspeed)
1778
    if StaggerHitAnim.Value ~= true and StaggerAnim.Value ~= true then
1779
      do
1780
        if StunAnim.Value == true then
1781
          break
1782
        end
1783
        -- DECOMPILER ERROR at PC597: LeaveBlock: unexpected jumping out IF_THEN_STMT
1784
1785
        -- DECOMPILER ERROR at PC597: LeaveBlock: unexpected jumping out IF_STMT
1786
1787
      end
1788
    end
1789
  end
1790
  for i = 0, 1, 0.1 / animationspeed do
1791
    hbwait()
1792
    MagniDamage(Hitbox, 5, 5, 10, math.random(5, 10), "Normal", RootPart, 0.5, 1, (math.random(5, 10)), nil, true, false, nil, 0, 0, false)
1793
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.45 / animationspeed)
1794
    Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.45 / animationspeed)
1795
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(80), math.rad(0), math.rad(80)) * angles(math.rad(-30), math.rad(80), math.rad(0)) * RWC0, 0.45 / animationspeed)
1796
    LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(70), math.rad(0), math.rad(30)) * LWC0, 0.45 / animationspeed)
1797
    RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.45 / animationspeed)
1798
    LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-50), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(5)), 0.45 / animationspeed)
1799
    WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -0.5, 1) * angles(math.rad(-20), math.rad(0), math.rad(20)), 0.45 / animationspeed)
1800
    if StaggerHitAnim.Value ~= true and StaggerAnim.Value ~= true then
1801
      do
1802
        if StunAnim.Value == true then
1803
          break
1804
        end
1805
        -- DECOMPILER ERROR at PC899: LeaveBlock: unexpected jumping out IF_THEN_STMT
1806
1807
        -- DECOMPILER ERROR at PC899: LeaveBlock: unexpected jumping out IF_STMT
1808
1809
      end
1810
    end
1811
  end
1812
  attack = false
1813
end
1814
1815
              Move1 = function()
1816
  
1817
  attack = true
1818
  attack = false
1819
end
1820
1821
              Move2 = function()
1822
  
1823
  attack = true
1824
  attack = false
1825
end
1826
1827
              Move3 = function()
1828
  
1829
  attack = true
1830
  attack = false
1831
end
1832
1833
              Move4 = function()
1834
  
1835
  attack = true
1836
  disablejump = true
1837
  Rooted.Value = true
1838
  for i = 0, 1, 0.08 / animationspeed do
1839
    hbwait()
1840
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5 + idleangle) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3 / animationspeed)
1841
    Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(10)) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.3 / animationspeed)
1842
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(80), math.rad(0), math.rad(30)) * RWC0, 0.3 / animationspeed)
1843
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.15 + idleangle, 0) * angles(math.rad(30), math.rad(0), math.rad(-5)) * LWC0, 0.3 / animationspeed)
1844
    RH.C0 = clerp(RH.C0, cf(1, 0.5 - idleangle, -0.25) * angles(math.rad(0), math.rad(60), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.3 / animationspeed)
1845
    LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(70)), 0.3 / animationspeed)
1846
    WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0.2, -1.5, 0.1) * angles(math.rad(70), math.rad(10), math.rad(0)), 0.3 / animationspeed)
1847
    if StaggerHitAnim.Value ~= true and StaggerAnim.Value ~= true then
1848
      do
1849
        if StunAnim.Value == true then
1850
          break
1851
        end
1852
        -- DECOMPILER ERROR at PC280: LeaveBlock: unexpected jumping out IF_THEN_STMT
1853
1854
        -- DECOMPILER ERROR at PC280: LeaveBlock: unexpected jumping out IF_STMT
1855
1856
      end
1857
    end
1858
  end
1859
  local spacelasercframe = 0
1860
  do
1861
    for i = 1, 1 do
1862
      local size = 30
1863
      local startrefpart = part(3, Effects, "SmoothPlastic", 0, 1, "Black", "Effect", vt())
1864
      startrefpart.Anchored = true
1865
      startrefpart.CFrame = RootPart.CFrame * cf(spacelasercframe, 500, 0)
1866
      game:GetService("Debris"):AddItem(startrefpart, 15)
1867
      local HitPosition = startrefpart.Position + vt(0, -1, 0)
1868
      do
1869
        local OtherHitPosition = cf((startrefpart.Position + HitPosition) / 2, HitPosition).lookVector
1870
        do
1871
          local hit, pos = rayCast(startrefpart.Position, OtherHitPosition, 999, Character)
1872
          if hit ~= nil then
1873
            local refpart = part(3, Effects, "SmoothPlastic", 0, 0.5, "Black", "Effect", vt())
1874
            refpart.Anchored = true
1875
            refpart.CFrame = cf(pos) * angles(0, 0, math.rad(90))
1876
            local refpartmesh = mesh("SpecialMesh", refpart, "Cylinder", "", vt(0, 0, 0), vt(1, size * 10, size * 10))
1877
            game:GetService("Debris"):AddItem(refpart, 15)
1878
            local refpart2 = part(3, Effects, "SmoothPlastic", 0, 0.5, "Light stone grey", "Effect", vt())
1879
            refpart2.Anchored = true
1880
            refpart2.CFrame = refpart.CFrame
1881
            local refpart2mesh = mesh("SpecialMesh", refpart2, "Cylinder", "", vt(0, 0, 0), vt(1.1, 1, 1))
1882
            game:GetService("Debris"):AddItem(refpart2, 15)
1883
            so("http://roblox.com/asset/?id=203691785", refpart, 1, 1)
1884
            so("http://roblox.com/asset/?id=183763515", refpart, 1, 1)
1885
            so("http://roblox.com/asset/?id=87767777", refpart, 1, 0.4)
1886
            MagicBlock("Black", true, refpart.CFrame, size * 10, size * 10, size * 10, -size, -size, -size, 0.1)
1887
            MagniDamage(refpart, size + 1, 1, 2, 1, "OrbitalStrike1", refpart, 0, 1, (math.random(5, 10)), nil, true, true, "Movement", 0.2, 6, true)
1888
            coroutine.resume(coroutine.create(function(StartPart, Part1, Part2, Mesh1, Mesh2)
1889
    
1890
    for i = 1, size * 10 do
1891
      hbwait()
1892
      MagicBlock("Black", true, Part1.CFrame * cf(math.random(0, 10), math.random(-size, size), math.random(-size, size)), 1, 1, 1, 0.1, 0.1, 0.1, 0.1)
1893
      Mesh2.Scale = vt(1.1, i, i)
1894
    end
1895
    local refpartmag = (StartPart.Position - pos).magnitude
1896
    so("http://roblox.com/asset/?id=87784452", Part1, 1, 0.8)
1897
    so("http://roblox.com/asset/?id=178452221", Part1, 1, 0.6)
1898
    MagicBlock("Black", true, refpart.CFrame, size / 10, size / 10, size / 10, size, size, size, 0.1)
1899
    MagicRing("Black", Part1.CFrame * angles(0, math.rad(90), 0), size, size, size, size / 10, size / 10, 0, 0.05)
1900
    MagicCylinder("Black", cf((StartPart.Position + pos) / 2, pos) * angles(math.rad(90), 0, 0), 10, refpartmag * 5, 10, 0.2, 0, 0.2, 0.05)
1901
    MagniDamage(Part1, size + 1, 20, 30, math.random(125, 150) / 100, "OrbitalStrike2", Part1, 0, 1, (math.random(30, 40)), nil, true, true, "Damage", 0.1, 5, true)
1902
    Part1.Transparency = 1
1903
    Part2.Parent = nil
1904
    StartPart.Parent = nil
1905
  end
1906
), startrefpart, refpart, refpart2, refpartmesh, refpart2mesh)
1907
          end
1908
          do
1909
            wait(0.1)
1910
          end
1911
          -- DECOMPILER ERROR at PC498: LeaveBlock: unexpected jumping out DO_STMT
1912
1913
        end
1914
      end
1915
    end
1916
  end
1917
  Rooted.Value = false
1918
  disablejump = false
1919
  attack = false
1920
end
1921
1922
              hold = false
1923
              ob1d = function(Mouse)
1924
  
1925
  if attack == true or equipped == false then
1926
    return 
1927
  end
1928
  hold = true
1929
  if attacktype == 1 then
1930
    attacktype = 2
1931
    attackone()
1932
  else
1933
    if attacktype == 2 then
1934
      attacktype = 3
1935
      attacktwo()
1936
    else
1937
      if attacktype == 3 then
1938
        attacktype = 4
1939
        attackthree()
1940
      else
1941
        if attacktype == 4 then
1942
          attacktype = 1
1943
          attackfour()
1944
        end
1945
      end
1946
    end
1947
  end
1948
  coroutine.resume(coroutine.create(function()
1949
    
1950
    for i = 1, 50 do
1951
      if attack == false then
1952
        wait()
1953
      end
1954
    end
1955
    if attack == false then
1956
      attacktype = 1
1957
    end
1958
  end
1959
))
1960
end
1961
1962
              if allowhopperbin == true then
1963
                ob1u = function(Mouse)
1964
  
1965
  hold = false
1966
end
1967
1968
              end
1969
              key = function(key)
1970
  
1971
  if key == "f" and canunequiporequip == true and attack == false then
1972
    if equipped == false then
1973
      equipped = true
1974
      if disableanimate == true then
1975
        Animate.Disabled = true
1976
        local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
1977
        idleanimation:Play()
1978
      end
1979
        if disableanimator == true then
1980
          Animator.Parent = nil
1981
        end
1982
        if disablemovingarms == true then
1983
          RW.Parent = Torso
1984
          LW.Parent = Torso
1985
          RSH.Parent = nil
1986
          LSH.Parent = nil
1987
        end
1988
        equipanim()
1989
        elseif equipped == true then
1990
          equipped = false
1991
          unequipanim()
1992
          hbwait()
1993
          if disablemovingarms == true then
1994
            RW.Parent = nil
1995
            LW.Parent = nil
1996
            RSH.Parent = Torso
1997
            LSH.Parent = Torso
1998
          end
1999
          if disableanimator == true then
2000
            Animator.Parent = Humanoid
2001
          end
2002
          if disableanimate == true then
2003
            Animate.Disabled = false
2004
          end
2005
        end
2006
end
2007
        if key == "e" and attack == false and equipped == true then
2008
          EAbility()
2009
        end
2010
        if key == "z" and attack == false and equipped == true and co1 <= cooldown1 and skill1mana <= Mana.Value then
2011
          subtractmana(skill1mana)
2012
          cooldown1 = 0
2013
          Move1()
2014
        end
2015
        if key == "x" and attack == false and equipped == true and co2 <= cooldown2 and skill2mana <= Mana.Value then
2016
          subtractmana(skill2mana)
2017
          cooldown2 = 0
2018
          Move2()
2019
        end
2020
        if key == "c" and attack == false and equipped == true and co3 <= cooldown3 and skill3mana <= Mana.Value then
2021
          subtractmana(skill3mana)
2022
          cooldown3 = 0
2023
          Move3()
2024
        end
2025
        if key == "v" and attack == false and equipped == true and co4 <= cooldown4 and skill4mana <= Mana.Value then
2026
          subtractmana(skill4mana)
2027
          cooldown4 = 0
2028
          Move4()
2029
        end
2030
        if key == "q" then
2031
          Mana.Value = 100
2032
          cooldown1 = co1
2033
          cooldown2 = co2
2034
          cooldown3 = co3
2035
          cooldown4 = co4
2036
        end
2037
        if key == "p" then
2038
          StaggerHitAnim.Value = true
2039
        end
2040
        if key == "[" then
2041
          StaggerAnim.Value = true
2042
        end
2043
        if key == "]" then
2044
          StunAnim.Value = true
2045
        end
2046
      end
2047
2048
2049
if allowhopperbin == true then
2050
  key2 = function(key)
2051
end
2052
2053
end
2054
if allowhopperbin == true then
2055
  s = function(Mouse)
2056
  
2057
  Mouse.Button1Down:connect(function()
2058
    
2059
    ob1d(Mouse)
2060
  end
2061
)
2062
  Mouse.Button1Up:connect(function()
2063
    
2064
    ob1u(Mouse)
2065
  end
2066
)
2067
  Mouse.KeyDown:connect(key)
2068
  Mouse.KeyUp:connect(key2)
2069
end
2070
2071
              end
2072
              if allowhopperbin == true then
2073
                ds = function(Mouse)
2074
  
2075
end
2076
2077
              end
2078
              if allowhopperbin == true then
2079
                Bin.Selected:connect(s)
2080
                Bin.Deselected:connect(ds)
2081
              end
2082
              updateskills = function()
2083
  
2084
  if allowabilitestofunction == true then
2085
    if cooldown1 <= co1 then
2086
      cooldown1 = cooldown1 + 0.033333333333333
2087
      if co1 <= cooldown1 then
2088
        cooldown1 = co1
2089
      end
2090
    end
2091
    if cooldown2 <= co2 then
2092
      cooldown2 = cooldown2 + 0.033333333333333
2093
      if co2 <= cooldown2 then
2094
        cooldown2 = co2
2095
      end
2096
    end
2097
    if cooldown3 <= co3 then
2098
      cooldown3 = cooldown3 + 0.033333333333333
2099
      if co3 <= cooldown3 then
2100
        cooldown3 = co3
2101
      end
2102
    end
2103
    if cooldown4 <= co4 then
2104
      cooldown4 = cooldown4 + 0.033333333333333
2105
      if co4 <= cooldown4 then
2106
        cooldown4 = co4
2107
      end
2108
    end
2109
    if changebarcolorsifnotenoughmana == true then
2110
      if Mana.Value <= skill1mana then
2111
        bar4.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549)
2112
      else
2113
        bar4.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
2114
      end
2115
      if Mana.Value <= skill2mana then
2116
        bar3.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549)
2117
      else
2118
        bar3.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
2119
      end
2120
      if Mana.Value <= skill3mana then
2121
        bar1.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549)
2122
      else
2123
        bar1.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
2124
      end
2125
      if Mana.Value <= skill4mana then
2126
        bar2.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549)
2127
      else
2128
        bar2.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
2129
      end
2130
    else
2131
      if changebarcolorsifnotenoughmana == false then
2132
        bar1.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
2133
        bar2.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
2134
        bar3.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
2135
        bar4.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
2136
      end
2137
    end
2138
  end
2139
  if alternatemanaregensystem == false then
2140
    if Mana.Value <= maxmana then
2141
      Mana.Value = Mana.Value + recovermana / 30
2142
    else
2143
      if maxmana <= Mana.Value then
2144
        Mana.Value = maxmana
2145
      end
2146
    end
2147
  else
2148
    if alternatemanaregensystem == true then
2149
      if maxmana <= Mana.Value then
2150
        Mana.Value = maxmana
2151
      else
2152
        if manadelay <= manawait then
2153
          manadelay = manadelay + 1
2154
        else
2155
          manadelay = 0
2156
          Mana.Value = Mana.Value + 1
2157
        end
2158
      end
2159
    end
2160
  end
2161
  if allowstunbar == true then
2162
    if StunValue.Value <= 0 then
2163
      StunValue.Value = 0
2164
    else
2165
      if stundelay <= stunwait then
2166
        stundelay = stundelay + 1
2167
      else
2168
        stundelay = 0
2169
        StunValue.Value = StunValue.Value - 1
2170
      end
2171
    end
2172
  else
2173
    if allowstunbar == false then
2174
      StunValue.Value = 0
2175
    end
2176
  end
2177
end
2178
2179
              if allowmenutofunction == true then
2180
                ArtificialHB.Event:connect(function()
2181
  
2182
  updateskills()
2183
  if allowabilitestofunction == true then
2184
    framesk1:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
2185
    framesk2:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
2186
    framesk3:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
2187
    framesk4:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
2188
    bar1:TweenSize(ud(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
2189
    bar2:TweenSize(ud(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
2190
    bar3:TweenSize(ud(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
2191
    bar4:TweenSize(ud(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
2192
  end
2193
  manabar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
2194
  manacover:TweenSize(ud(1 * (Mana.Value / maxmana), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
2195
  healthbar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
2196
  healthcover:TweenSize(ud(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
2197
  if allowstunbar == true and showstunbar == true and stunframe ~= nil then
2198
    stunframe:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
2199
    stunbar:TweenSize(ud(1 * (StunValue.Value / maxstun), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
2200
  end
2201
  if showhealthmanaandstunnumbers == true then
2202
    manatext.Text = "Mana [" .. math.floor(Mana.Value) .. "]"
2203
    healthtext.Text = "Health [" .. math.floor(Humanoid.Health) .. "]"
2204
    if allowstunbar == true and showstunbar == true then
2205
      stuntext.Text = "Stun [" .. math.floor(StunValue.Value) .. "]"
2206
    end
2207
  end
2208
  if showstats == true then
2209
    defenseframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
2210
    damageframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
2211
    movementframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
2212
    defensetext.Text = "Defense: " .. Defense.Value
2213
    damagetext.Text = "Damage: " .. Damage.Value
2214
    if Rooted.Value == false then
2215
      movementtext.Text = "Movement: " .. Movement.Value
2216
    else
2217
      movementtext.Text = "Movement: 0"
2218
    end
2219
  end
2220
end
2221
)
2222
              end
2223
                    while 1 do
2224
                      hbwait()
2225
                      if attack == true then
2226
                        Hitbox.Name = "Hitbox"
2227
                      elseif attack == false then
2228
                        Hitbox.Name = "NilHitbox"
2229
                      end
2230
                      if 0 < Humanoid.Health then
2231
                        if walkspeeddependsonspeedvalue == true then
2232
                          if Movement.Value < 0 or StaggerAnim.Value == true or StunAnim.Value == true or StaggerHitAnim.Value == true or Rooted.Value == true then
2233
                            Humanoid.WalkSpeed = 0
2234
                          else
2235
                            Humanoid.WalkSpeed = 16 * Movement.Value
2236
                          end
2237
                        end
2238
                        if maxstun <= StunValue.Value then
2239
                          StunValue.Value = 0
2240
                          StunAnim.Value = true
2241
                        end
2242
                        if StaggerAnim.Value == true and staggeranim == false then
2243
                          coroutine.resume(coroutine.create(function()
2244
  
2245
  staggeranim = true
2246
  while attack == true do
2247
    hbwait()
2248
  end
2249
  Stagger()
2250
  StaggerAnim.Value = false
2251
  staggeranim = false
2252
end
2253
))
2254
                        end
2255
                        if StaggerHitAnim.Value == true and staggerhitanim == false then
2256
                          coroutine.resume(coroutine.create(function()
2257
  
2258
  staggerhitanim = true
2259
  while attack == true do
2260
    hbwait()
2261
  end
2262
  StaggerHit()
2263
  StaggerHitAnim.Value = false
2264
  staggerhitanim = false
2265
end
2266
))
2267
                        end
2268
                        if (StunAnim.Value == true and stunanim == false) or 100 <= StunValue.Value then
2269
                          coroutine.resume(coroutine.create(function()
2270
  
2271
  StunValue.Value = 0
2272
  stunanim = true
2273
  while attack == true do
2274
    hbwait()
2275
  end
2276
  Stun()
2277
  StunAnim.Value = false
2278
  stunanim = false
2279
end
2280
))
2281
                        end
2282
                        sine = sine + change
2283
                        someangle = someangle % 100 + change2 / 10
2284
                        local torvel = (RootPart.Velocity * vt(1, 0, 1)).magnitude
2285
                        local velderp = RootPart.Velocity.y
2286
                        local lv = Torso.CFrame:pointToObjectSpace(Torso.Velocity + Torso.Position)
2287
                        hitfloor = rayCast(RootPart.Position, cf(RootPart.Position, RootPart.Position - vt(0, 1, 0)).lookVector, 4, Character)
2288
                        if 0.5 <= donum then
2289
                          handidle = true
2290
                        else
2291
                          if donum <= 0 then
2292
                            handidle = false
2293
                          end
2294
                        end
2295
                        if handidle == false then
2296
                          donum = donum + 0.0015
2297
                        else
2298
                          donum = donum - 0.0015
2299
                        end
2300
                        if equipped == true or equipped == false then
2301
                          if attack == false then
2302
                            idle = idle + 1
2303
                          else
2304
                            idle = 0
2305
                          end
2306
                          if leftarm == true then
2307
                            if Anim == "Walk" and equipped == true and attack == false then
2308
                              if alternatewalk == false then
2309
                                if walkinganim == true then
2310
                                  LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
2311
                                else
2312
                                  LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(-60), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
2313
                                end
2314
                              elseif walkinganim == true then
2315
                                  LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(torvel * 2.5), math.rad(0), math.rad(0)), 0.3 / animationspeed)
2316
                                else
2317
                                  LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(-torvel * 2.5), math.rad(0), math.rad(0)), 0.3 / animationspeed)
2318
                                end
2319
                            elseif (Anim == "Walk" and equipped == true) or leftarm == false then
2320
                                LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
2321
                              end
2322
                            end
2323
                          if rightarm == true then
2324
                            if Anim == "Walk" and equipped == true and attack == false then
2325
                              if alternatewalk == false then
2326
                                if walkinganim == true then
2327
                                  RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(-60), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
2328
                                else
2329
                                  RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
2330
                                end
2331
                              elseif walkinganim == true then
2332
                                  RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(-torvel * 2.5), math.rad(0), math.rad(0)), 0.3 / animationspeed)
2333
                                else
2334
                                  RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(torvel * 2.5), math.rad(0), math.rad(0)), 0.3 / animationspeed)
2335
                                end
2336
                            elseif (Anim == "Walk" and equipped == true) or rightarm == false then
2337
                                RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
2338
                              end
2339
                            end
2340
                          if allowwalking == true then
2341
                            if Anim == "Walk" and equipped == true then
2342
                              if alternatewalk == false then
2343
                                if walkinganim == true then
2344
                                  RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
2345
                                  LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
2346
                                else
2347
                                  RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
2348
                                  LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
2349
                                end
2350
                              elseif walkinganim == true then
2351
                                  RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(torvel * 2.5)), 0.3 / animationspeed)
2352
                                  LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(torvel * 2.5)), 0.3 / animationspeed)
2353
                                else
2354
                                  RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-torvel * 2.5)), 0.3 / animationspeed)
2355
                                  LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-torvel * 2.5)), 0.3 / animationspeed)
2356
                                end
2357
                            elseif Anim ~= "Walk" and equipped == true then
2358
                                RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
2359
                                LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
2360
                              end
2361
                            end
2362
                          if 1 < velderp and hitfloor == nil then
2363
                            Anim = "Jump"
2364
                            if attack == false and equipped == true then
2365
                              RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2 / animationspeed)
2366
                              Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2 / animationspeed)
2367
                              RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(70), math.rad(0), math.rad(60)) * RWC0, 0.2 / animationspeed)
2368
                              LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-40), math.rad(0), math.rad(-20)) * LWC0, 0.2 / animationspeed)
2369
                              RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0.3) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.2 / animationspeed)
2370
                              LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0.3) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.2 / animationspeed)
2371
                              WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -1.5, 0.1) * angles(math.rad(80), math.rad(-10), math.rad(0)), 0.2 / animationspeed)
2372
                        end
2373
                      end
2374
                    if velderp < -1 and hitfloor == nil then
2375
                      Anim = "Fall"
2376
                      if attack == false and equipped == true then
2377
                        RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2 / animationspeed)
2378
                        Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.2 / animationspeed)
2379
                        RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(30)) * RWC0, 0.2 / animationspeed)
2380
                        LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)) * LWC0, 0.2 / animationspeed)
2381
                        RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2 / animationspeed)
2382
                        LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.2 / animationspeed)
2383
                        WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0.2, -1.5, 0.1) * angles(math.rad(70), math.rad(15), math.rad(0)), 0.2 / animationspeed)
2384
                      end
2385
                    end
2386
                  if torvel < 1 and hitfloor ~= nil then
2387
                    Anim = "Idle"
2388
                    if attack == false and equipped == true then
2389
                      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(5 - (donum) / 0.075), math.rad(0), math.rad(-30)), 0.15 / animationspeed)
2390
                      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10 - (donum) / 0.05), math.rad(0), math.rad(30)), 0.15 / animationspeed)
2391
                      RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(80 + (donum) / 0.05), math.rad(0), math.rad(30 - (donum) / 0.05)) * RWC0, 0.15 / animationspeed)
2392
                      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(20 - (donum) / 0.05), math.rad(0), math.rad(-20 - (donum) / 0.05)) * angles(math.rad(0), math.rad(10), math.rad(0)) * LWC0, 0.15 / animationspeed)
2393
                      RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0 - (donum) / 0.057)), 0.15 / animationspeed)
2394
                      LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-5 + (donum) / 0.075)), 0.15 / animationspeed)
2395
                      WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0.2, -1.5, 0.1) * angles(math.rad(70), math.rad(10 + (donum) / 0.075), math.rad(0)), 0.15 / animationspeed)
2396
                    end
2397
                  end
2398
                if 2 < torvel or torvel > 22 and hitfloor ~= nil then
2399
                  Anim = "Walk"
2400
                  walk = walk + 1 / animationspeed
2401
                  if 10 <= walk then
2402
                    walk = 0
2403
                    if walkinganim == true then
2404
                      walkinganim = false
2405
                    elseif walkinganim == false then
2406
                      walkinganim = true
2407
                    end
2408
                  end
2409
                  if attack == false and equipped == true then
2410
                    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.2 / animationspeed)
2411
                    Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2 / animationspeed)
2412
                    RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(80), math.rad(0), math.rad(30)) * RWC0, 0.2 / animationspeed)
2413
                    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)) * LWC0, 0.2 / animationspeed)
2414
                    RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2 / animationspeed)
2415
                    LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2 / animationspeed)
2416
                    WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0.2, -1.5, 0.1) * angles(math.rad(70), math.rad(10), math.rad(0)), 0.2 / animationspeed)
2417
                  end
2418
                end
2419
end
2420
end
2421
end