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