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