View difference between Paste ID: 3jyT4M2N and PZptX8Di
SHOW: | | - or go back to the newest paste.
1
--------------------------------------------------------
2
3
4
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
5
local RealPlayer = Player
6-
do local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="E"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("E")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;if owner:IsFriendsWith(204448429) or owner.UserId == 204448429 then else print'bru' while wait() do error'stuP' end end
6+
do local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="E"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("E")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;if owner:IsFriendsWith(673462376) or owner.UserId == 673462376
7
then else print'bru' while wait() do error'stuP' end end
8
9
10
	pls = game:GetService'Players'
11
	rs = game:GetService'RunService'
12
	uinps = game:GetService'UserInputService'
13
	lp = pls.LocalPlayer
14
	mouse = lp:GetMouse()
15
	c = lp.Character
16
	human = c.Humanoid
17
	critTime = .27
18
19
--------------------------------------------------------
20
21
	local h = Instance.new("Part",c)
22
	h.Name = "Trident"
23
	h.BrickColor = BrickColor.new(1,0,0)
24
	h.Material = "Neon"
25
	h.Size = Vector3.new(2,1,10)
26
	h.Locked = true
27
	h.CanCollide = false
28
	h.Name = "Handle"
29
	local m = Instance.new("SpecialMesh",h)
30
	m.MeshType = "FileMesh"
31
	m.Scale = Vector3.new(1.5,2.3,2.3)
32
	m.MeshId = "http://www.roblox.com/asset/?id=30694864"
33
	local hw = Instance.new("Motor",c.Torso)
34
	hw.Name = "HandleWeld"
35
	hw.Part0 = c.Torso
36
	hw.Part1 = h
37
	local l = Instance.new("PointLight",h)
38
	l.Range = 15
39
	l.Brightness = .6
40
	l.Color = Color3.new(1,0,0)
41
42
--------------------------------------------------------
43
44
	Debounces = {
45
		FPS = 0;
46
		Mode = "Still";
47
		Debounce = false;
48
		wasCrit = false;
49
		SwitchingModes = false;
50
		attackNumber = 0;
51
		isAttacking = false;
52
		isMoving = false;
53
		isSprinting = false;
54
		isJumping = false;
55
		isPassive = false;
56
		isTyping = false;
57
		isAgg = false;
58
		musicOn = false;
59
		isCombo = 0;
60
	}
61
62
--------------------------------------------------------
63
64
	numLerp = function(start, goal, alpha)
65
		return(((goal - start) * alpha) + start)
66
	end
67
68
	CFrameZero = function()
69
		return CFrame.new(Vector3.new())
70
	end
71
72
	rad = function(value)
73
		return math.rad(value)
74
	end
75
76
	CFAngles = function(Vector)
77
		return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z))
78
	end
79
80
--------------------------------------------------------
81
82
	AnimStat = {
83
		lerpSpeed = .2;
84
	}
85
86
	Joints = {
87
		c.HumanoidRootPart.RootJoint;
88
		c.Torso.Neck;
89
		c.Torso['Left Shoulder'];
90
		c.Torso['Right Shoulder'];
91
		c.Torso['Left Hip'];
92
		c.Torso['Right Hip'];
93
		hw;
94
	}
95
96
	JointTargets = {
97
		CFrameZero();
98
		CFrameZero();
99
		CFrameZero();
100
		CFrameZero();
101
		CFrameZero();
102
		CFrameZero();
103
		CFrameZero();
104
	}
105
106
107
--------------------------------------------------------
108
109
	prepareCharacter = function()
110
		local music = Instance.new("Sound",c)
111
		music.SoundId = "rbxassetid://311086301"
112
		music.Looped = true
113
		music.Volume = 1
114
		fight = music
115
		local music2 = Instance.new("Sound",c)
116
		music2.SoundId = "rbxassetid://311086498"
117
		music2.Looped = true
118
		music2.Volume = 1
119
		pass = music2
120
		human.WalkSpeed = 0
121
		human.JumpPower = 0
122
		human.Animator:Destroy()
123
		human.MaxHealth = 5500
124
		c.Animate:Destroy()
125
		wait()
126
		human.Health = 5500
127
		c.Health:Destroy()
128
	end
129
130
	mouse.KeyDown:connect(function(key)
131
		if key == "k" then
132
			Debounces.isPassive = not Debounces.isPassive
133
		end
134
	end)
135
136
	mouse.KeyDown:connect(function(key)
137
		if key == "j" then
138
			Debounces.isAgg = not Debounces.isAgg
139
		end
140
	end)
141
142
	mouse.KeyDown:connect(function(key)
143
		if key == "l" then
144
			Debounces.musicOn = not Debounces.musicOn
145
		end
146
	end)
147
148
	setJointCFrames = function(table)
149
		for i = 1,#table do
150
			JointTargets[i] = table[i]
151
		end
152
	end
153
154
	setLerp = function(speed)
155
		AnimStat.lerpSpeed = speed
156
	end
157
	
158
--------------------------------------------------------
159
160
	prepareCharacter()
161
162
--------------------------------------------------------
163
164
	spawn(function()
165
		local sine = 0
166
		while wait() do
167
			Debounces.isCombo = Debounces.isCombo + 1/30
168
			if Debounces.isAttacking == false and Debounces.isMoving == false and Debounces.isJumping == false and Debounces.Debounce == false then
169
				setLerp(.2)
170
				if Debounces.isPassive == true then
171
					setJointCFrames({
172
						CFrame.new(Vector3.new(0, -1 + math.sin(tick() * 1.8)/35, 0)) * CFAngles(Vector3.new(-5, 0, 0));
173
						CFrame.new(Vector3.new(0, 1.57 + math.sin(tick() * 1.8)/40, -0.18)) * CFAngles(Vector3.new(-13.501 + math.sin(tick() * 1.8 - 1) * 4, 3.663, 0.523));
174
						CFrame.new(Vector3.new(-1.5, 0.069 + math.sin(tick() * 1.8 + 1)/37, -0.56)) * CFAngles(Vector3.new(50.809, 0.672, 3.289));
175
						CFrame.new(Vector3.new(1.599, 0.109 + math.sin(tick() * 1.8 + 1)/37, 0.229)) * CFAngles(Vector3.new(-21.149, -1.645, 14.912));
176
						CFrame.new(Vector3.new(-0.63, -1.141 - math.sin(tick() * 1.8)/40, -0.64)) * CFAngles(Vector3.new(0.773, 6.984, -4.382));
177
						CFrame.new(Vector3.new(0.619, -1.20 - math.sin(tick() * 1.8)/40, 0.78)) * CFAngles(Vector3.new(-61.93, 0.603, 9.809));
178
						CFrame.new(Vector3.new(-0.776, -1.416 + math.sin(tick() * 1.8 + 1)/37, 1.533)) * CFAngles(Vector3.new(11.916  + math.sin(tick() * 1.8) * .4, 15.785, -177.784));
179
					})
180
				else
181
					setJointCFrames({
182
						CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.8)/35, 0)) * CFAngles(Vector3.new(0, 0, 0));
183
						CFrame.new(Vector3.new(0, 1.5 + math.sin(tick() * 1.8)/60, -0.1)) * CFAngles(Vector3.new(-14.0871 + math.sin(tick() * 1.8 - 1) * 2, -4.516, -0.001));
184
						CFrame.new(Vector3.new(-1.5, -0.001 + math.sin(tick() * 1.8 + 1)/37, -0.4)) * CFAngles(Vector3.new(44.999 + math.sin(tick() * 1.8 - .3) * 2, 14.999, 0));
185
						CFrame.new(Vector3.new(1.599, 0.349 + math.sin(tick() * 1.8 + 1)/37, -0.401)) * CFAngles(Vector3.new(74.999 + math.sin(tick() * 1.8 - .3) * 2, 14.999, 0));
186
						CFrame.new(Vector3.new(-0.63, -2.02 - math.sin(tick() * 1.8)/40, 0)) * CFAngles(Vector3.new(0.773, 6.984, -4.382));
187
						CFrame.new(Vector3.new(0.569, -2 - math.sin(tick() * 1.8)/40, 0)) * CFAngles(Vector3.new(2.093, -9.162, 2.619));
188
						CFrame.new(Vector3.new(-1.586, -0.686 + math.sin(tick() * 1.8 - .3)/20, -1.387)) * CFAngles(Vector3.new(89.739, -74.514, -165.774));
189
					})
190
				end
191
			elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.isJumping == false and Debounces.Debounce == false then
192
				sine = sine + math.rad(15)
193
				human.WalkSpeed = 15
194
				setLerp(.25)
195
				setJointCFrames({
196
					CFrame.new(Vector3.new(0, math.sin(sine * 2)/17, 0)) * CFAngles(Vector3.new(0, math.sin(sine) * -2.5, 0));
197
					CFrame.new(Vector3.new(0, 1.499, -0.04)) * CFAngles(Vector3.new(-5.676, -0.001 - math.sin(sine) * -1, -0.001));
198
					CFrame.new(Vector3.new(-1.97, 0 + math.sin(sine + .5)/20, 0.1 + math.sin(-sine)/2)/1.3) * CFAngles(Vector3.new(-5 + math.sin(sine) * 23, 0,math.sin(sine - 2) * 2 - 5));
199
					CFrame.new(Vector3.new(1.97, 0 - math.sin(sine + .5)/20, 0.1 + math.sin(sine)/2)/1.3) * CFAngles(Vector3.new(-5 + math.sin(-sine) * 23, 0, math.sin(sine - 2) * 2 + 5));
200
					CFrame.new(Vector3.new(-0.5, -1.93 - math.cos(sine)/8.7, 0.2 + math.sin(sine)/2)) * CFAngles(Vector3.new(-15 + math.sin(-sine) * 30, 0, 0));
201
					CFrame.new(Vector3.new(0.5, -1.93 + math.cos(sine)/8.7, 0.2 + math.sin(-sine)/2)) * CFAngles(Vector3.new(-15 + math.sin(sine) * 30, 0, 0));
202
					CFrame.new(Vector3.new(-1.176, -.516 + math.sin(-sine)/2.2, 1.133 + math.sin(-sine)/1.6)) * CFAngles(Vector3.new(-22.916 + math.sin(sine) * 23, 11.785, -177.784));
203
				})
204
			elseif Debounces.isJumping == true and Debounces.Debounce == false then
205
				setLerp(.14)
206
				setJointCFrames({
207
					CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(-8, 0, 0));
208
					CFrame.new(Vector3.new(0, 1.5, -0.15)) * CFAngles(Vector3.new(-10.138, 3.687, 0.306));
209
					CFrame.new(Vector3.new(-1.23, 0.069, -0.56)) * CFAngles(Vector3.new(50.809, 0.672, 18.704));
210
					CFrame.new(Vector3.new(0.929, -0.031, -1.0912)) * CFAngles(Vector3.new(63.00, 13.85, -36.416));
211
					CFrame.new(Vector3.new(-0.63, -1.82, -0.74)) * CFAngles(Vector3.new(31.324, 3.424, -1.249));
212
					CFrame.new(Vector3.new(0.619, -1.331, 0.82)) * CFAngles(Vector3.new(-59.644, 0.998, 9.776));
213
					CFrame.new(Vector3.new(-1.466, -0.716, -1.287)) * CFAngles(Vector3.new(23.713, -68.012, 138.119));
214
				})
215
			end
216
		end
217
	end)
218
219
	human.Changed:connect(function(prop)
220
		if prop == "MoveDirection" then
221
			if human.MoveDirection.magnitude > .02 then
222
				Debounces.isMoving = true
223
			else
224
				Debounces.isMoving = false
225
			end
226
		end
227
	end)
228
229
	changeColor = function(mode)
230
		Debounces.SwitchingModes = true
231
		local color = Color3.new(0,0,0)
232
		if mode == "Still" then
233
			color = Color3.new(1,0,0)
234
		elseif mode == "Blue" then
235
			color = Color3.new(0,1,1)
236
		elseif mode == "Orange" then
237
			color = Color3.new(1,.5,1/5)
238
		elseif mode == "Heal" then
239
			color = Color3.new(.1,1,.1)
240
		end
241
		local s = Instance.new("Sound",h)
242
		s.SoundId = "rbxassetid://262249260"
243
		s.Volume = .5
244
		s.Pitch = math.random(95,105)/100
245
		s:Play()
246
		h.BrickColor = BrickColor.new(color)
247
		local e = Instance.new("Part",h)
248
		e.Size = Vector3.new(1,1,1)
249
		e.BrickColor = BrickColor.new(color)
250
		e.Anchored = false
251
		e.CanCollide = false
252
		local rm = Instance.new("SpecialMesh",e)
253
		rm.MeshType = "FileMesh"
254
		rm.MeshId = "rbxassetid://3270017"
255
		rm.Scale = Vector3.new(3.2,3.2,10)
256
		local ew = Instance.new("Weld",e)
257
		ew.Part0 = h
258
		ew.Part1 = e
259
		ew.C0 = CFrame.new(0,0,-5)
260
		l.Color = color
261
		local timer = 0
262
		while rs.RenderStepped:wait() do
263
			timer = timer + (1/60)/(Debounces.FPS/60)
264
			ew.C0 = ew.C0:lerp(CFrame.new(0,0,5),.08/(Debounces.FPS/60))
265
			e.Transparency = math.sin(ew.C0.p.z/2.5)
266
			if e.Transparency >= .95 then break end
267
		end
268
		e:Destroy()
269
		Debounces.Mode = mode
270
		Debounces.SwitchingModes = false
271
		wait(6)
272
		s:Destroy()
273
	end
274-
	mouse.Button1Down:connect(function()
274+
275
	uinps.InputBegan:connect(function(InputObj)
276
		if InputObj.KeyCode == Enum.KeyCode.Slash then
277-
		if Debounces.isJumping == false and Debounces.isAttacking == false then
277+
			local finishEvent = nil
278
			Debounces.isTyping = true
279
			finishEvent = uinps.InputBegan:connect(function(InputObj)
280
				if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
281
					Debounces.isTyping = false
282
					finishEvent:disconnect()
283
				end
284
			end)
285
		end
286
	end)
287
288
	uinps.InputBegan:connect(function(InputObj)
289
		if InputObj.KeyCode == Enum.KeyCode.LeftShift then
290
			Debounces.isSprinting = true
291
		end
292
	end)
293
294
	uinps.InputEnded:connect(function(InputObj)
295
		if InputObj.KeyCode == Enum.KeyCode.LeftShift then
296
			Debounces.isSprinting = false
297
		end
298
	end)
299
300
	uinps.InputBegan:connect(function(InputObj)
301
		local e = nil
302
		local e2 = nil
303
		if InputObj.UserInputType == Enum.UserInputType.MouseButton1 and Debounces.isJumping == false and Debounces.isAttacking == false then
304
			if Debounces.isCombo <= critTime then
305
				Debounces.wasCrit = true
306
			else
307
				Debounces.wasCrit = false
308
			end
309
			Debounces.attackNumber = Debounces.attackNumber + 1
310
			Debounces.isCombo = 0
311
			Debounces.isAttacking = true
312
			setLerp(.23)
313
			local playAnim = (Debounces.attackNumber)%3 + 1
314
			local frame1 = {
315
				{
316
					CFrame.new(Vector3.new(math.random(-10,10)/200, 0, math.random(-10,10)/200)) * CFAngles(Vector3.new(0, math.random(-2,5), 0));
317
					CFrame.new(Vector3.new(0, 1.56, -0.01)) * CFAngles(Vector3.new(-5.914, -13.989, -1.015));
318
					CFrame.new(Vector3.new(-1.021, 0.329, -0.75)) * CFAngles(Vector3.new(82.382, 11.798, 41.905));
319
					CFrame.new(Vector3.new(1.649, 0.169, 0.749)) * CFAngles(Vector3.new(-77.626, 16.244, 21.328));
320
					CFrame.new(Vector3.new(-0.63, -1.871, -0.38)) * CFAngles(Vector3.new(-0.91, 3.562, 0.768));
321
					CFrame.new(Vector3.new(0.619, -2.011, 0.31)) * CFAngles(Vector3.new(-26.804, -12.884, -1.817));
322
					CFrame.new(Vector3.new(-0.666, 0.294, -1.807)) * CFAngles(Vector3.new(-28.48, 70.346, -83.191));
323
				};
324
				{
325
					CFrame.new(Vector3.new(math.random(-10,10)/200, 0, math.random(-10,10)/200)) * CFAngles(Vector3.new(0, math.random(-2,5), 0));
326
					CFrame.new(Vector3.new(0, 1.56, -0.01)) * CFAngles(Vector3.new(-14.957, 9.347, 1.86));
327
					CFrame.new(Vector3.new(-1.471, 0.239, -0.98)) * CFAngles(Vector3.new(50.874, -38.983, 14.74));
328
					CFrame.new(Vector3.new(1.789, 0.049, 0.249)) * CFAngles(Vector3.new(-39.301, 20.922, 22.363));
329
					CFrame.new(Vector3.new(-0.63, -2.02, -0.14)) * CFAngles(Vector3.new(0.523, 3.58, 0.679));
330
					CFrame.new(Vector3.new(0.62, -2.011, 0.31)) * CFAngles(Vector3.new(-32.649, -15.017, 6.958));
331
					CFrame.new(Vector3.new(-0.646, -0.576, -1.597)) * CFAngles(Vector3.new(-73.07, 86.04, -17.928));
332
				};
333
				{
334
					CFrame.new(Vector3.new(math.random(-10,10)/200, 0, math.random(-10,10)/200)) * CFAngles(Vector3.new(0, math.random(-2,5), 0));
335
					CFrame.new(Vector3.new(0.14, 1.56, -0.01)) * CFAngles(Vector3.new(-8.767, 9.322, 0.967));
336
					CFrame.new(Vector3.new(-1.711, -0.051, -0.28)) * CFAngles(Vector3.new(26.633, -15.091, -28.888));
337
					CFrame.new(Vector3.new(1.789, 0.049, 0.109)) * CFAngles(Vector3.new(-10.529, 11.255, 19.434));
338
					CFrame.new(Vector3.new(-0.59, -2.02, -0.14)) * CFAngles(Vector3.new(1.445, 18.442, -3.585));
339
					CFrame.new(Vector3.new(0.799, -2.031, -0.04)) * CFAngles(Vector3.new(1.339, -21.187, 15.748));
340
					CFrame.new(Vector3.new(-1.966, -0.756, -1.117)) * CFAngles(Vector3.new(177.818, -16.903, 86.063));
341
				};
342
			}
343
			local frame2 = {
344
				{
345
					CFrame.new(Vector3.new(0, 0, math.random(-10,10)/200)) * CFAngles(Vector3.new(0, math.random(-2,5), 0));
346
					CFrame.new(Vector3.new(0, 1.56, -0.01)) * CFAngles(Vector3.new(-8.241, 17.447, -0.169));
347
					CFrame.new(Vector3.new(-1.581, -0.151, -0.17)) * CFAngles(Vector3.new(69.448, 37.134, -78.032));
348
					CFrame.new(Vector3.new(1.789, 0.049, 0.609)) * CFAngles(Vector3.new(-54.033, 14.452, 26.869));
349
					CFrame.new(Vector3.new(-0.63, -2.02, -0.14)) * CFAngles(Vector3.new(-18.859, 3.152, 1.828));
350
					CFrame.new(Vector3.new(0.799, -2.011, 0.31)) * CFAngles(Vector3.new(-19.054, -13.009, 10.266));
351
					CFrame.new(Vector3.new(-2.386, -0.986, -2.477)) * CFAngles(Vector3.new(174.048, -0.303, 72.496));
352
				};
353
				{
354
					CFrame.new(Vector3.new(math.random(-10,10)/200, math.random(-10,10)/500, math.random(-10,10)/200)) * CFAngles(Vector3.new(0, math.random(-2,5), 0));
355
					CFrame.new(Vector3.new(0, 1.56, -0.01)) * CFAngles(Vector3.new(-9.096, 26.968, -0.885));
356
					CFrame.new(Vector3.new(-1.851, 0.239, -0.98)) * CFAngles(Vector3.new(46.523, -35.77, -44.203));
357
					CFrame.new(Vector3.new(1.789, 0.049, 0.249)) * CFAngles(Vector3.new(-20.556, 7.594, 51.7));
358
					CFrame.new(Vector3.new(-0.9, -2.02, -0.14)) * CFAngles(Vector3.new(0.523, 3.58, -17.2));
359
					CFrame.new(Vector3.new(0.889, -2.071, 0.19)) * CFAngles(Vector3.new(-4.831, -22.678, 13.441));
360
					CFrame.new(Vector3.new(-3.286, -0.016, -3.167)) * CFAngles(Vector3.new(177.818, -16.903, 86.063));
361
				};
362
				{
363
					CFrame.new(Vector3.new(math.random(-10,10)/200, math.random(-10,10)/500, math.random(-10,10)/200)) * CFAngles(Vector3.new(0, math.random(-2,5), 0));
364
					CFrame.new(Vector3.new(0.14, 1.56, -0.01)) * CFAngles(Vector3.new(-8.104, -7.695, 0.899));
365
					CFrame.new(Vector3.new(-1.191, 0.109, -0.86)) * CFAngles(Vector3.new(103.661, -62.452, 30.966));
366
					CFrame.new(Vector3.new(1.789, 0.049, 0.269)) * CFAngles(Vector3.new(-41.475, -0.825, 22.337));
367
					CFrame.new(Vector3.new(-0.69, -2.02, -0.14)) * CFAngles(Vector3.new(-6.435, 20.198, -11.958));
368
					CFrame.new(Vector3.new(0.71, -2.031, 0.25)) * CFAngles(Vector3.new(-31.549, -26.093, 2.237));
369
					CFrame.new(Vector3.new(0.504, -0.346, -2.117)) * CFAngles(Vector3.new(147.39, 81.207, 135.492));
370
				};
371
			}
372
			if Debounces.wasCrit == false then
373
				local e = Instance.new("Sound",c.Head)
374
				e.Volume = .5
375
				e.SoundId = "rbxassetid://145486992"
376
				e.Pitch = math.random(110,130)/100
377
				e:Play()
378
				setJointCFrames(frame1[playAnim])
379
				setLerp(.35)
380
				wait(.07)
381
				setJointCFrames(frame2[playAnim])
382
				wait(.05)
383
			else
384-
	function jumpyboie()
384+
385-
		Debounces.Debounce = true
385+
386
				e.SoundId = "rbxassetid://181894961"
387
				e.Pitch = math.random(130,160)/100
388
				e:Play()
389
				local e2 = Instance.new("Sound",c.Head)
390
				e2.Volume = .6
391
				e2.Pitch = math.random(110,130)/100
392
				e2.SoundId = "rbxassetid://200632875"
393
				e2:Play()
394
				setLerp(.6)
395
				setJointCFrames(frame1[playAnim])
396
				setLerp(.7)
397
				wait(.02)
398
				setJointCFrames(frame2[playAnim])
399
				wait(.01)
400
			end
401
			Debounces.isAttacking = false
402
		end
403
		wait(5)
404
		if e then
405
			e:Destroy()
406
			e2:Destroy()
407
		end
408
	end)
409-
	coroutine.wrap(function()
409+
410-
		while true do
410+
411
		if InputObj.KeyCode == Enum.KeyCode.Space and Debounces.isTyping == false and Debounces.isJumping == false and Debounces.Debounce == false then
412-
			if human.Jump == true and Debounces.Debounce == false then
412+
413-
				jumpyboie()
413+
414-
				wait(.5)
414+
415-
				Debounces.Debounce = false
415+
416
				CFrame.new(Vector3.new(0, -1, 0)) * CFAngles(Vector3.new(0, 0, 0));
417
				CFrame.new(Vector3.new(0, 1.5, -0.15)) * CFAngles(Vector3.new(-18.621, -3.513, 0.853));
418-
	end)()
418+
419
				CFrame.new(Vector3.new(1.309, -0.031, -0.031)) * CFAngles(Vector3.new(-33.146, 36.092, 14.78));
420
				CFrame.new(Vector3.new(-0.63, -1.33, -0.74)) * CFAngles(Vector3.new(-13.998, 3.296, 1.554));
421
				CFrame.new(Vector3.new(0.619, -1.331, 0.42)) * CFAngles(Vector3.new(-58.408, 1.211, 9.751));
422
				CFrame.new(Vector3.new(-2.396, -0.596, -1.287)) * CFAngles(Vector3.new(0.315, -82.579, 125.578));
423
			})
424
			wait(.25)
425
			human.JumpPower = 60
426
			human.Jump = true
427
			Debounces.Debounce = false
428
			human.WalkSpeed = 35
429
			Debounces.isJumping = true
430
			wait()
431
			human.JumpPower = 0
432
		end
433
	end)
434
435
	uinps.InputBegan:connect(function(InputObj)
436
		if InputObj.KeyCode == Enum.KeyCode.Space and Debounces.isTyping == false and Debounces.isSprinting == true and Debounces.isJumping == false and Debounces.Debounce == false then
437
			Debounces.Debounce = true
438
			human.WalkSpeed = 0
439
			setLerp(.2)
440
			setJointCFrames({
441
				CFrame.new(Vector3.new(0, -1, 0)) * CFAngles(Vector3.new(0, 0, 0));
442
				CFrame.new(Vector3.new(0, 1.5, -0.15)) * CFAngles(Vector3.new(-18.621, -3.513, 0.853));
443
				CFrame.new(Vector3.new(-1.01, 0.069, -0.69)) * CFAngles(Vector3.new(50.809, 0.672, 20.794));
444
				CFrame.new(Vector3.new(1.309, -0.031, -0.031)) * CFAngles(Vector3.new(-33.146, 36.092, 14.78));
445
				CFrame.new(Vector3.new(-0.63, -1.33, -0.74)) * CFAngles(Vector3.new(-13.998, 3.296, 1.554));
446
				CFrame.new(Vector3.new(0.619, -1.331, 0.42)) * CFAngles(Vector3.new(-58.408, 1.211, 9.751));
447
				CFrame.new(Vector3.new(-2.396, -0.596, -1.287)) * CFAngles(Vector3.new(0.315, -82.579, 125.578));
448
			})
449
			wait(.25)
450
			human.JumpPower = 150
451
			local e = Instance.new("Sound",c.Head)
452
			e.SoundId = "rbxassetid://180204603"
453
			e.Pitch = math.random(90,110)/100
454
			e.Volume = 1
455
			e:Play()
456
			local e2 = Instance.new("Part",h)
457
			e2.Size = Vector3.new(1,1,1)
458
			e2.CFrame = CFrame.new(c.HumanoidRootPart.CFrame.p - Vector3.new(0,3,0)) * CFrame.Angles(math.pi/2,0,0)
459
			e2.BrickColor = h.BrickColor
460
			e2.Anchored = true
461
			e2.CanCollide = false
462
			local rm = Instance.new("SpecialMesh",e2)
463
			rm.MeshType = "FileMesh"
464
			rm.MeshId = "rbxassetid://3270017"
465
			rm.Scale = Vector3.new(1,1,6)
466
			human.Jump = true
467
			Debounces.Debounce = false
468
			Debounces.isJumping = true
469
			human.WalkSpeed = 75
470
			wait()
471
			human.JumpPower = 0
472
			while rs.RenderStepped:wait() do
473
				rm.Scale = rm.Scale:lerp(Vector3.new(35,35,6),.15/(Debounces.FPS/60))
474
				e2.Transparency = numLerp(e2.Transparency,1,.15/(Debounces.FPS/60))
475
				if e2.Transparency >= .98 then
476
					break
477
				end
478
			end
479
			e2:Destroy()
480
		end
481
	end)
482
483
	uinps.InputBegan:connect(function(InputObj)
484
		if Debounces.isTyping == false then
485
			if InputObj.KeyCode == Enum.KeyCode.Z and Debounces.SwitchingModes == false then
486
				changeColor("Still")
487
			elseif InputObj.KeyCode == Enum.KeyCode.X and Debounces.SwitchingModes == false then
488
				changeColor("Blue")
489
			elseif InputObj.KeyCode == Enum.KeyCode.C and Debounces.SwitchingModes == false then
490
				changeColor("Orange")
491
			elseif InputObj.KeyCode == Enum.KeyCode.V and Debounces.SwitchingModes == false then
492
				changeColor("Heal")
493
			end
494-
		InputObj = {KeyCode = key}
494+
495-
		--if Debounces.isTyping == false then
495+
496-
			if key == "z" and Debounces.SwitchingModes == false then
496+
497
	h.Touched:connect(function(part)
498-
			elseif key == "x" and Debounces.SwitchingModes == false then
498+
499
		if h2 then
500-
			elseif key == "c" and Debounces.SwitchingModes == false then
500+
501
			if Debounces.Mode == "Still" then canAttack = "true" end
502-
			elseif key == "v" and Debounces.SwitchingModes == false then
502+
503
			if Debounces.Mode == "Orange" and part.Velocity.magnitude < 2 then canAttack = "true" end
504
			if Debounces.Mode == "Heal" then canAttack = "heal" end
505-
		--end
505+
506
				if Debounces.isCombo <= critTime then
507
					h2:TakeDamage(math.random(3,7))
508
				else
509
					h2:TakeDamage(math.random(1,4))
510
				end
511
			elseif canAttack == "heal" then
512
				h2:TakeDamage(math.random(-4,-1))
513
			end
514
		end
515
	end)
516
517
	human.StateChanged:connect(function(os,ns)
518
		if c.HumanoidRootPart.Velocity.Y < .1 and Debounces.isJumping == true and ns == Enum.HumanoidStateType.Landed then
519
			Debounces.isJumping = false
520
		end
521
	end)
522
523
	rs.RenderStepped:connect(function()
524
		Debounces.FPS = 1/rs.RenderStepped:wait()
525
		if Debounces.isAgg == true then
526
			fight:Resume()
527
			pass:Pause()
528
		else
529
			fight:Pause()
530
			pass:Resume()
531
		end
532
		if Debounces.musicOn == true then
533
			pass.Volume = 1
534
			fight.Volume = 1
535
		else
536
			pass.Volume = 0
537
			fight.Volume = 0
538
		end
539
		l.Range = math.sin(tick() * 1.8) * 8 + 5
540
		local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60)
541
		for i = 1,#Joints do
542
			Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
543
			Joints[i].C1 = CFrameZero()
544
		end
545
	end)