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