View difference between Paste ID: C5fvKaxk and V3Ctrdc7
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,game,owner = owner,game
3
local RealPlayer = Player
4
do
5
    print("FE Compatibility code by Mokiros")
6
    local rp = RealPlayer
7
    script.Parent = rp.Character
8
   
9
    --RemoteEvent for communicating
10
    local Event = Instance.new("RemoteEvent")
11
    Event.Name = "UserInput_Event"
12
 
13
    --Fake event to make stuff like Mouse.KeyDown work
14
    local function fakeEvent()
15
        local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
16
        t.connect = t.Connect
17
        return t
18
    end
19
 
20
    --Creating fake input objects with fake variables
21
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
22
    local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
23
    local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
24
        CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
25
    end}
26
    --Merged 2 functions into one by checking amount of arguments
27
    CAS.UnbindAction = CAS.BindAction
28
 
29
    --This function will trigger the events that have been :Connect()'ed
30
    local function te(self,ev,...)
31
        local t = m[ev]
32
        if t and t._fakeEvent then
33
            for _,f in pairs(t.Functions) do
34
                f(...)
35
            end
36
        end
37
    end
38
    m.TrigEvent = te
39
    UIS.TrigEvent = te
40
 
41
    Event.OnServerEvent:Connect(function(plr,io)
42
        if plr~=rp then return end
43
        m.Target = io.Target
44
        m.Hit = io.Hit
45
        if not io.isMouse then
46
            local b = io.UserInputState == Enum.UserInputState.Begin
47
            if io.UserInputType == Enum.UserInputType.MouseButton1 then
48
                return m:TrigEvent(b and "Button1Down" or "Button1Up")
49
            end
50
            for _,t in pairs(CAS.Actions) do
51
                for _,k in pairs(t.Keys) do
52
                    if k==io.KeyCode then
53
                        t.Function(t.Name,io.UserInputState,io)
54
                    end
55
                end
56
            end
57
            m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
58
            UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
59
        end
60
    end)
61
    Event.Parent = NLS([==[
62
    local Player = game:GetService("Players").LocalPlayer
63
    local Event = script:WaitForChild("UserInput_Event")
64
 
65
    local Mouse = Player:GetMouse()
66
    local UIS = game:GetService("UserInputService")
67
    local input = function(io,a)
68
        if a then return end
69
        --Since InputObject is a client-side instance, we create and pass table instead
70
        Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
71
    end
72
    UIS.InputBegan:Connect(input)
73
    UIS.InputEnded:Connect(input)
74
 
75
    local h,t
76
    --Give the server mouse data 30 times every second, but only if the values changed
77
    --If player is not moving their mouse, client won't fire events
78
    while wait(1/30) do
79
        if h~=Mouse.Hit or t~=Mouse.Target then
80
            h,t=Mouse.Hit,Mouse.Target
81
            Event:FireServer({isMouse=true,Target=t,Hit=h})
82
        end
83
    end]==],Player.Character)
84
 
85
    ----Sandboxed game object that allows the usage of client-side methods and services
86
    --Real game object
87
    local _rg = game
88
 
89
    --Metatable for fake service
90
    local fsmt = {
91
        __index = function(self,k)
92
            local s = rawget(self,"_RealService")
93
            if s then return s[k] end
94
        end,
95
        __newindex = function(self,k,v)
96
            local s = rawget(self,"_RealService")
97
            if s then s[k]=v end
98
        end,
99
        __call = function(self,...)
100
            local s = rawget(self,"_RealService")
101
            if s then return s(...) end
102
        end
103
    }
104
    local function FakeService(t,RealService)
105
        t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
106
        return setmetatable(t,fsmt)
107
    end
108
 
109
    --Fake game object
110
    local g = {
111
        GetService = function(self,s)
112
            return self[s]
113
        end,
114
        Players = FakeService({
115
            LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
116
        },"Players"),
117
        UserInputService = FakeService(UIS,"UserInputService"),
118
        ContextActionService = FakeService(CAS,"ContextActionService"),
119
    }
120
    rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
121
    g.service = g.GetService
122
   
123
    g.RunService = FakeService({
124
        RenderStepped = _rg:GetService("RunService").Heartbeat,
125
        BindToRenderStep = function(self,name,_,fun)
126
 
127
        end,
128
        UnbindFromRenderStep = function(self,name)
129
            self._btrs[name]:Disconnect()
130
        end,
131
    },"RunService")
132
 
133
    setmetatable(g,{
134
        __index=function(self,s)
135
            return _rg:GetService(s) or typeof(_rg[s])=="function"
136
            and function(_,...)return _rg[s](_rg,...)end or _rg[s]
137
        end,
138
        __newindex = fsmt.__newindex,
139
        __call = fsmt.__call
140
    })
141
    --Changing owner to fake player object to support owner:GetMouse()
142
    game,owner = g,g.Players.LocalPlayer
143
end
144
145
Player = game:GetService("Players").LocalPlayer
146
PlayerGui = Player.PlayerGui
147
Cam = workspace.CurrentCamera
148
Backpack = Player.Backpack
149
Character = Player.Character
150
Humanoid = Character.Humanoid
151
Mouse = Player:GetMouse()
152
RootPart = Character["HumanoidRootPart"]
153
Torso = Character["Torso"]
154
Head = Character["Head"]
155
RightArm = Character["Right Arm"]
156
LeftArm = Character["Left Arm"]
157
RightLeg = Character["Right Leg"]
158
LeftLeg = Character["Left Leg"]
159
RootJoint = RootPart["RootJoint"]
160
Neck = Torso["Neck"]
161
RightShoulder = Torso["Right Shoulder"]
162
LeftShoulder = Torso["Left Shoulder"]
163
RightHip = Torso["Right Hip"]
164
LeftHip = Torso["Left Hip"]
165
local TIME = 0
166
local sick = Instance.new("Sound",Torso)
167
168
IT = Instance.new
169
CF = CFrame.new
170
VT = Vector3.new
171
RAD = math.rad
172
C3 = Color3.new
173
UD2 = UDim2.new
174
BRICKC = BrickColor.new
175
ANGLES = CFrame.Angles
176
EULER = CFrame.fromEulerAnglesXYZ
177
COS = math.cos
178
ACOS = math.acos
179
SIN = math.sin
180
ASIN = math.asin
181
ABS = math.abs
182
MRANDOM = math.random
183
FLOOR = math.floor
184
185
--//=================================\\
186
--|| 	      USEFUL VALUES
187
--\\=================================//
188
189
Animation_Speed = 3
190
local FORCERESET = false
191
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
192
local Speed = 16
193
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
194
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
195
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
196
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
197
local DAMAGEMULTIPLIER = 1
198
local ANIM = "Idle"
199
local ATTACK = false
200
local EQUIPPED = false
201
local HOLD = false
202
local COMBO = 1
203
local Rooted = false
204
local SINE = 0
205
local KEYHOLD = false
206
local CHANGE = 2 / Animation_Speed
207
local WALKINGANIM = false
208
local VALUE1 = false
209
local VALUE2 = false
210
local ROBLOXIDLEANIMATION = IT("Animation")
211
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
212
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
213
--ROBLOXIDLEANIMATION.Parent = Humanoid
214
local WEAPONGUI = IT("ScreenGui", PlayerGui)
215
WEAPONGUI.Name = "BanishV3Gui"
216
local Weapon = IT("Model")
217
Weapon.Name = "Adds"
218
local Effects = IT("Folder", Weapon)
219
Effects.Name = "Effects"
220
local ANIMATOR = Humanoid.Animator
221
local ANIMATE = Character:FindFirstChild("Animate")
222
local UNANCHOR = true
223
local TOBANISH = {}
224
script.Parent = PlayerGui
225
226
--//=================================\\
227
--\\=================================//
228
229
230
--//=================================\\
231
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
232
--\\=================================//
233
234
ArtificialHB = Instance.new("BindableEvent", script)
235
ArtificialHB.Name = "ArtificialHB"
236
237
script:WaitForChild("ArtificialHB")
238
239
frame = Frame_Speed
240
tf = 0
241
allowframeloss = false
242
tossremainder = false
243
lastframe = tick()
244
script.ArtificialHB:Fire()
245
246
game:GetService("RunService").Heartbeat:connect(function(s, p)
247
	tf = tf + s
248
	if tf >= frame then
249
		if allowframeloss then
250
			script.ArtificialHB:Fire()
251
			lastframe = tick()
252
		else
253
			for i = 1, math.floor(tf / frame) do
254
				script.ArtificialHB:Fire()
255
			end
256
		lastframe = tick()
257
		end
258
		if tossremainder then
259
			tf = 0
260
		else
261
			tf = tf - frame * math.floor(tf / frame)
262
		end
263
	end
264
end)
265
266
--//=================================\\
267
--\\=================================//
268
269
local plr = game:service'Players'.LocalPlayer
270
print('Local User is '..plr.Name)
271
print('The Killer Dragon Loaded')
272
print('AomFetty')
273
local char = plr.Character
274
local hum = char.Humanoid
275
local hed = char.Head
276
local root = char.HumanoidRootPart
277
local rootj = root.RootJoint
278
local tors = char.Torso
279
local ra = char["Right Arm"]
280
local la = char["Left Arm"]
281
local rl = char["Right Leg"]
282
local ll = char["Left Leg"]
283
local neck = tors["Neck"]
284
local mouse = plr:GetMouse()
285
local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
286
local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
287
local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
288
local maincolor = BrickColor.new("Institutional white")
289
290
291
-------------------------------------------------------
292
--Start Good Stuff--
293
-------------------------------------------------------
294
cam = game.Workspace.CurrentCamera
295
CF = CFrame.new
296
angles = CFrame.Angles
297
attack = false
298
Euler = CFrame.fromEulerAnglesXYZ
299
Rad = math.rad
300
IT = Instance.new
301
BrickC = BrickColor.new
302
Cos = math.cos
303
Acos = math.acos
304
Sin = math.sin
305
Asin = math.asin
306
Abs = math.abs
307
Mrandom = math.random
308
Floor = math.floor
309
-------------------------------------------------------
310
--End Good Stuff--
311
-------------------------------------------------------
312
necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
313
RSH, LSH = nil, nil 
314
RW = Instance.new("Weld") 
315
LW = Instance.new("Weld")
316
RH = tors["Right Hip"]
317
LH = tors["Left Hip"]
318
RSH = tors["Right Shoulder"] 
319
LSH = tors["Left Shoulder"] 
320
RSH.Parent = nil 
321
LSH.Parent = nil 
322
RW.Name = "RW"
323
RW.Part0 = tors 
324
RW.C0 = CF(1.5, 0.5, 0)
325
RW.C1 = CF(0, 0.5, 0) 
326
RW.Part1 = ra
327
RW.Parent = tors 
328
LW.Name = "LW"
329
LW.Part0 = tors 
330
LW.C0 = CF(-1.5, 0.5, 0)
331
LW.C1 = CF(0, 0.5, 0) 
332
LW.Part1 = la
333
LW.Parent = tors
334
Effects = {}
335
-------------------------------------------------------
336
--Start HeartBeat--
337
-------------------------------------------------------
338
ArtificialHB = Instance.new("BindableEvent", script)
339
ArtificialHB.Name = "Heartbeat"
340
script:WaitForChild("Heartbeat")
341
342
frame = 1 / 60
343
tf = 0
344
allowframeloss = false
345
tossremainder = false
346
347
348
lastframe = tick()
349
script.Heartbeat:Fire()
350
351
352
game:GetService("RunService").Heartbeat:connect(function(s, p)
353
	tf = tf + s
354
	if tf >= frame then
355
		if allowframeloss then
356
			script.Heartbeat:Fire()
357
			lastframe = tick()
358
		else
359
			for i = 1, math.floor(tf / frame) do
360
				script.Heartbeat:Fire()
361
			end
362
			lastframe = tick()
363
		end
364
		if tossremainder then
365
			tf = 0
366
		else
367
			tf = tf - frame * math.floor(tf / frame)
368
		end
369
	end
370
end)
371
-------------------------------------------------------
372
--End HeartBeat--
373
-------------------------------------------------------
374
375
-------------------------------------------------------
376
--Start Important Functions--
377
-------------------------------------------------------
378
function swait(num)
379
	if num == 0 or num == nil then
380
		game:service("RunService").Stepped:wait(0)
381
	else
382
		for i = 0, num do
383
			game:service("RunService").Stepped:wait(0)
384
		end
385
	end
386
end
387
function thread(f)
388
	coroutine.resume(coroutine.create(f))
389
end
390
function clerp(a, b, t)
391
	local qa = {
392
		QuaternionFromCFrame(a)
393
	}
394
	local qb = {
395
		QuaternionFromCFrame(b)
396
	}
397
	local ax, ay, az = a.x, a.y, a.z
398
	local bx, by, bz = b.x, b.y, b.z
399
	local _t = 1 - t
400
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
401
end
402
function QuaternionFromCFrame(cf)
403
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
404
	local trace = m00 + m11 + m22
405
	if trace > 0 then
406
		local s = math.sqrt(1 + trace)
407
		local recip = 0.5 / s
408
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
409
	else
410
		local i = 0
411
		if m00 < m11 then
412
			i = 1
413
		end
414
		if m22 > (i == 0 and m00 or m11) then
415
			i = 2
416
		end
417
		if i == 0 then
418
			local s = math.sqrt(m00 - m11 - m22 + 1)
419
			local recip = 0.5 / s
420
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
421
		elseif i == 1 then
422
			local s = math.sqrt(m11 - m22 - m00 + 1)
423
			local recip = 0.5 / s
424
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
425
		elseif i == 2 then
426
			local s = math.sqrt(m22 - m00 - m11 + 1)
427
			local recip = 0.5 / s
428
			return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
429
		end
430
	end
431
end
432
function QuaternionToCFrame(px, py, pz, x, y, z, w)
433
	local xs, ys, zs = x + x, y + y, z + z
434
	local wx, wy, wz = w * xs, w * ys, w * zs
435
	local xx = x * xs
436
	local xy = x * ys
437
	local xz = x * zs
438
	local yy = y * ys
439
	local yz = y * zs
440
	local zz = z * zs
441
	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))
442
end
443
function QuaternionSlerp(a, b, t)
444
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
445
	local startInterp, finishInterp
446
	if cosTheta >= 1.0E-4 then
447
		if 1 - cosTheta > 1.0E-4 then
448
			local theta = math.acos(cosTheta)
449
			local invSinTheta = 1 / Sin(theta)
450
			startInterp = Sin((1 - t) * theta) * invSinTheta
451
			finishInterp = Sin(t * theta) * invSinTheta
452
		else
453
			startInterp = 1 - t
454
			finishInterp = t
455
		end
456
	elseif 1 + cosTheta > 1.0E-4 then
457
		local theta = math.acos(-cosTheta)
458
		local invSinTheta = 1 / Sin(theta)
459
		startInterp = Sin((t - 1) * theta) * invSinTheta
460
		finishInterp = Sin(t * theta) * invSinTheta
461
	else
462
		startInterp = t - 1
463
		finishInterp = t
464
	end
465
	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
466
end
467
function rayCast(Position, Direction, Range, Ignore)
468
	return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
469
end
470
local RbxUtility = LoadLibrary("RbxUtility")
471
local Create = RbxUtility.Create
472
473
-------------------------------------------------------
474
--Start Damage Function--
475
-------------------------------------------------------
476
function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
477
	if hit.Parent == nil then
478
		return
479
	end
480
	local h = hit.Parent:FindFirstChildOfClass("Humanoid")
481
	for _, v in pairs(hit.Parent:children()) do
482
		if v:IsA("Humanoid") then
483
			h = v
484
		end
485
	end
486
         if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
487
	
488
         hit.Parent:FindFirstChild("Head"):BreakJoints()
489
         end
490
491
	if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
492
		if hit.Parent:findFirstChild("DebounceHit") ~= nil then
493
			if hit.Parent.DebounceHit.Value == true then
494
				return
495
			end
496
		end
497
         if insta == true then
498
         hit.Parent:FindFirstChild("Head"):BreakJoints()
499
         end
500
		local c = Create("ObjectValue"){
501
			Name = "creator",
502
			Value = game:service("Players").LocalPlayer,
503
			Parent = h,
504
		}
505
		game:GetService("Debris"):AddItem(c, .5)
506
		if HitSound ~= nil and HitPitch ~= nil then
507
			CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) 
508
		end
509
		local Damage = math.random(minim, maxim)
510
		local blocked = false
511
		local block = hit.Parent:findFirstChild("Block")
512
		if block ~= nil then
513
			if block.className == "IntValue" then
514
				if block.Value > 0 then
515
					blocked = true
516
					block.Value = block.Value - 1
517
					print(block.Value)
518
				end
519
			end
520
		end
521
		if blocked == false then
522
			h.Health = h.Health - Damage
523
			ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
524
		else
525
			h.Health = h.Health - (Damage / 2)
526
			ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
527
		end
528
		if Type == "Knockdown" then
529
			local hum = hit.Parent.Humanoid
530
			hum.PlatformStand = true
531
			coroutine.resume(coroutine.create(function(HHumanoid)
532
				swait(1)
533
				HHumanoid.PlatformStand = false
534
			end), hum)
535
			local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
536
			local bodvol = Create("BodyVelocity"){
537
				velocity = angle * knockback,
538
				P = 5000,
539
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
540
				Parent = hit,
541
			}
542
			local rl = Create("BodyAngularVelocity"){
543
				P = 3000,
544
				maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
545
				angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
546
				Parent = hit,
547
			}
548
			game:GetService("Debris"):AddItem(bodvol, .5)
549
			game:GetService("Debris"):AddItem(rl, .5)
550
		elseif Type == "Normal" then
551
			local vp = Create("BodyVelocity"){
552
				P = 500,
553
				maxForce = Vector3.new(math.huge, 0, math.huge),
554
				velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
555
			}
556
			if knockback > 0 then
557
				vp.Parent = hit.Parent.Torso
558
			end
559
			game:GetService("Debris"):AddItem(vp, .5)
560
		elseif Type == "Up" then
561
			local bodyVelocity = Create("BodyVelocity"){
562
				velocity = Vector3.new(0, 20, 0),
563
				P = 5000,
564
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
565
				Parent = hit,
566
			}
567
			game:GetService("Debris"):AddItem(bodyVelocity, .5)
568
		elseif Type == "DarkUp" then
569
			coroutine.resume(coroutine.create(function()
570
				for i = 0, 1, 0.1 do
571
					swait()
572
					Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
573
				end
574
			end))
575
			local bodyVelocity = Create("BodyVelocity"){
576
				velocity = Vector3.new(0, 20, 0),
577
				P = 5000,
578
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
579
				Parent = hit,
580
			}
581
			game:GetService("Debris"):AddItem(bodyVelocity, 1)
582
		elseif Type == "Snare" then
583
			local bp = Create("BodyPosition"){
584
				P = 2000,
585
				D = 100,
586
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
587
				position = hit.Parent.Torso.Position,
588
				Parent = hit.Parent.Torso,
589
			}
590
			game:GetService("Debris"):AddItem(bp, 1)
591
		elseif Type == "Freeze" then
592
			local BodPos = Create("BodyPosition"){
593
				P = 50000,
594
				D = 1000,
595
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
596
				position = hit.Parent.Torso.Position,
597
				Parent = hit.Parent.Torso,
598
			}
599
			local BodGy = Create("BodyGyro") {
600
				maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
601
				P = 20e+003,
602
				Parent = hit.Parent.Torso,
603
				cframe = hit.Parent.Torso.CFrame,
604
			}
605
			hit.Parent.Torso.Anchored = true
606
			coroutine.resume(coroutine.create(function(Part) 
607
				swait(1.5)
608
				Part.Anchored = false
609
			end), hit.Parent.Torso)
610
			game:GetService("Debris"):AddItem(BodPos, 3)
611
			game:GetService("Debris"):AddItem(BodGy, 3)
612
		end
613
		local debounce = Create("BoolValue"){
614
			Name = "DebounceHit",
615
			Parent = hit.Parent,
616
			Value = true,
617
		}
618
		game:GetService("Debris"):AddItem(debounce, Delay)
619
		c = Create("ObjectValue"){
620
			Name = "creator",
621
			Value = Player,
622
			Parent = h,
623
		}
624
		game:GetService("Debris"):AddItem(c, .5)
625
	end
626
end
627
-------------------------------------------------------
628
--End Damage Function--
629
-------------------------------------------------------
630
631
-------------------------------------------------------
632
--Start Damage Function Customization--
633
-------------------------------------------------------
634
function ShowDamage(Pos, Text, Time, Color)
635
	local Rate = (1 / 30)
636
	local Pos = (Pos or Vector3.new(0, 0, 0))
637
	local Text = (Text or "")
638
	local Time = (Time or 2)
639
	local Color = (Color or Color3.new(1, 0, 1))
640
	local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
641
	EffectPart.Anchored = true
642
	local BillboardGui = Create("BillboardGui"){
643
		Size = UDim2.new(3, 0, 3, 0),
644
		Adornee = EffectPart,
645
		Parent = EffectPart,
646
	}
647
	local TextLabel = Create("TextLabel"){
648
		BackgroundTransparency = 1,
649
		Size = UDim2.new(1, 0, 1, 0),
650
		Text = Text,
651
		Font = "Bodoni",
652
		TextColor3 = Color,
653
		TextScaled = true,
654
		TextStrokeColor3 = Color3.fromRGB(0,0,0),
655
		Parent = BillboardGui,
656
	}
657
	game.Debris:AddItem(EffectPart, (Time))
658
	EffectPart.Parent = game:GetService("Workspace")
659
	delay(0, function()
660
		local Frames = (Time / Rate)
661
		for Frame = 1, Frames do
662
			wait(Rate)
663
			local Percent = (Frame / Frames)
664
			EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
665
			TextLabel.TextTransparency = Percent
666
		end
667
		if EffectPart and EffectPart.Parent then
668
			EffectPart:Destroy()
669
		end
670
	end)
671
end
672
-------------------------------------------------------
673
--End Damage Function Customization--
674
-------------------------------------------------------
675
676
function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
677
  for _, c in pairs(workspace:children()) do
678
    local hum = c:findFirstChild("Humanoid")
679
    if hum ~= nil then
680
      local head = c:findFirstChild("Head")
681
      if head ~= nil then
682
        local targ = head.Position - Part.Position
683
        local mag = targ.magnitude
684
        if magni >= mag and c.Name ~= plr.Name then
685
          Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
686
        end
687
      end
688
    end
689
  end
690
end
691
692
693
CFuncs = {
694
	Part = {
695
		Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
696
			local Part = Create("Part")({
697
				Parent = Parent,
698
				Reflectance = Reflectance,
699
				Transparency = Transparency,
700
				CanCollide = false,
701
				Locked = true,
702
				BrickColor = BrickColor.new(tostring(BColor)),
703
				Name = Name,
704
				Size = Size,
705
				Material = Material
706
			})
707
			RemoveOutlines(Part)
708
			return Part
709
		end
710
	},
711
	Mesh = {
712
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
713
			local Msh = Create(Mesh)({
714
				Parent = Part,
715
				Offset = OffSet,
716
				Scale = Scale
717
			})
718
			if Mesh == "SpecialMesh" then
719
				Msh.MeshType = MeshType
720
				Msh.MeshId = MeshId
721
			end
722
			return Msh
723
		end
724
	},
725
	Mesh = {
726
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
727
			local Msh = Create(Mesh)({
728
				Parent = Part,
729
				Offset = OffSet,
730
				Scale = Scale
731
			})
732
			if Mesh == "SpecialMesh" then
733
				Msh.MeshType = MeshType
734
				Msh.MeshId = MeshId
735
			end
736
			return Msh
737
		end
738
	},
739
	Weld = {
740
		Create = function(Parent, Part0, Part1, C0, C1)
741
			local Weld = Create("Weld")({
742
				Parent = Parent,
743
				Part0 = Part0,
744
				Part1 = Part1,
745
				C0 = C0,
746
				C1 = C1
747
			})
748
			return Weld
749
		end
750
	},
751
	Sound = {
752
		Create = function(id, par, vol, pit)
753
			coroutine.resume(coroutine.create(function()
754
				local S = Create("Sound")({
755
					Volume = vol,
756
					Pitch = pit or 1,
757
					SoundId = id,
758
					Parent = par or workspace
759
				})
760
				wait()
761
				S:play()
762
				game:GetService("Debris"):AddItem(S, 6)
763
			end))
764
		end
765
	},
766
	ParticleEmitter = {
767
		Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
768
			local fp = Create("ParticleEmitter")({
769
				Parent = Parent,
770
				Color = ColorSequence.new(Color1, Color2),
771
				LightEmission = LightEmission,
772
				Size = Size,
773
				Texture = Texture,
774
				Transparency = Transparency,
775
				ZOffset = ZOffset,
776
				Acceleration = Accel,
777
				Drag = Drag,
778
				LockedToPart = LockedToPart,
779
				VelocityInheritance = VelocityInheritance,
780
				EmissionDirection = EmissionDirection,
781
				Enabled = Enabled,
782
				Lifetime = LifeTime,
783
				Rate = Rate,
784
				Rotation = Rotation,
785
				RotSpeed = RotSpeed,
786
				Speed = Speed,
787
				VelocitySpread = VelocitySpread
788
			})
789
			return fp
790
		end
791
	}
792
}
793
function RemoveOutlines(part)
794
	part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
795
end
796
function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
797
	local Part = Create("Part")({
798
		formFactor = FormFactor,
799
		Parent = Parent,
800
		Reflectance = Reflectance,
801
		Transparency = Transparency,
802
		CanCollide = false,
803
		Locked = true,
804
		BrickColor = BrickColor.new(tostring(BColor)),
805
		Name = Name,
806
		Size = Size,
807
		Material = Material
808
	})
809
	RemoveOutlines(Part)
810
	return Part
811
end
812
function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
813
	local Msh = Create(Mesh)({
814
		Parent = Part,
815
		Offset = OffSet,
816
		Scale = Scale
817
	})
818
	if Mesh == "SpecialMesh" then
819
		Msh.MeshType = MeshType
820
		Msh.MeshId = MeshId
821
	end
822
	return Msh
823
end
824
function CreateWeld(Parent, Part0, Part1, C0, C1)
825
	local Weld = Create("Weld")({
826
		Parent = Parent,
827
		Part0 = Part0,
828
		Part1 = Part1,
829
		C0 = C0,
830
		C1 = C1
831
	})
832
	return Weld
833
end
834
835
836
-------------------------------------------------------
837
--Start Effect Function--
838
-------------------------------------------------------
839
EffectModel = Instance.new("Model", char)
840
Effects = {
841
  Block = {
842
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
843
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
844
      prt.Anchored = true
845
      prt.CFrame = cframe
846
      local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
847
      game:GetService("Debris"):AddItem(prt, 10)
848
      if Type == 1 or Type == nil then
849
        table.insert(Effects, {
850
          prt,
851
          "Block1",
852
          delay,
853
          x3,
854
          y3,
855
          z3,
856
          msh
857
        })
858
      elseif Type == 2 then
859
        table.insert(Effects, {
860
          prt,
861
          "Block2",
862
          delay,
863
          x3,
864
          y3,
865
          z3,
866
          msh
867
        })
868
      else
869
        table.insert(Effects, {
870
          prt,
871
          "Block3",
872
          delay,
873
          x3,
874
          y3,
875
          z3,
876
          msh
877
        })
878
      end
879
    end
880
  },
881
  Sphere = {
882
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
883
      local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
884
      prt.Anchored = true
885
      prt.CFrame = cframe
886
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
887
      game:GetService("Debris"):AddItem(prt, 10)
888
      table.insert(Effects, {
889
        prt,
890
        "Cylinder",
891
        delay,
892
        x3,
893
        y3,
894
        z3,
895
        msh
896
      })
897
    end
898
  },
899
  Cylinder = {
900
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
901
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
902
      prt.Anchored = true
903
      prt.CFrame = cframe
904
      local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
905
      game:GetService("Debris"):AddItem(prt, 10)
906
      table.insert(Effects, {
907
        prt,
908
        "Cylinder",
909
        delay,
910
        x3,
911
        y3,
912
        z3,
913
        msh
914
      })
915
    end
916
  },
917
  Wave = {
918
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
919
      local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
920
      prt.Anchored = true
921
      prt.CFrame = cframe
922
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
923
      game:GetService("Debris"):AddItem(prt, 10)
924
      table.insert(Effects, {
925
        prt,
926
        "Cylinder",
927
        delay,
928
        x3 / 60,
929
        y3 / 60,
930
        z3 / 60,
931
        msh
932
      })
933
    end
934
  },
935
  Ring = {
936
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
937
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
938
      prt.Anchored = true
939
      prt.CFrame = cframe
940
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
941
      game:GetService("Debris"):AddItem(prt, 10)
942
      table.insert(Effects, {
943
        prt,
944
        "Cylinder",
945
        delay,
946
        x3,
947
        y3,
948
        z3,
949
        msh
950
      })
951
    end
952
  },
953
  Break = {
954
    Create = function(brickcolor, cframe, x1, y1, z1)
955
      local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
956
      prt.Anchored = true
957
      prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
958
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
959
      local num = math.random(10, 50) / 1000
960
      game:GetService("Debris"):AddItem(prt, 10)
961
      table.insert(Effects, {
962
        prt,
963
        "Shatter",
964
        num,
965
        prt.CFrame,
966
        math.random() - math.random(),
967
        0,
968
        math.random(50, 100) / 100
969
      })
970
    end
971
  },
972
Spiral = {
973
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
974
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
975
      prt.Anchored = true
976
      prt.CFrame = cframe
977
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
978
      game:GetService("Debris"):AddItem(prt, 10)
979
      table.insert(Effects, {
980
        prt,
981
        "Cylinder",
982
        delay,
983
        x3,
984
        y3,
985
        z3,
986
        msh
987
      })
988
    end
989
  },
990
Push = {
991
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
992
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
993
      prt.Anchored = true
994
      prt.CFrame = cframe
995
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
996
      game:GetService("Debris"):AddItem(prt, 10)
997
      table.insert(Effects, {
998
        prt,
999
        "Cylinder",
1000
        delay,
1001
        x3,
1002
        y3,
1003
        z3,
1004
        msh
1005
      })
1006
    end
1007
  }
1008
}
1009
function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
1010
	local fp = IT("Part")
1011
	fp.formFactor = formfactor 
1012
	fp.Parent = parent
1013
	fp.Reflectance = reflectance
1014
	fp.Transparency = transparency
1015
	fp.CanCollide = false 
1016
	fp.Locked = true
1017
	fp.BrickColor = brickcolor
1018
	fp.Name = name
1019
	fp.Size = size
1020
	fp.Position = tors.Position 
1021
	RemoveOutlines(fp)
1022
	fp.Material = "SmoothPlastic"
1023
	fp:BreakJoints()
1024
	return fp 
1025
end 
1026
 
1027
function mesh(Mesh,part,meshtype,meshid,offset,scale)
1028
	local mesh = IT(Mesh) 
1029
	mesh.Parent = part
1030
	if Mesh == "SpecialMesh" then
1031
		mesh.MeshType = meshtype
1032
	if meshid ~= "nil" then
1033
		mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
1034
		end
1035
	end
1036
	mesh.Offset = offset
1037
	mesh.Scale = scale
1038
	return mesh
1039
end
1040
1041
function Magic(bonuspeed, type, pos, scale, value, color, MType)
1042
	local type = type
1043
	local rng = Instance.new("Part", char)
1044
	rng.Anchored = true
1045
	rng.BrickColor = color
1046
	rng.CanCollide = false
1047
	rng.FormFactor = 3
1048
	rng.Name = "Ring"
1049
	rng.Material = "Neon"
1050
	rng.Size = Vector3.new(1, 1, 1)
1051
	rng.Transparency = 0
1052
	rng.TopSurface = 0
1053
	rng.BottomSurface = 0
1054
	rng.CFrame = pos
1055
	local rngm = Instance.new("SpecialMesh", rng)
1056
	rngm.MeshType = MType
1057
	rngm.Scale = scale
1058
	local scaler2 = 1
1059
	if type == "Add" then
1060
		scaler2 = 1 * value
1061
	elseif type == "Divide" then
1062
		scaler2 = 1 / value
1063
	end
1064
	coroutine.resume(coroutine.create(function()
1065
		for i = 0, 10 / bonuspeed, 0.1 do
1066
			swait()
1067
			if type == "Add" then
1068
				scaler2 = scaler2 - 0.01 * value / bonuspeed
1069
			elseif type == "Divide" then
1070
				scaler2 = scaler2 - 0.01 / value * bonuspeed
1071
			end
1072
			rng.Transparency = rng.Transparency + 0.01 * bonuspeed
1073
			rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
1074
		end
1075
		rng:Destroy()
1076
	end))
1077
end
1078
1079
function Eviscerate(dude)
1080
	if dude.Name ~= char then
1081
		local bgf = IT("BodyGyro", dude.Head)
1082
		bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
1083
		local val = IT("BoolValue", dude)
1084
		val.Name = "IsHit"
1085
		local ds = coroutine.wrap(function()
1086
			dude:WaitForChild("Head"):BreakJoints()
1087
			wait(0.5)
1088
			target = nil
1089
			coroutine.resume(coroutine.create(function()
1090-
				for i, v in pairs(dude:GetChildren()) do
1090+
1091-
					if v:IsA("Accessory") then
1091+
1092-
						v:Destroy()
1092+
1093
							v.CanCollide = false
1094-
					if v:IsA("Humanoid") then
1094+
1095-
						v:Destroy()
1095+
1096
							PartEmmit1.Texture = "rbxassetid://284205403"
1097-
					if v:IsA("CharacterMesh") then
1097+
1098-
						v:Destroy()
1098+
1099
							PartEmmit1.Lifetime = NumberRange.new(1)
1100-
					if v:IsA("Model") then
1100+
1101-
						v:Destroy()
1101+
1102
								NumberSequenceKeypoint.new(1, 0, 0)
1103-
					if v:IsA("Part") or v:IsA("MeshPart") then
1103+
1104-
						for x, o in pairs(v:GetChildren()) do
1104+
1105-
							if o:IsA("Decal") then
1105+
1106-
								o:Destroy()
1106+
1107-
							end
1107+
1108
							PartEmmit1.Speed = NumberRange.new(0, 0)
1109
							PartEmmit1.VelocitySpread = 30000
1110
							PartEmmit1.Rotation = NumberRange.new(-500, 500)
1111
							PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
1112
							local BodPoss = IT("BodyPosition", v)
1113
							BodPoss.P = 3000
1114
							BodPoss.D = 1000
1115
							BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
1116
							BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
1117
							v.Color = maincolor.Color
1118
							coroutine.resume(coroutine.create(function()
1119
								for i = 0, 49 do
1120
									swait(1)
1121
									v.Transparency = v.Transparency + 0.08
1122
								end
1123
								wait(0.5)
1124
								PartEmmit1.Enabled = false
1125
								wait(3)
1126
								v:Destroy()
1127
								dude:Destroy()
1128
							end))
1129
						end))
1130
					end
1131
				end
1132
			end))
1133
		end)
1134
		ds()
1135
	end
1136
end
1137
1138
function FindNearestHead(Position, Distance, SinglePlayer)
1139
	if SinglePlayer then
1140
		return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
1141
	end
1142
	local List = {}
1143
	for i, v in pairs(workspace:GetChildren()) do
1144
		if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
1145
			table.insert(List, v)
1146
		end
1147
	end
1148
	return List
1149
end
1150
1151
function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
1152
	local type = type
1153
	local rng = Instance.new("Part", char)
1154
	rng.Anchored = true
1155
	rng.BrickColor = color
1156
	rng.CanCollide = false
1157
	rng.FormFactor = 3
1158
	rng.Name = "Ring"
1159
	rng.Material = "Neon"
1160
	rng.Size = Vector3.new(1, 1, 1)
1161
	rng.Transparency = 0
1162
	rng.TopSurface = 0
1163
	rng.BottomSurface = 0
1164
	rng.CFrame = pos
1165
	rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
1166
	local rngm = Instance.new("SpecialMesh", rng)
1167
	rngm.MeshType = MType
1168
	rngm.Scale = Vector3.new(x1, y1, z1)
1169
	local scaler2 = 1
1170
	local speeder = FastSpeed
1171
	if type == "Add" then
1172
		scaler2 = 1 * value
1173
	elseif type == "Divide" then
1174
		scaler2 = 1 / value
1175
	end
1176
	coroutine.resume(coroutine.create(function()
1177
		for i = 0, 10 / bonuspeed, 0.1 do
1178
			swait()
1179
			if type == "Add" then
1180
				scaler2 = scaler2 - 0.01 * value / bonuspeed
1181
			elseif type == "Divide" then
1182
				scaler2 = scaler2 - 0.01 / value * bonuspeed
1183
			end
1184
			speeder = speeder - 0.01 * FastSpeed * bonuspeed
1185
			rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
1186
			rng.Transparency = rng.Transparency + 0.01 * bonuspeed
1187
			rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
1188
		end
1189
		rng:Destroy()
1190
	end))
1191
end
1192
1193
function SoulSteal(dude)
1194
if dude.Name ~= char then
1195
local bgf = IT("BodyGyro", dude.Head)
1196
bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
1197
local val = IT("BoolValue", dude)
1198
val.Name = "IsHit"
1199
local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
1200
local soulst = coroutine.wrap(function()
1201
local soul = Instance.new("Part",dude)
1202
soul.Size = Vector3.new(1,1,1)
1203
soul.CanCollide = false
1204
soul.Anchored = false
1205
soul.Position = torso.Position
1206
soul.Transparency = 1
1207
local PartEmmit1 = IT("ParticleEmitter", soul)
1208
PartEmmit1.LightEmission = 1
1209
PartEmmit1.Texture = "rbxassetid://569507414"
1210
PartEmmit1.Color = ColorSequence.new(maincolor.Color)
1211
PartEmmit1.Rate = 250
1212
PartEmmit1.Lifetime = NumberRange.new(1.6)
1213
PartEmmit1.Size = NumberSequence.new({
1214
	NumberSequenceKeypoint.new(0, 1, 0),
1215
	NumberSequenceKeypoint.new(1, 0, 0)
1216
})
1217
PartEmmit1.Transparency = NumberSequence.new({
1218
	NumberSequenceKeypoint.new(0, 0, 0),
1219
	NumberSequenceKeypoint.new(1, 1, 0)
1220
})
1221
PartEmmit1.Speed = NumberRange.new(0, 0)
1222
PartEmmit1.VelocitySpread = 30000
1223
PartEmmit1.Rotation = NumberRange.new(-360, 360)
1224
PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
1225
local BodPoss = IT("BodyPosition", soul)
1226
BodPoss.P = 3000
1227
BodPoss.D = 1000
1228
BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
1229
BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
1230
wait(1.6)
1231
soul.Touched:connect(function(hit)
1232
	if hit.Parent == char then
1233
	soul:Destroy()
1234
	end
1235
end)
1236
wait(1.2)
1237
while soul do
1238
	swait()
1239
	PartEmmit1.Color = ColorSequence.new(maincolor.Color)
1240
	BodPoss.Position = tors.Position
1241
end
1242
end)
1243
	soulst()
1244
	end
1245
end
1246
function FaceMouse()
1247
local	Cam = workspace.CurrentCamera
1248
	return {
1249
		CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
1250
		Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
1251
	}
1252
end
1253
-------------------------------------------------------
1254
--End Effect Function--
1255
-------------------------------------------------------
1256
function Cso(ID, PARENT, VOLUME, PITCH)
1257
	local NSound = nil
1258
	coroutine.resume(coroutine.create(function()
1259
		NSound = IT("Sound", PARENT)
1260
		NSound.Volume = VOLUME
1261
		NSound.Pitch = PITCH
1262
		NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
1263
		swait()
1264
		NSound:play()
1265
		game:GetService("Debris"):AddItem(NSound, 10)
1266
	end))
1267
	return NSound
1268
end
1269
function CameraEnshaking(Length, Intensity)
1270
	coroutine.resume(coroutine.create(function()
1271
		local intensity = 1 * Intensity
1272
		local rotM = 0.01 * Intensity
1273
		for i = 0, Length, 0.1 do
1274
			swait()
1275
			intensity = intensity - 0.05 * Intensity / Length
1276
			rotM = rotM - 5.0E-4 * Intensity / Length
1277
			hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
1278
			cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM)
1279
		end
1280
		hum.CameraOffset = Vector3.new(0, 0, 0)
1281
	end))
1282
end
1283
function chatfunc(text, color)
1284
	local chat = coroutine.wrap(function()
1285
		if char:FindFirstChild("TalkingBillBoard") ~= nil then
1286
			char:FindFirstChild("TalkingBillBoard"):destroy()
1287
		end
1288
		local naeeym2 = Instance.new("BillboardGui", char)
1289
		naeeym2.Size = UDim2.new(0, 100, 0, 40)
1290
		naeeym2.StudsOffset = Vector3.new(0, 5, 0)
1291
		naeeym2.Adornee = hed
1292
		naeeym2.Name = "TalkingBillBoard"
1293
		local tecks2 = Instance.new("TextLabel", naeeym2)
1294
		tecks2.BackgroundTransparency = 1
1295
		tecks2.BorderSizePixel = 0
1296
		tecks2.Text = ""
1297
		tecks2.Font = "SciFi"
1298
		tecks2.TextSize = 30
1299
		tecks2.TextStrokeTransparency = 0
1300
		tecks2.TextColor3 = color
1301
		tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
1302
		tecks2.Size = UDim2.new(1, 0, 0.5, 0)
1303
		coroutine.resume(coroutine.create(function()
1304
			while true do
1305
				swait(1)
1306
				tecks2.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5))
1307
				tecks2.Rotation = math.random(-5, 5)
1308
			end
1309
		end))
1310
		for i = 1, string.len(text) do
1311
			CFuncs.Sound.Create("rbxassetid://274118116", hed, 5.25, 0.115)
1312
			tecks2.Text = string.sub(text, 1, i)
1313
			swait(1)
1314
		end
1315
		wait(1)
1316
		naeeym2:Destroy()
1317
	end)
1318
	chat()
1319
end
1320
-------------------------------------------------------
1321
--End Important Functions--
1322
-------------------------------------------------------
1323
1324
-------------------------------------------------------
1325
--Start Customization--
1326
-------------------------------------------------------
1327
local Player_Size = 1
1328
if Player_Size ~= 1 then
1329
root.Size = root.Size * Player_Size
1330
tors.Size = tors.Size * Player_Size
1331
hed.Size = hed.Size * Player_Size
1332
ra.Size = ra.Size * Player_Size
1333
la.Size = la.Size * Player_Size
1334
rl.Size = rl.Size * Player_Size
1335
ll.Size = ll.Size * Player_Size
1336
----------------------------------------------------------------------------------
1337
rootj.Parent = root
1338
neck.Parent = tors
1339
RW.Parent = tors
1340
LW.Parent = tors
1341
RH.Parent = tors
1342
LH.Parent = tors
1343
----------------------------------------------------------------------------------
1344
rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
1345
rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
1346
neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
1347
neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
1348
RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
1349
LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
1350
----------------------------------------------------------------------------------
1351
RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
1352
LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
1353
RH.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
1354
LH.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
1355
--hat.Parent = Character
1356
end
1357
----------------------------------------------------------------------------------
1358
local equipped = false
1359
local idle = 0
1360
local change = 1
1361
local val = 0
1362
local toim = 0
1363
local idleanim = 0.4
1364
local sine = 0
1365
local Sit = 1
1366
----------------------------------------------------------------------------------
1367
local SONG = 679355361
1368
local SONG2 = 0
1369
local Music = Instance.new("Sound",tors)
1370
Music.Volume = 9999999
1371
Music.Looped = true
1372
Music.Pitch = 1 --Pitcher
1373
----------------------------------------------------------------------------------
1374
hum.WalkSpeed = 16
1375
hum.JumpPower = 70
1376
hum.MaxHealth = 999999999999999999999999999999999999999999999999999999999999999999
1377
hum.Health = 999999999999999999999999999999999999999999999999999999999999999999
1378
hum.Animator.Parent = nil
1379
-------------------------------------------------------
1380
--End Customization--
1381
-------------------------------------------------------
1382
local Blobby = Instance.new("Part", char)
1383
Blobby.Name = "Blob"
1384
Blobby.CanCollide = false
1385
Blobby.BrickColor = BrickColor.new("Really black")
1386
Blobby.Transparency = 0
1387
Blobby.Material = "Plastic"
1388
Blobby.Size = Vector3.new(1, 7, 0.4)
1389
Blobby.TopSurface = Enum.SurfaceType.Smooth
1390
Blobby.BottomSurface = Enum.SurfaceType.Smooth
1391
1392
local Weld = Instance.new("Weld", Blobby)
1393
Weld.Part0 = ra
1394
Weld.Part1 = Blobby
1395
Weld.C1 = CFrame.new(1, -2, 0)*CFrame.fromEulerAnglesXYZ(0, 1.5, 0) 
1396
Weld.C0 = CFrame.Angles(Rad(-86),0,0)
1397
1398
local M2 = Instance.new("SpecialMesh")
1399
M2.Parent = Blobby
1400
M2.MeshId = "http://www.roblox.com/asset/?id=23306095"
1401
M2.TextureId = "http://www.roblox.com/asset/?id=23306096"
1402
M2.Scale = Vector3.new(0.5, 0.5, 0.5)
1403
-------------------------------------------------------
1404
--Start Attacks N Stuff--
1405
-------------------------------------------------------
1406
function attackone()
1407
	attack = true
1408
	hum.WalkSpeed = 3.01
1409
	for i = 0, 1.7, 0.1 do
1410
	swait()
1411
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-60)), 0.2)
1412
		tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-7.5 * Sin(sine / 30)), Rad(0), Rad(60)), 0.2)
1413
		RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.2)
1414
		LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(20)), 0.2)
1415
		RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(160), Rad(-.6), Rad(13)), 0.2)
1416
		LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(15), Rad(-6), Rad(-25 - 4.5 * Sin(sine / 20))), 0.2)
1417
        end
1418
	Cso("28144268", tors, 10, 1)
1419
	for i = 0, 1.4, 0.1 do
1420
		swait()
1421
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-60)), 0.2)
1422-
local Orin = "http://www.roblox.com/asset/?id=120463437"
1422+
1423-
Head.face.Texture = Orin
1423+
1424-
for i,v in pairs(char:GetChildren()) do
1424+
1425-
		if v.ClassName == "Accessory" or v.ClassName == "Hat" then
1425+
1426-
			v:destroy()
1426+
1427
	end
1428
	for i = 0, 1.4, 0.1 do
1429-
local Hair = Instance.new("Part")
1429+
1430-
Hair.Parent = char
1430+
1431-
Hair.Name = "Hair"
1431+
1432-
Hair.Size = Vector3.new(1,  1,  1)
1432+
1433-
Hair.CFrame = char.Head.CFrame
1433+
1434-
Hair:BreakJoints()
1434+
1435-
Hair.CanCollide = false
1435+
1436-
Hair.BrickColor = BrickColor.new("New Yeller")
1436+
1437-
Hair.TopSurface = "Smooth"
1437+
1438-
Hair.BottomSurface = "Smooth"
1438+
1439-
Weld = Instance.new("Weld") 
1439+
1440-
Weld.Name = "Weld"
1440+
1441-
Weld.Part0 = char.Head
1441+
1442-
Weld.Part1 = Hair
1442+
1443-
Weld.Parent = char.Head
1443+
1444-
Weld.C0 = CFrame.new(0, 0.2, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) 
1444+
1445-
Mesh = Instance.new("SpecialMesh")
1445+
1446-
Mesh.Parent = Hair
1446+
1447-
Mesh.MeshId = "rbxassetid://167549828"
1447+
1448-
Mesh.TextureId = "http://www.roblox.com/asset/?id=16627494"
1448+
1449-
Mesh.Scale = Vector3.new(1, 1, 1)
1449+
1450
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(0)), 0.3)
1451-
local Shirt = "rbxassetid://713040948"
1451+
1452-
local Pants = "rbxassetid://713040948"
1452+
1453
		LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(0), Rad(-76), Rad(0)) * angles(Rad(-10), Rad(0), Rad(-25)), 0.3)
1454-
ypcall(function()
1454+
1455-
shirt = Instance.new("Shirt", char)
1455+
1456-
shirt.Name = "Shirt"
1456+
1457-
pants = Instance.new("Pants", char)
1457+
1458-
pants.Name = "Pants"
1458+
1459-
char.Shirt.ShirtTemplate = Shirt
1459+
1460-
char.Pants.PantsTemplate = Pants
1460+
1461
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0, -.5, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-25), Rad(0), Rad(0)), 0.3)
1462
		tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(5), Rad(0), Rad(0)), 0.3)
1463
		RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(0), Rad(76), Rad(0)) * angles(Rad(-7), Rad(0), Rad(65)), 0.3)
1464
		LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -1.1 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(0), Rad(-76), Rad(0)) * angles(Rad(-10), Rad(0), Rad(35)), 0.3)
1465
		RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-20), Rad(-7.5 * Sin(sine / 20)), Rad(8)), 0.3)
1466
		LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-25), Rad(7.5 * Sin(sine / 20)), Rad(-8)), 0.3)
1467
	for i, v in pairs(FindNearestHead(tors.CFrame.p, 5)) do
1468
		if v:FindFirstChild("Head") then
1469
                        Eviscerate(v)
1470
		end
1471
	end
1472
        end
1473
	attack = false
1474
	hum.WalkSpeed = 16
1475
end
1476
function attackthree()
1477
	attack = true
1478
	hum.WalkSpeed = 3.01
1479
	for i = 0, 1.4, 0.1 do
1480
		swait()
1481
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-25), Rad(0), Rad(0)), 0.3)
1482
		tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
1483
		RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(0), Rad(76), Rad(0)) * angles(Rad(-15), Rad(0), Rad(-30)), 0.3)
1484
		LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(0), Rad(-76), Rad(0)) * angles(Rad(-15), Rad(0), Rad(30)), 0.3)
1485
		RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(90), Rad(0), Rad(35)), 0.3)
1486
		LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(90), Rad(0), Rad(-35)), 0.3)
1487
	end
1488
	Cso("203426541", hed, 10, 1)
1489
	for i = 0, 1.7, 0.1 do
1490
		swait()
1491
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(0)), 0.3)
1492
		tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
1493
		RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, -.1* Player_Size) * angles(Rad(0), Rad(76), Rad(0)) * angles(Rad(-5), Rad(0), Rad(30)), 0.3)
1494
		LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, -.1* Player_Size) * angles(Rad(0), Rad(-76), Rad(0)) * angles(Rad(-5), Rad(0), Rad(-30)), 0.3)
1495
		RW.C0 = clerp(RW.C0, CF(1.3* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(90), Rad(0), Rad(-35)), 0.3)
1496
		LW.C0 = clerp(LW.C0, CF(-1.3* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(90), Rad(0), Rad(35)), 0.3)
1497
	for i, v in pairs(FindNearestHead(tors.CFrame.p, 6)) do
1498
		if v:FindFirstChild("Head") then
1499
                        Eviscerate(v)
1500
		end
1501
	end
1502
        end
1503
	attack = false
1504
	hum.WalkSpeed = 16
1505
end
1506
function Technobeam()
1507
    attack = true
1508
	for i = 0, 1.7, 0.1 do
1509
		swait()
1510
        Effects.Block.Create(BrickC("White"), ra.CFrame * CF(0, -1, 0), 2, 2, 2, 3, 3, 3, 0.05)
1511
        RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(180), Rad(-10 * Cos(sine / 20)), Rad(15 - 2.5 * Sin(sine / 20))), 0.1)
1512
        LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(10 * Cos(sine / 20)), Rad(-15 + 2.5 * Sin(sine / 20))), 0.1)
1513
    end
1514
    Cso("438666077", char, 10, 1)
1515
    Magic(15, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, maincolor, "Sphere")
1516
    Magic(15, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, maincolor, "Sphere")
1517
    Magic(1, "Add", mouse.Hit, Vector3.new(1, 100000, 1), 0.5, maincolor, "Sphere")
1518
    Magic(1, "Add", mouse.Hit, Vector3.new(1, 1, 1), 0.75, maincolor, "Sphere")
1519
    CameraEnshaking(4, 5)
1520
    Cso("444667859", char, 10, 1)
1521
    for i, v in pairs(FindNearestHead(mouse.Hit.p, 15)) do
1522
        if v:FindFirstChild("Head") then
1523
            Eviscerate(v)
1524
        end
1525
    end
1526
    attack = false
1527
end
1528
function OP9999()
1529
	attack = true
1530
	hum.WalkSpeed = 3.01
1531
    M2.Scale = Vector3.new(0, 0, 0)
1532
    Cso("430315987", char, 10, 1)
1533
    for i = 0,9,0.1 do
1534
        swait()
1535
        Effects.Block.Create(BrickC("Really red"), ll.CFrame * CF(0, -1, 0), 2, 2, 2, 3, 3, 3, 0.05)
1536
        rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.15)
1537
        tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3)
1538
        RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(-20)), 0.15)
1539
        LH.C0 = clerp(LH.C0, CF(-1, -0.3 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(25)), 0.15)
1540
        RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(135), Rad(0), Rad(-45 - 2.5 * Sin(sine / 20))), 0.1)
1541
        LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(135), Rad(0), Rad(45 + 2.5 * Sin(sine / 20))), 0.1)
1542
	end
1543
	Cso("438666077", char, 10, 1)
1544
	for i = 0,3.7,0.1 do
1545
		swait()
1546
        rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.15)
1547
        tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3)
1548
        RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(20)), 0.15)
1549
        LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(-25)), 0.15)
1550
        RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-40), Rad(0), Rad(25 - 2.5 * Sin(sine / 20))), 0.1)
1551
        LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-40), Rad(0), Rad(-25 + 2.5 * Sin(sine / 20))), 0.1)
1552
        CameraEnshaking(2, 8)
1553
  	Effects.Sphere.Create(BrickColor.new("Really red"), root.CFrame * CF(0, -3, 0), 10, 4, 10, 9999999, -0.1, 9999999, 0.01)
1554
	for i, v in pairs(FindNearestHead(tors.CFrame.p, 9999999)) do
1555
		if v:FindFirstChild("Head") then
1556
                        Eviscerate(v)
1557
		end
1558
	end
1559
        end
1560
	M2.Scale = Vector3.new(0.5, 0.5, 0.5)
1561
	attack = false
1562
	hum.WalkSpeed = 16
1563
end
1564
-------------------------------------------------------
1565
--End Attacks N Stuff--
1566
-------------------------------------------------------
1567
mouse.KeyDown:connect(function(key)
1568
    if key == 'q' then
1569
        Swing = 2
1570
        hum.WalkSpeed = 40
1571
	end
1572
end)
1573
mouse.KeyUp:connect(function(key)
1574
    if key == 'q' then
1575
        Swing = 1
1576
        hum.WalkSpeed = 16
1577
	end
1578
end)
1579
1580
mouse.KeyDown:connect(function(key)
1581
	if attack == false then
1582
		if key == 'e' then
1583
			Technobeam()
1584
		elseif key == 'r' then
1585
			OP9999()
1586
		elseif key == 't' then
1587
			
1588
		elseif key == 'f' then
1589
			
1590
		elseif key == 'g' then
1591
			
1592
		elseif key == 'h' then
1593
			
1594
		end
1595
	end
1596
end)
1597
local Combo = 1
1598
mouse.Button1Down:connect(function(key)
1599
    if attack == false then
1600
        if Combo == 1 then
1601
            Combo = 2
1602
            attackone()
1603
        elseif Combo == 2 then
1604
            Combo = 3
1605
            attacktwo()
1606
        elseif Combo == 3 then
1607
            Combo = 1
1608
            attackthree()
1609
        end
1610
    end
1611
end)
1612
-------------------------------------------------------
1613
--Start Animations--
1614
-------------------------------------------------------
1615
while true do
1616
	swait()
1617
	sine = sine + change
1618
	local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
1619
	local velderp = root.Velocity.y
1620
	hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
1621
	if equipped == true or equipped == false then
1622
		if attack == false then
1623
			idle = idle + 1
1624
		else
1625
			idle = 0
1626
		end
1627
		--Aura(5, 0.15, "Add", root.CFrame * CFrame.new(math.random(-5, 5), -10, math.random(-5, 5)) * CFrame.Angles(math.rad(90), 0, 0), 1.5, 1.5, 10, -0.015, maincolor, 0, "Sphere")
1628
		if 1 < root.Velocity.y and hitfloor == nil then
1629
			Anim = "Jump"
1630
			if attack == false then
1631
				rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.15)
1632
				neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
1633
				RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
1634
				LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
1635
				RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1)
1636
				LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
1637
			end
1638
		elseif -1 > root.Velocity.y and hitfloor == nil then
1639
			Anim = "Fall"
1640
			if attack == false then
1641
				rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(24), Rad(0), Rad(0)), 0.15)
1642
				neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
1643
				RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
1644
				LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
1645
				RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.1)
1646
				LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.1)
1647
			end
1648
		elseif torvel < 1 and hitfloor ~= nil then
1649
			Anim = "Idle"
1650
			change = 1
1651
			if attack == false then
1652
                rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(20)), 0.15)
1653
                tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15 - 7.5 * Sin(sine / 30)), Rad(0), Rad(-20)), 0.3)
1654
                RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(75), Rad(0)) * angles(Rad(-12.5), Rad(0), Rad(0)), 0.15)
1655
                LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-75), Rad(0)) * angles(Rad(-12.5), Rad(0), Rad(8)), 0.15)
1656
                RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(10), Rad(-.6), Rad(15 + 6.5 * Sin(sine / 20))), 0.1)
1657
                LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-10), Rad(-.6), Rad(-15 - 6.5 * Sin(sine / 20))), 0.1)
1658
			end
1659
		elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then
1660
			Anim = "Walk"
1661
			change = 1
1662
			if attack == false then
1663
				rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(8 * Cos(sine / 7))), 0.15)
1664
				tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(6 - 2.5 * Sin(sine / 7)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
1665
				RH.C0 = clerp(RH.C0, CF(1, -0.8 - 0.5 * Cos(sine / 7) / 2, 0.6 * Cos(sine / 7) / 2)  * angles(Rad(-15 - 5 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
1666
         		LH.C0 = clerp(LH.C0, CF(-1, -0.8 + 0.5 * Cos(sine / 7) / 2, -0.6 * Cos(sine / 7) / 2) * angles(Rad(-15 + 5 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
1667
				RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 7), 0) * angles(Rad(37)  * Cos(sine / 7) , Rad(0), Rad(-.6) - ra.RotVelocity.Y / 75), 0.1)
1668
				LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 7), 0) * angles(Rad(-37)  * Cos(sine / 7) , Rad(0) ,	Rad(.6) + la.RotVelocity.Y / 75), 0.1)
1669
			end
1670
		elseif torvel >= 25 and hitfloor ~= nil then
1671
			Anim = "Sprint"
1672
			change = 1.35
1673
			if attack == false then
1674
            rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15)
1675
            tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
1676
            RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.925 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 55 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
1677
                LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.925 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 55 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
1678
            RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, 0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(125)  * Cos(sine / 7) , Rad(0), Rad(5) - ra.RotVelocity.Y / 75), 0.15)
1679
            LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, -0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(-125)  * Cos(sine / 7) , Rad(0) , Rad(-5) + la.RotVelocity.Y / 75), 0.15)
1680
			end
1681
		end
1682
	end
1683
	Music.SoundId = "rbxassetid://"..SONG
1684
	Music.Looped = true
1685
	Music.Pitch = 1
1686
	Music.Volume = 1
1687
	Music.Parent = tors
1688
	Music:Resume()
1689
	if 0 < #Effects then
1690
		for e = 1, #Effects do
1691
			if Effects[e] ~= nil then
1692
				local Thing = Effects[e]
1693
				if Thing ~= nil then
1694
					local Part = Thing[1]
1695
					local Mode = Thing[2]
1696
					local Delay = Thing[3]
1697
					local IncX = Thing[4]
1698
					local IncY = Thing[5]
1699
					local IncZ = Thing[6]
1700
					if 1 >= Thing[1].Transparency then
1701
						if Thing[2] == "Block1" then
1702
							Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1703
							local Mesh = Thing[1].Mesh
1704
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1705
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1706
						elseif Thing[2] == "Block2" then
1707
							Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
1708
							local Mesh = Thing[7]
1709
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1710
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1711
						elseif Thing[2] == "Block3" then
1712
							Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0)
1713
							local Mesh = Thing[7]
1714
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1715
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1716
						elseif Thing[2] == "Cylinder" then
1717
							local Mesh = Thing[1].Mesh
1718
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1719
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1720
						elseif Thing[2] == "Blood" then
1721
							local Mesh = Thing[7]
1722
							Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
1723
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1724
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1725
						elseif Thing[2] == "Elec" then
1726
							local Mesh = Thing[1].Mesh
1727
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
1728
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1729
						elseif Thing[2] == "Disappear" then
1730
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1731
						elseif Thing[2] == "Shatter" then
1732
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1733
							Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
1734
							Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
1735
							Thing[6] = Thing[6] + Thing[5]
1736
						end
1737
					else
1738
						Part.Parent = nil
1739
						table.remove(Effects, e)
1740
					end
1741
				end
1742
			end
1743
		end
1744
         end
1745
end
1746
-------------------------------------------------------
1747
--End Animations And Script--
1748
-------------------------------------------------------