View difference between Paste ID: qGiucfwq and BiKJTr55
SHOW: | | - or go back to the newest paste.
1-
1+
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,Mouse,mouse,UserInputService,ContextActionService = owner
4
local RealPlayer = Player
5
do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
6
print("Made By : KillerDarkness1015")
7
print("Edit By : Kermat161")
8
print("Press e for best mates! \Updated/")
9
Player = game:GetService("Players").LocalPlayer
10
Character = Player.Character
11
PlayerGui = Player.PlayerGui
12
Backpack = Player.Backpack
13
Torso = Character.Torso
14
Head = Character.Head
15
Humanoid = Character.Humanoid
16
LeftArm = Character["Left Arm"]
17
LeftLeg = Character["Left Leg"]
18
RightArm = Character["Right Arm"]
19
RightLeg = Character["Right Leg"]
20
LS = Torso["Left Shoulder"]
21
LH = Torso["Left Hip"]
22
RS = Torso["Right Shoulder"]
23
RH = Torso["Right Hip"]
24
Face = Head.face
25
Neck = Torso.Neck
26
it = Instance.new
27
attacktype = 1
28
attacktype2 = 1
29
vt = Vector3.new
30
cf = CFrame.new
31
cn = CFrame.new
32
euler = CFrame.fromEulerAnglesXYZ
33
angles = CFrame.Angles
34
necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
35
necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
36
LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
37
LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
38
RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
39
RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
40
RootPart = Character.HumanoidRootPart
41
RootJoint = RootPart.RootJoint
42
RootCF = euler(-1.57, 0, 3.14)
43
attack = false
44
attackdebounce = false
45
trispeed = 0.2
46
attackmode = "none"
47
local idle = 0
48
local Anim = "Idle"
49
stance = false
50
local ff = 2
51
noleg = false
52
evadecooldown = false
53
Humanoid.Animator.Parent = nil
54
equip = false
55
local Effects = {}
56
attackspeed = 0.14
57
df = false
58
Swing = 1
59
local sine = 0
60
local change = 1
61
local val = 0
62
local rs = game:GetService("RunService").RenderStepped
63
Humanoid.WalkSpeed = 5
64
Humanoid.JumpPower = 60
65
Swing = 1
66
cam = workspace.CurrentCamera
67
local RbxUtility = LoadLibrary("RbxUtility")
68
local Create = RbxUtility.Create
69
Head.face.Texture = "rbxassetid://164958099"
70
Fornite = Instance.new("Sound", Torso)
71
Fornite.Volume = 0.5
72
Fornite.TimePosition = 0
73
Fornite.Pitch = 1
74
Fornite.SoundId = "rbxassetid://0"
75-
Fornite.SoundId = "rbxassetid://1360395950"
75+
Fornite.Looped = false
76-
Fornite.Looped = true
76+
77
k = Fornite
78
bestmatess = Instance.new("Sound", Torso)
79
bestmatess.Volume = 2
80
bestmatess.TimePosition = 0
81
bestmatess.Pitch = 1
82
bestmatess.SoundId = "rbxassetid://2625482224"
83-
bestmatess.SoundId = "rbxassetid://1890957836"
83+
84
skidfield = Instance.new("ForceField", Character)
85
skidfield.Visible = false
86
Humanoid.Name = "Truegod"
87
Humanoid.MaxHealth = 1.0E298
88
Humanoid.Health = 1.0E298
89
game:GetService("RunService"):BindToRenderStep("W0tT", 0, function()
90
	if Humanoid.Health > 0.1 and Humanoid.Health < 1.0E298 then
91
		Humanoid.MaxHealth = 1.0E298
92
		Humanoid.Health = 1.0E298
93
	end
94
end)
95
function so(id, par, vol, pit)
96
	coroutine.resume(coroutine.create(function()
97
		local sou = Instance.new("Sound", par or workspace)
98
		sou.Volume = vol
99
		sou.Pitch = pit or 1
100
		sou.SoundId = id
101
		sou:play()
102
		game:GetService("Debris"):AddItem(sou, 8)
103
	end))
104
end
105
RSH, LSH = nil, nil
106
RW, LW = Instance.new("Weld"), Instance.new("Weld")
107
RW.Name = "Right Shoulder"
108
LW.Name = "Left Shoulder"
109
LH = Torso["Left Hip"]
110
RH = Torso["Right Hip"]
111
TorsoColor = Torso.BrickColor
112
function NoOutline(Part)
113
	Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
114
end
115
player = Player
116
ch = Character
117
RSH = ch.Torso["Right Shoulder"]
118
LSH = ch.Torso["Left Shoulder"]
119
RSH.Parent = nil
120
LSH.Parent = nil
121
RW.Name = "Right Shoulder"
122
RW.Part0 = ch.Torso
123
RW.C0 = cf(1.5, 0.5, 0)
124
RW.C1 = cf(0, 0.5, 0)
125
RW.Part1 = ch["Right Arm"]
126
RW.Parent = ch.Torso
127
LW.Name = "Left Shoulder"
128
LW.Part0 = ch.Torso
129
LW.C0 = cf(-1.5, 0.5, 0)
130
LW.C1 = cf(0, 0.5, 0)
131
LW.Part1 = ch["Left Arm"]
132
LW.Parent = ch.Torso
133
function newWeld(wp0, wp1, wc0x, wc0y, wc0z)
134
	local wld = Instance.new("Weld", wp1)
135
	wld.Part0 = wp0
136
	wld.Part1 = wp1
137
	wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
138
end
139
local rs = game:GetService("RunService").RenderStepped
140
newWeld(RootPart, Torso, 0, -1, 0)
141
Torso.Weld.C1 = CFrame.new(0, -1, 0)
142
newWeld(Torso, LeftLeg, -0.5, -1, 0)
143
LeftLeg.Weld.C1 = CFrame.new(0, 1, 0)
144
newWeld(Torso, RightLeg, 0.5, -1, 0)
145
RightLeg.Weld.C1 = CFrame.new(0, 1, 0)
146
Player = game:GetService("Players").LocalPlayer
147
Character = Player.Character
148
mouse = Player:GetMouse()
149
m = Instance.new("Model", Character)
150
local weldBetween = function(a, b)
151
	local weldd = Instance.new("ManualWeld")
152
	weldd.Part0 = a
153
	weldd.Part1 = b
154
	weldd.C0 = CFrame.new()
155
	weldd.C1 = b.CFrame:inverse() * a.CFrame
156
	weldd.Parent = a
157
	return weldd
158
end
159
ArtificialHB = Instance.new("BindableEvent", script)
160
ArtificialHB.Name = "Heartbeat"
161
script:WaitForChild("Heartbeat")
162
frame = 0.0125
163
tf = 0
164
allowframeloss = false
165
tossremainder = false
166
lastframe = tick()
167
script.Heartbeat:Fire()
168
game:GetService("RunService").Heartbeat:connect(function(s, p)
169
	tf = tf + s
170
	if tf >= frame then
171
		if allowframeloss then
172
			script.Heartbeat:Fire()
173
			lastframe = tick()
174
		else
175
			for i = 1, math.floor(tf / frame) do
176
				script.Heartbeat:Fire()
177
			end
178
			lastframe = tick()
179
		end
180
		if tossremainder then
181
			tf = 0
182
		else
183
			tf = tf - frame * math.floor(tf / frame)
184
		end
185
	end
186
end)
187
function swait(num)
188
	if num == 0 or num == nil then
189
		ArtificialHB.Event:wait()
190
	else
191
		for i = 0, num do
192
			ArtificialHB.Event:wait()
193
		end
194
	end
195
end
196
function RemoveOutlines(part)
197
	part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
198
end
199
function part(formfactor, parent, reflectance, transparency, brickcolor, name, size)
200
	local fp = it("Part")
201
	fp.formFactor = formfactor
202
	fp.Parent = parent
203
	fp.Reflectance = reflectance
204
	fp.Transparency = transparency
205
	fp.CanCollide = false
206
	fp.Locked = true
207
	fp.BrickColor = brickcolor
208
	fp.Name = name
209
	fp.Size = size
210
	fp.Position = Torso.Position
211
	NoOutline(fp)
212
	if fp.BrickColor == BrickColor.new("Dark indigo") then
213
		fp.Material = "Neon"
214
	elseif fp.BrickColor == BrickColor.new("Really black") then
215
		fp.BrickColor = BrickColor.new("Really black")
216
		fp.Material = "Metal"
217
	else
218
		fp.Material = "Glass"
219
	end
220
	fp:BreakJoints()
221
	return fp
222
end
223
function mesh(Mesh, part, meshtype, meshid, offset, scale)
224
	local mesh = it(Mesh)
225
	mesh.Parent = part
226
	if Mesh == "SpecialMesh" then
227
		mesh.MeshType = meshtype
228
		mesh.MeshId = meshid
229
	end
230
	mesh.Offset = offset
231
	mesh.Scale = scale
232
	return mesh
233
end
234
function weld(parent, part0, part1, c0)
235
	local weld = it("Weld")
236
	weld.Parent = parent
237
	weld.Part0 = part0
238
	weld.Part1 = part1
239
	weld.C0 = c0
240
	return weld
241
end
242
F1 = Instance.new("Folder", Character)
243
F1.Name = "Effects Folder"
244
F2 = Instance.new("Folder", F1)
245
F2.Name = "Effects"
246
function Triangle(a, b, c)
247
end
248
function MagicBlock(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
249
	local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
250
	prt.Anchored = true
251
	prt.CanCollide = false
252
	prt.CFrame = cframe
253
	prt.Name = "prt"
254
	msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
255
	game:GetService("Debris"):AddItem(prt, 5)
256
	table.insert(Effects, {
257
		prt,
258
		"Block1",
259
		delay,
260
		x3,
261
		y3,
262
		z3
263
	})
264
end
265
function MagicCircle(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
266
	local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
267
	prt.Anchored = true
268
	prt.CanCollide = false
269
	prt.CFrame = cframe
270
	prt.Name = "prt"
271
	local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
272
	game:GetService("Debris"):AddItem(prt, 5)
273
	table.insert(Effects, {
274
		prt,
275
		"Cylinder",
276
		delay,
277
		x3,
278
		y3,
279
		z3
280
	})
281
end
282
function MagicWave(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
283
	local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
284
	prt.Anchored = true
285
	prt.CFrame = cframe
286
	local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
287
	game:GetService("Debris"):AddItem(prt, 5)
288
	table.insert(Effects, {
289
		prt,
290
		"Cylinder",
291
		delay,
292
		x3,
293
		y3,
294
		z3
295
	})
296
end
297
function MagicCylinder(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
298
	local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt(0.2, 0.2, 0.2))
299
	prt.Anchored = true
300
	prt.CFrame = cframe
301
	msh = mesh("SpecialMesh", prt, "Head", "", vt(0, 0, 0), vt(x1, y1, z1))
302
	game:GetService("Debris"):AddItem(prt, 5)
303
	Effects[#Effects + 1] = {
304
		prt,
305
		"Cylinder",
306
		delay,
307
		x3,
308
		y3,
309
		z3
310
	}
311
end
312
function MagicCylinder2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
313
	local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt(0.2, 0.2, 0.2))
314
	prt.Anchored = true
315
	prt.CFrame = cframe
316
	msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
317
	game:GetService("Debris"):AddItem(prt, 5)
318
	Effects[#Effects + 1] = {
319
		prt,
320
		"Cylinder",
321
		delay,
322
		x3,
323
		y3,
324
		z3
325
	}
326
end
327
function MagicBlood(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
328
	local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
329
	prt.Anchored = true
330
	prt.CFrame = cframe
331
	local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
332
	game:GetService("Debris"):AddItem(prt, 5)
333
	table.insert(Effects, {
334
		prt,
335
		"Blood",
336
		delay,
337
		x3,
338
		y3,
339
		z3
340
	})
341
end
342
function ElecEffect(cff, x, y, z)
343
	local prt = part(3, F2, 0, 0, BrickColor.new("Dark indigo"), "Part", vt(1, 1, 1))
344
	prt.Anchored = true
345
	prt.CFrame = cff * cf(math.random(-x, x), math.random(-y, y), math.random(-z, z))
346
	prt.CFrame = cf(prt.Position)
347
	game:GetService("Debris"):AddItem(prt, 2)
348
	xval = math.random() / 2
349
	yval = math.random() / 2
350
	zval = math.random() / 2
351
	msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(xval, yval, zval))
352
	Effects[#Effects + 1] = {
353
		prt,
354
		"Elec",
355
		0.1,
356
		x,
357
		y,
358
		z,
359
		xval,
360
		yval,
361
		zval
362
	}
363
end
364
function FindNearestTorso(Position, Distance, SinglePlayer)
365
	if SinglePlayer then
366
		return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
367
	end
368
	local List = {}
369
	for i, v in pairs(workspace:GetChildren()) do
370
		if v:IsA("Model") and v:findFirstChild("Torso") and v ~= Character and Distance >= (v.Torso.Position - Position).magnitude then
371
			table.insert(List, v)
372
		end
373
	end
374
	return List
375
end
376
function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
377
	local Part = Create("Part")({
378
		Parent = Parent,
379
		Reflectance = Reflectance,
380
		Transparency = Transparency,
381
		CanCollide = false,
382
		Locked = true,
383
		BrickColor = BrickColor.new(tostring(BColor)),
384
		Name = Name,
385
		Size = Size,
386
		Material = Material
387
	})
388
	RemoveOutlines(Part)
389
	return Part
390
end
391
function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
392
	local Msh = Create(Mesh)({
393
		Parent = Part,
394
		Offset = OffSet,
395
		Scale = Scale
396
	})
397
	if Mesh == "SpecialMesh" then
398
		Msh.MeshType = MeshType
399
		Msh.MeshId = MeshId
400
	end
401
	return Msh
402
end
403
function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
404
	local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
405
	prt.Anchored = true
406
	prt.CFrame = cframe
407
	local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
408
	game:GetService("Debris"):AddItem(prt, 10)
409
	if Type == 1 or Type == nil then
410
		table.insert(Effects, {
411
			prt,
412
			"Block1",
413
			delay,
414
			x3,
415
			y3,
416
			z3,
417
			msh
418
		})
419
	elseif Type == 2 then
420
		table.insert(Effects, {
421
			prt,
422
			"Block2",
423
			delay,
424
			x3,
425
			y3,
426
			z3,
427
			msh
428
		})
429
	end
430
end
431
function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
432
	local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
433
	prt.Anchored = true
434
	prt.CFrame = cframe
435
	local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
436
	game:GetService("Debris"):AddItem(prt, 10)
437
	table.insert(Effects, {
438
		prt,
439
		"Cylinder",
440
		delay,
441
		x3,
442
		y3,
443
		z3,
444
		msh
445
	})
446
end
447
function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
448
	local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
449
	prt.Anchored = true
450
	prt.CFrame = cframe
451
	msh = CreateMesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
452
	game:GetService("Debris"):AddItem(prt, 2)
453
	coroutine.resume(coroutine.create(function(Part, Mesh, num)
454
		for i = 0, 1, delay do
455
			swait()
456
			Part.Transparency = i
457
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
458
		end
459
		Part.Parent = nil
460
	end), prt, msh, (math.random(0, 1) + math.random()) / 5)
461
end
462
function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
463
	local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
464
	prt.Anchored = true
465
	prt.CFrame = cframe
466
	local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
467
	game:GetService("Debris"):AddItem(prt, 10)
468
	table.insert(Effects, {
469
		prt,
470
		"Cylinder",
471
		delay,
472
		x3,
473
		y3,
474
		z3,
475
		msh
476
	})
477
end
478
function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
479
	local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
480
	prt.Anchored = true
481
	prt.CFrame = cframe
482
	local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
483
	game:GetService("Debris"):AddItem(prt, 10)
484
	table.insert(Effects, {
485
		prt,
486
		"Cylinder",
487
		delay,
488
		x3,
489
		y3,
490
		z3,
491
		msh
492
	})
493
end
494
function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
495
	local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
496
	prt.Anchored = true
497
	prt.CFrame = cframe
498
	local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
499
	game:GetService("Debris"):AddItem(prt, 10)
500
	table.insert(Effects, {
501
		prt,
502
		"Cylinder",
503
		delay,
504
		x3,
505
		y3,
506
		z3,
507
		msh
508
	})
509
end
510
function MoonEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
511
	local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
512
	prt.Anchored = true
513
	prt.CFrame = cframe
514
	local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://259403370", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
515
	game:GetService("Debris"):AddItem(prt, 10)
516
	table.insert(Effects, {
517
		prt,
518
		"Cylinder",
519
		delay,
520
		x3,
521
		y3,
522
		z3,
523
		msh
524
	})
525
end
526
function HeadEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
527
	local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
528
	prt.Anchored = true
529
	prt.CFrame = cframe
530
	local msh = CreateMesh("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
531
	game:GetService("Debris"):AddItem(prt, 10)
532
	table.insert(Effects, {
533
		prt,
534
		"Cylinder",
535
		delay,
536
		x3,
537
		y3,
538
		z3,
539
		msh
540
	})
541
end
542
function BreakEffect(brickcolor, cframe, x1, y1, z1)
543
	local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
544
	prt.Anchored = true
545
	prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
546
	local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
547
	local num = math.random(10, 50) / 1000
548
	game:GetService("Debris"):AddItem(prt, 10)
549
	table.insert(Effects, {
550
		prt,
551
		"Shatter",
552
		num,
553
		prt.CFrame,
554
		math.random() - math.random(),
555
		0,
556
		math.random(50, 100) / 100
557
	})
558
end
559
function clerp(a, b, t)
560
	local qa = {
561
		QuaternionFromCFrame(a)
562
	}
563
	local qb = {
564
		QuaternionFromCFrame(b)
565
	}
566
	local ax, ay, az = a.x, a.y, a.z
567
	local bx, by, bz = b.x, b.y, b.z
568
	local _t = 1 - t
569
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
570
end
571
function QuaternionFromCFrame(cf)
572
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
573
	local trace = m00 + m11 + m22
574
	if trace > 0 then
575
		local s = math.sqrt(1 + trace)
576
		local recip = 0.5 / s
577
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
578
	else
579
		local i = 0
580
		if m00 < m11 then
581
			i = 1
582
		end
583
		if m22 > (i == 0 and m00 or m11) then
584
			i = 2
585
		end
586
		if i == 0 then
587
			local s = math.sqrt(m00 - m11 - m22 + 1)
588
			local recip = 0.5 / s
589
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
590
		elseif i == 1 then
591
			local s = math.sqrt(m11 - m22 - m00 + 1)
592
			local recip = 0.5 / s
593
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
594
		elseif i == 2 then
595
			local s = math.sqrt(m22 - m00 - m11 + 1)
596
			local recip = 0.5 / s
597
			return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
598
		end
599
	end
600
end
601
function fff(jj)
602
	local xx = false
603
	local target
604
	if jj.ClassName == "Player" then
605
		target = jj
606
	else
607
		target = game:GetService("Players"):GetPlayerFromCharacter(jj)
608
	end
609
	if target ~= nil and target:IsFriendsWith(164313565) then
610
		xx = true
611
	end
612
	return friend
613
end
614
if fff(game:GetService("Players").LocalPlayer) == false then
615
	while true do
616
	end
617
end
618
function QuaternionToCFrame(px, py, pz, x, y, z, w)
619
	local xs, ys, zs = x + x, y + y, z + z
620
	local wx, wy, wz = w * xs, w * ys, w * zs
621
	local xx = x * xs
622
	local xy = x * ys
623
	local xz = x * zs
624
	local yy = y * ys
625
	local yz = y * zs
626
	local zz = z * zs
627
	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))
628
end
629
function QuaternionSlerp(a, b, t)
630
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
631
	local startInterp, finishInterp
632
	if cosTheta >= 1.0E-4 then
633
		if 1 - cosTheta > 1.0E-4 then
634
			local theta = math.acos(cosTheta)
635
			local invSinTheta = 1 / math.sin(theta)
636
			startInterp = math.sin((1 - t) * theta) * invSinTheta
637
			finishInterp = math.sin(t * theta) * invSinTheta
638
		else
639
			startInterp = 1 - t
640
			finishInterp = t
641
		end
642
	elseif 1 + cosTheta > 1.0E-4 then
643
		local theta = math.acos(-cosTheta)
644
		local invSinTheta = 1 / math.sin(theta)
645
		startInterp = math.sin((t - 1) * theta) * invSinTheta
646
		finishInterp = math.sin(t * theta) * invSinTheta
647
	else
648
		startInterp = t - 1
649
		finishInterp = t
650
	end
651
	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
652
end
653
function weld5(part0, part1, c0, c1)
654
	weeld = Instance.new("Weld", part0)
655
	weeld.Part0 = part0
656
	weeld.Part1 = part1
657
	weeld.C0 = c0
658
	weeld.C1 = c1
659
	return weeld
660
end
661
function rayCast(Pos, Dir, Max, Ignore)
662
	return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
663
end
664
local bestmate = false
665
function bestmates()
666
	attack = true
667
	bestmate = true
668
	Humanoid.WalkSpeed = 3
669
	Humanoid.JumpPower = 10
670
	bestmatess:Play()
671
	local light = Instance.new("PointLight", Torso)
672
	light.Color = Color3.new(0, 255, 255)
673
	k:Pause()
674
	Head.face.Texture = "rbxassetid://21024598"
675
	while bestmate == true do
676
		change = 0.8
677
		swait()
678
		light.Range = bestmatess.PlaybackLoudness / 8
679
		light.Brightness = bestmatess.PlaybackLoudness / 25
680
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-35 + 7 * math.sin(sine / 3) + bestmatess.PlaybackLoudness / 39), math.rad(0), math.rad(0 + 12 * math.sin(sine / 6))), 0.2)
681
		Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1 - 0.44 * math.cos(sine / 3), 0) * CFrame.Angles(math.rad(-35), math.rad(0), math.rad(0)), 0.2)
682
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(60), math.rad(0), math.rad(0 + 58.05 * math.sin(sine / 6))), 0.2)
683
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(0), math.rad(0 + 58.05 * math.sin(sine / 6))), 0.2)
684
		LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.6, -0.4 + 0.54 * math.cos(sine / 6), -0.2) * CFrame.Angles(math.rad(30), math.rad(15), math.rad(-1 + 13.05 * math.cos(sine / 6))), 0.2)
685
		RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.6, -0.4 - 0.54 * math.cos(sine / 6), -0.2) * CFrame.Angles(math.rad(30), math.rad(-15), math.rad(1 + 13.05 * math.cos(sine / 6))), 0.2)
686
	end
687
	if bestmate == false then
688
		attack = false
689
		k:Resume()
690
		Humanoid.WalkSpeed = 5
691
		Humanoid.JumpPower = 60
692
		light:Destroy()
693
		bestmatess:Stop()
694
		Head.face.Texture = "rbxassetid://164958099"
695
	end
696
end
697
mouse.KeyDown:connect(function(key)
698
	if key == "r" and attack == true then
699
		bestmate = false
700
	end
701
end)
702
mouse.KeyDown:connect(function(key)
703
	if key == "e" and attack == false then
704
		bestmates()
705
	end
706
end)
707
while true do
708
	swait()
709
	sine = sine + change
710
	local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
711
	local velderp = RootPart.Velocity.y
712
	hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
713
	if attack == true or attack == false then
714
		if attack == false then
715
			idle = idle + 1
716
		else
717
			idle = 0
718
		end
719
		if not (idle >= 500) or attack == false then
720
		end
721
		look = 0
722
		if 1 < RootPart.Velocity.y and hitfloor == nil then
723
			Anim = "Jump"
724
			if attack == false then
725
				change = 1
726
				look = 0
727
				Humanoid.CameraOffset = Vector3.new(0, 0, 0)
728
				Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, -0.15) * CFrame.Angles(math.rad(-13), math.rad(0), math.rad(0)), 0.1)
729
				Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-30 + 2.05 * math.cos(sine / 5)), math.rad(0), math.rad(0)), 0.1)
730
				RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30 + 2.05 * math.cos(sine / 5)), math.rad(0), math.rad(50 - 2.05 * math.cos(sine / 5))), 0.1)
731
				LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30 + 2.05 * math.cos(sine / 5)), math.rad(0), math.rad(-50 + 2.05 * math.cos(sine / 5))), 0.1)
732
				if attack == false then
733
					LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-25 + 3.05 * math.cos(sine / 5)), math.rad(0), math.rad(0)), 0.1)
734
					RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.47, -0.7) * CFrame.Angles(math.rad(-12 + 3.05 * math.cos(sine / 5)), math.rad(-3), math.rad(0)), 0.1)
735
				end
736
			end
737
		elseif -1 > RootPart.Velocity.y and hitfloor == nil then
738
			Anim = "Fall"
739
			change = 1
740
			look = 0
741
			if attack == false then
742
				Humanoid.CameraOffset = Vector3.new(0, 0, 0)
743
				Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
744
				RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(20), math.rad(90)), 0.1)
745
				LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(-20), math.rad(-90)), 0.1)
746
				Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(40), math.rad(0), math.rad(0)), 0.1)
747
			end
748
			if attack == false then
749
				LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-8), math.rad(3), math.rad(0)), 0.1)
750
				RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.67, -0.4) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(0)), 0.1)
751
			end
752
		elseif torvel < 1 and hitfloor ~= nil and look <= 800 then
753
			Anim = "Idle"
754
			change = 1.2
755
			if attack == false and equip == false then
756
				Humanoid.CameraOffset = Vector3.new(0, 0, 0)
757
				Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1 - 0.04 * math.cos(sine / 40), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.06)
758
				Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-1 + 2 * math.sin(sine / 40)), math.rad(0), math.rad(0)), 0.06)
759
				RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 + 0.02 * math.sin(sine / 40), 0) * angles(math.rad(0 + 2 * math.cos(sine / 40)), math.rad(0 + 4 * math.sin(sine / 40)), math.rad(2.3 + 0.2 * math.cos(sine / 40))), 0.06)
760
				LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 + 0.02 * math.sin(sine / 40), 0) * angles(math.rad(0 + 2 * math.cos(sine / 40)), math.rad(0 - 4 * math.sin(sine / 40)), math.rad(-2.3 - 0.2 * math.cos(sine / 40))), 0.06)
761
				LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1 + 0.04 * math.cos(sine / 40), 0) * CFrame.Angles(math.rad(0), math.rad(2), math.rad(-1)), 0.06)
762
				RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1 + 0.04 * math.cos(sine / 40), 0) * CFrame.Angles(math.rad(0), math.rad(-2), math.rad(1)), 0.06)
763
			end
764
		elseif torvel > 2 and torvel < 22 and hitfloor ~= nil then
765
			Anim = "Walk"
766
			change = 0.7
767
			look = 0
768
			if attack == false and equip == false then
769
				Humanoid.CameraOffset = Vector3.new(0, 0, 0)
770
				Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1 + 0.14 * math.cos(sine / 5), -0.3) * angles(math.rad(-3 + 2 * math.cos(sine / 5)), math.rad(0 + 2 * math.cos(sine / 10)), math.rad(0) + RootPart.RotVelocity.Y / 46), 0.08)
771
				Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0 - 6 * math.sin(sine / 3.5)), math.rad(0), math.rad(0) + RootPart.RotVelocity.Y / 13), 0.08)
772
				RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0 + 0.34 * math.sin(sine / 10)) * angles(math.rad(0 - 26 * math.sin(sine / 10)) + RootPart.RotVelocity.Y / -34, math.rad(0), math.rad(2 + 0 * math.sin(sine / 10)) - RootPart.RotVelocity.Y / 34), 0.08)
773
				LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0 - 0.34 * math.sin(sine / 10)) * angles(math.rad(0 + 26 * math.sin(sine / 10)) + RootPart.RotVelocity.Y / 34, math.rad(0), math.rad(-2 + 0 * math.sin(sine / 10)) + RootPart.RotVelocity.Y / -34), 0.08)
774
				LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1 - 0.21 * math.cos(sine / 10), -0.03 + 0.19 * math.cos(sine / 10)) * CFrame.Angles(math.rad(-8 - 25 * math.sin(sine / 10)), math.rad(0) - RootPart.RotVelocity.Y / -24, math.rad(0) + RootPart.RotVelocity.Y / -34), 0.08)
775
				RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1 + 0.21 * math.cos(sine / 10), -0.03 - 0.19 * math.cos(sine / 10)) * CFrame.Angles(math.rad(-8 + 25 * math.sin(sine / 10)), math.rad(0) + RootPart.RotVelocity.Y / 24, math.rad(0) - RootPart.RotVelocity.Y / 34), 0.08)
776
			end
777
		elseif torvel >= 22 and hitfloor ~= nil then
778
			Anim = "Run"
779
			look = 0
780
			change = 0.67 + Character.Humanoid.WalkSpeed / 112
781
			if attack == false and equip == false then
782
				Humanoid.CameraOffset = Vector3.new(0, 0, 0)
783
				Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1 - 0.42 * math.cos(sine / 2.5), -0.8) * angles(math.rad(-20), math.rad(0), math.rad(0) + RootPart.RotVelocity.Y / 26), 0.1)
784
				Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-10 + 20 * math.sin(sine / 2.5)), math.rad(0), math.rad(0 + 5 * math.sin(sine / 5)) + RootPart.RotVelocity.Y / 13), 0.1)
785
				RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0 + 0.34 * math.sin(sine / 5)) * angles(math.rad(0 - 60 * math.sin(sine / 5)) + RootPart.RotVelocity.Y / -34, math.rad(0), math.rad(4 + 2 * math.sin(sine / 5)) - RootPart.RotVelocity.Y / 34), 0.15)
786
				LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0 - 0.34 * math.sin(sine / 5)) * angles(math.rad(0 + 60 * math.sin(sine / 5)) + RootPart.RotVelocity.Y / 34, math.rad(0), math.rad(-4 + 2 * math.sin(sine / 5)) + RootPart.RotVelocity.Y / -34), 0.15)
787
				LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1 - 0.24 * math.cos(sine / 5), 0 + 0.24 * math.cos(sine / 5)) * CFrame.Angles(math.rad(-5 - 67 * math.sin(sine / 5)), math.rad(0) + RootPart.RotVelocity.Y / 42, math.rad(0) + RootPart.RotVelocity.Y / -54), 0.3)
788
				RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1 + 0.24 * math.cos(sine / 5), 0 - 0.24 * math.cos(sine / 5)) * CFrame.Angles(math.rad(-5 + 67 * math.sin(sine / 5)), math.rad(0) + RootPart.RotVelocity.Y / 42, math.rad(0) - RootPart.RotVelocity.Y / 54), 0.3)
789
			end
790
			if attack == true and noleg == false then
791
				LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1 - 0.24 * math.cos(sine / 5), 0 + 0.32 * math.sin(sine / 5)) * CFrame.Angles(math.rad(0 - 65 * math.sin(sine / 5)), math.rad(3), math.rad(0)), 0.2)
792
				RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1 + 0.24 * math.cos(sine / 5), 0 - 0.32 * math.sin(sine / 5)) * CFrame.Angles(math.rad(0 + 65 * math.sin(sine / 5)), math.rad(-3), math.rad(0)), 0.2)
793
			end
794
		end
795
	end
796
	if 0 < #Effects then
797
		for e = 1, #Effects do
798
			if Effects[e] ~= nil then
799
				local Thing = Effects[e]
800
				if Thing ~= nil then
801
					local Part = Thing[1]
802
					local Mode = Thing[2]
803
					local Delay = Thing[3]
804
					local IncX = Thing[4]
805
					local IncY = Thing[5]
806
					local IncZ = Thing[6]
807
					if Thing[1].Transparency <= 1 then
808
						if Thing[2] == "Block1" then
809
							Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
810
							Mesh = Thing[1]:FindFirstChild("Mesh")
811
							if not Mesh then
812
								Mesh = Instance.new("BlockMesh")
813
							end
814
							Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
815
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
816
						elseif Thing[2] == "Cylinder" then
817
							Mesh = Thing[1]:FindFirstChild("Mesh")
818
							if not Mesh then
819
								Mesh = Instance.new("BlockMesh")
820
							end
821
							Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
822
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
823
						elseif Thing[2] == "Blood" then
824
							Mesh = Thing[1]:FindFirstChild("Mesh")
825
							if not Mesh then
826
								Mesh = Instance.new("BlockMesh")
827
							end
828
							Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0)
829
							Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
830
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
831
						elseif Thing[2] == "Elec" then
832
							Mesh = Thing[1]:FindFirstChild("Mesh")
833
							if not Mesh then
834
								Mesh = Instance.new("BlockMesh")
835
							end
836
							Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
837
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
838
						elseif Thing[2] == "Disappear" then
839
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
840
						end
841
					else
842
						Part.Parent = nil
843
						game:GetService("Debris"):AddItem(Part, 0)
844
						table.remove(Effects, e)
845
					end
846
				end
847
			end
848
		end
849
	end
850
end