View difference between Paste ID: wQ9jRftD and 8QgBgxSe
SHOW: | | - or go back to the newest paste.
1
-- This script has been converted to FE by iPxter
2
3
4
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
5
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
6
do
7
	print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
8
	script.Parent = Player.Character
9
10
	--RemoteEvent for communicating
11
	local Event = Instance.new("RemoteEvent")
12
	Event.Name = "UserInput_Event"
13
14
	--Fake event to make stuff like Mouse.KeyDown work
15
	local function fakeEvent()
16
		local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
17
		t.connect = t.Connect
18
		return t
19
	end
20
21
	--Creating fake input objects with fake variables
22
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
23
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
24
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
25
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
26
	end}
27
	--Merged 2 functions into one by checking amount of arguments
28
	CAS.UnbindAction = CAS.BindAction
29
30
	--This function will trigger the events that have been :Connect()'ed
31
	local function te(self,ev,...)
32
		local t = m[ev]
33
		if t and t._fakeEvent and t.Function then
34
			t.Function(...)
35
		end
36
	end
37
	m.TrigEvent = te
38
	UIS.TrigEvent = te
39
40
	Event.OnServerEvent:Connect(function(plr,io)
41
	    if plr~=Player then return end
42
		if io.isMouse then
43
			m.Target = io.Target
44
			m.Hit = io.Hit
45
		else
46
			local b = io.UserInputState == Enum.UserInputState.Begin
47
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
48
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
49
			end
50
			for _,t in pairs(CAS.Actions) do
51
				for _,k in pairs(t.Keys) do
52
					if k==io.KeyCode then
53
						t.Function(t.Name,io.UserInputState,io)
54
					end
55
				end
56
			end
57
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
58
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
59
	    end
60
	end)
61
	Event.Parent = NLS([==[
62
	local Player = game:GetService("Players").LocalPlayer
63
	local Event = script:WaitForChild("UserInput_Event")
64
65
	local UIS = game:GetService("UserInputService")
66
	local input = function(io,a)
67
		if a then return end
68
		--Since InputObject is a client-side instance, we create and pass table instead
69
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
70
	end
71
	UIS.InputBegan:Connect(input)
72
	UIS.InputEnded:Connect(input)
73
74
	local Mouse = Player:GetMouse()
75
	local h,t
76
	--Give the server mouse data 30 times every second, but only if the values changed
77
	--If player is not moving their mouse, client won't fire events
78
	while wait(1/30) do
79
		if h~=Mouse.Hit or t~=Mouse.Target then
80
			h,t=Mouse.Hit,Mouse.Target
81
			Event:FireServer({isMouse=true,Target=t,Hit=h})
82
		end
83
	end]==],Player.Character)
84
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
85
end
86
-----------------------------------------------------
87
------------------------Jevil------------------------
88
-----------------------------------------------------
89
90
--Made by mrfunnylaughs4. I may not know everything about Jevil since I don't play DeltaRune, but I'll try
91
--my best on keeping it as similar as possible.
92
93
local plr = owner
94
local char = plr.Character
95
if char:FindFirstChild("Animate") then
96
	char.Animate:Destroy()
97
end
98
local hum = char:FindFirstChildOfClass("Humanoid")
99
local tors = char.Torso
100
local head = char.Head
101
local rootpart = char.HumanoidRootPart
102
local RS = tors["Right Shoulder"]
103
local LS = tors["Left Shoulder"]
104
local RH = tors["Right Hip"]
105
local LH = tors["Left Hip"]
106
local neck = tors.Neck
107
local rootj = rootpart.RootJoint
108
local RSnor = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
109
local LSnor = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
110
local RHnor = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
111
local LHnor = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
112
local necknor = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
113
local rootjnor = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
114
local sine = 0
115
local rooted = false
116
local attack = false
117
local music = Instance.new("Sound")
118
music.Parent = tors
119
local timepos = 0
120
local playing = true
121
local volume = 3
122
local song = "rbxassetid://2545298782"
123
local JevilForm = false
124
hum.WalkSpeed = 10
125
126
-----------------------------------------------------
127
------------------Clientsided stuff------------------
128
-----------------------------------------------------
129
130
local mouse = {Hit = CFrame.new(0, 0, 0)}
131
local remote = Instance.new("RemoteEvent")
132
remote.Name = "UserInputStuff"
133
remote.Parent = NLS([==[
134
	local plr = game:GetService("Players").LocalPlayer
135
	local mouse = plr:GetMouse()
136
	local char = plr.Character
137
	local hum = char:FindFirstChildOfClass("Humanoid")
138
	
139
	game:GetService("UserInputService").InputBegan:Connect(function(input, isTyping)
140
		if isTyping == false and input.UserInputType == Enum.UserInputType.Keyboard then
141
			script:WaitForChild("UserInputStuff"):FireServer("UserInputService", input.KeyCode)
142
		end
143
	end)
144
	
145
	while game:GetService("RunService").RenderStepped:Wait() do
146
		for i,v in pairs(hum:GetPlayingAnimationTracks()) do
147
			v:Stop()
148
		end
149
		if script:FindFirstChild("UserInputStuff") then
150
			script.UserInputStuff:FireServer("MouseInfo", mouse.Hit)
151
		end
152
	end
153
]==], char)
154
155
-----------------------------------------------------
156
----------------------Functions----------------------
157
-----------------------------------------------------
158
159
local function SmoothPart(part)
160
	part.TopSurface = Enum.SurfaceType.Smooth
161
	part.BottomSurface = Enum.SurfaceType.Smooth
162
	part.LeftSurface = Enum.SurfaceType.Smooth
163
	part.RightSurface = Enum.SurfaceType.Smooth
164
	part.FrontSurface = Enum.SurfaceType.Smooth
165
	part.BackSurface = Enum.SurfaceType.Smooth
166
end
167
168
local function Effect(Length, Type, SizeStart, SizeEnd, Position, Colour, Parent, Material, CanCollide)
169
	local part = Instance.new("Part")
170
	part.Name = Type
171
	part.Material = Material or Enum.Material.Plastic
172
	part.CFrame = Position
173
	part.CanCollide = CanCollide or false
174
	part.Size = SizeStart
175
	part.Anchored = true
176
	part.BrickColor = BrickColor.new(tostring(Colour))
177
	part.Parent = Parent or workspace
178
	if Type == "Block" then
179
		SmoothPart(part)
180
	end
181
	if Type == "Sphere" then
182
		part.Shape = Enum.PartType.Ball
183
		SmoothPart(part)
184
	end
185
	if Type == "TwirlSwirl" or Type == "Swirl" then
186
		local mesh = Instance.new("SpecialMesh")
187
		mesh.MeshType = Enum.MeshType.FileMesh
188
		mesh.MeshId = "rbxassetid://662585058"
189
		mesh.Name = "SwirlMesh"
190
		mesh.Scale = SizeStart / Vector3.new(500, 500, 500)
191
		mesh.Parent = part
192
	end
193
	if Type == "Wave" or Type == "SpiralWave" then
194
		local mesh = Instance.new("SpecialMesh")
195
		mesh.MeshType = Enum.MeshType.FileMesh
196
		mesh.MeshId = "rbxassetid://20329976"
197
		mesh.Name = "WaveMesh"
198
		mesh.Scale = SizeStart / Vector3.new(4, 4, 4)
199
		mesh.Parent = part
200
	end
201
	if Type == "MeshSphere" then
202
		local mesh = Instance.new("SpecialMesh")
203
		mesh.MeshType = Enum.MeshType.Sphere
204
		mesh.Parent = part
205
		SmoothPart(part)
206
	end
207
	if Type == "Cylinder" then
208
		part.Shape = Enum.PartType.Cylinder
209
		SmoothPart(part)
210
	end
211
	if Type == "KillSphere" then
212
		part.Shape = Enum.PartType.Cylinder
213
		part.Transparency = 1
214
		part.Touched:Connect(function()
215
		end)
216
	end
217
	spawn(function()
218
		local TwirlAngle = math.random(-250, 250) / 1000
219
		local WaveAngle = math.random(-500, 500) / 1000
220
		for i = 1, Length do
221
			game:GetService("RunService").Stepped:Wait()
222
			part.Transparency = part.Transparency + 1 / Length
223
			part.Size = part.Size + SizeEnd / Vector3.new(Length, Length, Length)
224
			if Type == "TwirlSwirl" then
225
				part.CFrame = part.CFrame * CFrame.Angles(TwirlAngle, TwirlAngle, TwirlAngle)
226
				part.SwirlMesh.Scale = part.SwirlMesh.Scale + SizeEnd / Vector3.new(Length * 500, Length * 500, Length * 500)
227
			end
228
			if Type == "Swirl" then
229
				part.CFrame = part.CFrame * CFrame.Angles(0, TwirlAngle, 0)
230
				part.SwirlMesh.Scale = part.SwirlMesh.Scale + SizeEnd / Vector3.new(Length * 500, Length * 500, Length * 500)
231
			end
232
			if Type == "SpiralWave" then
233
				part.CFrame = part.CFrame * CFrame.Angles(WaveAngle, WaveAngle, WaveAngle)
234
				part.WaveMesh.Scale = part.WaveMesh.Scale + SizeEnd / Vector3.new(Length * 4, Length * 4, Length * 4)
235
			end
236
			if Type == "Wave" then
237
				part.CFrame = part.CFrame * CFrame.Angles(0, WaveAngle, 0)
238
				part.WaveMesh.Scale = part.WaveMesh.Scale + SizeEnd / Vector3.new(Length * 4, Length * 4, Length * 4)
239
			end
240
			if Type == "KillSphere" then
241
				for i,v in pairs(part:GetTouchingParts()) do
242
					if v.Parent and v.Parent:FindFirstChildOfClass("Humanoid") and not v:IsDescendantOf(char) then
243
						v.Parent:BreakJoints()
244
					end
245
				end
246
			end
247
		end
248
		part:Destroy()
249
	end)
250
end
251
252
-----------------------------------------------------
253
----------------------Creations----------------------
254
-----------------------------------------------------
255
256
local hat = Instance.new("Part")
257
hat.Name = "JevilHat"
258
hat.Size = Vector3.new(1, 1, 1)
259
hat.CanCollide = false
260
hat.Parent = char
261
local mesh = Instance.new("SpecialMesh")
262
mesh.MeshType = Enum.MeshType.FileMesh
263
mesh.MeshId = "rbxassetid://193760002"
264
mesh.TextureId = "rbxassetid://193760041"
265
mesh.VertexColor = Vector3.new(0.5, 0, 0.5)
266
mesh.Parent = hat
267
local weld = Instance.new("Weld")
268
weld.Part0 = head
269
weld.Part1 = hat
270
weld.C0 = CFrame.new(0, 0.5, 0.31)
271
weld.Parent = hat
272
local shirt = Instance.new("Shirt")
273
shirt.Name = "Cloth"
274
shirt.ShirtTemplate = "rbxassetid://2544612637"
275
shirt.Parent = char
276
local pants = Instance.new("Pants")
277
pants.Name = "Cloth"
278
pants.PantsTemplate = "rbxassetid://2544611861"
279
pants.Parent = char
280
281
-----------------------------------------------------
282
-----------Attacking functions and remotes-----------
283
-----------------------------------------------------
284
285
remote.OnServerEvent:Connect(function(player, Type, input)
286
	if player == plr then
287
		if Type == "MouseInfo" then
288
			mouse.Hit = input
289
		end
290
		if Type == "UserInputService" then
291
			if attack == false then
292
				if JevilForm == false then
293
					if input == Enum.KeyCode.T then
294
						attack = true
295
						local sound = Instance.new("Sound")
296
						sound.SoundId = "rbxassetid://2545211765"
297
						sound.Volume = 5
298
						sound.Parent = head
299
						sound:Play()
300
						repeat
301
							game:GetService("RunService").Stepped:Wait()
302
							RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(0, -0.3, 2), 0.15)
303
							LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.4, 0, 0), 0.15)
304
							rootj.C0 = rootj.C0:Lerp(rootjnor, 0.15)
305
							neck.C0 = neck.C0:Lerp(necknor, 0.15)
306
						until sound.Playing == false
307
						attack = false
308
					end
309
					if input == Enum.KeyCode.F then
310
						attack = true
311
						rooted = true
312
						playing = false
313
						for i = 1, 90 do
314
							game:GetService("RunService").Stepped:Wait()
315
							RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, math.sin(sine / 20) / 8, 0), 0.15)
316
							LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, -math.sin(sine / 20) / 8, 0), 0.15)
317
							RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 16, 0, 0), 0.15)
318
							LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 16, 0, 0), 0.15)
319
							rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.new(0, 0, 2 + 0.2 * math.sin(sine / 20)), 0.1)
320
							neck.C0 = neck.C0:Lerp(necknor, 0.15)
321
						end
322
						local sound = Instance.new("Sound")
323
						sound.SoundId = "rbxassetid://2545010175"
324
						sound.Volume = 5
325
						sound.Parent = head
326
						sound:Play()
327
						repeat
328
							game:GetService("RunService").Stepped:Wait()
329
							RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, math.sin(sine / 20) / 8, 0), 0.15)
330
							LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, -math.sin(sine / 20) / 8, 0), 0.15)
331
							RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
332
							LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
333
							rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.new(0, 0, 2 + 0.2 * math.sin(sine / 20)), 0.1)
334
							neck.C0 = neck.C0:Lerp(necknor, 0.15)
335
						until sound.Playing == false
336
						for i = 1, 30 do
337
							game:GetService("RunService").Stepped:Wait()
338
							RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, math.sin(sine / 20) / 8, 0), 0.15)
339
							LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, -math.sin(sine / 20) / 8, 0), 0.15)
340
							RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
341
							LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
342
							rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.new(0, 0, 2 + 0.2 * math.sin(sine / 20)), 0.1)
343
							neck.C0 = neck.C0:Lerp(necknor, 0.15)
344
						end
345
						if math.random(1, 100) == 1 then
346
							song = "rbxassetid://3325822053"
347
						else
348
							volume = 0.5
349
							song = "rbxassetid://2729072620"
350
						end
351
						music.TimePosition = 0
352
						hum.HipHeight = 2
353
						playing = true
354
						JevilForm = true
355
						attack = false
356
						rooted = false
357
						hum.WalkSpeed = 20
358
						hum.JumpPower = 50
359
					end
360
				end
361
				if JevilForm == true then
362
					if input == Enum.KeyCode.Z then
363
						attack = true
364
						rooted = true
365
						local sound = Instance.new("Sound")
366
						sound.SoundId = "rbxassetid://2545008459"
367
						sound.Volume = 10
368
						sound.Parent = head
369
						sound:Play()
370
						repeat
371
							game:GetService("RunService").Stepped:Wait()
372
							RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, math.sin(sine / 20) / 8, 0), 0.15)
373
							LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, -math.sin(sine / 20) / 8, 0), 0.15)
374
							RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
375
							LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
376
							rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.new(0, 0, 0.2 * math.sin(sine / 20)), 0.1)
377
							neck.C0 = neck.C0:Lerp(necknor, 0.15)
378
						until sound.Playing == false
379
						for i = 1, 10 do
380
							for i = 1, 15 do
381
								game:GetService("RunService").Stepped:Wait()
382
								for i,v in pairs(char:GetDescendants()) do
383
									if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
384
										v.Transparency = v.Transparency + 1 / 15
385
									end
386
									if v:IsA("Decal") then
387
										v.Transparency = v.Transparency + 1 / 15
388
									end
389
								end
390
								RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.4, 0, 0), 0.15)
391
								LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.4, 0, 0), 0.15)
392
								RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.2, 0, 0), 0.15)
393
								LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.2, 0, 0), 0.15)
394
								rootj.C0 = rootj.C0:Lerp(rootjnor, 0.1)
395
								neck.C0 = neck.C0:Lerp(necknor, 0.15)
396
							end
397
							local oldpos = rootpart.Position
398
							local dist = (rootpart.Position - mouse.Hit.Position).Magnitude
399
							if dist > 30 then
400
								dist = 30
401
							end
402
							rootpart.CFrame = CFrame.new(oldpos + CFrame.new(oldpos, mouse.Hit.Position).LookVector * dist + Vector3.new(0, 6, 0), Vector3.new(oldpos.X, rootpart.Position.Y, oldpos.Z)) * CFrame.Angles(0, math.pi, 0)
403
							for i = 1, 15 do
404
								game:GetService("RunService").Stepped:Wait()
405
								for i,v in pairs(char:GetDescendants()) do
406
									if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
407
										v.Transparency = v.Transparency - 1 / 15
408
									end
409
									if v:IsA("Decal") then
410
										v.Transparency = v.Transparency - 1 / 15
411
									end
412
								end
413
								RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.4, 0, 0), 0.15)
414
								LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.4, 0, 0), 0.15)
415
								RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.2, 0, 0), 0.15)
416
								LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.2, 0, 0), 0.15)
417
								rootj.C0 = rootj.C0:Lerp(rootjnor, 0.1)
418
								neck.C0 = neck.C0:Lerp(necknor, 0.15)
419
							end
420
							for i,v in pairs(char:GetDescendants()) do
421
								if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
422
									v.Transparency = 0
423
								end
424
								if v:IsA("Decal") then
425
									v.Transparency = 0
426
								end
427
							end
428
							local sound = Instance.new("Sound")
429
							sound.SoundId = "rbxassetid://2545012765"
430
							sound.Volume = 10
431
							sound.Parent = head
432
							sound:Play()
433
							for amount = 1, 5 do
434
								local spade = Instance.new("Part")
435
								spade.Name = "Spade"
436
								spade.Anchored = true
437
								spade.CanCollide = false
438
								spade.Size = Vector3.new(1, 0.05, 1)
439
								if amount == 1 then
440
									spade.CFrame = CFrame.new(head.Position, mouse.Hit.Position) * CFrame.Angles(0, math.pi / 2, 0)
441
								elseif amount == 2 then
442
									spade.CFrame = CFrame.new(head.Position, mouse.Hit.Position) * CFrame.Angles(0, math.rad(100), 0)
443
								elseif amount == 3 then
444
									spade.CFrame = CFrame.new(head.Position, mouse.Hit.Position) * CFrame.Angles(0, math.rad(80), 0)
445
								elseif amount == 4 then
446
									spade.CFrame = CFrame.new(head.Position, mouse.Hit.Position) * CFrame.Angles(0, math.rad(110), 0)
447
								elseif amount == 5 then
448
									spade.CFrame = CFrame.new(head.Position, mouse.Hit.Position) * CFrame.Angles(0, math.rad(70), 0)
449
								end
450
								spade.Parent = char
451
								local decal1 = Instance.new("Decal1")
452
								decal1.Texture = "rbxassetid://2700856195"
453
								decal1.Face = Enum.NormalId.Top
454
								decal1.Parent = spade
455
								local decal2 = Instance.new("Decal2")
456
								decal2.Texture = "rbxassetid://2700856195"
457
								decal2.Face = Enum.NormalId.Bottom
458
								decal2.Parent = spade
459
								local debounce = false
460
								spade.Touched:Connect(function(hit)
461
								end)
462
								spawn(function()
463
									for i = 1, 180 do
464
										game:GetService("RunService").Stepped:Wait()
465
										for i,v in pairs(spade:GetTouchingParts()) do
466
											if not v:IsDescendantOf(char) and debounce == false then
467
												if v.Parent and v.Parent:FindFirstChildOfClass("Humanoid") then
468
													debounce = true
469
													v.Parent:FindFirstChildOfClass("Humanoid").Health = v.Parent:FindFirstChildOfClass("Humanoid").Health - 20
470
													coroutine.resume(coroutine.create(function()
471
														wait(0.4)
472
														debounce = false
473
													end))
474
												end
475
											end
476
										end
477
										spade.Transparency = 1
478
										spade.CFrame = spade.CFrame * CFrame.new(0.5, 0, 0)
479
									end
480
									for i = 1, 10 do
481
										game:GetService("RunService").Stepped:Wait()
482
										spade.CFrame = spade.CFrame * CFrame.new(0.5, 0, 0)
483
										decal1.Transparency = decal1.Transparency + 0.1
484
										decal2.Transparency = decal2.Transparency + 0.1
485
									end
486
									spade:Destroy()
487
								end)
488
							end
489
							for i = 1, 10 do
490
								game:GetService("RunService").Stepped:Wait()
491
								RS.C0 = RSnor * CFrame.Angles(-2.5, 0, 0) * CFrame.new(0, 0, -1) + Vector3.new(0, 0.7, 0)
492
								LS.C0 = LSnor * CFrame.Angles(-2.5, 0, 0) * CFrame.new(0, 0, -1) + Vector3.new(0, 0.7, 0)
493
								RH.C0 = RHnor * CFrame.Angles(-1, 0, 0)
494
								LH.C0 = LHnor * CFrame.Angles(-1, 0, 0)
495
								rootj.C0 = rootjnor
496
								neck.C0 = necknor
497
							end
498
						end
499
						attack = false
500
						rooted = false
501
						hum.WalkSpeed = 20
502
						hum.JumpPower = 50
503
					end
504
					if input == Enum.KeyCode.X then
505
						attack = true
506
						for i = 1, 4 do
507
							local model = Instance.new("Model")
508
							model.Name = "Spades"
509
							model.Parent = char
510
							local mainpart = Instance.new("Part")
511
							mainpart.Transparency = 1
512
							mainpart.CanCollide = false
513
							mainpart.Anchored = true
514
							mainpart.CFrame = CFrame.new(mouse.Hit.Position) * CFrame.new(0, 3, 0)
515
							mainpart.Parent = model
516
							model.PrimaryPart = mainpart
517
							local spades = {}
518
							for i = 1, 10 do
519
								local spade = Instance.new("Part")
520
								spade.Name = "Spade"
521
								spade.Transparency = 1
522
								spade.Anchored = true
523
								spade.CanCollide = false
524
								spade.Size = Vector3.new(2, 0.05, 2)
525
								spade.Parent = model
526
								local decal1 = Instance.new("Decal")
527
								decal1.Texture = "rbxassetid://2700856195"
528
								decal1.Face = Enum.NormalId.Top
529
								decal1.Transparency = 1
530
								decal1.Parent = spade
531
								local decal2 = Instance.new("Decal")
532
								decal2.Texture = "rbxassetid://2700856195"
533
								decal2.Face = Enum.NormalId.Bottom
534
								decal2.Transparency = 1
535
								decal2.Parent = spade
536
								local debounce = false
537
								spade.Touched:Connect(function(hit)
538
								end)
539
								table.insert(spades, spade)
540
							end
541
							for i = 1, #spades do
542
								spades[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad((360 / #spades) * i) + math.pi / 2, 0) * CFrame.new(-20, 0, 0)
543
							end
544
							for x = 20, 10, -0.5 do
545
								game:GetService("RunService").Stepped:Wait()
546
								mainpart.CFrame = CFrame.new(mouse.Hit.Position) * CFrame.new(0, 3, 0)
547
								for i = 1, #spades do
548
									for i,v in pairs(spades[i]:GetChildren()) do
549
										if v:IsA("Decal") then
550
											v.Transparency = v.Transparency - 0.05
551
										end
552
									end
553
									spades[i].CFrame = spades[i].CFrame:Lerp(mainpart.CFrame * CFrame.Angles(0, math.rad((360 / #spades) * i) + math.pi / 2, 0) * CFrame.new(-x, 0, 0), 0.15)
554
								end
555
							end
556
							for i = 1, 35 do
557
								game:GetService("RunService").Stepped:Wait()
558
								mainpart.CFrame = CFrame.new(mouse.Hit.Position) * CFrame.new(0, 3, 0)
559
								for i = 1, #spades do
560
									spades[i].CFrame = spades[i].CFrame:Lerp(mainpart.CFrame * CFrame.Angles(0, math.rad((360 / #spades) * i) + math.pi / 2, 0) * CFrame.new(-10, 0, 0), 0.15)
561
								end
562
							end
563
							coroutine.resume(coroutine.create(function()
564
								for i = 1, #spades do
565
									coroutine.resume(coroutine.create(function()
566
										for x = 10, 13, 0.3 do
567
											game:GetService("RunService").Stepped:Wait()
568
											spades[i].CFrame = spades[i].CFrame:Lerp(mainpart.CFrame * CFrame.Angles(0, math.rad((360 / #spades) * i) + math.pi / 2, 0) * CFrame.new(-x, 0, 0), 0.15)
569
										end
570
										for x = 1, 15 do
571
											game:GetService("RunService").Stepped:Wait()
572
											spades[i].CFrame = spades[i].CFrame:Lerp(mainpart.CFrame * CFrame.Angles(0, math.rad((360 / #spades) * i) + math.pi / 2, 0) * CFrame.new(-13, 0, 0), 0.15)
573
										end
574
										local debounce = false
575
										for x = 0, 0.5, 0.025 do
576
											game:GetService("RunService").Stepped:Wait()
577
											for i,v in pairs(spades[i]:GetTouchingParts()) do
578
												if not v:IsDescendantOf(char) and debounce == false then
579
													if v.Parent and v.Parent:FindFirstChildOfClass("Humanoid") then
580
														debounce = true
581
														v.Parent:FindFirstChildOfClass("Humanoid").Health = v.Parent:FindFirstChildOfClass("Humanoid").Health - 20
582
														coroutine.resume(coroutine.create(function()
583
															wait(0.4)
584
															debounce = false
585
														end))
586
													end
587
												end
588
											end
589
											spades[i].CFrame = spades[i].CFrame * CFrame.new(x, 0, 0)
590
										end
591
										for x = 0.5, 1, 0.025 do
592
											game:GetService("RunService").Stepped:Wait()
593
											for i,v in pairs(spades[i]:GetChildren()) do
594
												if v:IsA("Decal") then
595
													v.Transparency = v.Transparency + 0.05
596
												end
597
											end
598
											for i,v in pairs(spades[i]:GetTouchingParts()) do
599
												if not v:IsDescendantOf(char) and debounce == false then
600
													if v.Parent and v.Parent:FindFirstChildOfClass("Humanoid") then
601
														debounce = true
602
														v.Parent:FindFirstChildOfClass("Humanoid").Health = v.Parent:FindFirstChildOfClass("Humanoid").Health - 5
603
														coroutine.resume(coroutine.create(function()
604
															wait(0.4)
605
															debounce = false
606
														end))
607
													end
608
												end
609
											end
610
											spades[i].CFrame = spades[i].CFrame * CFrame.new(x, 0, 0)
611
										end
612
										spades[i]:Destroy()
613
									end))
614
									wait(0.05)
615
								end
616
							end))
617
							wait(1)
618
							coroutine.resume(coroutine.create(function()
619
								wait(1.4)
620
								model:Destroy()
621
							end))
622
						end
623
						attack = false
624
					end
625
					if input == Enum.KeyCode.C then
626
						attack = true
627
						rooted = true
628
						local sound = Instance.new("Sound")
629
						sound.SoundId = "rbxassetid://2545011398"
630
						sound.Volume = 10
631
						sound.Parent = head
632
						sound:Play()
633
						repeat
634
							game:GetService("RunService").Stepped:Wait()
635
							RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, math.sin(sine / 20) / 8, 0), 0.15)
636
							LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, -math.sin(sine / 20) / 8, 0), 0.15)
637
							RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
638
							LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
639
							rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.new(0, 0, 0.2 * math.sin(sine / 20)), 0.1)
640
							neck.C0 = neck.C0:Lerp(necknor, 0.15)
641
						until sound.Playing == false
642
						rooted = false
643
						hum.WalkSpeed = 20
644
						hum.JumpPower = 50
645
						local model = Instance.new("Model")
646
						model.Name = "Devs"
647
						model.Parent = char
648
						local mainpart = Instance.new("Part")
649
						mainpart.Transparency = 1
650
						mainpart.CanCollide = false
651
						mainpart.Anchored = true
652
						mainpart.CFrame = CFrame.new(mouse.Hit.Position) * CFrame.new(0, 3, 0)
653
						mainpart.Parent = model
654
						model.PrimaryPart = mainpart
655
						local devs = {}
656
						local devsine = 0
657
						for i = 1, 4 do
658
							local dev = Instance.new("Part")
659
							dev.Name = "Devilsknife"
660
							dev.Transparency = 1
661
							dev.Anchored = true
662
							dev.CanCollide = false
663
							dev.Size = Vector3.new(4, 0.05, 4.6)
664
							dev.Parent = model
665
							local decal1 = Instance.new("Decal")
666
							decal1.Texture = "rbxassetid://2704176861"
667
							decal1.Face = Enum.NormalId.Top
668
							decal1.Transparency = 1
669
							decal1.Parent = dev
670
							local decal2 = Instance.new("Decal")
671
							decal2.Texture = "rbxassetid://2704176861"
672
							decal2.Face = Enum.NormalId.Bottom
673
							decal2.Transparency = 1
674
							decal2.Parent = dev
675
							dev.Touched:Connect(function(hit)
676
							end)
677
							table.insert(devs, dev)
678
						end
679
						local spin = 0
680
						for i = 1, 15 do
681
							game:GetService("RunService").Stepped:Wait()
682
							spin = spin + 12
683
							devsine = devsine + 1
684
							mainpart.CFrame = CFrame.new(mouse.Hit.Position) * CFrame.new(0, 3, 0)
685
							for i = 1, #devs do
686
								for i,v in pairs(devs[i]:GetChildren()) do
687
									if v:IsA("Decal") then
688
										v.Transparency = v.Transparency - 1 / 15
689
									end
690
								end
691
								if i == 1 then
692
									devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(math.sin(sine / 40) * 4, 0, math.sin(sine / 40) * 10)
693
								elseif i == 2 then
694
									devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(-math.sin(sine / 40) * 4, 0, -math.sin(sine / 40) * 10)
695
								elseif i == 3 then
696
									devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(math.sin(sine / 40) * 4, 0, -math.sin(sine / 40) * 10)
697
								elseif i == 4 then
698
									devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(-math.sin(sine / 40) * 4, 0, math.sin(sine / 40) * 10)
699
								end
700
							end
701
						end
702
						local debounce = {}
703
						for i = 1, #devs do
704
							debounce[i] = false
705
						end
706
						for i = 1, 500 do
707
							game:GetService("RunService").Stepped:Wait()
708
							spin = spin + 12
709
							devsine = devsine + 1
710
							mainpart.CFrame = CFrame.new(mouse.Hit.Position) * CFrame.new(0, 3, 0)
711
							for i = 1, #devs do
712
								for i,v in pairs(devs[i]:GetTouchingParts()) do
713
									if not v:IsDescendantOf(char) and debounce[i] == false then
714
										if v.Parent and v.Parent:FindFirstChildOfClass("Humanoid") then
715
											debounce[i] = true
716
											v.Parent:FindFirstChildOfClass("Humanoid").Health = v.Parent:FindFirstChildOfClass("Humanoid").Health - 5
717
											coroutine.resume(coroutine.create(function()
718
												wait(0.4)
719
												debounce[i] = false
720
											end))
721
										end
722
									end
723
								end
724
							end
725
							for i = 1, #devs do
726
								if i == 1 then
727
									devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(math.sin(sine / 40) * 4, 0, math.sin(sine / 40) * 10)
728
								elseif i == 2 then
729
									devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(-math.sin(sine / 40) * 4, 0, -math.sin(sine / 40) * 10)
730
								elseif i == 3 then
731
									devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(math.sin(sine / 40) * 4, 0, -math.sin(sine / 40) * 10)
732
								elseif i == 4 then
733
									devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(-math.sin(sine / 40) * 4, 0, math.sin(sine / 40) * 10)
734
								end
735
							end
736
						end
737
						for i = 1, 15 do
738
							game:GetService("RunService").Stepped:Wait()
739
							for i = 1, #devs do
740
								for i,v in pairs(devs[i]:GetChildren()) do
741
									if v:IsA("Decal") then
742
										v.Transparency = v.Transparency + 1 / 15
743
									end
744
								end
745
								if i == 1 then
746
									devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(math.sin(sine / 40) * 4, 0, math.sin(sine / 40) * 10)
747
								elseif i == 2 then
748
									devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(-math.sin(sine / 40) * 4, 0, -math.sin(sine / 40) * 10)
749
								elseif i == 3 then
750
									devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(math.sin(sine / 40) * 4, 0, -math.sin(sine / 40) * 10)
751
								elseif i == 4 then
752
									devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(-math.sin(sine / 40) * 4, 0, math.sin(sine / 40) * 10)
753
								end
754
							end
755
						end
756
						model:Destroy()
757
						attack = false
758
					end
759
					if input == Enum.KeyCode.V then
760
						attack = true
761
						rooted = true
762
						local sound = Instance.new("Sound")
763
						sound.SoundId = "rbxassetid://2544975373"
764
						sound.Volume = 10
765
						sound.Parent = head
766
						sound:Play()
767
						repeat
768
							game:GetService("RunService").Stepped:Wait()
769
							RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, math.sin(sine / 20) / 8, 0), 0.15)
770
							LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, -math.sin(sine / 20) / 8, 0), 0.15)
771
							RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
772
							LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
773
							rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.new(0, 0, 0.2 * math.sin(sine / 20)), 0.1)
774
							neck.C0 = neck.C0:Lerp(necknor, 0.15)
775
						until sound.Playing == false
776
						rooted = false
777
						hum.WalkSpeed = 20
778
						hum.JumpPower = 50
779
						for i = 1, 60 do
780
							local diamond = Instance.new("Part")
781
							diamond.Name = "Devilsknife"
782
							diamond.Transparency = 1
783
							diamond.Anchored = true
784
							diamond.CanCollide = false
785
							diamond.Size = Vector3.new(3, 0.05, 2)
786
							diamond.Parent = char
787
							local decal1 = Instance.new("Decal")
788
							decal1.Texture = "rbxassetid://2707737978"
789
							decal1.Face = Enum.NormalId.Top
790
							decal1.Transparency = 1
791
							decal1.Parent = diamond
792
							local decal2 = Instance.new("Decal")
793
							decal2.Texture = "rbxassetid://2707737978"
794
							decal2.Face = Enum.NormalId.Bottom
795
							decal2.Transparency = 1
796
							decal2.Parent = diamond
797
							diamond.Touched:Connect(function(hit)
798
							end)
799
							diamond.CFrame = CFrame.new(mouse.Hit.Position) * CFrame.new(0, 3, math.random(-100, 100) / 25)
800
							coroutine.resume(coroutine.create(function()
801
								local movespeed = 0
802
								for i = 1, 15 do
803
									game:GetService("RunService").Stepped:Wait()
804
									for i,v in pairs(diamond:GetChildren()) do
805
										if v:IsA("Decal") then
806
											v.Transparency = v.Transparency - 1 / 15
807
										end
808
									end
809
								end
810
								local debounce = false
811
								for i = 1, 90 do
812
									game:GetService("RunService").Stepped:Wait()
813
									movespeed = movespeed + 0.01
814
									diamond.CFrame = diamond.CFrame * CFrame.new(movespeed, 0, 0)
815
									for i,v in pairs(diamond:GetTouchingParts()) do
816
										if not v:IsDescendantOf(char) and debounce == false then
817
											if v.Parent and v.Parent:FindFirstChildOfClass("Humanoid") then
818
												debounce = true
819
												v.Parent:FindFirstChildOfClass("Humanoid").Health = v.Parent:FindFirstChildOfClass("Humanoid").Health - 10
820
												coroutine.resume(coroutine.create(function()
821
													wait(0.4)
822
													debounce = false
823
												end))
824
											end
825
										end
826
									end
827
								end
828
								for i = 1, 15 do
829
									game:GetService("RunService").Stepped:Wait()
830
									movespeed = movespeed + 0.01
831
									for i,v in pairs(diamond:GetChildren()) do
832
										if v:IsA("Decal") then
833
											v.Transparency = v.Transparency + 1 / 15
834
										end
835
									end
836
									diamond.CFrame = diamond.CFrame * CFrame.new(movespeed, 0, 0)
837
								end
838
								diamond:Destroy()
839
							end))
840
							wait(0.1)
841
						end
842
						attack = false
843
					end
844
					if input == Enum.KeyCode.B and hum.Health <= 30 then
845
						attack = true
846
						rooted = true
847
						local sound = Instance.new("Sound")
848
						sound.SoundId = "rbxassetid://2545011398"
849
						sound.Volume = 10
850
						sound.Parent = head
851
						sound:Play()
852
						repeat
853
							game:GetService("RunService").Stepped:Wait()
854
							RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, math.sin(sine / 20) / 8, 0), 0.15)
855
							LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, -math.sin(sine / 20) / 8, 0), 0.15)
856
							RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
857
							LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
858
							rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.new(0, 0, 0.2 * math.sin(sine / 20)), 0.1)
859
							neck.C0 = neck.C0:Lerp(necknor, 0.15)
860
						until sound.Playing == false
861
						rooted = false
862
						hum.WalkSpeed = 20
863
						hum.JumpPower = 50
864
						local sound = Instance.new("Sound")
865
						sound.SoundId = "rbxassetid://2545211516"
866
						sound.Volume = 10
867
						sound.Parent = head
868
						sound:Play()
869
						repeat
870
							game:GetService("RunService").Stepped:Wait()
871
						until sound.Playing == false
872
						local ticking = 0.6
873
						for i = 1, 40 do
874
							local dev = Instance.new("Part")
875
							dev.Name = "Devilsknife"
876
							dev.Transparency = 1
877
							dev.Anchored = true
878
							dev.CanCollide = false
879
							dev.Size = Vector3.new(4, 0.05, 4.6)
880
							dev.Parent = char
881
							local decal1 = Instance.new("Decal")
882
							decal1.Texture = "rbxassetid://2704176861"
883
							decal1.Face = Enum.NormalId.Top
884
							decal1.Transparency = 1
885
							decal1.Parent = dev
886
							local decal2 = Instance.new("Decal")
887
							decal2.Texture = "rbxassetid://2704176861"
888
							decal2.Face = Enum.NormalId.Bottom
889
							decal2.Transparency = 1
890
							decal2.Parent = dev
891
							dev.Touched:Connect(function(hit)
892
							end)
893
							dev.CFrame = CFrame.new(mouse.Hit.Position) * CFrame.Angles(0, 0, math.pi / 2) + Vector3.new(0, 50, 0)
894
							local spin = 0
895
							local fallspeed = 0
896
							coroutine.resume(coroutine.create(function()
897
								local debounce = false
898
								for i = 1, 60 do
899
									game:GetService("RunService").Stepped:Wait()
900
									if i <= 15 then
901
										for i,v in pairs(dev:GetChildren()) do
902
											if v:IsA("Decal") then
903
												v.Transparency = v.Transparency - 1 / 15
904
											end
905
										end
906
									end
907
									for i,v in pairs(dev:GetTouchingParts()) do
908
										if not v:IsDescendantOf(char) and debounce == false then
909
											if v.Parent and v.Parent:FindFirstChildOfClass("Humanoid") then
910
												debounce = true
911
												v.Parent:FindFirstChildOfClass("Humanoid").Health = v.Parent:FindFirstChildOfClass("Humanoid").Health - 10
912
												coroutine.resume(coroutine.create(function()
913
													wait(0.4)
914
													debounce = false
915
												end))
916
											end
917
										end
918
									end
919
									spin = spin + 12
920
									fallspeed = fallspeed + 0.06
921
									dev.CFrame = dev.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(0, -fallspeed, 0)
922
								end
923
								dev:Destroy()
924
							end))
925
							wait(ticking)
926
							if ticking > 0.2 then
927
								ticking = ticking - 0.05
928
							end
929
						end
930
						local sound = Instance.new("Sound")
931
						sound.SoundId = "rbxassetid://2545018472"
932
						sound.Volume = 10
933
						sound.Parent = head
934
						sound:Play()
935
						repeat
936
							game:GetService("RunService").Stepped:Wait()
937
						until sound.Playing == false
938
						for i = 1, 10 do
939
							local dev = Instance.new("Part")
940
							dev.Name = "Devilsknife"
941
							dev.Transparency = 1
942
							dev.Anchored = true
943
							dev.CanCollide = false
944
							dev.Size = Vector3.new(4, 0.05, 4.6)
945
							dev.Parent = char
946
							local decal1 = Instance.new("Decal")
947
							decal1.Texture = "rbxassetid://2704176861"
948
							decal1.Face = Enum.NormalId.Top
949
							decal1.Transparency = 1
950
							decal1.Parent = dev
951
							local decal2 = Instance.new("Decal")
952
							decal2.Texture = "rbxassetid://2704176861"
953
							decal2.Face = Enum.NormalId.Bottom
954
							decal2.Transparency = 1
955
							decal2.Parent = dev
956
							dev.Touched:Connect(function(hit)
957
							end)
958
							dev.CFrame = CFrame.new(mouse.Hit.Position) * CFrame.Angles(0, 0, math.pi / 2) + Vector3.new(0, 50, 0)
959
							local spin = 0
960
							local fallspeed = 0
961
							coroutine.resume(coroutine.create(function()
962
								local debounce = false
963
								for i = 1, 60 do
964
									game:GetService("RunService").Stepped:Wait()
965
									if i <= 15 then
966
										for i,v in pairs(dev:GetChildren()) do
967
											if v:IsA("Decal") then
968
												v.Transparency = v.Transparency - 1 / 15
969
											end
970
										end
971
									end
972
									for i,v in pairs(dev:GetTouchingParts()) do
973
										if not v:IsDescendantOf(char) and debounce == false then
974
											if v.Parent and v.Parent:FindFirstChildOfClass("Humanoid") then
975
												debounce = true
976
												v.Parent:FindFirstChildOfClass("Humanoid").Health = v.Parent:FindFirstChildOfClass("Humanoid").Health - 10
977
												coroutine.resume(coroutine.create(function()
978
													wait(0.4)
979
													debounce = false
980
												end))
981
											end
982
										end
983
									end
984
									spin = spin + 12
985
									fallspeed = fallspeed + 0.06
986
									dev.CFrame = dev.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(0, -fallspeed, 0)
987
								end
988
								dev:Destroy()
989
							end))
990
							wait(ticking)
991
							if ticking > 0.2 then
992
								ticking = ticking - 0.05
993
							end
994
						end
995
						local giantdev = Instance.new("Part")
996
						giantdev.Name = "Devilsknife"
997
						giantdev.Transparency = 1
998
						giantdev.Anchored = true
999
						giantdev.CanCollide = false
1000
						giantdev.Size = Vector3.new(60, 0.05, 62)
1001
						giantdev.Parent = char
1002
						local decal1 = Instance.new("Decal")
1003
						decal1.Texture = "rbxassetid://2704176861"
1004
						decal1.Face = Enum.NormalId.Top
1005
						decal1.Transparency = 1
1006
						decal1.Parent = giantdev
1007
						local decal2 = Instance.new("Decal")
1008
						decal2.Texture = "rbxassetid://2704176861"
1009
						decal2.Face = Enum.NormalId.Bottom
1010
						decal2.Transparency = 1
1011
						decal2.Parent = giantdev
1012
						giantdev.Touched:Connect(function(hit)
1013
						end)
1014
						giantdev.CFrame = CFrame.new(mouse.Hit.Position) * CFrame.Angles(math.rad(105), 0, math.pi / 2) + Vector3.new(0, 100, 0)
1015
						for i = 1, 180 do
1016
							game:GetService("RunService").Stepped:Wait()
1017
							if i <= 15 then
1018
								for i,v in pairs(giantdev:GetChildren()) do
1019
									if v:IsA("Decal") then
1020
										v.Transparency = v.Transparency - 1 / 15
1021
									end
1022
								end
1023
							end
1024
							giantdev.CFrame = giantdev.CFrame + Vector3.new(0, -0.7, 0, 0)
1025
						end
1026
						Effect(60, "Sphere", Vector3.new(30, 30, 30), Vector3.new(150, 150, 150), CFrame.new(giantdev.Position) + Vector3.new(0, -40, 0), BrickColor.new("Institutional white"), char)
1027
						Effect(60, "KillSphere", Vector3.new(30, 30, 30), Vector3.new(150, 150, 150), CFrame.new(giantdev.Position) + Vector3.new(0, -40, 0), BrickColor.new("Institutional white"), char)
1028
						for i = 1, 5 do
1029
							Effect(60, "Wave", Vector3.new(90, 15, 90), Vector3.new(450, 75, 450), CFrame.new(giantdev.Position) + Vector3.new(0, 28, 0), BrickColor.new("Mid gray"), char)
1030
						end
1031
						giantdev:Destroy()
1032
						wait(1)
1033
						attack = false
1034
					end
1035
				end
1036
			end
1037
		end
1038
	end
1039
end)
1040
1041
-----------------------------------------------------
1042
---------------------Wrapping up---------------------
1043
-----------------------------------------------------
1044
1045
while game:GetService("RunService").Stepped:Wait() do
1046
	sine = sine + 1
1047
	for i,v in pairs(char:GetChildren()) do
1048
		if v:IsA("Accessory") then
1049
			v:Destroy()
1050
		end
1051
		if v.Name == "Head" then
1052
			for i,v in pairs(v:GetChildren()) do
1053
				if v:IsA("Decal") then
1054
					v.Texture = "rbxassetid://241553801"
1055
				end
1056
			end
1057
			v.Color = Color3.new(180 / 255, 180 / 255, 228 / 255)
1058
		end
1059
		if v.Name == "Left Leg" or v.Name == "Right Leg" then
1060
			v.Color = Color3.new(180 / 255, 180 / 255, 228 / 255)
1061
		end
1062
		if (v:IsA("Shirt") or v:IsA("Pants")) and v.Name ~= "Cloth" then
1063
			v:Destroy()
1064
		end
1065
		if v:IsA("BodyColors") then
1066
			v:Destroy()
1067
		end
1068
	end
1069
	if music.Parent == tors then
1070
		music.SoundId = song
1071
		music.Volume = volume
1072
		music.Name = "JevilTheme"
1073
		music.Looped = true
1074
		music.PlaybackSpeed = 1
1075
		music.Playing = playing
1076
		timepos = music.TimePosition
1077
	else
1078
		music = Instance.new("Sound")
1079
		music.TimePosition = timepos
1080
		music.SoundId = song
1081
		music.Volume = volume
1082
		music.Name = "JevilTheme"
1083
		music.Looped = true
1084
		music.PlaybackSpeed = 1
1085
		music.Parent = tors
1086
		music.Playing = playing
1087
	end
1088
	if rooted then
1089
		hum.WalkSpeed = 0
1090
		hum.JumpPower = 0
1091
	end
1092
	local torsvel = (tors.Velocity * Vector3.new(1, 0, 1)).Magnitude
1093
	local hitfloor = workspace:FindPartOnRay(Ray.new(char.HumanoidRootPart.CFrame.Position, ((CFrame.new(char.HumanoidRootPart.Position, char.HumanoidRootPart.Position - Vector3.new(0, 1, 0))).LookVector).Unit * 4), char)
1094
	if attack == false then
1095
		if JevilForm == false then
1096
			if torsvel < 1 and hitfloor then
1097
				RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, math.sin(sine / 20) / 8, 0), 0.15)
1098
				LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, -math.sin(sine / 20) / 8, 0), 0.15)
1099
				RH.C0 = RH.C0:Lerp(RHnor * CFrame.new(0, -0.2 * math.sin(sine / 20), 0), 0.15)
1100
				LH.C0 = LH.C0:Lerp(LHnor * CFrame.new(0, -0.2 * math.sin(sine / 20), 0), 0.15)
1101
				rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.new(0, 0, 0.2 * math.sin(sine / 20)), 0.15)
1102
				neck.C0 = neck.C0:Lerp(necknor, 0.15)
1103
			end
1104
			if torsvel > 1 and hitfloor then
1105
				RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.1, 0, math.sin(sine / 7)), 0.15)
1106
				LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.1, 0, math.sin(sine / 7)), 0.15)
1107
				RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(0, 0, -math.sin(sine / 7) / 1.5 - 0.25) * CFrame.new(-math.cos(sine / 7) / 2, -math.cos(sine / 7) / 2, 0), 0.15)
1108
				LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(0, 0, -math.sin(sine / 7) / 1.5 + 0.25) * CFrame.new(-math.cos(sine / 7) / 2, math.cos(sine / 7) / 2, 0), 0.15)
1109
				rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(0.1, rootpart.RotVelocity.Y / 70, math.sin(sine / 7) / 5) * CFrame.new(0, 0, math.sin(sine / 3.5) / 10), 0.15)
1110
				neck.C0 = neck.C0:Lerp(necknor * CFrame.Angles(0, 0, -head.RotVelocity.Y / 15), 0.15)
1111
			end
1112
			if not hitfloor then
1113
				RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(math.clamp(tors.Velocity.Y / 200 - 0.3, -hum.JumpPower / 200 - 0.3, hum.JumpPower / 200 - 0.3), 0, 0), 0.15)
1114
				LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(math.clamp(tors.Velocity.Y / 200 - 0.3, -hum.JumpPower / 200 - 0.3, hum.JumpPower / 200 - 0.3), 0, 0), 0.15)
1115
				RH.C0 = RH.C0:Lerp(RHnor + Vector3.new(0, 0.6, -0.4), 0.15)
1116
				LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(0, 0, 0.3) + Vector3.new(0, 0.1, 0), 0.15)
1117
				rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(-math.clamp(tors.Velocity.Y / 100, -hum.JumpPower / 100, hum.JumpPower / 100), 0, 0), 0.15)
1118
				neck.C0 = neck.C0:Lerp(necknor, 0.15)
1119
			end
1120
		end
1121
		if JevilForm == true then
1122
			if torsvel < 1 and hum.Health > 30 then
1123
				RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, math.sin(sine / 20) / 8, 0), 0.15)
1124
				LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, -math.sin(sine / 20) / 8, 0), 0.15)
1125
				RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
1126
				LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
1127
				rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.new(0, 0, 0.2 * math.sin(sine / 20)), 0.1)
1128
				neck.C0 = neck.C0:Lerp(necknor, 0.15)
1129
			end
1130
			if torsvel < 1 and hum.Health <= 30 then
1131
				RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.2 + math.cos(sine / 40) / 10, 0, 0.5) + Vector3.new(0, math.sin(sine / 40) / 10, 0), 0.15)
1132
				LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.2 + math.cos(sine / 40) / 10, 0, -0.5) + Vector3.new(0, math.sin(sine / 40) / 10, 0), 0.15)
1133
				RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.1 + math.cos(sine / 40) / 10, 0, 0.5), 0.15)
1134
				LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.1 + math.cos(sine / 40) / 10, 0, -0.5), 0.15)
1135
				rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(0.5, 0, 0) + Vector3.new(0.1 * math.cos(sine / 40), 0.1 * math.sin(sine / 40), 0), 0.1)
1136
				neck.C0 = neck.C0:Lerp(necknor, 0.15)
1137
			end
1138
			if torsvel > 1 then
1139
				RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(0, 0.4, (-math.pi / 2 + 0.7) + math.sin(sine / 20) / 10), 0.15)
1140
				LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(0, -0.4, (math.pi / 2 - 0.7) - math.sin(sine / 20) / 10), 0.15)
1141
				RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(0, 0, -math.pi / 2 + 0.7), 0.15)
1142
				LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(0, 0, math.pi / 2 - 0.7), 0.15)
1143
				rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(0.7 - math.cos(sine / 20) / 10, rootpart.RotVelocity.Y / 30, 0) + Vector3.new(0, 0.2 * math.sin(sine / 20), 0), 0.15)
1144
				neck.C0 = neck.C0:Lerp(necknor * CFrame.Angles(-0.7, 0, -head.RotVelocity.Y / 10), 0.15)
1145
			end
1146
		end
1147
	elseif rooted == false then
1148
		if JevilForm == false then
1149
			if torsvel < 1 and hitfloor then
1150
				RH.C0 = RH.C0:Lerp(RHnor, 0.15)
1151
				LH.C0 = LH.C0:Lerp(LHnor, 0.15)
1152
			end
1153
			if torsvel > 1 and hitfloor then
1154
				RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(0, 0, -math.sin(sine / 7) / 1.5 - 0.25) * CFrame.new(-math.cos(sine / 7) / 2, -math.cos(sine / 7) / 2, 0), 0.15)
1155
				LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(0, 0, -math.sin(sine / 7) / 1.5 + 0.25) * CFrame.new(-math.cos(sine / 7) / 2, math.cos(sine / 7) / 2, 0), 0.15)
1156
			end
1157
			if not hitfloor then
1158
				RH.C0 = RH.C0:Lerp(RHnor + Vector3.new(0, 0.6, -0.4), 0.15)
1159
				LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(0, 0, 0.3) + Vector3.new(0, 0.1, 0), 0.15)
1160
			end
1161
		end
1162
		if JevilForm == true then
1163
			if torsvel < 1 and hum.Health > 30 then
1164
				RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, math.sin(sine / 20) / 8, 0), 0.15)
1165
				LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, -math.sin(sine / 20) / 8, 0), 0.15)
1166
				RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
1167
				LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
1168
				rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.new(0, 0, 0.2 * math.sin(sine / 20)), 0.1)
1169
				neck.C0 = neck.C0:Lerp(necknor, 0.15)
1170
			end
1171
			if torsvel < 1 and hum.Health <= 30 then
1172
				RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.2 + math.cos(sine / 40) / 10, 0, 0.5) + Vector3.new(0, math.sin(sine / 40) / 10, 0), 0.15)
1173
				LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.2 + math.cos(sine / 40) / 10, 0, -0.5) + Vector3.new(0, math.sin(sine / 40) / 10, 0), 0.15)
1174
				RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.1 + math.cos(sine / 40) / 10, 0, 0.5), 0.15)
1175
				LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.1 + math.cos(sine / 40) / 10, 0, -0.5), 0.15)
1176
				rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(0.5, 0, 0) + Vector3.new(0.1 * math.cos(sine / 40), 0.1 * math.sin(sine / 40), 0), 0.1)
1177
				neck.C0 = neck.C0:Lerp(necknor, 0.15)
1178
			end
1179
			if torsvel > 1 then
1180
				RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(0, 0.4, (-math.pi / 2 + 0.7) + math.sin(sine / 20) / 10), 0.15)
1181
				LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(0, -0.4, (math.pi / 2 - 0.7) - math.sin(sine / 20) / 10), 0.15)
1182
				RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(0, 0, -math.pi / 2 + 0.7), 0.15)
1183
				LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(0, 0, math.pi / 2 - 0.7), 0.15)
1184
				rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(0.7 - math.cos(sine / 20) / 10, rootpart.RotVelocity.Y / 30, 0) + Vector3.new(0, 0.2 * math.sin(sine / 20), 0), 0.15)
1185
				neck.C0 = neck.C0:Lerp(necknor * CFrame.Angles(-0.7, 0, -head.RotVelocity.Y / 10), 0.15)
1186
			end
1187
		end
1188
	end
1189
end