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