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