View difference between Paste ID: xTgj3zx8 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
275
	mouse.Button1Down:connect(function()
276
		local e = nil
277
		local e2 = nil
278
		if Debounces.isJumping == false and Debounces.isAttacking == false then
279
			if Debounces.isCombo <= critTime then
280
				Debounces.wasCrit = true
281
			else
282
				Debounces.wasCrit = false
283
			end
284
			Debounces.attackNumber = Debounces.attackNumber + 1
285
			Debounces.isCombo = 0
286
			Debounces.isAttacking = true
287
			setLerp(.23)
288
			local playAnim = (Debounces.attackNumber)%3 + 1
289
			local frame1 = {
290
				{
291
					CFrame.new(Vector3.new(math.random(-10,10)/200, 0, math.random(-10,10)/200)) * CFAngles(Vector3.new(0, math.random(-2,5), 0));
292
					CFrame.new(Vector3.new(0, 1.56, -0.01)) * CFAngles(Vector3.new(-5.914, -13.989, -1.015));
293
					CFrame.new(Vector3.new(-1.021, 0.329, -0.75)) * CFAngles(Vector3.new(82.382, 11.798, 41.905));
294
					CFrame.new(Vector3.new(1.649, 0.169, 0.749)) * CFAngles(Vector3.new(-77.626, 16.244, 21.328));
295
					CFrame.new(Vector3.new(-0.63, -1.871, -0.38)) * CFAngles(Vector3.new(-0.91, 3.562, 0.768));
296
					CFrame.new(Vector3.new(0.619, -2.011, 0.31)) * CFAngles(Vector3.new(-26.804, -12.884, -1.817));
297
					CFrame.new(Vector3.new(-0.666, 0.294, -1.807)) * CFAngles(Vector3.new(-28.48, 70.346, -83.191));
298
				};
299
				{
300
					CFrame.new(Vector3.new(math.random(-10,10)/200, 0, math.random(-10,10)/200)) * CFAngles(Vector3.new(0, math.random(-2,5), 0));
301
					CFrame.new(Vector3.new(0, 1.56, -0.01)) * CFAngles(Vector3.new(-14.957, 9.347, 1.86));
302
					CFrame.new(Vector3.new(-1.471, 0.239, -0.98)) * CFAngles(Vector3.new(50.874, -38.983, 14.74));
303
					CFrame.new(Vector3.new(1.789, 0.049, 0.249)) * CFAngles(Vector3.new(-39.301, 20.922, 22.363));
304
					CFrame.new(Vector3.new(-0.63, -2.02, -0.14)) * CFAngles(Vector3.new(0.523, 3.58, 0.679));
305
					CFrame.new(Vector3.new(0.62, -2.011, 0.31)) * CFAngles(Vector3.new(-32.649, -15.017, 6.958));
306
					CFrame.new(Vector3.new(-0.646, -0.576, -1.597)) * CFAngles(Vector3.new(-73.07, 86.04, -17.928));
307
				};
308
				{
309
					CFrame.new(Vector3.new(math.random(-10,10)/200, 0, math.random(-10,10)/200)) * CFAngles(Vector3.new(0, math.random(-2,5), 0));
310
					CFrame.new(Vector3.new(0.14, 1.56, -0.01)) * CFAngles(Vector3.new(-8.767, 9.322, 0.967));
311
					CFrame.new(Vector3.new(-1.711, -0.051, -0.28)) * CFAngles(Vector3.new(26.633, -15.091, -28.888));
312
					CFrame.new(Vector3.new(1.789, 0.049, 0.109)) * CFAngles(Vector3.new(-10.529, 11.255, 19.434));
313
					CFrame.new(Vector3.new(-0.59, -2.02, -0.14)) * CFAngles(Vector3.new(1.445, 18.442, -3.585));
314
					CFrame.new(Vector3.new(0.799, -2.031, -0.04)) * CFAngles(Vector3.new(1.339, -21.187, 15.748));
315
					CFrame.new(Vector3.new(-1.966, -0.756, -1.117)) * CFAngles(Vector3.new(177.818, -16.903, 86.063));
316
				};
317
			}
318
			local frame2 = {
319
				{
320
					CFrame.new(Vector3.new(0, 0, math.random(-10,10)/200)) * CFAngles(Vector3.new(0, math.random(-2,5), 0));
321
					CFrame.new(Vector3.new(0, 1.56, -0.01)) * CFAngles(Vector3.new(-8.241, 17.447, -0.169));
322
					CFrame.new(Vector3.new(-1.581, -0.151, -0.17)) * CFAngles(Vector3.new(69.448, 37.134, -78.032));
323
					CFrame.new(Vector3.new(1.789, 0.049, 0.609)) * CFAngles(Vector3.new(-54.033, 14.452, 26.869));
324
					CFrame.new(Vector3.new(-0.63, -2.02, -0.14)) * CFAngles(Vector3.new(-18.859, 3.152, 1.828));
325
					CFrame.new(Vector3.new(0.799, -2.011, 0.31)) * CFAngles(Vector3.new(-19.054, -13.009, 10.266));
326
					CFrame.new(Vector3.new(-2.386, -0.986, -2.477)) * CFAngles(Vector3.new(174.048, -0.303, 72.496));
327
				};
328
				{
329
					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));
330
					CFrame.new(Vector3.new(0, 1.56, -0.01)) * CFAngles(Vector3.new(-9.096, 26.968, -0.885));
331
					CFrame.new(Vector3.new(-1.851, 0.239, -0.98)) * CFAngles(Vector3.new(46.523, -35.77, -44.203));
332
					CFrame.new(Vector3.new(1.789, 0.049, 0.249)) * CFAngles(Vector3.new(-20.556, 7.594, 51.7));
333
					CFrame.new(Vector3.new(-0.9, -2.02, -0.14)) * CFAngles(Vector3.new(0.523, 3.58, -17.2));
334
					CFrame.new(Vector3.new(0.889, -2.071, 0.19)) * CFAngles(Vector3.new(-4.831, -22.678, 13.441));
335
					CFrame.new(Vector3.new(-3.286, -0.016, -3.167)) * CFAngles(Vector3.new(177.818, -16.903, 86.063));
336
				};
337
				{
338
					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));
339
					CFrame.new(Vector3.new(0.14, 1.56, -0.01)) * CFAngles(Vector3.new(-8.104, -7.695, 0.899));
340
					CFrame.new(Vector3.new(-1.191, 0.109, -0.86)) * CFAngles(Vector3.new(103.661, -62.452, 30.966));
341
					CFrame.new(Vector3.new(1.789, 0.049, 0.269)) * CFAngles(Vector3.new(-41.475, -0.825, 22.337));
342
					CFrame.new(Vector3.new(-0.69, -2.02, -0.14)) * CFAngles(Vector3.new(-6.435, 20.198, -11.958));
343
					CFrame.new(Vector3.new(0.71, -2.031, 0.25)) * CFAngles(Vector3.new(-31.549, -26.093, 2.237));
344
					CFrame.new(Vector3.new(0.504, -0.346, -2.117)) * CFAngles(Vector3.new(147.39, 81.207, 135.492));
345
				};
346
			}
347
			if Debounces.wasCrit == false then
348
				local e = Instance.new("Sound",c.Head)
349
				e.Volume = .5
350
				e.SoundId = "rbxassetid://145486992"
351
				e.Pitch = math.random(110,130)/100
352
				e:Play()
353
				setJointCFrames(frame1[playAnim])
354
				setLerp(.35)
355
				wait(.07)
356
				setJointCFrames(frame2[playAnim])
357
				wait(.05)
358
			else
359
				local e = Instance.new("Sound",c.Head)
360
				e.Volume = .5
361
				e.SoundId = "rbxassetid://181894961"
362
				e.Pitch = math.random(130,160)/100
363
				e:Play()
364
				local e2 = Instance.new("Sound",c.Head)
365
				e2.Volume = .6
366
				e2.Pitch = math.random(110,130)/100
367
				e2.SoundId = "rbxassetid://200632875"
368
				e2:Play()
369
				setLerp(.6)
370
				setJointCFrames(frame1[playAnim])
371
				setLerp(.7)
372
				wait(.02)
373
				setJointCFrames(frame2[playAnim])
374
				wait(.01)
375
			end
376
			Debounces.isAttacking = false
377
		end
378
		wait(5)
379
		if e then
380
			e:Destroy()
381
			e2:Destroy()
382
		end
383
	end)
384
	
385
	function jumpyboie()
386
		Debounces.Debounce = true
387
			human.WalkSpeed = 0
388
			setLerp(.2)
389
			setJointCFrames({
390
				CFrame.new(Vector3.new(0, -1, 0)) * CFAngles(Vector3.new(0, 0, 0));
391
				CFrame.new(Vector3.new(0, 1.5, -0.15)) * CFAngles(Vector3.new(-18.621, -3.513, 0.853));
392
				CFrame.new(Vector3.new(-1.01, 0.069, -0.69)) * CFAngles(Vector3.new(50.809, 0.672, 20.794));
393
				CFrame.new(Vector3.new(1.309, -0.031, -0.031)) * CFAngles(Vector3.new(-33.146, 36.092, 14.78));
394
				CFrame.new(Vector3.new(-0.63, -1.33, -0.74)) * CFAngles(Vector3.new(-13.998, 3.296, 1.554));
395
				CFrame.new(Vector3.new(0.619, -1.331, 0.42)) * CFAngles(Vector3.new(-58.408, 1.211, 9.751));
396
				CFrame.new(Vector3.new(-2.396, -0.596, -1.287)) * CFAngles(Vector3.new(0.315, -82.579, 125.578));
397
			})
398
			wait(.25)
399
			human.JumpPower = 60
400
			human.Jump = true
401
			wait(.25)
402
			Debounces.Debounce = false
403
			human.WalkSpeed = 35
404
			Debounces.isJumping = true
405
			wait()
406
			Debounces.Debounce = false
407
			human.JumpPower = 0
408
	end
409
	
410
	coroutine.wrap(function()
411
		while true do
412
			wait()
413
			if human.Jump == true and Debounces.Debounce == false then
414
				jumpyboie()
415
				wait(.5)
416
				Debounces.Debounce = false
417
			end
418
		end
419
	end)()
420
421
	uinps.InputBegan:connect(function(InputObj)
422
		if InputObj.KeyCode == Enum.KeyCode.Space and Debounces.isTyping == false and Debounces.isJumping == false and Debounces.Debounce == false then
423
			Debounces.Debounce = true
424
			human.WalkSpeed = 0
425
			setLerp(.2)
426
			setJointCFrames({
427
				CFrame.new(Vector3.new(0, -1, 0)) * CFAngles(Vector3.new(0, 0, 0));
428
				CFrame.new(Vector3.new(0, 1.5, -0.15)) * CFAngles(Vector3.new(-18.621, -3.513, 0.853));
429
				CFrame.new(Vector3.new(-1.01, 0.069, -0.69)) * CFAngles(Vector3.new(50.809, 0.672, 20.794));
430
				CFrame.new(Vector3.new(1.309, -0.031, -0.031)) * CFAngles(Vector3.new(-33.146, 36.092, 14.78));
431
				CFrame.new(Vector3.new(-0.63, -1.33, -0.74)) * CFAngles(Vector3.new(-13.998, 3.296, 1.554));
432
				CFrame.new(Vector3.new(0.619, -1.331, 0.42)) * CFAngles(Vector3.new(-58.408, 1.211, 9.751));
433
				CFrame.new(Vector3.new(-2.396, -0.596, -1.287)) * CFAngles(Vector3.new(0.315, -82.579, 125.578));
434
			})
435
			wait(.25)
436
			human.JumpPower = 60
437
			human.Jump = true
438
			Debounces.Debounce = false
439
			human.WalkSpeed = 35
440
			Debounces.isJumping = true
441
			wait()
442
			human.JumpPower = 0
443
		end
444
	end)
445
446
	uinps.InputBegan:connect(function(InputObj)
447
		if InputObj.KeyCode == Enum.KeyCode.Space and Debounces.isTyping == false and Debounces.isSprinting == true and Debounces.isJumping == false and Debounces.Debounce == false then
448
			Debounces.Debounce = true
449
			human.WalkSpeed = 0
450
			setLerp(.2)
451
			setJointCFrames({
452
				CFrame.new(Vector3.new(0, -1, 0)) * CFAngles(Vector3.new(0, 0, 0));
453
				CFrame.new(Vector3.new(0, 1.5, -0.15)) * CFAngles(Vector3.new(-18.621, -3.513, 0.853));
454
				CFrame.new(Vector3.new(-1.01, 0.069, -0.69)) * CFAngles(Vector3.new(50.809, 0.672, 20.794));
455
				CFrame.new(Vector3.new(1.309, -0.031, -0.031)) * CFAngles(Vector3.new(-33.146, 36.092, 14.78));
456
				CFrame.new(Vector3.new(-0.63, -1.33, -0.74)) * CFAngles(Vector3.new(-13.998, 3.296, 1.554));
457
				CFrame.new(Vector3.new(0.619, -1.331, 0.42)) * CFAngles(Vector3.new(-58.408, 1.211, 9.751));
458
				CFrame.new(Vector3.new(-2.396, -0.596, -1.287)) * CFAngles(Vector3.new(0.315, -82.579, 125.578));
459
			})
460
			wait(.25)
461
			human.JumpPower = 150
462
			local e = Instance.new("Sound",c.Head)
463
			e.SoundId = "rbxassetid://180204603"
464
			e.Pitch = math.random(90,110)/100
465
			e.Volume = 1
466
			e:Play()
467
			local e2 = Instance.new("Part",h)
468
			e2.Size = Vector3.new(1,1,1)
469
			e2.CFrame = CFrame.new(c.HumanoidRootPart.CFrame.p - Vector3.new(0,3,0)) * CFrame.Angles(math.pi/2,0,0)
470
			e2.BrickColor = h.BrickColor
471
			e2.Anchored = true
472
			e2.CanCollide = false
473
			local rm = Instance.new("SpecialMesh",e2)
474
			rm.MeshType = "FileMesh"
475
			rm.MeshId = "rbxassetid://3270017"
476
			rm.Scale = Vector3.new(1,1,6)
477
			human.Jump = true
478
			Debounces.Debounce = false
479
			Debounces.isJumping = true
480
			human.WalkSpeed = 75
481
			wait()
482
			human.JumpPower = 0
483
			while rs.RenderStepped:wait() do
484
				rm.Scale = rm.Scale:lerp(Vector3.new(35,35,6),.15/(Debounces.FPS/60))
485
				e2.Transparency = numLerp(e2.Transparency,1,.15/(Debounces.FPS/60))
486
				if e2.Transparency >= .98 then
487
					break
488
				end
489
			end
490
			e2:Destroy()
491
		end
492
	end)
493
494
	mouse.KeyDown:connect(function(key)
495
		InputObj = {KeyCode = key}
496
		--if Debounces.isTyping == false then
497
			if key == "z" and Debounces.SwitchingModes == false then
498
				changeColor("Still")
499
			elseif key == "x" and Debounces.SwitchingModes == false then
500
				changeColor("Blue")
501
			elseif key == "c" and Debounces.SwitchingModes == false then
502
				changeColor("Orange")
503
			elseif key == "v" and Debounces.SwitchingModes == false then
504
				changeColor("Heal")
505
			end
506
		--end
507
	end)
508
509
	h.Touched:connect(function(part)
510
		local h2 = part.Parent:FindFirstChild("Humanoid")
511
		if h2 then
512
			canAttack = "false"
513
			if Debounces.Mode == "Still" then canAttack = "true" end
514
			if Debounces.Mode == "Blue" and part.Velocity.magnitude > 2 then canAttack = "true" end
515
			if Debounces.Mode == "Orange" and part.Velocity.magnitude < 2 then canAttack = "true" end
516
			if Debounces.Mode == "Heal" then canAttack = "heal" end
517
			if canAttack == "true" then
518
				if Debounces.isCombo <= critTime then
519
					h2:TakeDamage(math.random(3,7))
520
				else
521
					h2:TakeDamage(math.random(1,4))
522
				end
523
			elseif canAttack == "heal" then
524
				h2:TakeDamage(math.random(-4,-1))
525
			end
526
		end
527
	end)
528
529
	human.StateChanged:connect(function(os,ns)
530
		if c.HumanoidRootPart.Velocity.Y < .1 and Debounces.isJumping == true and ns == Enum.HumanoidStateType.Landed then
531
			Debounces.isJumping = false
532
		end
533
	end)
534
535
	rs.RenderStepped:connect(function()
536
		Debounces.FPS = 1/rs.RenderStepped:wait()
537
		if Debounces.isAgg == true then
538
			fight:Resume()
539
			pass:Pause()
540
		else
541
			fight:Pause()
542
			pass:Resume()
543
		end
544
		if Debounces.musicOn == true then
545
			pass.Volume = 1
546
			fight.Volume = 1
547
		else
548
			pass.Volume = 0
549
			fight.Volume = 0
550
		end
551
		l.Range = math.sin(tick() * 1.8) * 8 + 5
552
		local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60)
553
		for i = 1,#Joints do
554
			Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
555
			Joints[i].C1 = CFrameZero()
556
		end
557
	end)