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