View difference between Paste ID: JmM8uBd7 and ZPJBeCLc
SHOW: | | - or go back to the newest paste.
1
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
2
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
3
local RealPlayer = Player
4
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
5
--[[
6
	
7
	
8
---------------------------------------------------------------	
9
Remake by: 123jl123	
10
---------------------------------------------------------------
11
Script: Giga Vanta 
12
---------------------------------------------------------------
13
Type: Boss/Class
14
---------------------------------------------------------------
15
16
17
]]
18
local intro = true 
19
local Removeface = true
20
 wait(0.016666666666666666)
21
  Player = game:GetService("Players").LocalPlayer
22
  Character = Player.Character
23
char = Character
24
torso = char.Torso
25
hed = char.Head
26
maincolor = BrickColor.new("Eggplant")
27
  PlayerGui = Player.PlayerGui
28
  Backpack = Player.Backpack
29
  Torso = Character.Torso
30
  Head = Character.Head
31
  Humanoid = Character.Humanoid
32
  LeftArm = Character["Left Arm"]
33
  LeftLeg = Character["Left Leg"]
34
  RightArm = Character["Right Arm"]
35
  RightLeg = Character["Right Leg"]
36
  LS = Torso["Left Shoulder"]
37
  LH = Torso["Left Hip"]
38
  RS = Torso["Right Shoulder"]
39
  RH = Torso["Right Hip"]
40
  Face = Head.face
41
  Neck = Torso.Neck
42
  it = Instance.new
43
  attacktype = 1
44
  vt = Vector3.new
45
  cf = CFrame.new
46
  euler = CFrame.fromEulerAnglesXYZ
47
  angles = CFrame.Angles
48
  necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
49
  LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
50
  RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
51
  RootPart = Character.HumanoidRootPart
52
  RootJoint = RootPart.RootJoint
53
  RootCF = euler(-1.57, 0, 3.14)
54
  attack = false
55
  equipped = false
56
  Mouse = Player:GetMouse()
57
  mana = 0
58
  local idle = 0
59
  local Anim = "Idle"
60
  local ShotTarget = RootPart
61
  player = nil
62
  local Stats = Instance.new("Folder", Character)
63
  Stats.Name = "Stats"
64
  local Defense = Instance.new("NumberValue", Stats)
65
  Defense.Name = "Defense"
66
  Defense.Value = 0.6
67
  local Speed = Instance.new("NumberValue", Stats)
68
  Speed.Name = "Speed"
69
  Speed.Value = 1.6625
70
  local Damage = Instance.new("NumberValue", Stats)
71
  Damage.Name = "Damage"
72
  Damage.Value = 1
73
  local BlockValue = Instance.new("BoolValue", Stats)
74
  BlockValue.Name = "BlockValue"
75
  BlockValue.Value = false
76
  local StaggerHitAnim = Instance.new("BoolValue", Stats)
77
  StaggerHitAnim.Name = "StaggerHitAnim"
78
  StaggerHitAnim.Value = false
79
  local staghitanim = false
80
  local StaggerAnim = Instance.new("BoolValue", Stats)
81
  StaggerAnim.Name = "StaggerAnim"
82
  StaggerAnim.Value = false
83
  local staganim = false
84
  local StunAnim = Instance.new("BoolValue", Stats)
85
  StunAnim.Name = "StunAnim"
86
  StunAnim.Value = false
87
  local stunanim = false
88
  local StunValue = Instance.new("NumberValue", Stats)
89
  StunValue.Name = "StunValue"
90
  StunValue.Value = 0
91
  local cooldown1 = 0
92
  local cooldown2 = 0
93
  local cooldown3 = 0
94
  local cooldown4 = 0
95
  local mana = 0
96
  CustomColor = BrickColor.new("Really black")
97
  Colorpart1 = CustomColor.r
98
  Colorpart2 = CustomColor.g
99
  Colorpart3 = CustomColor.b
100
  local scrn = Instance.new("ScreenGui", PlayerGui)
101
  local ud = UDim2.new
102
  local c3 = Color3.new
103
  local skillcolorscheme = c3(1, 1, 1)
104
  local co1 = 0
105
  local co2 = 0
106
  local co3 = 0
107
  local co4 = 0
108
  local maxmana = 0
109
  local maxstun = 1
110
  local recovermana = 0
111
  local losestun = 0
112
  local stunwait = 0
113
  local manawait = 0
114
  local skill1mana = 0
115
  local skill2mana = 0
116
  local skill3mana = 0
117
  local skill4mana = 0
118
  local menuupdatespeed = 0
119
  local constantupdate = false
120
  local showstats = false
121
  local showstunbar = false
122
local lp = game.Players.LocalPlayer
123
local chr = lp.Character
124
local mouseV2 = lp:GetMouse()
125
local euler = CFrame.fromEulerAnglesXYZ
126
local rad = math.rad
127
local trso = chr.Torso
128
script.Name = "Soul Of Darkness"
129
130
131
 	New = function(Object, Parent, Name, Data)
132
	local Object = Instance.new(Object)
133
	for Index, Value in pairs(Data or {}) do
134
		Object[Index] = Value
135
	end
136-
	Music1 = New("Sound",Character,"Music",{SoundId = "rbxassetid://190845741",Volume = 2.5,Looped = true})
136+
137
	Object.Name = Name
138
	return Object
139
end
140
	Music1 = New("Sound",Character,"Music",{SoundId = "rbxassetid://965845438",Volume = 1.5,Looped = true})
141
Music1.Pitch = 1
142
143
144
	Music2 = New("Sound",Torso,"Music",{SoundId = "rbxassetid://215931322",Volume = 2,Looped = false})
145
Music2.Pitch = 1.7
146
147
	TalkSound = New("Sound",Torso,"Music",{SoundId = "rbxassetid://615716445",Volume = 4,Looped = false})
148
TalkSound.Pitch = .2
149
150
		
151
152
153
154
155
hum = chr.Humanoid
156
157
158
function newface()
159
char.Head.face.Texture = "http://www.roblox.com/asset/?id=0"
160
if Removeface == true then
161
char.Head.face:Destroy()
162
end
163
local eye12 = Instance.new("Part")
164
eye12.Parent = char
165
eye12.Size = Vector3.new(0.2, 0.2, 0.2)
166
eye12.Archivable = true
167
eye12.Transparency = 0
168
eye12.Shape = "Ball"
169
eye12.BrickColor = maincolor
170
eye12.Material = "Neon"
171
eye12.CanCollide = false
172
local mesh2 = Instance.new("SpecialMesh",eye12)
173
mesh2.MeshType = "Sphere"
174
mesh2.Scale = Vector3.new(.6, 1.2, 1)
175
local weld1en2 = Instance.new("Weld")
176
weld1en2.Parent = char.Head
177
weld1en2.Part0 = char.Head
178
weld1en2.Part1 = eye12
179
weld1en2.C1 = CFrame.new(0.15, -0.15, 0.5175)
180
local eye1 = Instance.new("Part")
181
eye1.Parent = char
182
eye1.Size = Vector3.new(0.2, 0.2, 0.2)
183
eye1.Archivable = true
184
eye1.Transparency = 0
185
eye1.Shape = "Ball"
186
eye1.BrickColor = maincolor
187
eye1.Material = "Neon"
188
eye1.CanCollide = false
189
local mesh = Instance.new("SpecialMesh",eye1)
190
mesh.MeshType = "Sphere"
191
mesh.Scale = Vector3.new(.6, 1.2, 1)
192
local weld1en = Instance.new("Weld")
193
weld1en.Parent = char.Head
194
weld1en.Part0 = char.Head
195
weld1en.Part1 = eye1
196
weld1en.C1 = CFrame.new(-0.15, -0.15, 0.5175)
197
end
198
199
200
201
function CreateMesh(parent, id, x, y, z, texture)
202
local m=Instance.new("SpecialMesh", parent)
203
m.MeshType = "FileMesh"
204
m.MeshId="http://www.roblox.com/asset/?id="..id
205
if texture ~= nil then
206
m.TextureId="http://www.roblox.com/asset/?id="..texture
207
end
208
m.Scale = Vector3.new(x,y,z)
209
end
210
211
212
213
Hat=function()
214
hat = Instance.new("Part", chr)
215
hat.Transparency = 1
216
hat.Name = "Top hat"
217
hat.Locked = true
218
hat.BrickColor = BrickColor.new("Really black")
219
hat.CanCollide=true
220
hat.Size=Vector3.new(1,1,1)
221
hatw = Instance.new("Weld",hat)
222
hatw.Part0=hat
223
hatw.Part1=chr['Head']
224
hatw.C0=CFrame.new(0,-1.7,0)
225
hatw.C1=euler(rad(0),rad(0),rad(0))
226
end
227
228
Hat()
229
230
231
232
function Name(msg)
233
        if hat.Parent then
234
        pcall(function()
235
        local Gui = Instance.new('BillboardGui', hat)
236
        Gui.ExtentsOffset = Vector3.new(0,1.5,0)
237
        Gui.Size = UDim2.new(0,200,0,300)
238
        local Frame = Instance.new('Frame',Gui)
239
        Frame.BackgroundTransparency = 1
240
        Frame.Size = UDim2.new(1,0,1,0)
241
        local Txt = Instance.new('TextLabel',Frame)
242
        Txt.BackgroundTransparency = 1
243
        Txt.Size = UDim2.new(1,0,1,0)
244
        Txt.Font = 'ArialBold'
245
        Txt.FontSize = 'Size24'
246
        Txt.Text = msg
247
        Txt.TextColor3 = BrickColor.new("Really black").Color
248
        Txt.TextStrokeColor3 = Color3.new(1,0,0)
249
        Txt.TextStrokeTransparency = 0
250
        Txt.TextWrapped = true
251
        Txt.TextScaled = false
252
        end)
253
        else
254
        end
255
end
256
257
function Chat(msg) -- Credit to jillmiles1, kthxbye
258
        if hat.Parent then
259
        pcall(function()
260
		if hat:FindFirstChild("Vanta Chat Gui") then
261
		hat['Vanta Chat Gui']:destroy()
262
		end
263
        local Gui = Instance.new('BillboardGui', hat)
264
		Gui.Name = "Vanta Chat Gui"
265
        Gui.ExtentsOffset = Vector3.new(0,3,0)
266
        Gui.Size = UDim2.new(0,200,0,300)
267
        local Frame = Instance.new('Frame',Gui)
268
        Frame.BackgroundTransparency = 1
269
        Frame.Size = UDim2.new(1,0,1,0)
270
        local Txt = Instance.new('TextLabel',Frame)
271
        Txt.BackgroundTransparency = 1
272
        Txt.Size = UDim2.new(1,0,1,0)
273
        Txt.Font = 'ArialBold'
274
		Txt.Name = "ChatGui"
275
        Txt.FontSize = 'Size24'
276
        Txt.Text = ''
277
        Txt.TextColor3 = BrickColor.new("Really black").Color
278
        Txt.TextStrokeColor3 = Color3.new(.2,0,.6)
279
        Txt.TextStrokeTransparency = .5
280
        Txt.TextWrapped = true
281
        Txt.TextScaled = false
282
283
        delay(wait(),function()
284
                for v = 1, #msg do
285
                        Txt.Text=string.sub(msg,1,v)
286
TalkSound:Play()
287
           Gui.ExtentsOffset = Vector3.new(.1,2.9,0)
288
wait(.009)
289
        Gui.ExtentsOffset = Vector3.new(0,3,-0.1)                    
290
 wait(.009)
291
  Gui.ExtentsOffset = Vector3.new(0,3,0)   
292
                end;
293
                
294
          
295
296
           Gui.ExtentsOffset = Vector3.new(.1,2.9,0)
297
wait(.03)
298
        Gui.ExtentsOffset = Vector3.new(0,3,-0.1)                    
299
 wait(.03)
300
  Gui.ExtentsOffset = Vector3.new(0,3,0)  
301
wait(.03)
302
           Gui.ExtentsOffset = Vector3.new(.1,2.9,0)
303
wait(.03)
304
        Gui.ExtentsOffset = Vector3.new(0,3,-0.1)                    
305
 wait(.03)
306
  Gui.ExtentsOffset = Vector3.new(0,3,0)  
307
wait(.03)
308
           Gui.ExtentsOffset = Vector3.new(.1,2.9,0)
309
wait(.03)
310
        Gui.ExtentsOffset = Vector3.new(0,3,-0.1)                    
311
 wait(.03)
312
  Gui.ExtentsOffset = Vector3.new(0,3,0)  
313
wait(.03)
314
           Gui.ExtentsOffset = Vector3.new(.1,2.9,0)
315
wait(.03)
316
        Gui.ExtentsOffset = Vector3.new(0,3,-0.1)                    
317
 wait(.03)
318
  Gui.ExtentsOffset = Vector3.new(0,3,0)  
319
wait(.03)
320
           Gui.ExtentsOffset = Vector3.new(.1,2.9,0)
321
wait(.03)
322
        Gui.ExtentsOffset = Vector3.new(0,3,-0.1)                    
323
 wait(.03)
324
  Gui.ExtentsOffset = Vector3.new(0,3,0)  
325
wait(.03)
326
           Gui.ExtentsOffset = Vector3.new(.1,2.9,0)
327
wait(.03)
328
        Gui.ExtentsOffset = Vector3.new(0,3,-0.1)                    
329
 wait(.03)
330
  Gui.ExtentsOffset = Vector3.new(0,3,0)  
331
wait(.03)
332
333
 Txt.TextStrokeTransparency = .6
334
wait()
335
 Txt.TextStrokeTransparency = .7
336
wait()
337
 Txt.TextStrokeTransparency = .8
338
wait()
339
 Txt.TextStrokeTransparency = .9
340
wait()
341
 Txt.TextStrokeTransparency = 1
342
wait()
343
344
      for v = 1, #Txt.Text do
345
                        Txt.Text=string.sub(msg,-1,v)
346
347
348
             
349
350
351
352
353
   end;
354
                Gui:remove()
355
        end)
356
        end)
357
        else
358
        end
359
end
360
361
362
363
364
function PlaySound(id, pitch, looped)
365
        epicsound = Instance.new("Sound")
366
        epicsound.Name = "FazbearSound"
367
  epicsound.SoundId = "rbxassetid://"..id
368
     epicsound.Volume = 1.5
369
     epicsound.Pitch = pitch
370
	 if looped == nil then
371
	 looped = true
372
	 else
373
	 looped = looped
374
	 end
375
	 wait()
376
  epicsound.Looped = looped
377
  epicsound.Parent = workspace
378
  es=epicsound:clone()
379
  es:Stop()
380
  es.Parent = chr
381
  wait()
382
  es:Play()
383
end
384
385
386
387
 
388
lp.Chatted:connect(function(msg)
389
        Chat(msg)
390
end)
391
392
goldie=true
393
394
395
function StopMusic()
396
	if chr:FindFirstChild("FazbearSound") then
397
		if chr.FazbearSound.ClassName == "Sound" then
398
			chr.FazbearSound:Stop()
399
			wait()
400
			chr.FazbearSound:Destroy()
401
		end
402
	end
403
end
404
405
Name("")
406
407
408
mouseV2.KeyDown:connect(function(key)
409
if key == "g" then
410
if goldie==false then
411
goldie=true
412
413
elseif goldie==true then
414
goldie=false
415
416
end
417
elseif key == "q" then -- Plays a song
418
StopMusic()
419
PlaySound(449394841, 0.8, false)
420
elseif key == "e" then -- Plays a song
421
StopMusic()
422
PlaySound(449394892, 0.8, false)
423
wait(2.4)
424
StopMusic()
425
elseif key == "t" then -- Stops any sound(s) playing from your torso
426
StopMusic()
427
428
end
429
end)
430
431
432
433
hum.Died:connect(function()
434
	es.Pitch = 10
435
	wait()
436
	es:Pause()
437
	es:Stop()
438
	es.Name = "Ded"
439
	wait()
440
	es:Destroy()
441
end)
442
443
444
445
446
447
448
  function makeframe(par, trans, pos, size, color, name)
449
    local frame = Instance.new("Frame")
450
    frame.Parent = par
451
    frame.BackgroundTransparency = trans
452
    frame.BorderSizePixel = 0
453
    frame.Position = pos
454
    frame.Size = size
455
    frame.BackgroundColor3 = color
456
    frame.Name = name
457
    return frame
458
  end
459
  function makelabel(par, text, trans, stroketrans, name)
460
    local label = Instance.new("TextLabel")
461
    label.Parent = par
462
    label.BackgroundTransparency = 1
463
    label.Size = ud(1, 0, 1, 0)
464
    label.Position = ud(0, 0, 0, 0)
465
    label.TextColor3 = c3(255, 255, 255)
466
    label.TextStrokeTransparency = stroketrans
467
    label.TextTransparency = trans
468
    label.FontSize = Enum.FontSize.Size32
469
    label.Font = Enum.Font.Legacy
470
    label.BorderSizePixel = 0
471
    label.TextScaled = true
472
    label.Text = text
473
    label.Name = name
474
    return label
475
  end
476
  framesk1 = makeframe(scrn, 0.5, ud(0.23, 0, 0.93, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 1")
477
  framesk2 = makeframe(scrn, 0.5, ud(0.5, 0, 0.93, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 2")
478
  framesk3 = makeframe(scrn, 0.5, ud(0.5, 0, 0.86, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 3")
479
  framesk4 = makeframe(scrn, 0.5, ud(0.23, 0, 0.86, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 4")
480
  bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 1")
481
  bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 2")
482
  bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 3")
483
  bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 4")
484
  text1 = makelabel(framesk1, "[C] Ability 3", 1, 1, "Text 1")
485
  text2 = makelabel(framesk2, "[V] Ability 4", 1, 1, "Text 2")
486
  text3 = makelabel(framesk3, "[X] Ability 2", 1, 1, "Text 3")
487
  text4 = makelabel(framesk4, "[Z] Ability 1", 1, 1, "Text 4")
488
  manabar = makeframe(scrn, 0.5, ud(0.23, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Bar")
489
  manacover = makeframe(manabar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Cover")
490
  manatext = makelabel(manabar, "Mana", 1, 1, "Mana Text")
491
  healthbar = makeframe(scrn, 0.5, ud(0.5, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(1, 0.19607843137254902, 0.19607843137254902), "Health Bar")
492
  healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 0.19607843137254902, 0.19607843137254902), "Health Cover")
493
  healthtext = makelabel(healthbar, "Health", 1, 1, "Health Text")
494
  if showstunbar == true then
495
    stunframe = makeframe(scrn, 0.5, ud(0.5, 0, 0.78, 0), ud(0.26, 0, 0, 0), c3(1, 1, 0.19607843137254902), "Stun Frame")
496
    stunbar = makeframe(stunframe, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 1, 0.19607843137254902), "Stun Bar")
497
    stuntext = makelabel(stunframe, "Stun", 1, 1, "Stun Text")
498
  end
499
  if showstats == true then
500
    defenseframe = makeframe(scrn, 0.5, ud(0.23, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(0.39215686274509803, 0.39215686274509803, 1), "Defense Frame")
501
    damageframe = makeframe(scrn, 0.5, ud(0.322, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(1, 0.39215686274509803, 0.39215686274509803), "Damage Frame")
502
    speedframe = makeframe(scrn, 0.5, ud(0.4145, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(0.39215686274509803, 1, 0.39215686274509803), "Speed Frame")
503
    defensetext = makelabel(defenseframe, "Defense: " .. Defense.Value, 1, 1, "Defense Text")
504
    damagetext = makelabel(damageframe, "Damage: " .. Damage.Value, 1, 1, "Damage Text")
505
    speedtext = makelabel(speedframe, "Speed: " .. Speed.Value, 1, 1, "Speed Text")
506
  end
507
  function NoOutline(Part)
508
    Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
509
  end
510
  local weldBetween = function(a, b)
511
    local weldd = Instance.new("ManualWeld")
512
    weldd.Part0 = a
513
    weldd.Part1 = b
514
    weldd.C0 = CFrame.new()
515
    weldd.C1 = b.CFrame:inverse() * a.CFrame
516
    weldd.Parent = a
517
    return weldd
518
  end
519
  ArtificialHeartbeat = Instance.new("BindableEvent", script)
520
  ArtificialHeartbeat.Name = "ArtificialHeartbeat"
521
  script:WaitForChild("ArtificialHeartbeat")
522
  frame = 0.016666666666666666
523
  tf = 0
524
  allowframeloss = false
525
  tossremainder = false
526
  lastframe = tick()
527
  script.ArtificialHeartbeat:Fire()
528
  game:GetService("RunService").Heartbeat:connect(function(s, p)
529
    tf = tf + s
530
    if tf >= frame then
531
      if allowframeloss then
532
        script.ArtificialHeartbeat:Fire()
533
        lastframe = tick()
534
      else
535
        for i = 1, math.floor(tf / frame) do
536
          script.ArtificialHeartbeat:Fire()
537
        end
538
        lastframe = tick()
539
      end
540
      if tossremainder then
541
        tf = 0
542
      else
543
        tf = tf - frame * math.floor(tf / frame)
544
      end
545
    end
546
  end)
547
  function nooutline(part)
548
    part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
549
  end
550
  function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
551
    local fp = it("Part")
552
    fp.formFactor = formfactor
553
    fp.Parent = parent
554
    fp.Reflectance = reflectance
555
    fp.Transparency = transparency
556
    fp.CanCollide = false
557
    fp.Locked = true
558
    fp.BrickColor = BrickColor.new(tostring(brickcolor))
559
    fp.Name = name
560
    fp.Size = size
561
    fp.Position = Character.Torso.Position
562
    nooutline(fp)
563
    fp.Material = material
564
    fp:BreakJoints()
565
    return fp
566
  end
567
  function mesh(Mesh, part, meshtype, meshid, offset, scale)
568
    local mesh = it(Mesh)
569
    mesh.Parent = part
570
    if Mesh == "SpecialMesh" then
571
      mesh.MeshType = meshtype
572
      mesh.MeshId = meshid
573
    end
574
    mesh.Offset = offset
575
    mesh.Scale = scale
576
    return mesh
577
  end
578
  function weld(parent, part0, part1, c0, c1)
579
    local weld = it("Weld")
580
    weld.Parent = parent
581
    weld.Part0 = part0
582
    weld.Part1 = part1
583
    weld.C0 = c0
584
    weld.C1 = c1
585
    return weld
586
  end
587
  Humanoid.CameraOffset = vt(0, 12, 0)
588
  Humanoid.JumpPower = Humanoid.JumpPower * 2
589
  coroutine.resume(coroutine.create(function()
590
    Humanoid.MaxHealth = 50000
591
    wait(0.1)
592
    Humanoid.Health = Humanoid.MaxHealth
593
  end))
594
  m = Instance.new("Model", Character)
595
  m.Name = "Outer Being"
596
  healthscript = Character:FindFirstChild("Health")
597
  if healthscript ~= nil then
598
    healthscript:Destroy()
599
  end
600
  Effects = Instance.new("Folder", m)
601
  Effects.Name = "Effects"
602
  local outerbeingtransparency = 1
603
  local head2 = part(0, m, "Neon", 0, outerbeingtransparency, CustomColor, "Head2", vt(0, 0, 0))head2.Material = "Neon"
604
  local head2mesh = mesh("SpecialMesh", head2, "Head", "", vt(0, 0, 0), vt(62.5, 31.25, 31.25)*4)
605
  local torso2 = part(0, m, "Neon", 0, outerbeingtransparency, CustomColor, "Torso2", vt(0, 0, 0))torso2.Material = "Neon"
606
  local torso2mesh = mesh("BlockMesh", torso2, "", "", vt(0, 0, 0), vt(50, 50, 25)*4)
607
  local leftarm2 = part(0, m, "Neon", 0, outerbeingtransparency, CustomColor, "LeftArm2", vt(0, 0, 0))leftarm2.Material = "Neon"
608
  local leftarm2mesh = mesh("BlockMesh", leftarm2, "", "", vt(0, 0, 0), vt(25, 50, 25)*4)
609
  local rightarm2 = part(0, m, "Neon", 0, outerbeingtransparency, CustomColor, "RightArm2", vt(0, 0, 0))rightarm2.Material = "Neon"
610
  local rightarm2mesh = mesh("BlockMesh", rightarm2, "", "", vt(0, 0, 0), vt(25, 50, 25)*4)
611
  local leftleg2 = part(0, m, "Neon", 0, outerbeingtransparency, CustomColor, "LeftLeg2", vt(0, 0, 0))leftleg2.Material = "Neon"
612
  local leftleg2mesh = mesh("BlockMesh", leftleg2, "", "", vt(0, 0, 0), vt(25, 50, 25)*4)
613
  local rightleg2 = part(0, m, "Neon", 0, outerbeingtransparency, CustomColor, "RightLeg2", vt(0, 0, 0))rightleg2.Material = "Neon"
614
615
  local rightleg2mesh = mesh("BlockMesh", rightleg2, "", "", vt(0, 0, 0), vt(25, 50, 25)*4)
616
  head2.CFrame = Head.CFrame
617
  torso2.CFrame = Head.CFrame
618
  leftarm2.CFrame = Head.CFrame
619
  rightarm2.CFrame = Head.CFrame
620
  leftleg2.CFrame = Head.CFrame
621
  rightleg2.CFrame = Head.CFrame
622
  local head2weld = weld(m, Torso, head2, cf(0, 0, 0), cf(0, 0, 0))
623
  local torso2weld = weld(m, Torso, torso2, cf(0, 0, 0), cf(0, 0, 0))
624
  local leftarm2weld = weld(m, Torso, leftarm2, cf(0, 0, 0), cf(0, 0, 0))
625
  local rightarm2weld = weld(m, Torso, rightarm2, cf(0, 0, 0), cf(0, 0, 0))
626
  local leftleg2weld = weld(m, Torso, leftleg2, cf(0, 0, 0), cf(0, 0, 0))
627
  local rightleg2weld = weld(m, Torso, rightleg2, cf(0, 0, 0), cf(0, 0, 0))
628
  head2weld.C1 = cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0)
629
  torso2weld.C1 = cf(0, 0, 0)
630
  rightarm2weld.C1 = cf(0, 2.5, -0.5)
631
  leftarm2weld.C1 = cf(0, 2.5, -0.5)
632
  rightleg2weld.C1 = cf(0, 5, 0)
633
  leftleg2weld.C1 = cf(0, 5, 0)
634
  coroutine.resume(coroutine.create(function()
635
    while Humanoid.Health ~= 0 do
636
      ArtificialHeartbeat.Event:wait()
637
      head2weld.C0 = cf(0, 4, 0) * Neck.C0
638
      torso2weld.C0 = cf(0, 0, 0)
639
      rightarm2weld.C0 = cf(6, 2, 0) * RW.C0
640
      leftarm2weld.C0 = cf(-6, 2, 0) * LW.C0
641
      rightleg2weld.C0 = cf(1.5, -4, 0) * RH.C0
642
      leftleg2weld.C0 = cf(-1.5, -4, 0) * LH.C0
643
      head2.Transparency = outerbeingtransparency
644
      torso2.Transparency = outerbeingtransparency
645
      leftarm2.Transparency = outerbeingtransparency
646
      rightarm2.Transparency = outerbeingtransparency
647
      leftleg2.Transparency = outerbeingtransparency
648
      rightleg2.Transparency = outerbeingtransparency
649
    end
650
  end))
651
  Humanoid.Died:connect(function()
652
  end)
653
  for i, v in pairs(Character:GetChildren()) do
654
    if v:IsA("Model") then
655
      for _, c in pairs(v:GetChildren()) do
656
        if c:IsA("Part") then
657
          c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
658
        end
659
      end
660
    end
661
  end
662
tran = 0
663
for i,v in pairs(Character:GetChildren()) do 
664
if v.Name == "Head" or v.Name == "Torso" or v.Name == "Torso" or v.Name == "Left Arm" or v.Name == "Right Arm" or v.Name == "Left Leg" or v.Name == "Right Leg" then
665
Glow1 = Color3.new(.1,0,.6)
666
Glow2 = Color3.new(0,0,0)
667
668
GlowParticle = Instance.new("ParticleEmitter",v)
669
GlowParticle.LightEmission = 1
670
GlowParticle.Color = ColorSequence.new(Glow1,Glow2)
671
GlowParticle.Size = NumberSequence.new(0,2)
672
673
GlowParticle.Texture = "http://www.roblox.com/asset/?id=467188845"
674
GlowParticle.Transparency = NumberSequence.new(tran,1)
675
GlowParticle.LockedToPart = true
676
GlowParticle.Lifetime = NumberRange.new(0.5)
677
GlowParticle.Rate= 300
678
GlowParticle.Speed =NumberRange.new(0)
679
end end 
680
  print([[
681
Vanta loaded. 
682
Unleash your power on your enemies.]])
683
  function so(id, par, vol, pit)
684
    coroutine.resume(coroutine.create(function()
685
      local sou = Instance.new("Sound", par or workspace)
686
      sou.Volume = vol
687
      sou.Pitch = pit or 1
688
      sou.SoundId = id
689
      ArtificialHeartbeat.Event:wait()
690
      sou:play()
691
      game:GetService("Debris"):AddItem(sou, 6)
692
    end))
693
  end
694
  function clerp(a, b, t)
695
    local qa = {
696
      QuaternionFromCFrame(a)
697
    }
698
    local qb = {
699
      QuaternionFromCFrame(b)
700
    }
701
    local ax, ay, az = a.x, a.y, a.z
702
    local bx, by, bz = b.x, b.y, b.z
703
    local _t = 1 - t
704
    return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
705
  end
706
  function QuaternionFromCFrame(cf)
707
    local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
708
    local trace = m00 + m11 + m22
709
    if trace > 0 then
710
      local s = math.sqrt(1 + trace)
711
      local recip = 0.5 / s
712
      return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
713
    else
714
      local i = 0
715
      if m00 < m11 then
716
        i = 1
717
      end
718
      if m22 > (i == 0 and m00 or m11) then
719
        i = 2
720
      end
721
      if i == 0 then
722
        local s = math.sqrt(m00 - m11 - m22 + 1)
723
        local recip = 0.5 / s
724
        return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
725
      elseif i == 1 then
726
        local s = math.sqrt(m11 - m22 - m00 + 1)
727
        local recip = 0.5 / s
728
        return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
729
      elseif i == 2 then
730
        local s = math.sqrt(m22 - m00 - m11 + 1)
731
        local recip = 0.5 / s
732
        return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
733
      end
734
    end
735
  end
736
  function QuaternionToCFrame(px, py, pz, x, y, z, w)
737
    local xs, ys, zs = x + x, y + y, z + z
738
    local wx, wy, wz = w * xs, w * ys, w * zs
739
    local xx = x * xs
740
    local xy = x * ys
741
    local xz = x * zs
742
    local yy = y * ys
743
    local yz = y * zs
744
    local zz = z * zs
745
    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))
746
  end
747
  function QuaternionSlerp(a, b, t)
748
    local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
749
    local startInterp, finishInterp
750
    if cosTheta >= 1.0E-4 then
751
      if 1 - cosTheta > 1.0E-4 then
752
        local theta = math.acos(cosTheta)
753
        local invSinTheta = 1 / math.sin(theta)
754
        startInterp = math.sin((1 - t) * theta) * invSinTheta
755
        finishInterp = math.sin(t * theta) * invSinTheta
756
      else
757
        startInterp = 1 - t
758
        finishInterp = t
759
      end
760
    elseif 1 + cosTheta > 1.0E-4 then
761
      local theta = math.acos(-cosTheta)
762
      local invSinTheta = 1 / math.sin(theta)
763
      startInterp = math.sin((t - 1) * theta) * invSinTheta
764
      finishInterp = math.sin(t * theta) * invSinTheta
765
    else
766
      startInterp = t - 1
767
      finishInterp = t
768
    end
769
    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
770
  end
771
  function rayCast(Pos, Dir, Max, Ignore)
772
    return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
773
  end
774
  function makegui(cframe, text, color)
775
    local c = Instance.new("Part")
776
    c.Size = vt(0.2, 0.2, 0.2)
777
    c.Transparency = 1
778
    Instance.new("BodyGyro").Parent = c
779
    c.Parent = Effects
780
    c.CFrame = cf(cframe.p + vt(0, 1.5, 0))
781
    local f = Instance.new("BodyPosition")
782
    f.P = 2000
783
    f.D = 100
784
    f.maxForce = vt(math.huge, math.huge, math.huge)
785
    f.position = c.Position + vt(0, 6, 0)
786
    f.Parent = c
787
    game:GetService("Debris"):AddItem(c, 5)
788
    c.CanCollide = false
789
    c.Parent = workspace
790
    c.CanCollide = false
791
    local bg = Instance.new("BillboardGui", c)
792
    bg.Adornee = c
793
    bg.Size = UDim2.new(2.5, 0, 2.5, 0)
794
    bg.StudsOffset = vt(-2, 2, 0)
795
    bg.AlwaysOnTop = false
796
    local tl = Instance.new("TextLabel", bg)
797
    tl.BackgroundTransparency = 1
798
    tl.Size = UDim2.new(2.5, 0, 2.5, 0)
799
    tl.Text = text
800
    tl.Font = Enum.Font.SourceSans
801
    tl.FontSize = Enum.FontSize.Size42
802
    tl.TextColor3 = color
803
    tl.TextScaled = false
804
    tl.TextStrokeTransparency = 0
805
    tl.TextScaled = true
806
    tl.TextWrapped = true
807
    f.Parent = c
808
    coroutine.resume(coroutine.create(function()
809
      wait(0.25)
810
      for i = 1, 5 do
811
        ArtificialHeartbeat.Event:wait()
812
        f.position = c.Position - vt(0, 0.5, 0)
813
      end
814
    end))
815
    coroutine.resume(coroutine.create(function()
816
      wait(2)
817
      for i = 1, 10 do
818
        ArtificialHeartbeat.Event:wait()
819
        tl.TextTransparency = tl.TextTransparency + 0.1
820
        tl.TextStrokeTransparency = tl.TextStrokeTransparency + 0.1
821
        f.position = c.Position + vt(0, 0.5, 0)
822
      end
823
      c.Parent = nil
824
    end))
825
  end
826
  local CritChance = Instance.new("NumberValue", Stats)
827
  CritChance.Name = "CritChance"
828
  CritChance.Value = 1
829
  local critchancenumber = 50
830
  local cancrit = false
831
  local canpenetratearmor = false
832
  local cancollidewithhitbox = false
833
  local sethitblockvaluetofalse = true
834
  local antiteamkill = false
835
  local HitPlayerSounds = {
836
    199149137,
837
    199149186,
838
    199149221,
839
    199149235,
840
    199149269,
841
    199149297
842
  }
843
  local HitArmorSounds = {
844
    199149321,
845
    199149338,
846
    199149367,
847
    199149409,
848
    199149452
849
  }
850
  local HitWeaponSounds = {
851
    199148971,
852
    199149025,
853
    199149072,
854
    199149109,
855
    199149119
856
  }
857
  local HitBlockSounds = {199148933, 199148947}
858
  function Damagefunc(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged)
859
    if hit.Parent == nil then
860
      return
861
    end
862
    h = hit.Parent:FindFirstChild("Humanoid")
863
    for _, v in pairs(hit.Parent:children()) do
864
      if v:IsA("Humanoid") then
865
        h = v
866
      end
867
    end
868
    if antiteamkill == true then
869
      if game.Players:FindFirstChild(hit.Parent.Name) ~= nil then
870
        opponent = game.Players:FindFirstChild(hit.Parent.Name)
871
      end
872
      if opponent ~= nil and opponent.TeamColor == Player.TeamColor then
873
        return
874
      end
875
    end
876
    if hit.Name == "Hitbox" and hit:FindFirstChild("TouchInterest") ~= nil then
877
      StaggerHitAnim.Value = true
878
      so("http://roblox.com/asset/?id=" .. HitWeaponSounds[math.random(1, #HitWeaponSounds)], hit, 1, 1)
879
      return
880
    end
881
    if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
882
      h = hit.Parent.Parent:FindFirstChild("Humanoid")
883
    end
884
    if hit.Parent.className == "Hat" then
885
      hit = hit.Parent.Parent:findFirstChild("Head")
886
    end
887
    if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
888
      if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
889
        return
890
      end
891
      if hit.Parent:findFirstChild("Stats") ~= nil then
892
        if hit.Parent.Stats:findFirstChild("StunValue") ~= nil then
893
          hit.Parent.Stats:findFirstChild("StunValue").Value = hit.Parent.Stats:findFirstChild("StunValue").Value + incstun
894
        end
895
      elseif hit.Parent:findFirstChild("StunValue") ~= nil then
896
        hit.Parent:findFirstChild("StunValue").Value = hit.Parent:findFirstChild("StunValue").Value + incstun
897
      end
898
      if hit.Parent:findFirstChild("StaggerAnim") ~= nil and stagger == true then
899
        hit.Parent:findFirstChild("StaggerAnim").Value = true
900
      end
901
      if hit.Parent:findFirstChild("Stats") ~= nil then
902
        if hit.Parent.Stats:findFirstChild("BlockValue") ~= nil and hit.Parent.Stats:findFirstChild("BlockValue").Value == true then
903
          makegui(hit.Parent.Head.CFrame, "Blocked!", Color3.new(0, 0.39215686274509803, 1))
904
          so("http://roblox.com/asset/?id=" .. HitBlockSounds[math.random(1, #HitBlockSounds)], hit, 1, 1)
905
          if ranged ~= true then
906
            if sethitblockvaluetofalse == true then
907
              hit.Parent.Stats:findFirstChild("BlockValue").Value = false
908
            end
909
            StaggerAnim.Value = true
910
          end
911
          return
912
        end
913
      elseif hit.Parent:findFirstChild("BlockValue") ~= nil and hit.Parent:findFirstChild("BlockValue").Value == true then
914
        makegui(Head.CFrame, "Blocked!", Color3.new(0, 0.39215686274509803, 1))
915
        so("http://roblox.com/asset/?id=" .. HitBlockSounds[math.random(1, #HitBlockSounds)], hit, 1, 1)
916
        if ranged ~= true then
917
          if sethitblockvaluetofalse == true then
918
            hit.Parent:findFirstChild("BlockValue").Value = false
919
          end
920
          StaggerAnim.Value = true
921
        end
922
        return
923
      end
924
      local D = math.random(minim, maxim) * Damage.Value
925
      if hit.Parent:FindFirstChild("Stats") ~= nil then
926
        if hit.Parent.Stats:FindFirstChild("Defense") then
927
          if canpenetratearmor == true then
928
          else
929
            D = D / hit.Parent.Stats:FindFirstChild("Defense").Value
930
          end
931
        elseif hit.Parent.Stats:FindFirstChild("Defense") == nil then
932
        end
933
      elseif hit.Parent:FindFirstChild("Defense") then
934
        if canpenetratearmor == true then
935
        else
936
          D = D / hit.Parent:FindFirstChild("Defense").Value
937
        end
938
      elseif hit.Parent:FindFirstChild("Defense") == nil then
939
      end
940
      if cancrit == true then
941
        CritChance.Value = math.random(1, critchancenumber)
942
        if CritChance.Value == critchancenumber then
943
          D = D * 2
944
        end
945
      end
946
      h.Health = h.Health - D
947
      if D <= 3 and staghit == true then
948
        if ranged ~= true then
949
          StaggerHitAnim.Value = true
950
        end
951
        so("http://roblox.com/asset/?id=" .. HitArmorSounds[math.random(1, #HitArmorSounds)], hit, 1, 1)
952
      elseif D > 3 and ranged ~= true then
953
        so("http://roblox.com/asset/?id=" .. HitPlayerSounds[math.random(1, #HitPlayerSounds)], hit, 1, 1)
954
      end
955
      if D > 2 and D < 20 then
956
        if CritChance.Value == critchancenumber then
957
          makegui(hit.Parent.Head.CFrame, "Crit! " .. tostring(math.floor(D + 0.5)) .. "", Color3.new(0.7843137254901961, 0, 0))
958
          so("http://www.roblox.com/asset/?id=296102734", hit, 1, 1)
959
        else
960
          makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)), Color3.new(1, 0.8627450980392157, 0))
961
        end
962
      elseif D >= 20 then
963
        if CritChance.Value == critchancenumber then
964
          makegui(hit.Parent.Head.CFrame, "Crit! " .. tostring(math.floor(D + 0.5)) .. "", Color3.new(0.7843137254901961, 0, 0))
965
          so("http://www.roblox.com/asset/?id=296102734", hit, 1, 1)
966
        else
967
          makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)), Color3.new(1, 0, 0))
968
        end
969
      else
970
        if D <= 2 then
971
          if CritChance.Value == critchancenumber then
972
            makegui(hit.Parent.Head.CFrame, "Crit! " .. tostring(math.floor(D + 0.5)) .. "", Color3.new(0.7843137254901961, 0, 0))
973
            so("http://www.roblox.com/asset/?id=296102734", hit, 1, 1)
974
          else
975
            makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)), Color3.new(0.8823529411764706, 0.8823529411764706, 0.8823529411764706))
976
          end
977
        else
978
        end
979
      end
980
      if Type == "Normal" then
981
        vp = Instance.new("BodyVelocity")
982
        vp.P = 500
983
        vp.maxForce = vt(math.huge, 0, math.huge)
984
        if KnockbackType == 1 then
985
          vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
986
        elseif KnockbackType == 2 then
987
          vp.velocity = Property.CFrame.lookVector * knockback
988
        end
989
        if knockback > 0 then
990
          vp.Parent = hit.Parent.Torso
991
        end
992
        game:GetService("Debris"):AddItem(vp, 0.5)
993
      end
994
      debounce = Instance.new("BoolValue")
995
      debounce.Name = "DebounceHit"
996
      debounce.Parent = hit.Parent
997
      debounce.Value = true
998
      game:GetService("Debris"):AddItem(debounce, Delay)
999
      c = Instance.new("ObjectValue")
1000
      c.Name = "creator"
1001
      c.Value = Player
1002
      c.Parent = h
1003
      game:GetService("Debris"):AddItem(c, 0.5)
1004
    end
1005
  end
1006
  function DecreaseStat(Location, CFrame, Stat, Amount, Duration, ShowDebuff)
1007
    if Location[Stat] ~= nil then
1008
      Location[Stat].Value = Location[Stat].Value - Amount
1009
      if ShowDebuff == true then
1010
        if Location[Stat].Name == "Defense" then
1011
          makegui(CFrame, "-Defense", c3(1, 1, 1))
1012
        elseif Location[Stat].Name == "Damage" then
1013
          makegui(CFrame, "-Damage", c3(1, 1, 1))
1014
        elseif Location[Stat].Name == "Speed" then
1015
          makegui(CFrame, "-Movement", c3(1, 1, 1))
1016
        end
1017
      end
1018
      coroutine.resume(coroutine.create(function()
1019
        wait(Duration)
1020
        Location[Stat].Value = Location[Stat].Value + Amount
1021
      end))
1022
    end
1023
  end
1024
  function IncreaseStat(Location, CFrame, Stat, Amount, Duration, ShowBuff)
1025
    if Location[Stat] ~= nil then
1026
      Location[Stat].Value = Location[Stat].Value + Amount
1027
      if ShowBuff == true then
1028
        if Location[Stat].Name == "Defense" then
1029
          makegui(CFrame, "+Defense", c3(1, 1, 1))
1030
        elseif Location[Stat].Name == "Damage" then
1031
          makegui(CFrame, "+Damage", c3(1, 1, 1))
1032
        elseif Location[Stat].Name == "Speed" then
1033
          makegui(CFrame, "+Movement", c3(1, 1, 1))
1034
        end
1035
      end
1036
      coroutine.resume(coroutine.create(function()
1037
        wait(Duration)
1038
        Location[Stat].Value = Location[Stat].Value - Amount
1039
      end))
1040
    end
1041
  end
1042
  function GetDist(Part1, Part2, magni)
1043
    local targ = Part1.Position - Part2.Position
1044
    local mag = targ.magnitude
1045
    if magni >= mag then
1046
      return true
1047
    else
1048
      return false
1049
    end
1050
  end
1051
  function MagniDamage(Part, magni, mindam, maxdam, knock, Type, Delay, KnockbackType, incstun, stagger, staghit, ranged)
1052
    for _, c in pairs(workspace:children()) do
1053
      local hum = c:findFirstChild("Humanoid")
1054
      if hum ~= nil then
1055
        local head = c:findFirstChild("Torso")
1056
        if head ~= nil then
1057
          local targ = head.Position - Part.Position
1058
          local mag = targ.magnitude
1059
          if magni >= mag and c.Name ~= Player.Name then
1060
            Damagefunc(head, mindam, maxdam, knock, Type, RootPart, Delay, KnockbackType, incstun, stagger, staghit, ranged)
1061
          end
1062
        end
1063
      end
1064
    end
1065
  end
1066
  function Lightning(p0, p1, tym, ofs, brickcolor, th, tra, last)
1067
    local magz = (p0 - p1).magnitude
1068
    local curpos = p0
1069
    local trz = {
1070
      -ofs,
1071
      ofs
1072
    }
1073
    for i = 1, tym do
1074
      do
1075
        local li = Instance.new("Part", workspace)
1076
        li.TopSurface = 0
1077
        li.BottomSurface = 0
1078
        li.Anchored = true
1079
        li.Transparency = tra or 0.4
1080
        li.BrickColor = brickcolor
1081
        li.formFactor = "Custom"
1082
        li.CanCollide = false
1083
        li.Size = vt(th, th, magz / tym)
1084
        local ofz = vt(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
1085
        local trolpos = cf(curpos, p1) * cf(0, 0, magz / tym).p + ofz
1086
        if tym == i then
1087
          local magz2 = (curpos - p1).magnitude
1088
          li.Size = vt(th, th, magz2)*4
1089
          li.CFrame = cf(curpos, p1) * cf(0, 0, -magz2 / 2)
1090
        else
1091
          li.CFrame = cf(curpos, trolpos) * cf(0, 0, magz / tym / 2)
1092
        end
1093
        curpos = li.CFrame * cf(0, 0, magz / tym / 2).p
1094
        game.Debris:AddItem(li, last)
1095
        coroutine.resume(coroutine.create(function()
1096
          while li.Transparency ~= 1 do
1097
            for i = 0, 1, last do
1098
              ArtificialHeartbeat.Event:wait()
1099
              li.Transparency = li.Transparency + 0.1 / last
1100
            end
1101
          end
1102
        end))
1103
      end
1104
    end
1105
  end
1106
  function MagicRing(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1107
    local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt())
1108
    prt.Anchored = true
1109
    prt.CFrame = cframe
1110
    local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
1111
    game:GetService("Debris"):AddItem(prt, 10)
1112
    coroutine.resume(coroutine.create(function(Part, Mesh)
1113
      for i = 0, 1, delay do
1114
        ArtificialHeartbeat.Event:wait()
1115
        Part.CFrame = Part.CFrame
1116
        Part.Transparency = i
1117
        Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1118
      end
1119
      Part.Parent = nil
1120
    end), prt, msh)
1121
  end
1122
  function MagicWave(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1123
    local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt())
1124
    prt.Anchored = true
1125
    prt.CFrame = cframe
1126
    local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
1127
    game:GetService("Debris"):AddItem(prt, 10)
1128
    coroutine.resume(coroutine.create(function(Part, Mesh)
1129
      for i = 0, 1, delay do
1130
        ArtificialHeartbeat.Event:wait()
1131
        Part.CFrame = Part.CFrame
1132
        Part.Transparency = i
1133
        Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1134
      end
1135
      Part.Parent = nil
1136
    end), prt, msh)
1137
  end
1138
  function MagicBlock(brickcolor, rotate, cframe, x1, y1, z1, x3, y3, z3, delay)
1139
    local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt())
1140
    prt.Anchored = true
1141
    prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1142
    local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)*4)
1143
    game:GetService("Debris"):AddItem(prt, 10)
1144
    coroutine.resume(coroutine.create(function(Part, Mesh)
1145
      for i = 0, 1, delay do
1146
        ArtificialHeartbeat.Event:wait()
1147
        if rotate == true then
1148
          Part.CFrame = Part.CFrame * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1149
        else
1150
        end
1151
        Part.Transparency = i
1152
        Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1153
      end
1154
      Part.Parent = nil
1155
    end), prt, msh)
1156
  end
1157
  function MagicBlock2(brickcolor, rotate, cframe, x1, y1, z1, x3, y3, z3, delay)
1158
    local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt())
1159
    prt.Anchored = true
1160
    prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1161
    local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)*4)
1162
    game:GetService("Debris"):AddItem(prt, 10)
1163
    CF = prt.CFrame
1164
    num = math.random(5, 20)
1165
    coroutine.resume(coroutine.create(function(Part, Mesh, CF2, Num)
1166
      for i = 0, 1, delay do
1167
        ArtificialHeartbeat.Event:wait()
1168
        if rotate == true then
1169
          Part.CFrame = CF2 * cf(0, i * Num, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1170
        else
1171
          Part.CFrame = CF2 * cf(0, i * Num, 0)
1172
        end
1173
        Part.Transparency = i
1174
        Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1175
      end
1176
      Part.Parent = nil
1177
    end), prt, msh, CF, num)
1178
  end
1179
  function MagicCylinder(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1180
    local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt())
1181
    prt.Anchored = true
1182
    prt.CFrame = cframe
1183
    local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)*4)
1184
    game:GetService("Debris"):AddItem(prt, 10)
1185
    coroutine.resume(coroutine.create(function(Part, Mesh)
1186
      for i = 0, 1, delay do
1187
        ArtificialHeartbeat.Event:wait()
1188
        Part.Transparency = i
1189
        Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1190
      end
1191
      Part.Parent = nil
1192
    end), prt, msh)
1193
  end
1194
  function MagicSphere(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1195
    local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt())
1196
    prt.Anchored = true
1197
    prt.CFrame = cframe
1198
    local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1)*4)
1199
    game:GetService("Debris"):AddItem(prt, 10)
1200
    coroutine.resume(coroutine.create(function(Part, Mesh)
1201
      for i = 0, 1, delay do
1202
        ArtificialHeartbeat.Event:wait()
1203
        Part.Transparency = i
1204
        Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1205
      end
1206
      Part.Parent = nil
1207
    end), prt, msh)
1208
  end
1209
  function BreakEffect(brickcolor, rotate, cframe, x1, y1, z1, delay)
1210
    local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt())
1211
    prt.Anchored = true
1212
    prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1213
    local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1)*4)
1214
    game:GetService("Debris"):AddItem(prt, 10)
1215
    coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb)
1216
      CF = Part.CFrame
1217
      Numbb = 0
1218
      randnumb = math.random() - math.random()
1219
      for i = 0, 1, delay do
1220
        ArtificialHeartbeat.Event:wait()
1221
        CF = CF * cf(0, 1, 0)
1222
        if rotate == true then
1223
          Part.CFrame = CF * angles(Numbb, 0, 0)
1224
        elseif rotate == false then
1225
          Part.CFrame = CF
1226
        end
1227
        Part.Transparency = i
1228
        Numbb = Numbb + randnumb
1229
      end
1230
      Part.Parent = nil
1231
    end), prt, CF, Numbb, randnumb)
1232
  end
1233
  function ElecEffect(brickcolor, cf, x, y, z, delay)
1234
    local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt())
1235
    prt.Anchored = true
1236
    prt.CFrame = cf
1237
    xval = math.random()
1238
    yval = math.random()
1239
    zval = math.random()
1240
    local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x, y, z)*4)
1241
    game:GetService("Debris"):AddItem(prt, 10)
1242
    coroutine.resume(coroutine.create(function(Part, Mesh, xvaal, yvaal, zvaal)
1243
      for i = 0, 1, delay do
1244
        ArtificialHeartbeat.Event:wait()
1245
        Part.CFrame = Part.CFrame
1246
        xvaal = xvaal - 0.1 * (delay * 10)
1247
        yvaal = yvaal - 0.1 * (delay * 10)
1248
        zvaal = zvaal - 0.1 * (delay * 10)
1249
        Mesh.Scale = Mesh.Scale + vt(xvaal, yvaal, zvaal)
1250
        Part.Transparency = i
1251
      end
1252
      Part.Parent = nil
1253
    end), prt, msh, xval, yval, zval)
1254
  end
1255
  function subtractmana(k)
1256
    if k <= mana then
1257
      mana = mana - k
1258
    end
1259
  end
1260
  local idleangle = 0
1261
  local idlen = 0
1262
  local donum = 0
1263
  local sine = 0
1264
  local change = 1
1265
  local val = 0
1266
  local walkinganim = false
1267
  local handidle = false
1268
  local walk = 0
1269
  local someangle = 0
1270
  local change2 = 1
1271
  local stundelay = 0
1272
  local manadelay = 0
1273
  local dieanim = false
1274
  local robloxidleanimation = Instance.new("Animation", Torso)
1275
  robloxidleanimation.Name = "robloxidleanimation"
1276
  robloxidleanimation.AnimationId = "http://www.roblox.com/asset/?id=180435571"
1277
  Animator = Humanoid:findFirstChild("Animator")
1278
  Animate = Character:findFirstChild("Animate")
1279
  Running = Head:FindFirstChild("Running")
1280
  if Running ~= nil then
1281
    Running.Volume = 0
1282
  end
1283
  local startequipped = false
1284
  local startequippedwithequipanimation = true
1285
  local disableanimator = true
1286
  local disableanimate = false
1287
  local alternatewalk = false
1288
  local customwalk = false
1289
  local hidemenu = false
1290
  local allowmenutofunction = false
1291
  local allowabilitestofunction = false
1292
  local canunequiporequip = false
1293
  local allowidle = false
1294
  local allowwalking = false
1295
  local disablemovingarms = false
1296
  local usemotorsinsteadofwelds = false
1297
  local leftarm = false
1298
  local rightarm = false
1299
  local allowhopperbin = false
1300
  local allowstunbar = false
1301
  local walkspeeddependsonspeedvalue = true
1302
  local alternatemanaregensystem = false
1303
  local showhealthmanaandstunnumbers = false
1304
  local changebarcolorsifnotenoughmana = false
1305
  local disablejumpifstaggeredorstunned = false
1306
  if hidemenu == true then
1307
    for _, v in pairs(scrn:children()) do
1308
      if v.ClassName == "Frame" or v.ClassName == "TextLabel" then
1309
        v.Visible = false
1310
      end
1311
    end
1312
  end
1313
  if disablejumpifstaggeredorstunned == true then
1314
    Humanoid.Changed:connect(function(Jump)
1315
      if Jump == "Jump" and (StaggerAnim.Value == true or StunAnim.Value == true) then
1316
        Humanoid.Jump = false
1317
      end
1318
    end)
1319
  end
1320
  if allowmenutofunction == true then
1321
    for _, v in pairs(scrn:GetChildren()) do
1322
      if v.ClassName == "Frame" then
1323
        for _, b in pairs(v:GetChildren()) do
1324
          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
1325
            coroutine.resume(coroutine.create(function(TheTextLabel)
1326
              wait(menuupdatespeed)
1327
              for i = 1, 0, -0.1 do
1328
                ArtificialHeartbeat.Event:wait()
1329
                TheTextLabel.TextTransparency = i
1330
                TheTextLabel.TextStrokeTransparency = i
1331
              end
1332
              TheTextLabel.TextTransparency = 0
1333
              TheTextLabel.TextStrokeTransparency = 0
1334
            end), b)
1335
          end
1336
        end
1337
      end
1338
    end
1339
  end
1340
  if allowmenutofunction == true and allowabilitestofunction == true then
1341
    for _, v in pairs(scrn:GetChildren()) do
1342
      if v.ClassName == "Frame" then
1343
        for _, b in pairs(v:GetChildren()) do
1344
          if b.ClassName == "TextLabel" and b.Name ~= "Health Text" and b.Name ~= "Mana Text" then
1345
            coroutine.resume(coroutine.create(function(TheTextLabel)
1346
              wait(menuupdatespeed)
1347
              for i = 1, 0, -0.1 do
1348
                ArtificialHeartbeat.Event:wait()
1349
                TheTextLabel.TextTransparency = i
1350
                TheTextLabel.TextStrokeTransparency = i
1351
              end
1352
              TheTextLabel.TextTransparency = 0
1353
              TheTextLabel.TextStrokeTransparency = 0
1354
            end), b)
1355
          end
1356
        end
1357
      end
1358
    end
1359
  end
1360
  if allowhopperbin == true then
1361
    if script.Parent.className ~= "HopperBin" then
1362
      Tool = Instance.new("HopperBin")
1363
      Tool.Parent = Backpack
1364
      Tool.Name = "Weapon Name"
1365
      script.Parent = Tool
1366
    end
1367
    Bin = script.Parent
1368
  end
1369
  if disablemovingarms == true then
1370
    RWC0 = cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0))
1371
    LWC0 = cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0))
1372
    RSH, LSH = nil, nil
1373
    if usemotorsinsteadofwelds == true then
1374
      RW = Instance.new("Motor")
1375
      LW = Instance.new("Motor")
1376
    else
1377
      RW = Instance.new("Weld")
1378
      LW = Instance.new("Weld")
1379
    end
1380
    RW.Name = "Right Shoulder"
1381
    LW.Name = "Left Shoulder"
1382
    RSH = Torso["Right Shoulder"]
1383
    LSH = Torso["Left Shoulder"]
1384
    RSH.Parent = Torso
1385
    LSH.Parent = Torso
1386
    RW.Name = "Right Shoulder"
1387
    RW.Part0 = Torso
1388
    RW.C0 = cf(1.5, 0.5, 0)
1389
    RW.C1 = cf(0, 0.5, 0)
1390
    RW.Part1 = Character["Right Arm"]
1391
    RW.Parent = nil
1392
    LW.Name = "Left Shoulder"
1393
    LW.Part0 = Torso
1394
    LW.C0 = cf(-1.5, 0.5, 0)
1395
    LW.C1 = cf(0, 0.5, 0)
1396
    LW.Part1 = Character["Left Arm"]
1397
    LW.Parent = nil
1398
  else
1399
    RW = Torso["Right Shoulder"]
1400
    LW = Torso["Left Shoulder"]
1401
    LH = Torso["Left Hip"]
1402
    RH = Torso["Right Hip"]
1403
    RWC0 = cf(-0.5, 0, 0) * angles(math.rad(0), math.rad(90), math.rad(0))
1404
    LWC0 = cf(0.5, 0, 0) * angles(math.rad(0), math.rad(-90), math.rad(0))
1405
  end
1406
  if allowidle == true then
1407
    coroutine.resume(coroutine.create(function()
1408
      while true do
1409
        for i = 0, 1, 0.08 do
1410
          wait()
1411
          idleangle = idleangle + 0.005 * idlen
1412
          idlen = idlen - 0.1
1413
        end
1414
        idlen = 0
1415
        for i = 0, 1, 0.08 do
1416
          wait()
1417
          idleangle = idleangle - 0.005 * idlen
1418
          idlen = idlen - 0.1
1419
        end
1420
        idlen = 0
1421
        idleangle = 0
1422
      end
1423
    end))
1424
  end
1425
  function equipanim()
1426
    attack = true
1427
    local equipvelocity = Instance.new("BodyVelocity", Torso)
1428
    equipvelocity.P = 500
1429
    equipvelocity.maxForce = vt(math.huge, math.huge, math.huge)
1430
    equipvelocity.Velocity = Vector3.new(0, 0.1, 0)
1431
if intro == true then
1432
Music2:Play()
1433
    for i = 0, 1, 0.02 do
1434
      ArtificialHeartbeat.Event:wait()
1435
      
1436
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1 + idleangle) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
1437
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
1438
      RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(40), math.rad(-10)) * RWC0, 0.15)
1439
      LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(60), math.rad(0), math.rad(60)) * LWC0, 0.15)
1440
      RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.15)
1441
      LH.C0 = clerp(LH.C0, cf(-1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(-80), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(5)), 0.15)
1442
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
1443
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
1444
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.5), 0.15)
1445
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.5), 0.15)
1446
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15)
1447
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(2.5, 2.5, 0), 0.15)
1448
    end
1449
wait(1)
1450
end
1451
    for i = 0, 1, 0.02 do
1452
      ArtificialHeartbeat.Event:wait()
1453
       MagicBlock(CustomColor, true, Torso.CFrame * cf(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15)), 15, 15, 15, 0.5, 0.5, 0.5, 0.04)
1454
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.05)
1455
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
1456
      RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(-60)) * RWC0, 0.15)
1457
      LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(80), math.rad(0), math.rad(60)) * LWC0, 0.15)
1458
      RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
1459
      LH.C0 = clerp(LH.C0, cf(-1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-5)), 0.15)
1460
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
1461
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
1462
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.5), 0.15)
1463
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.5), 0.15)
1464
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15)
1465
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(2.5, 2.5, 0), 0.15)
1466
    end
1467
    for i = 0, 1, 0.02 do
1468
      ArtificialHeartbeat.Event:wait()
1469
     
1470
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.05)
1471
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
1472
      RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(-60)) * RWC0, 0.15)
1473
      LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(80), math.rad(0), math.rad(60)) * LWC0, 0.15)
1474
      RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
1475
      LH.C0 = clerp(LH.C0, cf(-1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-5)), 0.15)
1476
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
1477
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
1478
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.5), 0.15)
1479
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.5), 0.15)
1480
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15)
1481
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(2.5, 2.5, 0), 0.15)
1482-
Chat("my soul hurts...")
1482+
1483
if intro == true then
1484
Chat("Ugh...")
1485
wait(4)
1486-
Chat("but i can feel it now...")
1486+
1487
wait(4)
1488-
Chat("the power darkness...")
1488+
Chat("I guess all things come to an end...")
1489
wait(2)
1490
Chat("However...")
1491
wait(4)
1492-
Chat("the lost feeling...")
1492+
Chat("Robots cant die...")
1493
wait(4)
1494
Chat("Unless...")
1495
wait(2)
1496-
Chat("the feeling of being free")
1496+
Chat("Its worth the risk...")
1497
wait(2)
1498
Chat("Start running...")
1499
wait(2)
1500
Chat("Because I wont go easy on you.")
1501
wait(2.1)
1502
end
1503
    coroutine.resume(coroutine.create(function()
1504
      for i = 0, 1, 0.1 do
1505
        wait()
1506
        outerbeingtransparency = outerbeingtransparency - 0.05
1507
      end
1508
      outerbeingtransparency = 0.5
1509
    end))
1510
1511
    equipvelocity.Velocity = Vector3.new(0, 0, 0)
1512
    MagicBlock(CustomColor, true, Torso.CFrame, 75, 75, 75, 0.5, 0.5, 0.5, 0.01)
1513
    MagicSphere(CustomColor, Torso.CFrame, 150, 150, 150, 1, 1, 1, 0.01)
1514
    so("http://roblox.com/asset/?id=203691510", Torso, 1, 1)
1515
    so("http://roblox.com/asset/?id=203691653", Torso, 1, 1)
1516
    so("http://roblox.com/asset/?id=203691562", Torso, 1, 1)
1517
    so("http://roblox.com/asset/?id=160740121", Torso, 1, 1.5)
1518
newface()
1519
local BC = char["Body Colors"]
1520
BC.HeadColor = BrickColor.new("Black")
1521
BC.LeftArmColor = BrickColor.new("Black")
1522
BC.LeftLegColor = BrickColor.new("Black")
1523
BC.RightArmColor = BrickColor.new("Black")
1524
BC.RightLegColor = BrickColor.new("Black")
1525
BC.TorsoColor = BrickColor.new("Black")
1526
1527
local HBill = Instance.new("BillboardGui", hed)
1528
local HMain, HBarBack, HBar = Instance.new("Frame", HBill), Instance.new("Frame"), Instance.new("Frame")
1529
local HHealth, HName = Instance.new("TextLabel", HBill), Instance.new("TextLabel")
1530
local HText, HName = Instance.new("TextLabel", HBill), Instance.new("TextLabel")
1531
HBill.Size = UDim2.new(15,0,2.2,0)
1532
HBill.Name = "Health Display"
1533
HBill.StudsOffset = Vector3.new(0,13,0)
1534
HBill.AlwaysOnTop = true
1535
HBill.Enabled = true
1536
1537
HMain.BackgroundColor3 = Color3.new(0, 0, 0)
1538
HMain.BackgroundTransparency = 0.8
1539
HMain.Size = UDim2.new(1,0,1,0)
1540
HBarBack.Parent = HMain
1541
HBarBack.BackgroundColor3 = Color3.new(.5,0,1)
1542
HBarBack.BorderColor3 = Color3.new(0,0,0)
1543
HBarBack.BorderSizePixel = 2
1544
HBarBack.Position = UDim2.new(.025, 0, .55, 0)
1545
HBarBack.Size = UDim2.new(.95, 0, .3, 0)
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
HHealth.BackgroundTransparency = 1
1556
HHealth.Size = UDim2.new(1,0,0.5,0)
1557
HHealth.Font = "Code"
1558
HHealth.TextScaled = true
1559
HHealth.TextColor3 = Color3.new(1,1,1)
1560
HHealth.TextStrokeColor3 = BrickColor.new("Really black").Color
1561
HHealth.TextStrokeTransparency = 0
1562
1563
1564
1565
1566
1567
1568
1569
1570
HName.Parent = HMain
1571
HName.BackgroundTransparency = 1
1572
HName.Size = UDim2.new(1,0,.3,0)
1573
HName.Font = "Code"
1574
HName.Text = ""
1575
HName.TextScaled = true
1576
HName.TextColor3 = BrickColor.new("Forest green").Color
1577
HName.TextStrokeColor3 = Color3.new(0,0,0)
1578
HName.TextStrokeTransparency = 0
1579
HName.TextYAlignment = "Top"
1580
HName.Position = UDim2.new(0, 0, 0, 0)
1581
1582
1583
1584
1585
1586
1587
1588
1589
Humanoid = char.Humanoid
1590
1591
function GainCharge(Humanoid)
1592
	HHealth.Text = ""..Humanoid.Health.." HP"
1593
		if Humanoid.Health < 100 and dieanim == false then
1594
		HHealth.Text = "0 HP"
1595
	end
1596
	HBill.Frame.Frame.Size = UDim2.new(Humanoid.Health/Humanoid.MaxHealth,0,.3,0)
1597
	if Humanoid.Health >= Humanoid.MaxHealth/2 then
1598
		HBill.Frame.Frame.BackgroundColor3 = Color3.new(.5,0,1)
1599
	elseif Humanoid.Health >= Humanoid.MaxHealth/4 and Humanoid.Health <= Humanoid.MaxHealth/2 then
1600
		HBill.Frame.Frame.BackgroundColor3 = Color3.new(.2,0,1)
1601
	elseif Humanoid.Health <= Humanoid.MaxHealth/4 then
1602
		HBill.Frame.Frame.BackgroundColor3 = Color3.new(0,0,0)
1603
	end
1604
1605
end
1606
1607
Humanoid.HealthChanged:connect(function() GainCharge(Humanoid) end)
1608
HHealth.Text = ""..Humanoid.Health.." HP"
1609
    for i = 0, 1, 0.02 do
1610
      ArtificialHeartbeat.Event:wait()
1611
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1612
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1613
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(90)) * RWC0, 0.15)
1614
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-90)) * LWC0, 0.15)
1615
      RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
1616
      LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
1617
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
1618
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
1619
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
1620
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
1621
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
1622
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
1623
    end
1624
1625
    equipvelocity:Destroy()
1626
    Speed.Value = Speed.Value - 0.1
1627
    Defense.Value = Defense.Value + 0.4
1628
    attack = false
1629
1630
1631
wait(.1)
1632
Music2:Stop()
1633
Music1:Play()
1634
  end
1635
  function unequipanim()
1636
    attack = true
1637
    coroutine.resume(coroutine.create(function()
1638
      Humanoid.MaxHealth = math.huge
1639
      wait(0.1)
1640
      Humanoid.Health = Humanoid.MaxHealth
1641
    end))
1642
    local equipvelocity = Instance.new("BodyVelocity", Torso)
1643
    equipvelocity.P = 500
1644
    equipvelocity.maxForce = vt(math.huge, math.huge, math.huge)
1645
    equipvelocity.Velocity = Vector3.new(0, 1, 0)
1646
    so("http://roblox.com/asset/?id=183763515", Torso, 1, 0.4)
1647
    for i = 0, 1, 0.005 do
1648
      ArtificialHeartbeat.Event:wait()
1649
      MagicBlock(CustomColor, true, Torso.CFrame * cf(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), 5, 5, 5, 0.5, 0.5, 0.5, 0.05)
1650
      BreakEffect(CustomColor, false, Torso.CFrame, 1, 25, 1, 0.05)
1651
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(20 + math.random(-10, 10)), math.rad(0), math.rad(0 + math.random(-10, 10))), 0.15)
1652
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
1653
      RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(-60)) * RWC0, 0.15)
1654
      LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(80), math.rad(0), math.rad(60)) * LWC0, 0.15)
1655
      RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
1656
      LH.C0 = clerp(LH.C0, cf(-1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-5)), 0.15)
1657
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
1658
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
1659
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.5), 0.15)
1660
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.5), 0.15)
1661
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15)
1662
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(2.5, 2.5, 0), 0.15)
1663
    end
1664
    MagicBlock(CustomColor, true, Torso.CFrame, 75, 75, 75, 0.5, 0.5, 0.5, 0.01)
1665
    MagicSphere(CustomColor, Torso.CFrame, 150, 150, 150, 1, 1, 1, 0.01)
1666
    so("http://roblox.com/asset/?id=203691510", Torso, 1, 0.6)
1667
    so("http://roblox.com/asset/?id=203691653", Torso, 1, 0.6)
1668
    so("http://roblox.com/asset/?id=203691562", Torso, 1, 0.6)
1669
    for i = 1, 2 do
1670
      so("http://roblox.com/asset/?id=160867463", Torso, 1, 0.8)
1671
      so("http://roblox.com/asset/?id=297472596", Torso, 1, 0.8)
1672
    end
1673
Chat("AAAAAAAAAAAAAAAAAAHHHHH!!!")
1674
    coroutine.resume(coroutine.create(function()
1675
      for i = 0, 1, 0.01 do
1676
	tran = tran + 0.1
1677
1678
	
1679
	
1680
for i,v in pairs(Character:GetChildren()) do 
1681
if v.Name == "Head" or v.Name == "Torso" or v.Name == "Torso" or v.Name == "Left Arm" or v.Name == "Right Arm" or v.Name == "Left Leg" or v.Name == "Right Leg" then
1682
Glow1 = Color3.new(.5,0,1)
1683
Glow2 = Color3.new(0,0,0)
1684
1685
1686
1687
1688
v.ParticleEmitter.Transparency = NumberSequence.new(tran,1)
1689
1690
end end 	
1691
	
1692
1693
	
1694
        wait()
1695
        outerbeingtransparency = outerbeingtransparency + 0.005
1696
      end
1697
      outerbeingtransparency = 1
1698
    end))
1699
    Face.Transparency = 1
1700
    for _, v in pairs(Character:children()) do
1701
      if v:IsA("Part") and v.ClassName ~= "Model" then
1702
        coroutine.resume(coroutine.create(function(Part)
1703
          for i = 0, 1, 0.01 do
1704
            wait()
1705
            Part.Transparency = Part.Transparency + 0.01
1706
          end
1707
          Part.Anchored = true
1708
          Part.Transparency = 1
1709
        end), v)
1710
      elseif v:IsA("Hat") then
1711
        coroutine.resume(coroutine.create(function(Hat)
1712
          for i = 0, 1, 0.01 do
1713
            wait()
1714
            Hat.Transparency = Hat.Transparency + 0.01
1715
          end
1716
          Hat.Anchored = true
1717
          Hat.Transparency = 1
1718
        end), v.Handle)
1719
      end
1720
    end
1721
    local deathnum = 0
1722
    for i = 0, 1, 0.005 do
1723
      ArtificialHeartbeat.Event:wait()
1724
      if deathnum >= 10 then
1725
        deathnum = 0
1726
        local refpart = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt())
1727
        refpart.CFrame = Torso.CFrame * cf(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15))
1728
        refpart.Anchored = true
1729
        game:GetService("Debris"):AddItem(refpart, 1)
1730
        MagicBlock(CustomColor, true, refpart.CFrame, 30, 30, 30, 0.5, 0.5, 0.5, 0.01)
1731
        MagicSphere(CustomColor, refpart.CFrame, 60, 60, 60, 1, 1, 1, 0.01)
1732
        so("http://roblox.com/asset/?id=203691510", Torso, 1, 0.6)
1733
      end
1734
      BreakEffect(CustomColor, false, Torso.CFrame, 1, 50, 1, 0.05)
1735
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(-20 + math.random(-40, 40)), math.rad(0), math.rad(0 + math.random(-40, 40))), 0.15)
1736
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0 + math.random(-40, 40)), math.rad(0 + math.random(-40, 40)), math.rad(0 + math.random(-40, 40))), 0.15)
1737
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-40 + math.random(-40, 40)), math.rad(0), math.rad(40 + math.random(-40, 40))) * RWC0, 0.15)
1738
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-40 + math.random(-40, 40)), math.rad(0), math.rad(-40 + math.random(-40, 40))) * LWC0, 0.15)
1739
      RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-20 + math.random(-40, 40)), math.rad(0), math.rad(-40 + math.random(-40, 40))), 0.15)
1740
      LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-20 + math.random(-40, 40)), math.rad(0), math.rad(40 + math.random(-40, 40))), 0.15)
1741
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
1742
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
1743
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
1744
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
1745
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
1746
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
1747
      deathnum = deathnum + 1
1748
    end
1749
    Humanoid.MaxHealth = 0
1750
    Humanoid.Health = 0
1751
    equipvelocity.Velocity = Vector3.new(0, 0, 0)
1752
    MagicBlock(CustomColor, true, Torso.CFrame, 75, 75, 75, 0.5, 0.5, 0.5, 0.008)
1753
    MagicSphere(CustomColor, Torso.CFrame, 150, 150, 150, 1, 1, 1, 0.008)
1754
    so("http://roblox.com/asset/?id=203691510", Torso, 1, 0.4)
1755
    so("http://roblox.com/asset/?id=203691653", Torso, 1, 0.4)
1756
    so("http://roblox.com/asset/?id=203691562", Torso, 1, 0.4)
1757
    so("http://roblox.com/asset/?id=160867463", Torso, 1, 1.2)
1758
    attack = false
1759
  end
1760
  if startequipped == true then
1761
    equipped = true
1762
    if disableanimate == true then
1763
      Animate.Disabled = true
1764
      local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
1765
      idleanimation:Play()
1766
    end
1767
    if disableanimator == true then
1768
      Animator.Parent = nil
1769
    end
1770
    if disablemovingarms == true then
1771
      RW.Parent = Torso
1772
      LW.Parent = Torso
1773
      RSH.Parent = nil
1774
      LSH.Parent = nil
1775
    end
1776
    Speed.Value = Speed.Value - 0.1
1777
    Defense.Value = Defense.Value + 0.4
1778
  elseif startequippedwithequipanimation == true then
1779
    equipped = true
1780
    if disableanimate == true then
1781
      Animate.Disabled = true
1782
      local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
1783
      idleanimation:Play()
1784
    end
1785
    if disableanimator == true then
1786
      Animator.Parent = nil
1787
    end
1788
    if disablemovingarms == true then
1789
      RW.Parent = Torso
1790
      LW.Parent = Torso
1791
      RSH.Parent = nil
1792
      LSH.Parent = nil
1793
    end
1794
    equipanim()
1795
  end
1796
  function StaggerHit()
1797
    attack = true
1798
    attack = false
1799
  end
1800
  function Stagger()
1801
    attack = true
1802
    attack = false
1803
  end
1804
  function Stun()
1805
    attack = true
1806
    attack = false
1807
  end
1808
  function EAbility()
1809
    attack = true
1810
    attack = false
1811
  end
1812
  function attackone()
1813
    attack = true
1814
1815
--[[
1816
    local equipvelocity3 = Instance.new("BodyVelocity", Torso)
1817
    equipvelocity3.P = 500
1818
    equipvelocity3.maxForce = vt(math.huge, math.huge, math.huge)
1819
    equipvelocity3.Velocity = Vector3.new(0, 0, 0)
1820
game:GetService("Debris"):AddItem(equipvelocity3, 1)
1821
  
1822
--]]
1823
    local oldspeedvalue = Speed.Value
1824
    Speed.Value = .1	
1825
1826
 for i = 0, 0.5, .02 do
1827
      ArtificialHeartbeat.Event:wait()
1828
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11 + idleangle) * angles(math.rad(-15), math.rad(0), math.rad(0)), 0.1)
1829
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
1830
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(115), math.rad(0), math.rad(50)) * RWC0, 0.15)
1831
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(115), math.rad(0), math.rad(-50)) * LWC0, 0.15)
1832
     
1833
      RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-15)), 0.15)
1834
      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(15)), 0.15)
1835
1836
      
1837
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
1838
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
1839
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
1840
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
1841
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
1842
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
1843
    end
1844
1845
---------------------------------
1846
    for i = 0, .2, .02 do
1847
	MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05)
1848
	MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05)
1849
      ArtificialHeartbeat.Event:wait()
1850
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -10, 8 + idleangle) * angles(math.rad(55), math.rad(0), math.rad(0)), 0.15)
1851
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
1852
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(85), math.rad(0), math.rad(-60)) * RWC0, 0.15)
1853
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(85), math.rad(0), math.rad(60)) * LWC0, 0.15)
1854
     
1855
      RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.15)
1856
      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(-20)), 0.15)
1857
1858
      
1859
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
1860
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
1861
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
1862
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
1863
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 4, 0), 0.15)
1864
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
1865
    end
1866
    local refpart4 = part(3, Effects, "Neon", 0, 1, BrickColor.new("Dark indigo"), "Effect", vt())
1867
    refpart4.CFrame = RootPart.CFrame * cf(0, 0, -17)
1868
	game:GetService("Debris"):AddItem(refpart4, 1)
1869
 MagniDamage(refpart4, 10, 5,  20, math.random(1, 10), "Normal", 0, 1, 0, nil, true, true)
1870
	MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 15, 15, 15, 0.08)
1871
	MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 15, 15, 15, 0.08)
1872
----------------------------------------
1873
    for i = 0, .5, .02 do
1874
1875
      ArtificialHeartbeat.Event:wait()
1876
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -10, 8 + idleangle) * angles(math.rad(55), math.rad(0), math.rad(0)), 0.15)
1877
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
1878
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(85), math.rad(0), math.rad(-60)) * RWC0, 0.15)
1879
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(85), math.rad(0), math.rad(60)) * LWC0, 0.15)
1880
     
1881
      RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.15)
1882
      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(-20)), 0.15)
1883
1884
      
1885
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
1886
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
1887
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
1888
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
1889
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 4, 0), 0.15)
1890
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
1891
    end
1892
 ----------------------------------------
1893
Speed.Value = oldspeedvalue
1894
--]]
1895
1896
    attack = false
1897
  end
1898
  function attacktwo()
1899
    attack = true
1900
    local oldspeedvalue = Speed.Value
1901
    Speed.Value = .2	
1902
1903
    so("http://www.roblox.com/asset/?id=169445046", rightleg2, 1, 0.6)
1904
    for i = 0, 1, 0.05 do
1905
      ArtificialHeartbeat.Event:wait()
1906
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1907
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.15)
1908
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(20)) * RWC0, 0.15)
1909
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(-20)) * LWC0, 0.15)
1910
      RH.C0 = clerp(RH.C0, cf(1, -0.0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.15)
1911
      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(15)), 0.15)
1912
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
1913
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
1914
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
1915
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
1916
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 1.5, 0), 0.15)
1917
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
1918
    end
1919
    for i = 0, 0.5, 0.05 do
1920
	MagicBlock(CustomColor, true, rightleg2.CFrame * cf(0, -5, 0), 40, 40, 40, -7, -7, -7, 0.05)
1921
      ArtificialHeartbeat.Event:wait()
1922
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3)
1923
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.15)
1924
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(40)) * RWC0, 0.15)
1925
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(-40)) * LWC0, 0.15)
1926
      RH.C0 = clerp(RH.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(15)), 0.3)
1927
      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(15)), 0.15)
1928
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
1929
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
1930
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
1931
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
1932
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 5, 0), 0.3)
1933
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
1934
    end
1935
Speed.Value = .0
1936
    local refpart4 = part(3, Effects, "Neon", 0, 0, BrickColor.new("Dark indigo"), "Effect", vt())
1937
    refpart4.CFrame = RootPart.CFrame * cf(0, -4, -4)
1938
	game:GetService("Debris"):AddItem(refpart4, .5)
1939
 MagniDamage(refpart4, 15, 10,  30, math.random(10, 20), "Normal", 0, 1, 0, nil, true, true)
1940
	MagicBlock(CustomColor, true, refpart4.CFrame * cf(0, -0, 0), 30, 30, 30, 15, 15, 15, 0.08)
1941
	MagicRing(CustomColor, refpart4.CFrame* cf(1, 1, 0) * angles(math.rad(90), math.rad(math.random(-0, 0)), math.rad(math.random(-0, 0))), 1, 1, 20, 1.1, 1.1, -0.5, 0.03)
1942
    for i = 0, 0.5, 0.05 do
1943
	
1944
      ArtificialHeartbeat.Event:wait()
1945
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3)
1946
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.15)
1947
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(40)) * RWC0, 0.15)
1948
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(-40)) * LWC0, 0.15)
1949
      RH.C0 = clerp(RH.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(15)), 0.3)
1950
      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(15)), 0.15)
1951
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
1952
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
1953
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
1954
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
1955
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 5, 0), 0.3)
1956
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
1957
    end
1958
----------------------------------------
1959
------------------------------
1960
Speed.Value = oldspeedvalue
1961
    attack = false
1962
  end
1963
  function attackthree()
1964
    attack = true
1965
    local oldspeedvalue = Speed.Value
1966
    Speed.Value = .1	
1967
 for i = 0, .5, 0.05 do
1968
      ArtificialHeartbeat.Event:wait()
1969
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1970
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-40)), 0.15)
1971
      RW.C0 = clerp(RW.C0, cf(1.3, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(20), math.rad(90)) * RWC0, 0.10)
1972
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)) * LWC0, 0.15)
1973
      RH.C0 = clerp(RH.C0, cf(1, -1.0 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1974
      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.15)
1975
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
1976
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
1977
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
1978
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
1979
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
1980
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
1981
    end	
1982
    
1983
    Speed.Value = 0	
1984
 for i = 0, .5, 0.05 do
1985
      ArtificialHeartbeat.Event:wait()
1986
MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05)
1987
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1988
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-40)), 0.15)
1989
      RW.C0 = clerp(RW.C0, cf(1.3, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(10), math.rad(90)) * RWC0, 0.15)
1990
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)) * LWC0, 0.15)
1991
      RH.C0 = clerp(RH.C0, cf(1, -1.0 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1992
      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.15)
1993
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
1994
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
1995
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
1996
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
1997
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
1998
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
1999
    end	
2000
2001
    local orbnumber = math.random(2, 2)
2002
    coroutine.resume(coroutine.create(function()
2003
      for i = 1, orbnumber do
2004
        wait(.1)
2005
        local orbblastpart = part(3, Effects, "Neon", 0, 1, CustomColor, "Effect", vt())
2006
        local orbblastmesh = mesh("SpecialMesh", orbblastpart, "Sphere", "", vt(0, 0, 0), vt(10, 10, 10)*4)
2007
        orbblastpart.Anchored = true
2008
        game:GetService("Debris"):AddItem(orbblastpart, 5)
2009
        orbblastpart.CFrame = cf(Mouse.hit.p + vt(math.random(-10, 10), math.random(70, 80), math.random(-10, 10)))
2010
2011
        so("http://roblox.com/asset/?id=183763498", orbblastpart, 1, 1.2)
2012
        coroutine.resume(coroutine.create(function(Part)
2013
          wait()
2014
          local spread = vt(math.random(-.1, .1), math.random(-.1, .1), math.random(-.1, .1)) * (Part.Position - (Part.Position + vt(0, -.4, 0))).magnitude / 100
2015
          local TheHit = Part.Position + vt(0, -1, 0)
2016
          local MouseLook = cf((Part.Position + TheHit) / 2, TheHit + spread)
2017
          local hit, pos = rayCast(Part.Position, MouseLook.lookVector, 999, Character)
2018
          local mag = (rightarm2.Position - pos).magnitude
2019
          MagicCylinder(CustomColor, cf((rightarm2.Position + pos) / 2, pos) * angles(math.rad(90), 0, 0), 10, mag * 5, 10, -1.5, 0, -1.5, 0.08)
2020
          MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 8, 8, 8, 0.25, 0.25, 0.25, 0.05)
2021
          Part.Parent = nil
2022
          if hit ~= nil then
2023
            local refpart = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt())
2024
            refpart.CFrame = cf(pos)
2025
            refpart.Anchored = true
2026
            game:GetService("Debris"):AddItem(refpart, 1)
2027
2028
            MagicBlock(CustomColor, true, refpart.CFrame, 15, 15, 15, 10, 10, 10, 0.05)
2029
            MagicRing(CustomColor, refpart.CFrame * angles(math.rad(90), math.rad(math.random(-60, 60)), math.rad(math.random(-60, 60))), 1, 1, 20, 1.1, 1.1, -0.3, 0.06)
2030
            so("http://roblox.com/asset/?id=183763487", refpart, 1, 1)
2031
            Damagefunc(hit, 20, 40, 1, "Normal", RootPart, 0, 1, 0, nil, true, true)
2032
            MagniDamage(refpart, 10, 5, 8, 0, "Normal", 0, 1, 0, nil, true, true)
2033
          end
2034
        end), orbblastpart)
2035
      end
2036
2037
    end))
2038
2039
 for i = 0, 1, 0.05 do
2040
      ArtificialHeartbeat.Event:wait()
2041
MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05)
2042
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
2043
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
2044
      RW.C0 = clerp(RW.C0, cf(1.3, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)) * RWC0, 0.15)
2045
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)) * LWC0, 0.15)
2046
      RH.C0 = clerp(RH.C0, cf(1, -1.0 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
2047
      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.15)
2048
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
2049
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
2050
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
2051
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
2052
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
2053
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
2054
    end	
2055
Speed.Value = oldspeedvalue
2056
    attack = false
2057
  end
2058
  function attackfour()
2059
    attack = true
2060
	 for i = 0, 0.8, 0.05 do
2061
      ArtificialHeartbeat.Event:wait()
2062
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 6 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(45)), 0.15)
2063
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
2064
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-45)) * RWC0, 0.15)
2065
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-60), math.rad(0), math.rad(-20)) * LWC0, 0.15)
2066
      RH.C0 = clerp(RH.C0, cf(.99, -0.0 - idleangle, -.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
2067
      LH.C0 = clerp(LH.C0, cf(-.99, -1.5 - idleangle, -.2) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.15)
2068
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
2069
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
2070
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
2071
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
2072
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2, 0, 0), 0.15)
2073
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(1, 4, 0), 0.15)
2074
	    end	
2075
2076
	
2077
	 for i = 0, 0.6, 0.05 do
2078
      ArtificialHeartbeat.Event:wait()
2079
2080
MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05)
2081
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(-45)), 0.15)
2082
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
2083
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(45), math.rad(0), math.rad(-45)) * RWC0, 0.15)
2084
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(0)) * LWC0, 0.15)
2085
      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.15)
2086
      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.15)
2087
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
2088
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
2089
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
2090
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
2091
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-0, 5, 0), 0.15)
2092
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
2093
	    end		
2094
	    local refpart4 = part(3, Effects, "Neon", 0, 1, BrickColor.new("Dark indigo"), "Effect", vt())
2095
    refpart4.CFrame = RootPart.CFrame * cf(0, -4, -4)	
2096
 MagniDamage(refpart4, 13, 5,  20, math.random(5, 10), "Normal", 0, 1, 0, nil, true, true)
2097
	MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 15, 15, 15, 0.08)	
2098
		game:GetService("Debris"):AddItem(refpart4, .5)
2099
	 for i = 0, 0.6, 0.05 do
2100
      ArtificialHeartbeat.Event:wait()
2101
2102
MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05)
2103
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(-45)), 0.15)
2104
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
2105
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(45), math.rad(0), math.rad(-45)) * RWC0, 0.15)
2106
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(0)) * LWC0, 0.15)
2107
      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.15)
2108
      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.15)
2109
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
2110
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
2111
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
2112
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
2113
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-0, 5, 0), 0.15)
2114
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
2115
	    end	
2116
		
2117
2118
	    local refpart4 = part(3, Effects, "Neon", 0, 1, BrickColor.new("Dark indigo"), "Effect", vt())
2119
    refpart4.CFrame = RootPart.CFrame * cf(0, -4, -4)	
2120
 MagniDamage(refpart4, 13, 20,  20, math.random(10, 20), "Normal", 0, 1, 0, nil, true, true)
2121
	MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 15, 15, 15, 0.08)	
2122
		game:GetService("Debris"):AddItem(refpart4, .5)
2123
	MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 15, 15, 15, 0.08)
2124
    attack = false
2125
  end
2126
--[[
2127
	 for i = 0, 0.5, 0.05 do
2128
      ArtificialHeartbeat.Event:wait()
2129
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
2130
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
2131
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * RWC0, 0.15)
2132
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 0.15)
2133
      RH.C0 = clerp(RH.C0, cf(1, -1.0 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
2134
      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.15)
2135
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
2136
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
2137
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
2138
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
2139
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
2140
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
2141
    end	
2142
--]]
2143
  function Move1()
2144
	Chat("darkness... ")
2145
    attack = true
2146
    for i = 0, 1, 0.25 do
2147
      ArtificialHeartbeat.Event:wait()
2148
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
2149
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
2150
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(0)) * RWC0, 0.15)
2151
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.15)
2152
      if Anim ~= "Walk" then
2153
        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.15)
2154
        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.15)
2155
      elseif Anim == "Walk" then
2156
        if walkinganim == true then
2157
          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(75)), 0.1)
2158
          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(75)), 0.1)
2159
        else
2160
          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(-75)), 0.1)
2161
          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(-75)), 0.1)
2162
        end
2163
      end
2164
2165
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
2166
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
2167
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
2168
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
2169
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
2170
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
2171
    end
2172
    for i = 0, 1, 0.04 do
2173
	 MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05)
2174
      ArtificialHeartbeat.Event:wait()
2175
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
2176
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
2177
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(0)) * RWC0, 0.15)
2178
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.15)
2179
      if Anim ~= "Walk" then
2180
        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.15)
2181
        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.15)
2182
      elseif Anim == "Walk" then
2183
        if walkinganim == true then
2184
          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(75)), 0.1)
2185
          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(75)), 0.1)
2186
        else
2187
          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(-75)), 0.1)
2188
          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(-75)), 0.1)
2189
        end
2190
      end
2191
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
2192
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
2193
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
2194
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
2195
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
2196
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
2197
    end
2198
    for i = 0, 3, 0.04 do
2199
      ArtificialHeartbeat.Event:wait()
2200
 MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05)
2201
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
2202
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
2203
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(0)) * RWC0, 0.15)
2204
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.15)
2205
      if Anim ~= "Walk" then
2206
        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.15)
2207
        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.15)
2208
      elseif Anim == "Walk" then
2209
        if walkinganim == true then
2210
          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(75)), 0.1)
2211
          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(75)), 0.1)
2212
        else
2213
          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(-75)), 0.1)
2214
          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(-75)), 0.1)
2215
        end
2216
      end
2217
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
2218
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
2219
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
2220
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
2221
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
2222
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
2223
    end
2224
2225
Chat("fall...")
2226
    local orbnumber = math.random(30, 40)
2227
    coroutine.resume(coroutine.create(function()
2228
      for i = 1, orbnumber do
2229
        wait()
2230
        local orbblastpart = part(3, Effects, "Neon", 0, 0.5, CustomColor, "Effect", vt())
2231
        local orbblastmesh = mesh("SpecialMesh", orbblastpart, "Sphere", "", vt(0, 0, 0), vt(10, 10, 10)*4)
2232
        orbblastpart.Anchored = true
2233
        game:GetService("Debris"):AddItem(orbblastpart, 5)
2234
        orbblastpart.CFrame = cf(Mouse.hit.p + vt(math.random(-10, 10), math.random(70, 80), math.random(-10, 10)))
2235
         MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05)
2236
        MagicSphere(CustomColor, orbblastpart.CFrame, 10, 10, 10, 1.5, 1.5, 1.5, 0.04)
2237
        so("http://roblox.com/asset/?id=183763498", orbblastpart, 1, 1.2)
2238
        coroutine.resume(coroutine.create(function(Part)
2239
          wait(.8)
2240
          local spread = vt(math.random(-26, 26), math.random(-10, 10), math.random(-26, 26)) * (Part.Position - (Part.Position + vt(0, -.4, 0))).magnitude / 100
2241
          local TheHit = Part.Position + vt(0, -1, 0)
2242
          local MouseLook = cf((Part.Position + TheHit) / 2, TheHit + spread)
2243
          local hit, pos = rayCast(Part.Position, MouseLook.lookVector, 999, Character)
2244
          local mag = (Part.Position - pos).magnitude
2245
          MagicCylinder(CustomColor, cf((Part.Position + pos) / 2, pos) * angles(math.rad(90), 0, 0), 5, mag * 5, 5, -0.5, 0, -0.5, 0.08)
2246
          MagicBlock(CustomColor, true, Part.CFrame, 8, 8, 8, 0.25, 0.25, 0.25, 0.05)
2247
          Part.Parent = nil
2248
          if hit ~= nil then
2249
            local refpart = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt())
2250
            refpart.CFrame = cf(pos)
2251
            refpart.Anchored = true
2252
            game:GetService("Debris"):AddItem(refpart, 1)
2253
            MagicBlock(CustomColor, true, Part.CFrame, 18, 18, 18, 0.25, 0.25, 0.25, 0.05)
2254
            MagicBlock(CustomColor, true, refpart.CFrame, 15, 15, 15, 10, 10, 10, 0.05)
2255
            MagicRing(CustomColor, refpart.CFrame * angles(math.rad(90), math.rad(math.random(-60, 60)), math.rad(math.random(-60, 60))), 1, 1, 20, 1.1, 1.1, -0.3, 0.06)
2256
            so("http://roblox.com/asset/?id=183763487", refpart, 1, 1)
2257
            Damagefunc(hit, 20, 40, 1, "Normal", RootPart, 0, 1, 0, nil, true, true)
2258
            MagniDamage(refpart, 15, 5, 10, 0, "Normal", 0, 1, 0, nil, true, true)
2259
          end
2260
        end), orbblastpart)
2261
      end
2262
2263
    end))
2264
    local equipvelocity2 = Instance.new("BodyVelocity", Torso)
2265
    equipvelocity2.P = 500
2266
    equipvelocity2.maxForce = vt(math.huge, math.huge, math.huge)
2267
    equipvelocity2.Velocity = Vector3.new(0, 0, 0)
2268
game:GetService("Debris"):AddItem(equipvelocity2, 2)
2269
    for i = 0, 1, (0.015 + orbnumber / 10000) / 2 do
2270
      ArtificialHeartbeat.Event:wait()
2271
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 8 + idleangle) * angles(math.rad(25), math.rad(0), math.rad(0)), 0.15)
2272
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
2273
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(45), math.rad(0), math.rad(0)) * RWC0, 0.04)
2274
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-40), math.rad(0), math.rad(-20)) * LWC0, 0.15)
2275
     
2276
      RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.15)
2277
      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(20)), 0.15)
2278
2279
      
2280
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
2281
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
2282
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
2283
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
2284
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
2285
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
2286
    end
2287
    for i = 0, 1, 0.25 do
2288
      ArtificialHeartbeat.Event:wait()
2289
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
2290
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
2291
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(0)) * RWC0, 0.15)
2292
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.15)
2293
      if Anim ~= "Walk" then
2294
        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.15)
2295
        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.15)
2296
      elseif Anim == "Walk" then
2297
        if walkinganim == true then
2298
          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(75)), 0.1)
2299
          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(75)), 0.1)
2300
        else
2301
          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(-75)), 0.1)
2302
          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(-75)), 0.1)
2303
        end
2304
      end
2305
Humanoid.WalkSpeed = 16 * Speed.Value
2306
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
2307
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
2308
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
2309
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
2310
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
2311
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
2312
    end
2313
    attack = false
2314
  end
2315
  function Move2()
2316
	Chat("Die!")
2317
    attack = true
2318
    local oldspeedvalue = Speed.Value
2319
    Speed.Value = 0
2320
    for i = 0, .5, 0.25 do
2321
      ArtificialHeartbeat.Event:wait()
2322
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
2323
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
2324
      RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-30)) * RWC0, 0.15)
2325
      LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(30)) * LWC0, 0.15)
2326
      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.15)
2327
      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.15)
2328
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
2329
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
2330
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(2, 5, 0.5), 0.15)
2331
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(-2, 5, 0.5), 0.15)
2332
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
2333
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
2334
    end
2335
    for i = 0, .5, 0.015 do
2336
      ArtificialHeartbeat.Event:wait()
2337
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
2338
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
2339
      RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(180), math.rad(0), math.rad(-30)) * RWC0, 0.15)
2340
      LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(180), math.rad(0), math.rad(30)) * LWC0, 0.15)
2341
      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.15)
2342
      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.15)
2343
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
2344
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
2345
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(2, 5, 0.5), 0.15)
2346
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(-2, 5, 0.5), 0.15)
2347
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
2348
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
2349
    end
2350
    so("http://www.roblox.com/asset/?id=169445121", Torso, 1, 0.6)
2351
    for i = 0, 1.7, 0.25 do
2352
      ArtificialHeartbeat.Event:wait()
2353
      MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -10, -10, -10, 0.1)
2354
      MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -10, -10, -10, 0.1)
2355
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 9 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
2356
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
2357
      RW.C0 = clerp(RW.C0, cf(1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(-30)) * RWC0, 0.15)
2358
      LW.C0 = clerp(LW.C0, cf(-1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(30)) * LWC0, 0.15)
2359
      RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
2360
      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(35)), 0.15)
2361
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
2362
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
2363
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 7, -0.5), 0.15)
2364
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 7, -0.5), 0.15)
2365
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-1.8, 3.5, 0), 0.15)
2366
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
2367
    end
2368
    local refpart = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt())
2369
    refpart.CFrame = RootPart.CFrame * cf(0, 500, -20)
2370
    refpart.Anchored = true
2371
    game:GetService("Debris"):AddItem(refpart, 1)
2372
    local TheHit = refpart.Position + vt(0, -1, 0)
2373
    local MouseLook = cf((refpart.Position + TheHit) / 2, TheHit)
2374
    local hit, pos = rayCast(refpart.Position, MouseLook.lookVector, 999, Character)
2375
    local mag = (refpart.Position - pos).magnitude
2376
    local refpart2 = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt())
2377
    refpart2.CFrame = cf(pos)
2378
    refpart2.Anchored = true
2379
    game:GetService("Debris"):AddItem(refpart2, 1)
2380
    MagicCylinder(CustomColor, cf((refpart.Position + pos) / 2, pos) * angles(math.rad(90), 0, 0), 5, mag * 5, 5, 0.4, 0, 0.4, 0.025)
2381
    if hit ~= nil then
2382
      MagicBlock(CustomColor, true, refpart2.CFrame, 15, 15, 15, 2.5, 2.5, 2.5, 0.02)
2383
      MagicSphere(CustomColor, refpart2.CFrame, 15, 15, 15, 7, 7, 7, 0.02)
2384
      MagicWave(CustomColor, refpart2.CFrame, 5, 5, 5, .6, 1.2, .6, 0.03)
2385
      MagicRing(CustomColor, refpart2.CFrame * angles(math.rad(90), 0, 0), 2.5, 2.5, 2.5, 2, 2, 2, 0.025)
2386
      so("http://roblox.com/asset/?id=87784452", refpart2, 1, 0.8)
2387
      so("http://roblox.com/asset/?id=183763515", refpart2, 1, 0.8)
2388
      MagniDamage(refpart2, 25, 20, 50, math.random(10, 30), "Normal", 0, 1, 0, nil, true, true)
2389
    end
2390
    for i = 0, 1, 0.02 do
2391
      ArtificialHeartbeat.Event:wait()
2392
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 9 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
2393
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
2394
      RW.C0 = clerp(RW.C0, cf(1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(-30)) * RWC0, 0.15)
2395
      LW.C0 = clerp(LW.C0, cf(-1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(30)) * LWC0, 0.15)
2396
      RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
2397
      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(35)), 0.15)
2398
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
2399
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
2400
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 7, -0.5), 0.15)
2401
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 7, -0.5), 0.15)
2402
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-1.8, 3.5, 0), 0.15)
2403
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
2404
    end
2405
    Speed.Value = Speed.Value + oldspeedvalue
2406
    attack = false
2407
  end
2408
  function Move3()
2409
	Chat("...")
2410
    attack = true
2411
    local oldspeedvalue = Speed.Value
2412
    Speed.Value = 0
2413
    so("http://www.roblox.com/asset/?id=169445046", rightleg2, 1, 0.6)
2414
    for i = 0, 1, 0.05 do
2415
      ArtificialHeartbeat.Event:wait()
2416
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
2417
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.15)
2418
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(20)) * RWC0, 0.15)
2419
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(-20)) * LWC0, 0.15)
2420
      RH.C0 = clerp(RH.C0, cf(1, -0.0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.15)
2421
      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(15)), 0.15)
2422
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
2423
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
2424
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
2425
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
2426
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15)
2427
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
2428
    end
2429
    for i = 0, 1.5, 0.05 do
2430
	MagicBlock(CustomColor, true, rightleg2.CFrame * cf(0, -5, 0), 40, 40, 40, -7, -7, -7, 0.05)
2431
      ArtificialHeartbeat.Event:wait()
2432
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
2433
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.15)
2434
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(20)) * RWC0, 0.15)
2435
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(-20)) * LWC0, 0.15)
2436
      RH.C0 = clerp(RH.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(15)), 0.2)
2437
      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(15)), 0.15)
2438
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
2439
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
2440
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
2441
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
2442
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 5, 0), 0.15)
2443
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
2444
    end
2445
    MagicSphere(CustomColor, RootPart.CFrame * cf(2.5, -3, -2), 10, 4, 10, 2.5, 1.5, 2.5, 0.025)
2446
    local num = 0
2447
    local refpart = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt())
2448
    refpart.CFrame = RootPart.CFrame * cf(2.5, 0, -6)
2449
    refpart.Anchored = true
2450
    game:GetService("Debris"):AddItem(refpart, 3)
2451
    for i = 1, 40 do
2452
      local refpart2 = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt())
2453
      refpart2.CFrame = refpart.CFrame * cf(0, 0, num)
2454
      refpart2.Anchored = true
2455
      game:GetService("Debris"):AddItem(refpart2, 1)
2456
      local TheHit = refpart2.Position + vt(0, -1, 0)
2457
      local MouseLook = cf((refpart2.Position + TheHit) / 2, TheHit)
2458
      local hit, pos = rayCast(refpart2.Position, MouseLook.lookVector, 999, Character)
2459
      if hit ~= nil then
2460
        local refpart3 = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt())
2461
        refpart3.CFrame = cf(pos)
2462
        refpart3.Anchored = true
2463
        game:GetService("Debris"):AddItem(refpart3, 1)
2464
        MagicSphere(BrickColor.new("Dark indigo"), refpart3.CFrame, 40, 20, 40, -2, -1, -2, 0.015)
2465
        MagicWave(CustomColor, refpart3.CFrame, 7, 10, 7,-0.08, -.2, -0.08, 0.03)
2466
        so("http://www.roblox.com/asset/?id=161006093", refpart3, 1, 0.6)
2467
        MagniDamage(refpart3, 20, 2, 6, math.random(5, 20), "Normal", 0, 1, 0, nil, true, true)
2468
      end
2469
      num = num - 5
2470
      wait()
2471
    end
2472
    Speed.Value = Speed.Value + oldspeedvalue
2473
    attack = false
2474
  end
2475
2476
2477
function DanceMoves()
2478
attack = true	
2479
	
2480
    local oldspeedvalue = Speed.Value
2481
    Speed.Value = 0	
2482
	
2483
for i = 0,3 do	
2484
--[	
2485
 for i = 0, 0.5, 0.05 do
2486
      ArtificialHeartbeat.Event:wait()
2487
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
2488
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
2489
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * RWC0, 0.15)
2490
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 0.15)
2491
      RH.C0 = clerp(RH.C0, cf(1, -1.0 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
2492
      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.15)
2493
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
2494
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
2495
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
2496
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
2497
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
2498
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
2499
    end		
2500
	
2501
--]]	
2502
	
2503
	
2504
	
2505
	
2506
	
2507
	
2508
	
2509
	
2510
	
2511
	
2512
	
2513
	
2514
	
2515
	
2516
	
2517
	
2518
	
2519
	
2520
 for i = 0, 1.5, 0.05 do
2521
      ArtificialHeartbeat.Event:wait()
2522
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(1, 0, 11.5 + idleangle) * angles(math.rad(-5), math.rad(-10), math.rad(45)), 0.15)
2523
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(45)), 0.15)
2524
      RW.C0 = clerp(RW.C0, cf(1.25, 0.1 + idleangle, 0) * angles(math.rad(90), math.rad(-20), math.rad(-50)) * RWC0, 0.15)
2525
      LW.C0 = clerp(LW.C0, cf(-1.25, 0.5 + idleangle, -0.2) * angles(math.rad(90), math.rad(-70), math.rad(-80)) * LWC0, 0.15)
2526
      RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(-20)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
2527
      LH.C0 = clerp(LH.C0, cf(-1, -0.5 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
2528
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
2529
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
2530
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 1.5, -0.5), 0.15)
2531
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
2532
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
2533
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(3, 2.5, 0), 0.15)
2534
    end	
2535
2536
2537
2538
2539
2540
2541
2542
 for i = 0, 0.5, 0.05 do
2543
      ArtificialHeartbeat.Event:wait()
2544
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
2545
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
2546
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * RWC0, 0.15)
2547
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 0.15)
2548
      RH.C0 = clerp(RH.C0, cf(1, -1.0 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
2549
      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.15)
2550
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
2551
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
2552
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
2553
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
2554
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
2555
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
2556
    end		
2557
	
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
 for i = 0, 1.5, 0.05 do
2569
      ArtificialHeartbeat.Event:wait()
2570
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(-1, 0, 11.5 + idleangle) * angles(math.rad(-5), math.rad(10), math.rad(-45)), 0.15)
2571
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-45)), 0.15)
2572
      RW.C0 = clerp(RW.C0, cf(1.25, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(70), math.rad(80)) * RWC0, 0.15)
2573
      LW.C0 = clerp(LW.C0, cf(-1.25, 0.1 + idleangle, -0.2) * angles(math.rad(90), math.rad(20), math.rad(50)) * LWC0, 0.15)
2574
      RH.C0 = clerp(RH.C0, cf(1, -0.5 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
2575
      LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(20)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
2576
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
2577
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
2578
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
2579
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 1.5, -0.5), 0.15)
2580
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-3, 2.5, 0), 0.15)
2581
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
2582
    end	
2583
end
2584
Speed.Value = Speed.Value +	oldspeedvalue
2585
attack = false	
2586
end
2587
2588
  function Move4()
2589
	Chat("Shadow Blast!...")
2590
    attack = true
2591
    for i = 0, 1, 0.25 do
2592
      ArtificialHeartbeat.Event:wait()
2593
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
2594
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
2595
      RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-30)) * RWC0, 0.15)
2596
      LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(30)) * LWC0, 0.15)
2597
      if Anim ~= "Walk" then
2598
        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.15)
2599
        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.15)
2600
      elseif Anim == "Walk" then
2601
        if walkinganim == true then
2602
          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(75)), 0.1)
2603
          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(75)), 0.1)
2604
        else
2605
          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(-75)), 0.1)
2606
          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(-75)), 0.1)
2607
        end
2608
      end
2609
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
2610
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
2611
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15)
2612
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15)
2613
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
2614
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
2615
    end
2616
    for i = 0, 1, 0.04 do
2617
      ArtificialHeartbeat.Event:wait()
2618
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
2619
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
2620
      RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(-30)) * RWC0, 0.15)
2621
      LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(30)) * LWC0, 0.15)
2622
      if Anim ~= "Walk" then
2623
        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.15)
2624
        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.15)
2625
      elseif Anim == "Walk" then
2626
        if walkinganim == true then
2627
          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(75)), 0.1)
2628
          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(75)), 0.1)
2629
        else
2630
          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(-75)), 0.1)
2631
          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(-75)), 0.1)
2632
        end
2633
      end
2634
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
2635
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
2636
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15)
2637
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15)
2638
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
2639
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
2640
    end
2641
    local orbpart = part(3, Effects, "Neon", 0, 0.5, CustomColor, "Effect", vt())
2642
    local orbmesh = mesh("SpecialMesh", orbpart, "Sphere", "", vt(0, 0, 0), vt(15, 15, 15))
2643
    local orbweld = weld(orbpart, Torso, orbpart, cf(0, 0, 0), cf(0, -15, 0))
2644
    game:GetService("Debris"):AddItem(orbpart, 5)
2645
    so("http://roblox.com/asset/?id=137463716", orbpart, 1, 0.6)
2646
    coroutine.resume(coroutine.create(function(Part, Mesh)
2647
      for i = 0, 0.4, 0.005 do
2648
        ArtificialHeartbeat.Event:wait()
2649
        Mesh.Scale = Mesh.Scale + vt(0.90, 0.90, 0.90)
2650
MagicBlock(CustomColor, true, orbpart.CFrame, 30, 30, 30, -5, -5, -5, 0.05)
2651
MagicBlock("Black", true, orbpart.CFrame, 24, 24, 24, 3,3,3, 0.4)
2652
2653
        local orbchargeeffect = part(3, Effects, "Neon", 0, 0, CustomColor, "Effect", vt())
2654
        local orbchargeeffectmesh = mesh("SpecialMesh", orbchargeeffect, "Sphere", "", vt(0, 0, 0), vt(8, math.random(10, 15), 8))
2655
        local orbchargecframe = angles(math.rad(math.random(-150, 150)), math.rad(math.random(-150, 150)), math.rad(math.random(-150, 150))) * cf(0, math.random(10, 50), 0)
2656
        orbchargeeffect.CFrame = orbpart.CFrame * orbchargecframe
2657
        orbchargeeffect.Anchored = true
2658
        game:GetService("Debris"):AddItem(orbchargeeffect, 2)
2659
        coroutine.resume(coroutine.create(function(Part, Mesh)
2660
          for i = 0, 1, 0.1 do
2661
            ArtificialHeartbeat.Event:wait()
2662
            Part.Transparency = i
2663
            Part.CFrame = Part.CFrame * cf(0, -1, 0)
2664
          end
2665
          Part.Parent = nil
2666
        end), orbchargeeffect, orbchargeeffectmesh)
2667
      end
2668
      wait(0.2)
2669
      local range = 1999
2670
      local MainPos = Part.Position
2671
      local MainPos2 = Mouse.Hit.p
2672
      local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
2673
      local hit, pos = rayCast(MainPos, MouseLook.lookVector, range, ShotTarget.Parent)
2674
      local mag = (MainPos - pos).magnitude
2675
      MagicCylinder("Black", cf((MainPos + pos) / 2, pos) * angles(math.rad(90), 0, 0), 5, mag * 5, 10, 2.5, 0, 2.5, 0.015)
2676
      MagicCylinder(CustomColor, cf((MainPos + pos) / 2, pos) * angles(math.rad(90), 0, 0), 5, mag * 5, 10, 3.0, 0, 3.0, 0.015)
2677
      for i = 1, 5 do
2678
        local ringcf = cf((MainPos + pos) / 2, pos) * angles(math.rad(-90), 0, 0) * cf(0, mag / 5 * (i / 2), 0)
2679
        MagicRing("Black", ringcf * angles(math.rad(90), 0, 0), 5, 5, 1.1, 0.08, 0.08, 0.0, 0.02)
2680
      end
2681
      for i = 0, 5 do
2682
        local ringcf = cf((MainPos + pos) / 2, pos) * angles(math.rad(-90), 0, 0) * cf(0, -mag / 5 * (i / 2), 0)
2683
        MagicRing("Black", ringcf * angles(math.rad(90), 0, 0), 5, 5, 1.1, 0.08, 0.08, 0.0, 0.02)
2684
      end
2685
      so("http://roblox.com/asset/?id=183763506", Part, 1, 0.6)
2686
      so("http://roblox.com/asset/?id=178452221", Part, 1, 0.6)
2687
      so("http://www.roblox.com/asset/?id=87767777", Part, 1, 1)
2688
      if hit ~= nil then
2689
        local refpart = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt())
2690
        refpart.CFrame = cf(pos)
2691
        refpart.Anchored = true
2692
        game:GetService("Debris"):AddItem(refpart, 1)
2693
        MagicBlock(CustomColor, true, refpart.CFrame, 45, 45, 45, 4, 4, 4, 0.01)
2694
        MagicSphere("Black", refpart.CFrame, 35, 35, 35, 4, 4, 4, 0.02)
2695
        so("http://roblox.com/asset/?id=183763506", refpart, 1, 0.6)
2696
        so("http://roblox.com/asset/?id=178452221", refpart, 1, 0.6)
2697
        so("http://www.roblox.com/Asset?ID=87767777", refpart, 2, 2)
2698
        Damagefunc(hit, 40, 80, 60, "Normal", RootPart, 0, 1, 0, nil, true, true)
2699
        MagniDamage(refpart, 20, 10, 30, 40, "Normal", 0, 1, 0, nil, true, true)
2700
      end
2701
      for i = 0, 1, 0.01 do
2702
        ArtificialHeartbeat.Event:wait()
2703
        Mesh.Scale = Mesh.Scale + vt(0.5, 0.5, 0.5)
2704
        Part.Transparency = Part.Transparency + 0.01
2705
      end
2706
      Part.Parent = nil
2707
    end), orbpart, orbmesh)
2708
    for i = 0, 0.35, 0.004 do
2709
      ArtificialHeartbeat.Event:wait()
2710
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
2711
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
2712
      RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(-30)) * RWC0, 0.15)
2713
      LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(30)) * LWC0, 0.15)
2714
      if Anim ~= "Walk" then
2715
        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.15)
2716
        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.15)
2717
      elseif Anim == "Walk" then
2718
        if walkinganim == true then
2719
          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(75)), 0.1)
2720
          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(75)), 0.1)
2721
        else
2722
          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(-75)), 0.1)
2723
          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(-75)), 0.1)
2724
        end
2725
      end
2726
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
2727
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
2728
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15)
2729
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15)
2730
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
2731
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
2732
    end
2733
    for i = 0, 1, 0.25 do
2734
      ArtificialHeartbeat.Event:wait()
2735
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
2736
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
2737
      RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-30)) * RWC0, 0.15)
2738
      LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(30)) * LWC0, 0.15)
2739
      if Anim ~= "Walk" then
2740
        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.15)
2741
        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.15)
2742
      elseif Anim == "Walk" then
2743
        if walkinganim == true then
2744
          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(75)), 0.1)
2745
          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(75)), 0.1)
2746
        else
2747
          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(-75)), 0.1)
2748
          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(-75)), 0.1)
2749
        end
2750
      end
2751
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
2752
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
2753
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15)
2754
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15)
2755
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
2756
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
2757
    end
2758
    attack = false
2759
  end
2760
  function Move5()
2761
	Chat("Soul Blast!")
2762
    attack = true
2763
    local oldspeedvalue = Speed.Value
2764
    Speed.Value = 0
2765
    for i = 0, 1, 0.25 do
2766
      ArtificialHeartbeat.Event:wait()
2767
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
2768
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
2769
      RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-10)) * RWC0, 0.15)
2770
      LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 0.15)
2771
      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.15)
2772
      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.15)
2773
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
2774
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
2775
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(2, 5, 0.5), 0.15)
2776
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(-2, 5, 0.5), 0.15)
2777
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
2778
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
2779
    end
2780
2781
    for i = 0, 1, 0.015 do
2782
      ArtificialHeartbeat.Event:wait()
2783
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
2784
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
2785
      RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(180), math.rad(0), math.rad(-10)) * RWC0, 0.15)
2786
      LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 0.15)
2787
      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.15)
2788
      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.15)
2789
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
2790
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
2791
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(2, 5, 0.5), 0.15)
2792
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(-2, 5, 0.5), 0.15)
2793
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
2794
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
2795
    end
2796
wait(.1)
2797
    so("http://www.roblox.com/asset/?id=169445121", Torso, 1, 0.6)
2798
    for i = 0, 1, 0.25 do
2799
      ArtificialHeartbeat.Event:wait()
2800
      MagicBlock(BrickColor.new("Dark indigo"), true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 1, 1, 1, 0.05)
2801
      MagicBlock(BrickColor.new("Dark indigo"), true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 1, 1, 1, 0.05)
2802
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 9 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
2803
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
2804
      RW.C0 = clerp(RW.C0, cf(1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(-30)) * RWC0, 0.15)
2805
      LW.C0 = clerp(LW.C0, cf(-1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(30)) * LWC0, 0.15)
2806
      RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
2807
      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(35)), 0.15)
2808
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
2809
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
2810
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 7, -0.5), 0.15)
2811
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 7, -0.5), 0.15)
2812
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-1.8, 3.5, 0), 0.15)
2813
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
2814
    end
2815
    local refpart = part(3, Effects, "Neon", 0, 1, BrickColor.new("Dark indigo"), "Effect", vt())
2816
    refpart.CFrame = RootPart.CFrame * cf(0, 500, -20)
2817
    refpart.Anchored = true
2818
    game:GetService("Debris"):AddItem(refpart, 1)
2819
    local TheHit = refpart.Position + vt(0, -1, 0)
2820
    local MouseLook = cf((refpart.Position + TheHit) / 2, TheHit)
2821
    local hit, pos = rayCast(refpart.Position, MouseLook.lookVector, 999, Character)
2822
    local mag = (refpart.Position - pos).magnitude
2823
    local refpart2 = part(3, Effects, "Neon", 0, 1, BrickColor.new("Dark indigo"), "Effect", vt())
2824
    refpart2.CFrame = cf(pos)
2825
    refpart2.Anchored = true
2826
    game:GetService("Debris"):AddItem(refpart2, 1)
2827
    MagicCylinder(BrickColor.new("Dark indigo"), cf((refpart.Position + pos) / 2, pos) * angles(math.rad(90), 0, 0), 145, mag * 145, 145, 0.1, 0, 0.1, 0.015)
2828
    if hit ~= nil then
2829
      MagicBlock(BrickColor.new("Dark indigo"), true, refpart2.CFrame, 15, 15, 15, 15.5, 15.5, 15.5, 0.005)
2830
      MagicSphere(BrickColor.new("Really black"), refpart2.CFrame, 15, 15, 15, 14, 14, 14, 0.005)
2831
      MagicWave(BrickColor.new("Dark indigo"), refpart2.CFrame, 5, 5, 5, 2, 0.5, 2, 0.025)
2832
      MagicRing(BrickColor.new("Dark indigo"), refpart2.CFrame * angles(math.rad(90), 0, 0), 12.5, 12.5, 12.5, 5, 5, 5, 0.025)
2833
      so("http://roblox.com/asset/?id=87784452", refpart2, 1, 0.8)
2834
      so("http://roblox.com/asset/?id=183763515", refpart2, 1, 0.8)
2835
      MagniDamage(refpart2, 99, 129, 149, math.random(10, 30), "Normal", 0, 1, 0, nil, true, true)
2836
    end
2837
    for i = 0, 1, 0.02 do
2838
      ArtificialHeartbeat.Event:wait()
2839
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 9 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
2840
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
2841
      RW.C0 = clerp(RW.C0, cf(1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(-30)) * RWC0, 0.15)
2842
      LW.C0 = clerp(LW.C0, cf(-1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(30)) * LWC0, 0.15)
2843
      RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
2844
      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(35)), 0.15)
2845
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
2846
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
2847
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 7, -0.5), 0.15)
2848
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 7, -0.5), 0.15)
2849
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-1.8, 3.5, 0), 0.15)
2850
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
2851
    end
2852
    Speed.Value = Speed.Value + oldspeedvalue
2853
    attack = false
2854
  end
2855
2856
  hold = false
2857
  Mouse.Button1Down:connect(function()
2858
    if attack == true or equipped == false then
2859
      return
2860
    end
2861
    hold = true
2862
    if attacktype == 1 then
2863
      attacktype = 2
2864
      attackone()
2865
    elseif attacktype == 2 then
2866
      attacktype = 3
2867
      attacktwo()
2868
    elseif attacktype == 3 then
2869
      attacktype = 4
2870
      attackthree()
2871
    elseif attacktype == 4 then
2872
      attacktype = 1
2873
      attackfour()
2874
    end
2875
    coroutine.resume(coroutine.create(function()
2876
      for i = 1, 50 do
2877
        if attack == false then
2878
          wait()
2879
        end
2880
      end
2881
      if attack == false then
2882
        attacktype = 1
2883
      end
2884
    end))
2885
  end)
2886
  if allowhopperbin == true then
2887
    function ob1u(Mouse)
2888
      hold = false
2889
    end
2890
  end
2891
  Mouse.KeyDown:connect(function(key)
2892
    if key == "f" and canunequiporequip == true and attack == false then
2893
      if equipped == false then
2894
        equipped = true
2895
2896
        if disableanimate == true then
2897
          Animate.Disabled = true
2898
          local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
2899
          idleanimation:Play()
2900
        end
2901
        if disableanimator == true then
2902
          Animator.Parent = nil
2903
        end
2904
        if disablemovingarms == true then
2905
          RW.Parent = Torso
2906
          LW.Parent = Torso
2907
          RSH.Parent = nil
2908
          LSH.Parent = nil
2909
        end
2910
        equipanim()
2911
      elseif equipped == true then
2912
        equipped = false
2913
        unequipanim()
2914
        ArtificialHeartbeat.Event:wait()
2915
        if disablemovingarms == true then
2916
          RW.Parent = nil
2917
          LW.Parent = nil
2918
          RSH.Parent = Torso
2919
          LSH.Parent = Torso
2920
        end
2921
        if disableanimator == true then
2922
          Animator.Parent = Humanoid
2923
        end
2924
        if disableanimate == true then
2925
          Animate.Disabled = false
2926
        end
2927
      end
2928
    end
2929
    if key == "e" and attack == false and equipped == true then
2930
      EAbility()
2931
    end
2932
    if key == "z" and attack == false and equipped == true and cooldown1 >= co1 and mana >= skill1mana then
2933
      subtractmana(skill1mana)
2934
      cooldown1 = 0
2935
      Move1()
2936
    end
2937
    if key == "x" and attack == false and equipped == true and cooldown2 >= co2 and mana >= skill2mana then
2938
      subtractmana(skill2mana)
2939
      cooldown2 = 0
2940
      Move2()
2941
    end
2942
    if key == "c" and attack == false and equipped == true and cooldown3 >= co3 and mana >= skill3mana then
2943
      subtractmana(skill3mana)
2944
      cooldown3 = 0
2945
      Move3()
2946
    end
2947
    if key == "v" and attack == false and equipped == true and cooldown4 >= co4 and mana >= skill4mana then
2948
      subtractmana(skill4mana)
2949
      cooldown4 = 0
2950
      Move4()
2951
    end
2952
    if key == "b" and attack == false and equipped == true and cooldown4 >= co4 and mana >= skill4mana then
2953
      subtractmana(skill4mana)
2954
      cooldown4 = 0
2955
      Move5()
2956
    end
2957
if key == "t" and attack == false and equipped == true and cooldown4 >= co4 and mana >= skill4mana then
2958
DanceMoves()
2959
end
2960
    if key == "m" then
2961
      hitfloor, posfloor = rayCast(RootPart.Position, cf(RootPart.Position, RootPart.Position - vt(0, 1, 0)).lookVector, 4, Character)
2962
      if hitfloor == nil then
2963
        RootPart.CFrame = RootPart.CFrame * cf(0, 12, 0)
2964
      end
2965
    end
2966
  end)
2967
  if allowhopperbin == true then
2968
    function key2(key)
2969
    end
2970
  end
2971
  if allowhopperbin == true then
2972
    function s(Mouse)
2973
      Mouse.Button1Down:connect(function()
2974
        ob1d(Mouse)
2975
      end)
2976
      Mouse.Button1Up:connect(function()
2977
        ob1u(Mouse)
2978
      end)
2979
      Mouse.KeyDown:connect(key)
2980
      Mouse.KeyUp:connect(key2)
2981
    end
2982
  end
2983
  if allowhopperbin == true then
2984
    function ds(Mouse)
2985
    end
2986
  end
2987
  if allowhopperbin == true then
2988
    Bin.Selected:connect(s)
2989
    Bin.Deselected:connect(ds)
2990
  end
2991
  function updateskills()
2992
    if allowabilitestofunction == true then
2993
      if cooldown1 <= co1 then
2994
        cooldown1 = cooldown1 + 0.03333333333333333
2995
        if cooldown1 >= co1 then
2996
          cooldown1 = co1
2997
        end
2998
      end
2999
      if cooldown2 <= co2 then
3000
        cooldown2 = cooldown2 + 0.03333333333333333
3001
        if cooldown2 >= co2 then
3002
          cooldown2 = co2
3003
        end
3004
      end
3005
      if cooldown3 <= co3 then
3006
        cooldown3 = cooldown3 + 0.03333333333333333
3007
        if cooldown3 >= co3 then
3008
          cooldown3 = co3
3009
        end
3010
      end
3011
      if cooldown4 <= co4 then
3012
        cooldown4 = cooldown4 + 0.03333333333333333
3013
      elseif cooldown4 >= co4 then
3014
        cooldown4 = co4
3015
      end
3016
      if changebarcolorsifnotenoughmana == true then
3017
        if mana <= skill1mana then
3018
          bar4.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196)
3019
        else
3020
          bar4.BackgroundColor3 = skillcolorscheme
3021
        end
3022
        if mana <= skill2mana then
3023
          bar3.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196)
3024
        else
3025
          bar3.BackgroundColor3 = skillcolorscheme
3026
        end
3027
        if mana <= skill3mana then
3028
          bar1.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196)
3029
        else
3030
          bar1.BackgroundColor3 = skillcolorscheme
3031
        end
3032
        if mana <= skill4mana then
3033
          bar2.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196)
3034
        else
3035
          bar2.BackgroundColor3 = skillcolorscheme
3036
        end
3037
      elseif changebarcolorsifnotenoughmana == false then
3038
        bar1.BackgroundColor3 = skillcolorscheme
3039
        bar2.BackgroundColor3 = skillcolorscheme
3040
        bar3.BackgroundColor3 = skillcolorscheme
3041
        bar4.BackgroundColor3 = skillcolorscheme
3042
      end
3043
    end
3044
    if alternatemanaregensystem == false then
3045
      if mana <= maxmana then
3046
        mana = mana + recovermana / 30
3047
      elseif mana >= maxmana then
3048
        mana = maxmana
3049
      end
3050
    elseif alternatemanaregensystem == true then
3051
      if mana >= maxmana then
3052
        mana = maxmana
3053
      elseif manadelay <= manawait then
3054
        manadelay = manadelay + 1
3055
      else
3056
        manadelay = 0
3057
        mana = mana + 1
3058
      end
3059
    end
3060
    if allowstunbar == true then
3061
      if 0 >= StunValue.Value then
3062
        StunValue.Value = 0
3063
      elseif stundelay <= stunwait then
3064
        stundelay = stundelay + 1
3065
      else
3066
        stundelay = 0
3067
        StunValue.Value = StunValue.Value - 1
3068
      end
3069
    elseif allowstunbar == false then
3070
      StunValue.Value = 0
3071
    end
3072
  end
3073
  if allowmenutofunction == true then
3074
    ArtificialHeartbeat.Event:connect(function()
3075
      updateskills()
3076
      if allowabilitestofunction == true then
3077
        framesk1:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
3078
        framesk2:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
3079
        framesk3:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
3080
        framesk4:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
3081
        bar1:TweenSize(ud(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
3082
        bar2:TweenSize(ud(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
3083
        bar3:TweenSize(ud(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
3084
        bar4:TweenSize(ud(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
3085
      end
3086
      manabar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
3087
      manacover:TweenSize(ud(1 * (mana / maxmana), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
3088
      healthbar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
3089
      healthcover:TweenSize(ud(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
3090
      if allowstunbar == true then
3091
        stunframe:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
3092
        stunbar:TweenSize(ud(1 * (StunValue.Value / maxstun), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
3093
      end
3094
      if showhealthmanaandstunnumbers == true then
3095
        manatext.Text = "Mana [" .. mana .. "]"
3096
        healthtext.Text = "Health [" .. Humanoid.Health .. "]"
3097
        if allowstunbar == true then
3098
          stuntext.Text = "Stun [" .. StunValue.Value .. "]"
3099
        end
3100
      end
3101
      if showstats == true then
3102
        defenseframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
3103
        damageframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
3104
        speedframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
3105
        defensetext.Text = "Defense: " .. Defense.Value
3106
        damagetext.Text = "Damage: " .. Damage.Value
3107
        speedtext.Text = "Speed: " .. Speed.Value
3108
      end
3109
    end)
3110
  end
3111
  ArtificialHeartbeat.Event:connect(function()
3112
    if Humanoid.Health < 100 and dieanim == false then
3113
      dieanim = true
3114
Chat("Nooooooo!!!!")
3115
3116
      unequipanim()
3117
3118
    end
3119
    if Humanoid.Health > 0 then
3120
      if walkspeeddependsonspeedvalue == true then
3121
        if 0 > Speed.Value or StaggerAnim.Value == true or StunAnim.Value == true or StaggerHitAnim.Value == true then
3122
          Humanoid.WalkSpeed = 0
3123
        else
3124
          Humanoid.WalkSpeed = 16 * Speed.Value
3125
        end
3126
      end
3127
      if StunValue.Value >= maxstun then
3128
        StunValue.Value = 0
3129
        StunAnim.Value = true
3130
      end
3131
      if StaggerAnim.Value == true and staganim == false then
3132
        coroutine.resume(coroutine.create(function()
3133
          staganim = true
3134
          while attack == true do
3135
            ArtificialHeartbeat.Event:wait()
3136
          end
3137
          Stagger()
3138
          StaggerAnim.Value = false
3139
          staganim = false
3140
        end))
3141
      end
3142
      if StaggerHitAnim.Value == true and staghitanim == false then
3143
        coroutine.resume(coroutine.create(function()
3144
          staghitanim = true
3145
          while attack == true do
3146
            ArtificialHeartbeat.Event:wait()
3147
          end
3148
          StaggerHit()
3149
          StaggerHitAnim.Value = false
3150
          staghitanim = false
3151
        end))
3152
      end
3153
      if StunAnim.Value == true and stunanim == false or 100 <= StunValue.Value then
3154
        coroutine.resume(coroutine.create(function()
3155
          StunValue.Value = 0
3156
          stunanim = true
3157
          while attack == true do
3158
            ArtificialHeartbeat.Event:wait()
3159
          end
3160
          Stun()
3161
          StunAnim.Value = false
3162
          stunanim = false
3163
        end))
3164
      end
3165
      sine = sine + change
3166
      someangle = someangle % 100 + change2 / 10
3167
      local torvel = (RootPart.Velocity * vt(1, 0, 1)).magnitude
3168
      local velderp = RootPart.Velocity.y
3169
      local lv = Torso.CFrame:pointToObjectSpace(Torso.Velocity + Torso.Position)
3170
      hitfloor, posfloor = rayCast(RootPart.Position, cf(RootPart.Position, RootPart.Position - vt(0, 1, 0)).lookVector, 4, Character)
3171
      if donum >= 0.5 then
3172
        handidle = true
3173
      elseif donum <= 0 then
3174
        handidle = false
3175
      end
3176
      if handidle == false then
3177
        donum = donum + 0.002
3178
      else
3179
        donum = donum - 0.002
3180
      end
3181
      if equipped == true or equipped == false then
3182
        if attack == false then
3183
          idle = idle + 1
3184
        else
3185
          idle = 0
3186
        end
3187
        if not (idle >= 500) or attack == false then
3188
        end
3189
        if leftarm == true then
3190
          if Anim == "Walk" and equipped == true and attack == false then
3191
            if alternatewalk == false then
3192
              if walkinganim == true then
3193
                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) / 2)
3194
              else
3195
                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) / 2)
3196
              end
3197
            elseif walkinganim == true then
3198
              LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
3199
            else
3200
              LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(-45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
3201
            end
3202
          elseif Anim ~= "Walk" and equipped == true or attack == true then
3203
            LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
3204
          end
3205
        end
3206
        if rightarm == true then
3207
          if Anim == "Walk" and equipped == true and attack == false then
3208
            if alternatewalk == false then
3209
              if walkinganim == true then
3210
                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) / 2)
3211
              else
3212
                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) / 2)
3213
              end
3214
            elseif walkinganim == true then
3215
              RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(-45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
3216
            else
3217
              RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
3218
            end
3219
          elseif Anim ~= "Walk" and equipped == true or attack == true then
3220
            RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
3221
          end
3222
        end
3223
        if allowwalking == true then
3224
          if Anim == "Walk" and equipped == true then
3225
            if alternatewalk == false then
3226
              if walkinganim == true then
3227
                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) / 2)
3228
                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) / 2)
3229
              else
3230
                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) / 2)
3231
                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) / 2)
3232
              end
3233
            elseif walkinganim == true then
3234
              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(45)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
3235
              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(45)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
3236
            else
3237
              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(-45)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
3238
              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(-45)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
3239
            end
3240
          elseif Anim ~= "Walk" and equipped == true then
3241
            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.1)
3242
            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.1)
3243
          end
3244
        end
3245
        if velderp > 1 and hitfloor == nil then
3246
          Anim = "Jump"
3247
          if attack == false and equipped == true then
3248
            RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
3249
            Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.1)
3250
            RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-20), math.rad(0), math.rad(20)) * RWC0, 0.1)
3251
            LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)) * LWC0, 0.1)
3252
            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.1)
3253
            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.1)
3254
            head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.1)
3255
            torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.1)
3256
            rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.1)
3257
            leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.1)
3258
            rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.1)
3259
            leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.1)
3260
          end
3261
        elseif velderp < -1 and hitfloor == nil then
3262
          Anim = "Fall"
3263
          if attack == false and equipped == true then
3264
            RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
3265
            Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.1)
3266
            RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(60)) * RWC0, 0.1)
3267
            LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)) * LWC0, 0.1)
3268
            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.1)
3269
            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.1)
3270
            head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.1)
3271
            torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.1)
3272
            rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.1)
3273
            leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.1)
3274
            rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.1)
3275
            leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.1)
3276
          end
3277
        elseif torvel < 1 and hitfloor ~= nil then
3278
          Anim = "Idle"
3279
          if attack == false and equipped == true then
3280
            RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.075)
3281
            Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.075)
3282
            RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(20)) * RWC0, 0.075)
3283
            LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.075)
3284
            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.075)
3285
            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.075)
3286
            head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.075)
3287
            torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.075)
3288
            rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.075)
3289
            leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.075)
3290
            rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.075)
3291
            leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.075)
3292
          end
3293
        elseif torvel > 1 and hitfloor ~= nil then
3294
          Anim = "Walk"
3295
          walk = walk + 0.5
3296
          if walk >= 20 then
3297
            walk = 0
3298
            if walkinganim == true then
3299
              walkinganim = false
3300
            elseif walkinganim == false then
3301
              walkinganim = true
3302
            end
3303
          end
3304
          if attack == false and equipped == true then
3305
            RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
3306
            Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
3307
            RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(20)) * RWC0, 0.1)
3308
            LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.1)
3309
            if walkinganim == true then
3310
              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(55)), 0.1)
3311
              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(55)), 0.1)
3312
            else
3313
              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(-55)), 0.1)
3314
              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(-55)), 0.1)
3315
            end
3316
            head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.1)
3317
            torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.1)
3318
            rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.1)
3319
            leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.1)
3320
            rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.1)
3321
            leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.1)
3322
          end
3323
        end
3324
      end
3325
    end
3326
  end)