View difference between Paste ID: UcqyTmLf and JkT7gk5D
SHOW: | | - or go back to the newest paste.
1
 
2
-- [[ Name: Hotline by Helkern ]] --
3
-- [[ Converted/Fixed/Aligned: By Melon ]] --
4
-- [[ Reanimate: By Emper ]] --
5
-- [[ https://www.roblox.com/catalog/4819740796/Robox ]] --
6
-- [[ https://www.roblox.com/catalog/5552252553/Kinetic-Staff] ]] --
7
-- [[ https://www.roblox.com/catalog/9867487176/Le-Rouge-Cross-body-Bag-3-0 ]] --
8
-- [[ https://www.roblox.com/catalog/9867481700/Le-Rouge-Cross-body-Bag-1-0 ]] --
9
-- [[ https://www.roblox.com/catalog/3409612660/International-Fedora-USA ]] --
10
-- [[ https://www.roblox.com/catalog/3033910400/International-Fedora-Germany ]] --
11
-- [[ https://www.roblox.com/catalog/3033908130/International-Fedora-France ]] --
12
-- [[ https://www.roblox.com/catalog/3398308134/International-Fedora-Canada ]] --
13
14
game:GetService("StarterGui"):SetCore("SendNotification", { 
15
	Title = "Melon's (FE) Converts/Scripts";
16
	Text = "Thanks for using!";
17
	Icon = "rbxthumb://type=Asset&id=11561641603&w=150&h=150"})
18
Duration = 3;
19
20
if not game:IsLoaded() then
21
	game.Loaded:Wait()
22
end
23
24
local function FindInstance(Parent, ClassName, Name)
25
	for _, Instance in pairs(Parent:GetChildren()) do
26
		if Instance:IsA(ClassName) and Instance.Name == Name then
27
			return Instance
28
		end
29
	end
30
end
31
32
local function WaitForClass(Parent, ClassName)
33
	local Instance = Parent:FindFirstChildOfClass(ClassName)
34
35
	while not Instance and Parent do
36
		Parent.ChildAdded:Wait()
37
		Instance = Parent:FindFirstChildOfClass(ClassName)
38
	end
39
40
	return Instance
41
end
42
43
local function WaitForClassOfName(Parent, ...)
44
	local Instance = FindInstance(Parent, ...)
45
46
	while not Instance and Parent do
47
		Parent.ChildAdded:Wait()
48
		Instance = FindInstance(Parent, ...)
49
	end
50
51
	return Instance
52
end
53
54
local Fling = { }
55
local Aligns = { }
56
local Blacklist = { }
57
local Accessories = { }
58
local Attachments = { }
59
60
local Instancenew = Instance.new
61
62
local taskwait = task.wait
63
local taskspawn = task.spawn
64
local taskdefer = task.defer
65
66
local mathabs = math.abs
67
local mathcos = math.cos
68
local mathrandom = math.random
69
70
local stringmatch = string.match
71
72
local osclock = os.clock
73
74
local tableinsert = table.insert
75
local tableclear = table.clear
76
local tablefind = table.find
77
78
local CFramenew = CFrame.new
79
local CFrameAngles = CFrame.Angles
80
local CFrameidentity = CFrame.identity
81
82
local Vector3new = Vector3.new
83
local Vector3zero = Vector3.zero
84
85
local Sleep = CFrameidentity
86
local Velocity = Vector3new(0, 16384, 0)
87
local Angular = 0
88
local Linear = 0
89
90
local Workspace = game:FindFirstChildOfClass("Workspace")
91
local CurrentCamera = Workspace.CurrentCamera
92
93
local Players = game:FindFirstChildOfClass("Players")
94
95
local LocalPlayer = Players.LocalPlayer
96
local Mouse = LocalPlayer:GetMouse()
97
98
local PostSimulation = game:FindFirstChildOfClass("RunService").PostSimulation
99
100
local Character = LocalPlayer.Character
101
local CharacterClone = Instancenew("Model")
102
 
103
local StarterGui = game:FindFirstChildOfClass("StarterGui")
104
local BindableEvent = Instancenew("BindableEvent")
105
106
local UserInputService = game:FindFirstChildOfClass("UserInputService")
107
local UserInputType = Enum.UserInputType
108
109
local MouseButton1 = UserInputType.MouseButton1
110
local Touch = UserInputType.Touch
111
112
local InputBegan = UserInputService.InputBegan:Connect(function(Input, GameProcessed)
113
	local Type = Input.UserInputType
114
	
115
	if not GameProcessed and ( Type == MouseButton1 or Type == Touch ) then
116
		local Target = Mouse.Target
117
		if Target and not Target.Anchored and not Target:IsDescendantOf(CharacterClone) and not Target:IsDescendantOf(Character) and not tablefind(Fling, Target) then
118
			local Parent = Target.Parent
119
120
			if Parent:IsA("Model") and Parent ~= Character and Parent:FindFirstChildOfClass("Humanoid") then
121
				local HumanoidRootPart = FindInstance(Parent, "BasePart", "HumanoidRootPart") or FindInstance(Parent, "BasePart", "Torso") or FindInstance(Parent, "BasePart", "Head")
122
123
				if HumanoidRootPart and not tablefind(Fling, HumanoidRootPart) then
124
					tableinsert(Fling, HumanoidRootPart)
125
					return
126
				end
127
			end
128
129
			tableinsert(Fling, Target)
130
		end
131
	end
132
end)
133
134
local function Part(Name, Size)
135
	local Part = Instancenew("Part")
136
	Part.Name = Name
137
	Part.Size = Size
138
	Part.Transparency = 1
139
	Part.Parent = CharacterClone
140
141
	return Part
142
end
143
144
local function Motor6D(Name, Part0, Part1, C0, C1)
145
	local Motor6D = Instancenew("Motor6D")
146
	Motor6D.Name = Name
147
	Motor6D.Part0 = Part0
148
	Motor6D.Part1 = Part1
149
	Motor6D.C0 = C0
150
	Motor6D.C1 = C1
151
	Motor6D.Parent = Part0
152
153
	return Motor6D
154
end
155
156
local function Attachment(Name, CFrame, Parent)
157
	local Attachment = Instancenew("Attachment")
158
	Attachment.Name = Name
159
	Attachment.CFrame = CFrame
160
	Attachment.Parent = Parent
161
162
	tableinsert(Attachments, Attachment)
163
	return Attachment
164
end
165
166
local LimbSize = Vector3new(1, 2, 1)
167
local TorsoSize = Vector3new(2, 2, 1)
168
169
local Head = Part("Head", Vector3new(2, 1, 1))
170
local Torso = Part("Torso", TorsoSize)
171
local LeftArm = Part("Left Arm", LimbSize)
172
local RightArm = Part("Right Arm", LimbSize)
173
local LeftLeg = Part("Left Leg", LimbSize)
174
local RightLeg = Part("Right Leg", LimbSize)
175
local HumanoidRootPart = Part("HumanoidRootPart", TorsoSize)
176
177
local FakeRA = Instance.new("Part")
178
FakeRA.Size = Vector3.new(1,2,1)
179
FakeRA.Transparency = 1
180
FakeRA.BrickColor = BrickColor.new("Institutional White")
181
FakeRA.Parent = RightArm
182
183
local FRAW = Instance.new("Weld")
184
FRAW.Part0 = RightArm
185
FRAW.Part1 = FakeRA
186
FRAW.C0 = CFrame.new(0, 0, 0)
187
FRAW.Parent = RightArm
188
189
local FakeRA2 = Instance.new("Part")
190
FakeRA2.Size = Vector3.new(1,2,1)
191
FakeRA2.Transparency = 1
192
FakeRA2.BrickColor = BrickColor.new("Institutional White")
193
FakeRA2.Parent = RightArm
194
195
local FRAW2 = Instance.new("Weld")
196
FRAW2.Part0 = RightArm
197
FRAW2.Part1 = FakeRA2
198
FRAW2.C0 = CFrame.new(0, 0, 0)
199
FRAW2.Parent = RightArm
200
201
local FakeRA3 = Instance.new("Part")
202
FakeRA3.Size = Vector3.new(1,2,1)
203
FakeRA3.Transparency = 1
204
FakeRA3.BrickColor = BrickColor.new("Institutional White")
205
FakeRA3.Parent = RightArm
206
207
local FRAW3 = Instance.new("Weld")
208
FRAW3.Part0 = RightArm
209
FRAW3.Part1 = FakeRA3
210
FRAW3.C0 = CFrame.new(0, 0, 0)
211
FRAW3.Parent = RightArm
212
-- 3 welds and parts :skul:
213
local Part = nil
214
215
if Character then
216
	Part = FindInstance(Character, "BasePart", "HumanoidRootPart") or FindInstance(Character, "BasePart", "Head") or FindInstance(Character, "BasePart", "Torso") or FindInstance(Character, "BasePart", "UpperTorso")
217
end
218
219
if Part then
220
	HumanoidRootPart.CFrame = Part.CFrame
221
else
222
	local SpawnLocations = { }
223
224
	for _, SpawnLocation in pairs(Workspace:GetDescendants()) do
225
		if SpawnLocation:IsA("SpawnLocation") then
226
			tableinsert(SpawnLocations, SpawnLocation)
227
		end
228
	end
229
230
	local Amount = # SpawnLocations
231
232
	if Amount > 0 then
233
		local SpawnLocation = SpawnLocations[mathrandom(1, Amount)]
234
		HumanoidRootPart.CFrame = SpawnLocation.CFrame * CFramenew(0, SpawnLocation.Size.Y / 2 + 3, 0)
235
	else
236
		HumanoidRootPart.CFrame = CFrameidentity
237
	end
238
end
239
240
local face = Instancenew("Decal")
241
face.Name = "face"
242
face.Parent = Head
243
244
local AccessoryTable = { 
245
    -- Please give credits if used. --
246
	-- Free --
247
	{ Mesh = "4819720316", Texture = "4819722776", Instance = Torso, CFrame = CFrameAngles(0, 0, 105) },
248
	{ Mesh = "3030546036", Texture = "3033903209", Instance = RightArm, CFrame = CFrameAngles(-90, 0, -89.5) },
249
	{ Mesh = "3030546036", Texture = "3360978739", Instance = LeftArm, CFrame = CFrameAngles(-90, 0, 89.5) },
250
	{ Mesh = "3030546036", Texture = "3409604993", Instance = RightLeg, CFrame = CFrameAngles(-90, 0, -89.5) },
251
	{ Mesh = "3030546036", Texture = "3033898741", Instance = LeftLeg, CFrame = CFrameAngles(-90, 0, 89.5) },
252
  
253
    { Mesh = "9867442567", Texture = "9867451480", Instance = FakeRA, CFrame = CFramenew(-0.25, -1.45, -0.45) * CFrameAngles(0,0,-0.75) },
254
    { Mesh = "9867442661", Texture = "9867451480", Instance = FakeRA2, CFrame = CFramenew(-0.25, -3.45, -0.45) * CFrameAngles(0.05,0,-0.75) },
255
    { Mesh = "5548423017", Texture = "5548423938", Instance = FakeRA3, CFrame = CFramenew(-0.30,-0.15,-0.15) * CFrameAngles(0, -1.55, 0.60) },
256
}
257
258
for _, Table in pairs(AccessoryTable) do
259
	if type(Table.Mesh) ~= "string" then
260
		Table.Mesh = ""
261
	end
262
	if type(Table.Texture) ~= "string" then
263
		Table.Texture = ""
264
	end
265
end
266
267
Motor6D("Right Shoulder", Torso, RightArm, CFramenew(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0), CFramenew(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0))
268
Motor6D("Left Shoulder", Torso, LeftArm, CFramenew(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0), CFramenew(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0))
269
Motor6D("Right Hip", Torso, RightLeg, CFramenew(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0), CFramenew(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0))
270
Motor6D("Left Hip", Torso, LeftLeg, CFramenew(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0), CFramenew(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0))
271
Motor6D("Neck", Torso, Head, CFramenew(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), CFramenew(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0))
272
Motor6D("RootJoint", HumanoidRootPart, Torso, CFramenew(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), CFramenew(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0))
273
274
Attachment("HairAttachment", CFramenew(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Head)
275
Attachment("HatAttachment", CFramenew(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Head)
276
Attachment("FaceFrontAttachment", CFramenew(0, 0, -0.600000024, 1, 0, 0, 0, 1, 0, 0, 0, 1), Head)
277
Attachment("FaceCenterAttachment", CFramenew(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Head)
278
Attachment("NeckAttachment", CFramenew(0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
279
Attachment("BodyFrontAttachment", CFramenew(0, 0, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
280
Attachment("BodyBackAttachment", CFramenew(0, 0, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
281
Attachment("LeftCollarAttachment", CFramenew(-1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
282
Attachment("RightCollarAttachment", CFramenew(1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
283
Attachment("WaistFrontAttachment", CFramenew(0, -1, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
284
Attachment("WaistCenterAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
285
Attachment("WaistBackAttachment", CFramenew(0, -1, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
286
Attachment("LeftShoulderAttachment", CFramenew(0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), LeftArm)
287
Attachment("LeftGripAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), LeftArm)
288
Attachment("RightShoulderAttachment", CFramenew(0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), RightArm)
289
Attachment("RightGripAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), RightArm)
290
Attachment("LeftFootAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), LeftLeg)
291
Attachment("RightFootAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), RightLeg)
292
Attachment("RootAttachment", CFramenew(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), HumanoidRootPart)
293
294
local Humanoid = Instancenew("Humanoid", CharacterClone)
295
Instancenew("Animator", Humanoid)
296
297
Instancenew("LocalScript", CharacterClone).Name = "Animate"
298
299
CharacterClone.PrimaryPart = Head
300
CharacterClone.Parent = Workspace
301
302
local function DescendantAdded(Instance)
303
	if Instance:IsA("Accessory") then
304
		taskspawn(function()
305
			local Handle = WaitForClassOfName(Instance, "BasePart", "Handle")
306
			local Attachment = WaitForClass(Handle, "Attachment")
307
308
			local Clone = Instance:Clone()
309
310
			local CloneHandle = FindInstance(Clone, "BasePart", "Handle")
311
			CloneHandle.Transparency = 1
312
			CloneHandle:BreakJoints()
313
314
			local AccessoryWeld = Instancenew("Weld")
315
			AccessoryWeld.Name = "AccessoryWeld"
316
			AccessoryWeld.Part0 = CloneHandle
317
			AccessoryWeld.C0 = Attachment.CFrame
318
319
			local Name = Attachment.Name
320
321
			for _, TableAttachment in pairs(Attachments) do
322
				if TableAttachment.Name == Name then
323
					AccessoryWeld.Part1 = TableAttachment.Parent
324
					AccessoryWeld.C1 = TableAttachment.CFrame
325
				end
326
			end
327
328
			AccessoryWeld.Parent = CloneHandle
329
			Clone.Parent = CharacterClone
330
331
			tableinsert(Accessories, Clone)
332
333
			local IsAMeshPart = CloneHandle:IsA("MeshPart")
334
			local Mesh = IsAMeshPart and CloneHandle or WaitForClass(CloneHandle, "SpecialMesh")
335
			local Id = IsAMeshPart and "TextureID" or "TextureId"
336
337
			for _, Table in pairs(AccessoryTable) do
338
				local Instance = Table.Instance
339
340
				if Instance then
341
					if stringmatch(Mesh.MeshId, Table.Mesh) and stringmatch(Mesh[Id], Table.Texture) and not tablefind(Blacklist, Instance) then
342
						tableinsert(Blacklist, Instance)
343
						tableinsert(Aligns, { Handle, Instance, Table.CFrame or CFrameidentity })
344
						return
345
					end
346
				end
347
			end
348
349
			tableinsert(Aligns, { Handle, CloneHandle, CFrameidentity })
350
		end)
351
	elseif Instance:IsA("JointInstance") then
352
		taskspawn(function()
353
			taskwait()
354
			Instance:Destroy()
355
		end)
356
	end
357
end
358
359
local function CharacterAdded(Character)
360
	if Character ~= CharacterClone then		
361
		PostSimulation:Wait()
362
363
		local Backpack = LocalPlayer:FindFirstChildOfClass("Backpack")
364
365
		if Backpack then
366
			Backpack:ClearAllChildren()
367
		end
368
369
		tableclear(Aligns)
370
		tableclear(Blacklist)
371
372
		for _, Accessory in pairs(Accessories) do
373
			Accessory:Destroy()
374
		end
375
376
		local CurrentCameraCFrame = CurrentCamera.CFrame
377
378
		LocalPlayer.Character = CharacterClone
379
		CurrentCamera.CameraSubject = CharacterClone.Head
380
381
		taskspawn(function()
382
			CurrentCamera:GetPropertyChangedSignal("CFrame"):Wait()
383
			CurrentCamera.CFrame = CurrentCameraCFrame
384
		end)
385
386
		local CharacterHumanoidRootPart = WaitForClassOfName(Character, "BasePart", "HumanoidRootPart")
387
388
		for Index, Value in pairs(Fling) do
389
			local BasePart = nil
390
391
			if typeof(Value) == "Instance" then 
392
				if Value:IsA("BasePart") then
393
					BasePart = Value
394
				elseif Value:IsA("Humanoid") then
395
					local Model = Value.Parent
396
397
					if Model ~= Character and Model:IsA("Model") then
398
						BasePart = FindInstance(Model, "BasePart", "HumanoidRootPart") or FindInstance(Model, "BasePart", "Head") or Model:FindFirstChildOfClass("BasePart")
399
					end
400
				elseif Value:IsA("Model") and Value ~= Character then
401
					BasePart = FindInstance(Value, "BasePart", "HumanoidRootPart") or FindInstance(Value, "BasePart", "Head") or Value:FindFirstChildOfClass("BasePart")
402
				end
403
			end
404
405
			if BasePart then
406
				local clock = osclock()
407
408
				while CharacterHumanoidRootPart and BasePart and osclock() - clock <= 1 and BasePart.AssemblyLinearVelocity.Magnitude <= 60 do
409
					CharacterHumanoidRootPart.AssemblyAngularVelocity = Velocity
410
					CharacterHumanoidRootPart.AssemblyLinearVelocity = Velocity
411
412
					CharacterHumanoidRootPart.CFrame = BasePart.CFrame + Vector3new(0, - 1, 0)
413
					PostSimulation:Wait()
414
				end
415
			end
416
		end
417
418
		tableclear(Fling)
419
420
		if CharacterHumanoidRootPart then
421
			CharacterHumanoidRootPart.AssemblyAngularVelocity = Vector3zero
422
			CharacterHumanoidRootPart.AssemblyLinearVelocity = Vector3zero
423
424
			CharacterHumanoidRootPart.CFrame = CFramenew(HumanoidRootPart.Position + Vector3new(mathrandom(- 32, 32), 0, mathrandom(- 32, 32)))
425
			PostSimulation:Wait()
426
		end
427
428
		Character:BreakJoints()
429
430
		for _, Instance in pairs(Character:GetDescendants()) do
431
			DescendantAdded(Instance)
432
		end
433
434
		Character.DescendantAdded:Connect(DescendantAdded)
435
	end
436
end
437
438
local function Align(Part0, Part1, CFrame)
439
	if Part0.ReceiveAge == 0 and not Part0.Anchored and # Part0:GetJoints() == 0 then
440
		Part0.AssemblyAngularVelocity = Vector3new(0, Angular, 0)
441
442
		local Part1CFrame = Part1.CFrame
443
		local LinearVelocity = Part1.AssemblyLinearVelocity * Linear
444
		local Magnitude = LinearVelocity.Magnitude < Linear
445
446
		if Magnitude then
447
			local LookVector = Part1CFrame.LookVector * Linear
448
			Part0.AssemblyLinearVelocity = Vector3new(LookVector.X, Linear, LookVector.Z)
449
		else
450
			Part0.AssemblyLinearVelocity = Vector3new(LinearVelocity.X, Linear, LinearVelocity.Z)
451
		end
452
453
		Part0.CFrame = Part1CFrame * ( Magnitude and Sleep or CFrameidentity ) * CFrame
454
	end
455
end
456
457
if Character then
458
	CharacterAdded(Character)
459
end
460
461
local Added = LocalPlayer.CharacterAdded:Connect(CharacterAdded)
462
463
local Connection = game:FindFirstChildOfClass("RunService").PostSimulation:Connect(function()
464
	local osclock = osclock()
465
	local Axis = 0.004 * mathcos(osclock * 17.5)
466
467
	Sleep = CFramenew(0, Axis, 0)
468
	Angular = mathcos(osclock)
469
	Linear = 26
470
471
	for _, Table in pairs(Aligns) do
472
		Align(Table[1], Table[2], Table[3])
473
	end
474
475
	if sethiddenproperty then
476
		sethiddenproperty(LocalPlayer, "SimulationRadius", 10000000)
477
	end
478
479
	StarterGui:SetCore("ResetButtonCallback", BindableEvent) -- This is if it gets overriden, just like in MyWorld testing place.
480
end)
481
482
local function Event()
483
	CharacterClone:Destroy()
484
end
485
486
BindableEvent.Event:Connect(Event)
487
488
CharacterClone:GetPropertyChangedSignal("Parent"):Connect(function()
489
	if not CharacterClone.Parent then
490
		Added:Disconnect()
491
		Connection:Disconnect()
492
493
		CharacterClone:Destroy()
494
495
		if BindableEvent then
496
			BindableEvent:Destroy()
497
		end
498
499
		StarterGui:SetCore("ResetButtonCallback", true)
500
	end
501
end)
502
503
BindableEvent:GetPropertyChangedSignal("Parent"):Connect(Event)
504
505
506
game:GetService("StarterGui"):SetCore("SendNotification", { 
507
	Title = "Melon's (FE) Converts/Scripts";
508
	Text = "Loaded successfully!";
509
	Icon = "rbxthumb://type=Asset&id=11561641603&w=150&h=150"})
510
Duration = 3;
511
512
script.Name = "Banisher Gun V3 / 1"
513
--//====================================================\\--
514
--||			   CREATED BY SHACKLUSTER               ||--
515
--||               EDITED BY EBICGAMERMOLMENT           ||--
516
--\\====================================================//--
517
518
wait(0.2)
519
520
Player = game:GetService("Players").LocalPlayer
521
PlayerGui = Player.PlayerGui
522
Cam = workspace.CurrentCamera
523
Backpack = Player.Backpack
524
Character = Player.Character
525
Humanoid = Character.Humanoid
526
Mouse = Player:GetMouse()
527
RootPart = Character["HumanoidRootPart"]
528
Torso = Character["Torso"]
529
Head = Character["Head"]
530
RightArm = Character["Right Arm"]
531
LeftArm = Character["Left Arm"]
532
RightLeg = Character["Right Leg"]
533
LeftLeg = Character["Left Leg"]
534
RootJoint = RootPart["RootJoint"]
535
Neck = Torso["Neck"]
536
RightShoulder = Torso["Right Shoulder"]
537
LeftShoulder = Torso["Left Shoulder"]
538
RightHip = Torso["Right Hip"]
539
LeftHip = Torso["Left Hip"]
540
local sick = Instance.new("Sound",Torso)
541
sick.SoundId = "rbxassetid://930541401"
542
sick.Looped = true
543
Mode = "Glitch"
544
sick.Pitch = 1
545
sick.Volume = 2
546
sick.TimePosition = 110
547
Character.Archivable = true
548
Humanoid.DisplayDistanceType = "None"
549
550
local naeeym2 = Instance.new("BillboardGui",Character)
551
naeeym2.AlwaysOnTop = true
552
naeeym2.Size = UDim2.new(7,35,5,35)
553
naeeym2.StudsOffset = Vector3.new(0,3,0)
554
naeeym2.Adornee = Character.Head
555
naeeym2.Name = "Name"
556
local tecks2 = Instance.new("TextLabel",naeeym2)
557
tecks2.BackgroundTransparency = 1
558
tecks2.TextScaled = true
559
tecks2.BorderSizePixel = 0
560
tecks2.Text = "The Glitched."
561
tecks2.Font = "Code"
562
tecks2.TextSize = 40
563
tecks2.TextTransparency = 1
564
tecks2.TextStrokeTransparency = 1
565
tecks2.TextColor3 = Color3.new(1/0,0/1,1/0)
566
tecks2.Size = UDim2.new(1,0,0.5,0)
567
tecks2.Parent = naeeym2
568
569
IT = Instance.new
570
CF = CFrame.new
571
VT = Vector3.new
572
RAD = math.rad
573
C3 = Color3.new
574
UD2 = UDim2.new
575
BRICKC = BrickColor.new
576
ANGLES = CFrame.Angles
577
EULER = CFrame.fromEulerAnglesXYZ
578
COS = math.cos
579
ACOS = math.acos
580
SIN = math.sin
581
ASIN = math.asin
582
ABS = math.abs
583
MRANDOM = math.random
584
FLOOR = math.floor
585
586
--//=================================\\
587
--|| 	      USEFUL VALUES
588
--\\=================================//
589
590
Animation_Speed = 3
591
local FORCERESET = false
592
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
593
local Speed = 16
594
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
595
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
596
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
597
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
598
local DAMAGEMULTIPLIER = 1
599
local ANIM = "Idle"
600
local ATTACK = false
601
local EQUIPPED = false
602
local HOLD = false
603
local COMBO = 1
604
local Rooted = false
605
local INTRO = false
606
local Gun = IT("Model")
607
Gun.Name = "Gun"
608
local SINE = 0
609
local KEYHOLD = false
610
local CHANGE = 2 / Animation_Speed
611
local WALKINGANIM = false
612
local VALUE1 = false
613
local VALUE2 = false
614
local ROBLOXIDLEANIMATION = IT("Animation")
615
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
616
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
617
--ROBLOXIDLEANIMATION.Parent = Humanoid
618
local WEAPONGUI = IT("ScreenGui", PlayerGui)
619
WEAPONGUI.Name = "BanishV3Gui"
620
local Weapon = IT("Model")
621
Weapon.Name = "Adds"
622
local Effects = IT("Folder", Weapon)
623
Effects.Name = "Effects"
624
local ANIMATOR = Humanoid.Animator
625
local ANIMATE = Character:FindFirstChild("Animate")
626
local UNANCHOR = true
627
local TOBANISH = {}
628
script.Parent = PlayerGui
629
630
--//=================================\\
631
--\\=================================//
632
633
634
--//=================================\\
635
--||		  CUSTOMIZATION
636
--\\=================================//
637
638
Class_Name = "Sharpshooter"
639
Weapon_Name = "Add-ons"
640
641
	Custom_Color_1 = BRICKC("Really black"); --1st color for the weapon.
642
	Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
643
644
	Custom_Color_3 = BRICKC("Really red"); --Color for the abilities.
645
	Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
646
	Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
647
	Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
648
	Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
649
650
	Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
651
	Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
652
	Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
653
	Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
654
	Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
655
656
657
Player_Size = 1 --Size of the player.
658
Animation_Speed = 3
659
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
660
661
local Speed = 16
662
local Effects2 = {}
663
664
--//=================================\\
665
--|| 	  END OF CUSTOMIZATION
666
--\\=================================//
667
668
669
--//=================================\\
670
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
671
--\\=================================//
672
673
ArtificialHB = Instance.new("BindableEvent", script)
674
ArtificialHB.Name = "ArtificialHB"
675
676
script:WaitForChild("ArtificialHB")
677
678
frame = Frame_Speed
679
tf = 0
680
allowframeloss = false
681
tossremainder = false
682
lastframe = tick()
683
script.ArtificialHB:Fire()
684
685
game:GetService("RunService").Heartbeat:connect(function(s, p)
686
	tf = tf + s
687
	if tf >= frame then
688
		if allowframeloss then
689
			script.ArtificialHB:Fire()
690
			lastframe = tick()
691
		else
692
			for i = 1, math.floor(tf / frame) do
693
				script.ArtificialHB:Fire()
694
			end
695
		lastframe = tick()
696
		end
697
		if tossremainder then
698
			tf = 0
699
		else
700
			tf = tf - frame * math.floor(tf / frame)
701
		end
702
	end
703
end)
704
705
--//=================================\\
706
--\\=================================//
707
708
--//=================================\\
709
--|| 	      SOME FUNCTIONS
710
--\\=================================//
711
712
function Clerp(a, b, t)
713
	local qa = {QuaternionFromCFrame(a)}
714
	local qb = {QuaternionFromCFrame(b)}
715
	local ax, ay, az = a.x, a.y, a.z
716
	local bx, by, bz = b.x, b.y, b.z
717
	local _t = 1 - t
718
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
719
end
720
721
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
722
	local frame = IT("Frame")
723
	frame.BackgroundTransparency = TRANSPARENCY
724
	frame.BorderSizePixel = BORDERSIZEPIXEL
725
	frame.Position = POSITION
726
	frame.Size = SIZE
727
	frame.BackgroundColor3 = COLOR
728
	frame.BorderColor3 = BORDERCOLOR
729
	frame.Name = NAME
730
	frame.Parent = PARENT
731
	return frame
732
end
733
734
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
735
	local label = IT("TextLabel")
736
	label.BackgroundTransparency = 1
737
	label.Size = UD2(1, 0, 1, 0)
738
	label.Position = UD2(0, 0, 0, 0)
739
	label.TextColor3 = TEXTCOLOR
740
	label.TextStrokeTransparency = STROKETRANSPARENCY
741
	label.TextTransparency = TRANSPARENCY
742
	label.FontSize = TEXTFONTSIZE
743
	label.Font = TEXTFONT
744
	label.BorderSizePixel = BORDERSIZEPIXEL
745
	label.TextScaled = false
746
	label.Text = TEXT
747
	label.Name = NAME
748
	label.Parent = PARENT
749
	return label
750
end
751
752
function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
753
	if FLOOR ~= nil then
754
		coroutine.resume(coroutine.create(function()
755
			local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
756
			PART.CFrame = CF(POSITION)
757
			for i = 1, 45 do
758
				local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
759
				RingPiece.Material = FLOOR.Material
760
				RingPiece.Color = FLOOR.Color
761
				RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
762
				Debris:AddItem(RingPiece,SWAIT)
763
			end
764
			PART:remove()
765
		end))
766
	end
767
end
768
769
function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH)
770
	if FLOOR ~= nil then
771
		for i = 1, AMOUNT do
772
			local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false)
773
			DEBREE.Material = FLOOR.Material
774
			DEBREE.Color = FLOOR.Color
775
			DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
776
			DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH))
777
			coroutine.resume(coroutine.create(function()
778
				Swait(15)
779
				DEBREE.Parent = workspace
780
				DEBREE.CanCollide = true
781
				Debris:AddItem(DEBREE,SWAIT)
782
			end))
783
		end
784
	end
785
end
786
787
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
788
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
789
end
790
791
function PositiveAngle(NUMBER)
792
	if NUMBER >= 0 then
793
		NUMBER = 0
794
	end
795
	return NUMBER
796
end
797
798
function NegativeAngle(NUMBER)
799
	if NUMBER <= 0 then
800
		NUMBER = 0
801
	end
802
	return NUMBER
803
end
804
805
function Swait(NUMBER)
806
	if NUMBER == 0 or NUMBER == nil then
807
		ArtificialHB.Event:wait()
808
	else
809
		for i = 1, NUMBER do
810
			ArtificialHB.Event:wait()
811
		end
812
	end
813
end
814
815
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
816
	local NEWMESH = IT(MESH)
817
	if MESH == "SpecialMesh" then
818
		NEWMESH.MeshType = MESHTYPE
819
		if MESHID ~= "nil" and MESHID ~= "" then
820
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
821
		end
822
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
823
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
824
		end
825
	end
826
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
827
	NEWMESH.Scale = SCALE
828
	NEWMESH.Parent = PARENT
829
	return NEWMESH
830
end
831
832
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
833
	local NEWPART = IT("Part")
834
	NEWPART.formFactor = FORMFACTOR
835
	NEWPART.Reflectance = REFLECTANCE
836
	NEWPART.Transparency = TRANSPARENCY
837
	NEWPART.CanCollide = false
838
	NEWPART.Locked = true
839
	NEWPART.Anchored = true
840
	if ANCHOR == false then
841
		NEWPART.Anchored = false
842
	end
843
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
844
	NEWPART.Name = NAME
845
	NEWPART.Size = SIZE
846
	NEWPART.Position = Torso.Position
847
	NEWPART.Material = MATERIAL
848
	NEWPART:BreakJoints()
849
	NEWPART.Parent = PARENT
850
	return NEWPART
851
end
852
853
	local function weldBetween(a, b)
854
	    local weldd = Instance.new("ManualWeld")
855
	    weldd.Part0 = a
856
	    weldd.Part1 = b
857
	    weldd.C0 = CFrame.new()
858
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
859
	    weldd.Parent = a
860
	    return weldd
861
	end
862
863
864
function QuaternionFromCFrame(cf)
865
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
866
	local trace = m00 + m11 + m22
867
	if trace > 0 then 
868
		local s = math.sqrt(1 + trace)
869
		local recip = 0.5 / s
870
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
871
	else
872
		local i = 0
873
		if m11 > m00 then
874
			i = 1
875
		end
876
		if m22 > (i == 0 and m00 or m11) then
877
			i = 2
878
		end
879
		if i == 0 then
880
			local s = math.sqrt(m00 - m11 - m22 + 1)
881
			local recip = 0.5 / s
882
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
883
		elseif i == 1 then
884
			local s = math.sqrt(m11 - m22 - m00 + 1)
885
			local recip = 0.5 / s
886
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
887
		elseif i == 2 then
888
			local s = math.sqrt(m22 - m00 - m11 + 1)
889
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
890
		end
891
	end
892
end
893
 
894
function QuaternionToCFrame(px, py, pz, x, y, z, w)
895
	local xs, ys, zs = x + x, y + y, z + z
896
	local wx, wy, wz = w * xs, w * ys, w * zs
897
	local xx = x * xs
898
	local xy = x * ys
899
	local xz = x * zs
900
	local yy = y * ys
901
	local yz = y * zs
902
	local zz = z * zs
903
	return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
904
end
905
 
906
function QuaternionSlerp(a, b, t)
907
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
908
	local startInterp, finishInterp;
909
	if cosTheta >= 0.0001 then
910
		if (1 - cosTheta) > 0.0001 then
911
			local theta = ACOS(cosTheta)
912
			local invSinTheta = 1 / SIN(theta)
913
			startInterp = SIN((1 - t) * theta) * invSinTheta
914
			finishInterp = SIN(t * theta) * invSinTheta
915
		else
916
			startInterp = 1 - t
917
			finishInterp = t
918
		end
919
	else
920
		if (1 + cosTheta) > 0.0001 then
921
			local theta = ACOS(-cosTheta)
922
			local invSinTheta = 1 / SIN(theta)
923
			startInterp = SIN((t - 1) * theta) * invSinTheta
924
			finishInterp = SIN(t * theta) * invSinTheta
925
		else
926
			startInterp = t - 1
927
			finishInterp = t
928
		end
929
	end
930
	return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
931
end
932
933
function Clerp(a, b, t)
934
	local qa = {QuaternionFromCFrame(a)}
935
	local qb = {QuaternionFromCFrame(b)}
936
	local ax, ay, az = a.x, a.y, a.z
937
	local bx, by, bz = b.x, b.y, b.z
938
	local _t = 1 - t
939
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
940
end
941
942
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
943
	local frame = IT("Frame")
944
	frame.BackgroundTransparency = TRANSPARENCY
945
	frame.BorderSizePixel = BORDERSIZEPIXEL
946
	frame.Position = POSITION
947
	frame.Size = SIZE
948
	frame.BackgroundColor3 = COLOR
949
	frame.BorderColor3 = BORDERCOLOR
950
	frame.Name = NAME
951
	frame.Parent = PARENT
952
	return frame
953
end
954
955
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
956
	local label = IT("TextLabel")
957
	label.BackgroundTransparency = 1
958
	label.Size = UD2(1, 0, 1, 0)
959
	label.Position = UD2(0, 0, 0, 0)
960
	label.TextColor3 = TEXTCOLOR
961
	label.TextStrokeTransparency = STROKETRANSPARENCY
962
	label.TextTransparency = TRANSPARENCY
963
	label.FontSize = TEXTFONTSIZE
964
	label.Font = TEXTFONT
965
	label.BorderSizePixel = BORDERSIZEPIXEL
966
	label.TextScaled = false
967
	label.Text = TEXT
968
	label.Name = NAME
969
	label.Parent = PARENT
970
	return label
971
end
972
973
function NoOutlines(PART)
974
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
975
end
976
977
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
978
	local NEWWELD = IT(TYPE)
979
	NEWWELD.Part0 = PART0
980
	NEWWELD.Part1 = PART1
981
	NEWWELD.C0 = C0
982
	NEWWELD.C1 = C1
983
	NEWWELD.Parent = PARENT
984
	return NEWWELD
985
end
986
987
local S = IT("Sound")
988
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
989
	local NEWSOUND = nil
990
	coroutine.resume(coroutine.create(function()
991
		NEWSOUND = S:Clone()
992
		NEWSOUND.Parent = PARENT
993
		NEWSOUND.Volume = VOLUME
994
		NEWSOUND.Pitch = PITCH
995
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
996
		NEWSOUND:play()
997
		if DOESLOOP == true then
998
			NEWSOUND.Looped = true
999
		else
1000
			repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
1001
			NEWSOUND:remove()
1002
		end
1003
	end))
1004
	return NEWSOUND
1005
end
1006
1007
function CFrameFromTopBack(at, top, back)
1008
	local right = top:Cross(back)
1009
	return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
1010
end
1011
1012
--WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1013
function WACKYEFFECT(Table)
1014
	local TYPE = (Table.EffectType or "Sphere")
1015
	local SIZE = (Table.Size or VT(1,1,1))
1016
	local ENDSIZE = (Table.Size2 or VT(0,0,0))
1017
	local TRANSPARENCY = (Table.Transparency or 0)
1018
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
1019
	local CFRAME = (Table.CFrame or Torso.CFrame)
1020
	local MOVEDIRECTION = (Table.MoveToPos or nil)
1021
	local ROTATION1 = (Table.RotationX or 0)
1022
	local ROTATION2 = (Table.RotationY or 0)
1023
	local ROTATION3 = (Table.RotationZ or 0)
1024
	local MATERIAL = (Table.Material or "Neon")
1025
	local COLOR = (Table.Color or C3(1,1,1))
1026
	local TIME = (Table.Time or 45)
1027
	local SOUNDID = (Table.SoundID or nil)
1028
	local SOUNDPITCH = (Table.SoundPitch or nil)
1029
	local SOUNDVOLUME = (Table.SoundVolume or nil)
1030
	coroutine.resume(coroutine.create(function()
1031
		local PLAYSSOUND = false
1032
		local SOUND = nil
1033
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
1034
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
1035
			PLAYSSOUND = true
1036
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
1037
		end
1038
		EFFECT.Color = COLOR
1039
		local MSH = nil
1040
		if TYPE == "Sphere" then
1041
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
1042
		elseif TYPE == "Block" then
1043
			MSH = IT("BlockMesh",EFFECT)
1044
			MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
1045
		elseif TYPE == "Wave" then
1046
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
1047
		elseif TYPE == "Ring" then
1048
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
1049
		elseif TYPE == "Slash" then
1050
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
1051
		elseif TYPE == "Round Slash" then
1052
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
1053
		elseif TYPE == "Swirl" then
1054
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
1055
		elseif TYPE == "Skull" then
1056
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
1057
		elseif TYPE == "Crystal" then
1058
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
1059
		end
1060
		if MSH ~= nil then
1061
			local MOVESPEED = nil
1062
			if MOVEDIRECTION ~= nil then
1063
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
1064
			end
1065
			local GROWTH = SIZE - ENDSIZE
1066
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
1067
			if TYPE == "Block" then
1068
				EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
1069
			else
1070
				EFFECT.CFrame = CFRAME
1071
			end
1072
			for LOOP = 1, TIME+1 do
1073
				Swait()
1074
				MSH.Scale = MSH.Scale - GROWTH/TIME
1075
				if TYPE == "Wave" then
1076
					MSH.Offset = VT(0,0,-MSH.Scale.X/8)
1077
				end
1078
				EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
1079
				if TYPE == "Block" then
1080
					EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
1081
				else
1082
					EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
1083
				end
1084
				if MOVEDIRECTION ~= nil then
1085
					local ORI = EFFECT.Orientation
1086
					EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
1087
					EFFECT.Orientation = ORI
1088
				end
1089
			end
1090
			if PLAYSSOUND == false then
1091
				EFFECT:remove()
1092
			else
1093
				SOUND.Stopped:Connect(function()
1094
					EFFECT:remove()
1095
				end)
1096
			end
1097
		else
1098
			if PLAYSSOUND == false then
1099
				EFFECT:remove()
1100
			else
1101
				repeat Swait() until SOUND.Playing == false
1102
				EFFECT:remove()
1103
			end
1104
		end
1105
	end))
1106
end
1107
1108
local DECAL = IT("Decal")
1109
function MakeRing()
1110
	local RING = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Institutional white"), "MagicRing", VT(0, 0, 0), true)
1111
	local MSH = IT("BlockMesh", RING)
1112
	local TOP = DECAL:Clone()
1113
	local BOTTOM = DECAL:Clone()
1114
	TOP.Parent = RING
1115
	BOTTOM.Parent = RING
1116
	TOP.Face = "Top"
1117
	BOTTOM.Face = "Bottom"
1118
	TOP.Texture = "http://www.roblox.com/asset/?id=127817121"
1119
	BOTTOM.Texture = "http://www.roblox.com/asset/?id=127817121"
1120
	local function REMOVE()
1121
		coroutine.resume(coroutine.create(function()
1122
			local SIZE = MSH.Scale.X
1123
			for i = 1, 35 do
1124
				Swait()
1125
				MSH.Scale = MSH.Scale - VT(SIZE, 0, SIZE) / 60
1126
				TOP.Transparency = TOP.Transparency + 0.02857142857142857
1127
				BOTTOM.Transparency = BOTTOM.Transparency + 0.02857142857142857
1128
				RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(-5), RAD(0))
1129
			end
1130
			RING:remove()
1131
		end))
1132
	end
1133
	return RING, MSH, REMOVE
1134
end
1135
1136
function MakeForm(PART,TYPE)
1137
	if TYPE == "Cyl" then
1138
		local MSH = IT("CylinderMesh",PART)
1139
	elseif TYPE == "Ball" then
1140
		local MSH = IT("SpecialMesh",PART)
1141
		MSH.MeshType = "Sphere"
1142
	elseif TYPE == "Wedge" then
1143
		local MSH = IT("SpecialMesh",PART)
1144
		MSH.MeshType = "Wedge"
1145
	end
1146
end
1147
1148
function SpawnTrail(FROM,TO,BIG)
1149
	local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "", "Trail", VT(0,0,0))
1150
	MakeForm(TRAIL,"Cyl")
1151
	local DIST = (FROM - TO).Magnitude
1152
	if BIG == true then
1153
		TRAIL.Size = VT(0.5,DIST,0.5)
1154
	else
1155
		TRAIL.Size = VT(0.25,DIST,0.25)
1156
	end
1157
	TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
1158
	coroutine.resume(coroutine.create(function()
1159
		for i = 1, 5 do
1160
			Swait()
1161
			TRAIL.Transparency = TRAIL.Transparency + 0.1
1162
		end
1163
		TRAIL:remove()
1164
	end))
1165
end
1166
--WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1167
function WACKYEFFECT(Table)
1168
	local TYPE = (Table.EffectType or "Sphere")
1169
	local SIZE = (Table.Size or VT(1,1,1))
1170
	local ENDSIZE = (Table.Size2 or VT(0,0,0))
1171
	local TRANSPARENCY = (Table.Transparency or 0)
1172
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
1173
	local CFRAME = (Table.CFrame or Torso.CFrame)
1174
	local MOVEDIRECTION = (Table.MoveToPos or nil)
1175
	local ROTATION1 = (Table.RotationX or 0)
1176
	local ROTATION2 = (Table.RotationY or 0)
1177
	local ROTATION3 = (Table.RotationZ or 0)
1178
	local MATERIAL = (Table.Material or "Neon")
1179
	local COLOR = (Table.Color or C3(1,1,1))
1180
	local TIME = (Table.Time or 45)
1181
	local SOUNDID = (Table.SoundID or nil)
1182
	local SOUNDPITCH = (Table.SoundPitch or nil)
1183
	local SOUNDVOLUME = (Table.SoundVolume or nil)
1184
	coroutine.resume(coroutine.create(function()
1185
		local PLAYSSOUND = false
1186
		local SOUND = nil
1187
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Institutional white"), "Effect", VT(1,1,1), true)
1188
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
1189
			PLAYSSOUND = true
1190
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
1191
		end
1192
		EFFECT.Color = COLOR
1193
		local MSH = nil
1194
		if TYPE == "Sphere" then
1195
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
1196
		elseif TYPE == "Block" then
1197
			MSH = IT("BlockMesh",EFFECT)
1198
			MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
1199
		elseif TYPE == "Wave" then
1200
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
1201
		elseif TYPE == "Ring" then
1202
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
1203
		elseif TYPE == "Slash" then
1204
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
1205
		elseif TYPE == "Round Slash" then
1206
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
1207
		elseif TYPE == "Swirl" then
1208
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
1209
		elseif TYPE == "Skull" then
1210
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
1211
		elseif TYPE == "Crystal" then
1212
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
1213
		end
1214
		if MSH ~= nil then
1215
			local MOVESPEED = nil
1216
			if MOVEDIRECTION ~= nil then
1217
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
1218
			end
1219
			local GROWTH = SIZE - ENDSIZE
1220
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
1221
			if TYPE == "Block" then
1222
				EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
1223
			else
1224
				EFFECT.CFrame = CFRAME
1225
			end
1226
			for LOOP = 1, TIME+1 do
1227
				Swait()
1228
				MSH.Scale = MSH.Scale - GROWTH/TIME
1229
				if TYPE == "Wave" then
1230
					MSH.Offset = VT(0,0,-MSH.Scale.X/8)
1231
				end
1232
				EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
1233
				if TYPE == "Block" then
1234
					EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
1235
				else
1236
					EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
1237
				end
1238
				if MOVEDIRECTION ~= nil then
1239
					local ORI = EFFECT.Orientation
1240
					EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
1241
					EFFECT.Orientation = ORI
1242
				end
1243
			end
1244
			if PLAYSSOUND == false then
1245
				EFFECT:remove()
1246
			else
1247
				SOUND.Stopped:Connect(function()
1248
					EFFECT:remove()
1249
				end)
1250
			end
1251
		else
1252
			if PLAYSSOUND == false then
1253
				EFFECT:remove()
1254
			else
1255
				repeat Swait() until SOUND.Playing == false
1256
				EFFECT:remove()
1257
			end
1258
		end
1259
	end))
1260
end
1261
1262
function MakeForm(PART,TYPE)
1263
	if TYPE == "Cyl" then
1264
		local MSH = IT("CylinderMesh",PART)
1265
	elseif TYPE == "Ball" then
1266
		local MSH = IT("SpecialMesh",PART)
1267
		MSH.MeshType = "Sphere"
1268
	elseif TYPE == "Wedge" then
1269
		local MSH = IT("SpecialMesh",PART)
1270
		MSH.MeshType = "Wedge"
1271
	end
1272
end
1273
1274
function SpawnTrail(FROM,TO,BIG)
1275
	local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
1276
	MakeForm(TRAIL,"Cyl")
1277
	local DIST = (FROM - TO).Magnitude
1278
	if BIG == true then
1279
		TRAIL.Size = VT(0.5,DIST,0.5)
1280
	else
1281
		TRAIL.Size = VT(0.25,DIST,0.25)
1282
	end
1283
	TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
1284
	coroutine.resume(coroutine.create(function()
1285
		for i = 1, 5 do
1286
			Swait()
1287
			TRAIL.Transparency = TRAIL.Transparency + 0.1
1288
		end
1289
		TRAIL:remove()
1290
	end))
1291
end
1292
1293
function SHAKECAM(POSITION, RANGE, INTENSITY, TIME)
1294
	local TORSO = Torso
1295
	local HUM = Humanoid
1296
	if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then
1297
		coroutine.wrap(function()
1298
			VT = Vector3.new
1299
			MRANDOM = math.random
1300
			local A = TIME
1301
			local B = INTENSITY
1302
			local C = true
1303
			local HUMANOID = Humanoid
1304
			local TIMER = A or 35
1305
			local SHAKE = B or 5
1306
			local FADE = C or true
1307
			if HUMANOID then
1308
				local FADER = SHAKE / TIMER
1309
				for i = 1, TIMER do
1310
					wait()
1311
					HUMANOID.CameraOffset = VT(MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10)
1312
				end
1313
				HUMANOID.CameraOffset = VT(0, 0, 0)
1314
			end
1315
1316
		end)()
1317
	end
1318
end
1319
1320
function chatfunc(text)
1321
	local chat = coroutine.wrap(function()
1322
	if Character:FindFirstChild("TalkingBillBoard")~= nil then
1323
		Character:FindFirstChild("TalkingBillBoard"):destroy()
1324
	end
1325
	local Bill = Instance.new("BillboardGui",Character)
1326
	Bill.Size = UDim2.new(0,100,0,40)
1327
	Bill.StudsOffset = Vector3.new(0,3,0)
1328
	Bill.Adornee = Character.Head
1329
	Bill.Name = "TalkingBillBoard"
1330
	local Hehe = Instance.new("TextLabel",Bill)
1331
	Hehe.BackgroundTransparency = 1
1332
	Hehe.BorderSizePixel = 0
1333
	Hehe.Text = ""
1334
	Hehe.Font = "Bodoni"
1335
	Hehe.TextSize = 40
1336
	Hehe.TextStrokeTransparency = 0
1337
	Hehe.Size = UDim2.new(1,0,0.5,0)
1338
	coroutine.resume(coroutine.create(function()
1339
		while Hehe ~= nil do
1340
			Swait()	
1341
			Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))	
1342
			Hehe.Rotation = math.random(-2.5,2.5)
1343
			Hehe.TextColor3 = Color3.new(MRANDOM(55,255),0,0)
1344
			Hehe.TextStrokeColor3 = Color3.new(255,255,255)
1345
		end
1346
	end))
1347
	for i = 1,string.len(text),1 do
1348
		Swait()
1349
		Hehe.Text = string.sub(text,1,i)
1350
	end
1351
	Swait(90)--Re[math.random(1, 93)]
1352
	for i = 0, 1, .025 do
1353
		Swait()
1354
		Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
1355
		Hehe.TextStrokeTransparency = i
1356
		Hehe.TextTransparency = i
1357
	end
1358
	Bill:Destroy()
1359
	end)
1360
chat()
1361
end
1362
1363
Debris = game:GetService("Debris")
1364
1365
function CastProperRay(StartPos, EndPos, Distance, Ignore)
1366
	local DIRECTION = CF(StartPos,EndPos).lookVector
1367
	return Raycast(StartPos, DIRECTION, Distance, Ignore)
1368
end
1369
1370
function turnto(position)
1371
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
1372
end
1373
1374
--//=================================\\
1375
--||	     RAGDOLL STUFF
1376
--\\=================================//
1377
1378
function recurse(root,callback,i)
1379
	i= i or 0
1380
	for _,v in pairs(root:GetChildren()) do
1381
		i = i + 1
1382
		callback(i,v)
1383
		
1384
		if #v:GetChildren() > 0 then
1385
			i = recurse(v,callback,i)
1386
		end
1387
	end
1388
	
1389
	return i
1390
end
1391
1392
function ragdollJoint(character, part0, part1, attachmentName, className, properties)
1393
	attachmentName = attachmentName.."RigAttachment"
1394
	local constraint = Instance.new(className.."Constraint")
1395
	constraint.Attachment0 = part0:FindFirstChild(attachmentName)
1396
	constraint.Attachment1 = part1:FindFirstChild(attachmentName)
1397
	constraint.Name = "RagdollConstraint"..part1.Name
1398
	
1399
	for _,propertyData in next,properties or {} do
1400
		constraint[propertyData[1]] = propertyData[2]
1401
	end
1402
	
1403
	constraint.Parent = character
1404
end
1405
1406
function getAttachment0(character, attachmentName)
1407
	for _,child in next,character:GetChildren() do
1408
		local attachment = child:FindFirstChild(attachmentName)
1409
		if attachment then
1410
			return attachment
1411
		end
1412
	end
1413
end
1414
1415
function ArtificialHitbox(Part)
1416
	local HITBOX = CreatePart(3, Part, "Metal", 0, 1, "Institutional white", "Hitbox", Part.Size/2, false)
1417
	HITBOX.CanCollide = true
1418
	HITBOX.CFrame = Part.CFrame
1419
	weldBetween(Part,HITBOX)
1420
end
1421
1422
function R15Ragdoll(character,KeepArms)
1423
	character:BreakJoints()
1424
	coroutine.resume(coroutine.create(function()
1425
		recurse(character, function(_,v)
1426
			if v:IsA("Attachment") then
1427
				v.Axis = Vector3.new(0, 1, 0)
1428
				v.SecondaryAxis = Vector3.new(0, 0, 1)
1429
				v.Rotation = Vector3.new(0, 0, 0)
1430
			end
1431
		end)
1432
		for _,child in next,character:GetChildren() do
1433
			if child:IsA("Accoutrement") then
1434
				for _,part in next,child:GetChildren() do
1435
					if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
1436
						local attachment1 = part:FindFirstChildOfClass("Attachment")
1437
						local attachment0 = getAttachment0(character,attachment1.Name)
1438
						if attachment0 and attachment1 then
1439
							local constraint = Instance.new("HingeConstraint")
1440
							constraint.Attachment0 = attachment0
1441
							constraint.Attachment1 = attachment1
1442
							constraint.LimitsEnabled = true
1443
							constraint.UpperAngle = 0
1444
							constraint.LowerAngle = 0
1445
							constraint.Parent = character
1446
						end
1447
						ArtificialHitbox(part)
1448
					elseif part.Name == "HumanoidRootPart" then
1449
						part:remove()
1450
					end
1451
				end
1452
			end
1453
		end
1454
		
1455
		ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
1456
			{"LimitsEnabled",true};
1457
			{"UpperAngle",5};
1458
		})
1459
		if character:FindFirstChild("Head") then
1460
			ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", {
1461
				{"LimitsEnabled",true};
1462
				{"UpperAngle",15};
1463
			})
1464
		end
1465
		
1466
		local handProperties = {
1467
			{"LimitsEnabled", true};
1468
			{"UpperAngle",0};
1469
			{"LowerAngle",0};
1470
		}
1471
		ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
1472
		ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
1473
		
1474
		local shinProperties = {
1475
			{"LimitsEnabled", true};
1476
			{"UpperAngle", 0};
1477
			{"LowerAngle", -75};
1478
		}
1479
		ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
1480
		ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
1481
		
1482
		local footProperties = {
1483
			{"LimitsEnabled", true};
1484
			{"UpperAngle", 15};
1485
			{"LowerAngle", -45};
1486
		}
1487
		ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
1488
		ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
1489
		if KeepArms == true then
1490
			ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket")
1491
			ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
1492
			ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket")
1493
			ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
1494
		end
1495
		ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
1496
		ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
1497
		Debris:AddItem(character,5)
1498
	end))
1499
end
1500
1501
function Ragdoll(Character2,CharTorso,KeepArms)
1502
	coroutine.resume(coroutine.create(function()
1503
		Character2:BreakJoints()
1504
		local hum = Character2:findFirstChild("Humanoid")
1505
		hum:remove()
1506
		local function Scan(ch)
1507
			local e
1508
			for e = 1,#ch do
1509
				Scan(ch[e]:GetChildren())
1510
				if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
1511
					ch[e]:remove()
1512
				end
1513
			end
1514
		end
1515
		local NEWHUM = IT("Humanoid")
1516
		NEWHUM.Name = "Corpse"
1517
		NEWHUM.Health = 0
1518
		NEWHUM.MaxHealth = 0
1519
		NEWHUM.PlatformStand = true
1520
		NEWHUM.Parent = Character2
1521
		NEWHUM.DisplayDistanceType = "None"
1522
	
1523
		local ch = Character2:GetChildren()
1524
		local i
1525
		for i = 1,#ch do
1526
			if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
1527
				ch[i]:remove()
1528
			end
1529
		end
1530
	
1531
		local Torso2 = Character2.Torso
1532
		local movevector = Vector3.new()
1533
	
1534
		if Torso2 then
1535
			movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
1536
			local Head = Character2:FindFirstChild("Head")
1537
			if Head then
1538
				local Neck = Instance.new("Weld")
1539
				Neck.Name = "Neck"
1540
				Neck.Part0 = Torso2
1541
				Neck.Part1 = Head
1542
				Neck.C0 = CFrame.new(0, 1.5, 0)
1543
				Neck.C1 = CFrame.new()
1544
				Neck.Parent = Torso2
1545
	
1546
			end
1547
			local Limb = Character2:FindFirstChild("Right Arm")
1548
			if Limb and KeepArms == true then
1549
	
1550
				Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
1551
				local Joint = Instance.new("Glue")
1552
				Joint.Name = "RightShoulder"
1553
				Joint.Part0 = Torso2
1554
				Joint.Part1 = Limb
1555
				Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
1556
				Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
1557
				Joint.Parent = Torso2
1558
	
1559
				local B = Instance.new("Part")
1560
				B.TopSurface = 0
1561
				B.BottomSurface = 0
1562
				B.formFactor = "Symmetric"
1563
				B.Size = Vector3.new(1, 1, 1)
1564
				B.Transparency = 1
1565
				B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
1566
				B.Parent = Character2
1567
				local W = Instance.new("Weld")
1568
				W.Part0 = Limb
1569
				W.Part1 = B
1570
				W.C0 = CFrame.new(0, -0.5, 0)
1571
				W.Parent = Limb
1572
	
1573
			end
1574
			local Limb = Character2:FindFirstChild("Left Arm")
1575
			if Limb and KeepArms == true then
1576
	
1577
				Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
1578
				local Joint = Instance.new("Glue")
1579
				Joint.Name = "LeftShoulder"
1580
				Joint.Part0 = Torso2
1581
				Joint.Part1 = Limb
1582
				Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
1583
				Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
1584
				Joint.Parent = Torso2
1585
	
1586
				local B = Instance.new("Part")
1587
				B.TopSurface = 0
1588
				B.BottomSurface = 0
1589
				B.formFactor = "Symmetric"
1590
				B.Size = Vector3.new(1, 1, 1)
1591
				B.Transparency = 1
1592
				B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
1593
				B.Parent = Character2
1594
				local W = Instance.new("Weld")
1595
				W.Part0 = Limb
1596
				W.Part1 = B
1597
				W.C0 = CFrame.new(0, -0.5, 0)
1598
				W.Parent = Limb
1599
	
1600
			end
1601
			local Limb = Character2:FindFirstChild("Right Leg")
1602
			if Limb then
1603
	
1604
				Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
1605
				local Joint = Instance.new("Glue")
1606
				Joint.Name = "RightHip"
1607
				Joint.Part0 = Torso2
1608
				Joint.Part1 = Limb
1609
				Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
1610
				Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
1611
				Joint.Parent = Torso2
1612
	
1613
				local B = Instance.new("Part")
1614
				B.TopSurface = 0
1615
				B.BottomSurface = 0
1616
				B.formFactor = "Symmetric"
1617
				B.Size = Vector3.new(1, 1, 1)
1618
				B.Transparency = 1
1619
				B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
1620
				B.Parent = Character2
1621
				local W = Instance.new("Weld")
1622
				W.Part0 = Limb
1623
				W.Part1 = B
1624
				W.C0 = CFrame.new(0, -0.5, 0)
1625
				W.Parent = Limb
1626
	
1627
			end
1628
			local Limb = Character2:FindFirstChild("Left Leg")
1629
			if Limb then
1630
	
1631
				Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
1632
				local Joint = Instance.new("Glue")
1633
				Joint.Name = "LeftHip"
1634
				Joint.Part0 = Torso2
1635
				Joint.Part1 = Limb
1636
				Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
1637
				Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
1638
				Joint.Parent = Torso2
1639
	
1640
				local B = Instance.new("Part")
1641
				B.TopSurface = 0
1642
				B.BottomSurface = 0
1643
				B.formFactor = "Symmetric"
1644
				B.Size = Vector3.new(1, 1, 1)
1645
				B.Transparency = 1
1646
				B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
1647
				B.Parent = Character2
1648
				local W = Instance.new("Weld")
1649
				W.Part0 = Limb
1650
				W.Part1 = B
1651
				W.C0 = CFrame.new(0, -0.5, 0)
1652
				W.Parent = Limb
1653
	
1654
			end
1655
			--[
1656
			local Bar = Instance.new("Part")
1657
			Bar.TopSurface = 0
1658
			Bar.BottomSurface = 0
1659
			Bar.formFactor = "Symmetric"
1660
			Bar.Size = Vector3.new(1, 1, 1)
1661
			Bar.Transparency = 1
1662
			Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
1663
			Bar.Parent = Character2
1664
			local Weld = Instance.new("Weld")
1665
			Weld.Part0 = Torso2
1666
			Weld.Part1 = Bar
1667
			Weld.C0 = CFrame.new(0, 0.5, 0)
1668
			Weld.Parent = Torso2
1669
			--]]
1670
		end
1671
		Character2.Parent = workspace
1672
		Debris:AddItem(Character2,5)
1673
	
1674
		return Character2,Torso2
1675
	end))
1676
end
1677
1678
--//=================================\\
1679
--||	     WEAPON CREATION
1680
--\\=================================//
1681
1682
local Particle = IT("ParticleEmitter",nil)
1683
Particle.Enabled = false
1684
Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
1685
Particle.LightEmission = 0.5
1686
Particle.Rate = 150
1687
Particle.ZOffset = 0.2
1688
Particle.Rotation = NumberRange.new(-180, 180)
1689
Particle.RotSpeed = NumberRange.new(-180, 180)
1690
Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
1691
Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0))
1692
1693
--ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
1694
function ParticleEmitter(Table)
1695
	local PRTCL = Particle:Clone()
1696
	local Speed = Table.Speed or 5
1697
	local Drag = Table.Drag or 0
1698
	local Size1 = Table.Size1 or 1
1699
	local Size2 = Table.Size2 or 5
1700
	local Lifetime1 = Table.Lifetime1 or 1
1701
	local Lifetime2 = Table.Lifetime2 or 1.5
1702
	local Parent = Table.Parent or Torso
1703
	local Emit = Table.Emit or 100
1704
	local Offset = Table.Offset or 360
1705
	local Acel = Table.Acel or VT(0,0,0)
1706
	local Enabled = Table.Enabled or false
1707
	PRTCL.Parent = Parent
1708
	PRTCL.Size = NumberSequence.new(Size1,Size2)
1709
	PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
1710
	PRTCL.Speed = NumberRange.new(Speed)
1711
	PRTCL.VelocitySpread = Offset
1712
	PRTCL.Drag = Drag
1713
	PRTCL.Acceleration = Acel
1714
	if Enabled == false then
1715
		PRTCL:Emit(Emit)
1716
		Debris:AddItem(PRTCL,Lifetime2)
1717
	else
1718
		PRTCL.Enabled = true
1719
	end
1720
	return PRTCL
1721
end
1722
1723
local Handle = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
1724
local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
1725
local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
1726
MakeForm(Part,"Wedge")
1727
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
1728
local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
1729
MakeForm(Part,"Wedge")
1730
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
1731
local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
1732
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1733
local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
1734
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1735
local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
1736
MakeForm(Part,"Cyl")
1737
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1738
for i = 1, 8 do
1739
	local Piece = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
1740
	CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
1741
end
1742
local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
1743
MakeForm(Part,"Cyl")
1744
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1745
local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
1746
MakeForm(Part,"Ball")
1747
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1748
local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
1749
MakeForm(Part,"Wedge")
1750
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
1751
local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
1752
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1753
local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
1754
MakeForm(Part,"Cyl")
1755
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1756
local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
1757
MakeForm(Part,"Cyl")
1758
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1759
local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
1760
MakeForm(Part,"Cyl")
1761
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1762
local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
1763
MakeForm(Part,"Wedge")
1764
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
1765
local LASTPART = Handle
1766
for i = 1, 10 do
1767
	if LASTPART == Handle then
1768
		local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
1769
		LASTPART = Part
1770
		CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1771
	else
1772
		local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
1773
		CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
1774
		LASTPART = Part
1775
	end
1776
end
1777
1778
local Barrel = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,4,0.15),false)
1779
MakeForm(Barrel,"Cyl")
1780
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.85) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1781
local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,2,0.25),false)
1782
MakeForm(Part,"Cyl")
1783
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.2, 0), CF(0, 0, 0))
1784
local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
1785
MakeForm(Part,"Wedge")
1786
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
1787
local Hole = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
1788
MakeForm(Hole,"Cyl")
1789
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 2, 0), CF(0, 0, 0))
1790
local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
1791
local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
1792
CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
1793
local Part = CreatePart(3, Gun, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
1794
local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
1795
CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
1796
coroutine.resume(coroutine.create(function()
1797
	while wait() do
1798
		GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(sick.PlaybackLoudness/60 + 0.05))
1799
		GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-sick.PlaybackLoudness/60 - 0.05))
1800
	end
1801
end))
1802
1803
ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
1804
--ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
1805
1806
for _, c in pairs(Gun:GetDescendants()) do
1807
	if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
1808
		c.Material = "Glass"
1809
		c.Color = C3(255,255,255)
1810
	elseif c.ClassName == "Part" and c.Name == "Eye" then
1811
		c.Color = C3(255,255,255)
1812
		c.Material = "Neon"
1813
	end
1814
end
1815
1816
Weapon.Parent = Character
1817
for _, c in pairs(Weapon:GetChildren()) do
1818
	if c.ClassName == "Part" then
1819
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
1820
	end
1821
end
1822
1823
Weapon.Parent = Character
1824
Gun.Parent = nil
1825
1826
for _, c in pairs(Gun:GetChildren()) do
1827
	if c.ClassName == "Part" then
1828
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
1829
	end
1830
end
1831
1832
for _, c in pairs(Weapon:GetChildren()) do
1833
	if c.ClassName == "Part" then
1834
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
1835
	end
1836
end
1837
1838
local SKILLTEXTCOLOR = C3(0,0,0)
1839
local SKILLFONT = "Arcade"
1840
local SKILLTEXTSIZE = 7
1841
1842
Humanoid.Died:connect(function()
1843
	ATTACK = true
1844
end)
1845
1846
local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
1847
local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
1848
local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
1849
local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.525, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
1850
local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
1851
1852
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Banish", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
1853
local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[V] Kill", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
1854
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[X] Sleep", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
1855
local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[C] Ultimate", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
1856
local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[T] Taunt", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
1857
1858
function printbye(Name)
1859
	local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "}
1860
	warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")	
1861
end
1862
	if INTRO == false and INSTANT == false then
1863
		INTRO = true
1864
		coroutine.resume(coroutine.create(function()
1865
			sick:Play()
1866
			Intro()
1867
		end))
1868
	end
1869
1870
workspace.ChildAdded:connect(function(instance)
1871
    for BANISH = 1, #TOBANISH do
1872
		if TOBANISH[BANISH] ~= nil then
1873
			if instance.Name == TOBANISH[BANISH] then
1874
				coroutine.resume(coroutine.create(function()
1875
					printbye(instance.Name)
1876
					instance:ClearAllChildren()
1877
					Debris:AddItem(instance,0.0005)
1878
				end))
1879
			end
1880
		end
1881
	end
1882
end)
1883
1884
--//=================================\\
1885
--||			DAMAGING
1886
--\\=================================//
1887
1888
function ApplyDamage(Humanoid,Damage,OneShot)
1889
	Damage = Damage * DAMAGEMULTIPLIER
1890
	local DEAD = false
1891
	if Humanoid.Health < 2000 and OneShot == false then
1892
		if Humanoid.Health - Damage > 0 then
1893
			Humanoid.Health = Humanoid.Health - Damage
1894
		else
1895
			Humanoid.Parent:BreakJoints()
1896
			DEAD = true
1897
		end
1898
	else
1899
		DEAD = true
1900
		Humanoid.Parent:BreakJoints()
1901
	end
1902
	if DEAD == true then
1903
		local PARTS = {}
1904
		for index, CHILD in pairs(Humanoid.Parent:GetChildren()) do
1905
			if CHILD:IsA("BasePart") then
1906
				table.insert(PARTS,CHILD)
1907
			end
1908
		end
1909
		coroutine.resume(coroutine.create(function()
1910
			wait(2)
1911
			repeat
1912
				Swait()
1913
				local PIECE = nil
1914
				if MRANDOM(1,5) == 1 then
1915
					for E = 1, #PARTS do
1916
						if MRANDOM(1,5) == 1 then
1917
							PIECE = PARTS[E]
1918
							table.remove(PARTS,E)
1919
							break
1920
						end
1921
					end
1922
				end
1923
				if PIECE ~= nil then
1924
					if PIECE.Name == "Head" then
1925
						WACKYEFFECT({Time = MRANDOM(10,30)*5, EffectType = "Box", Size = VT(PIECE.Size.Z,PIECE.Size.Y,PIECE.Size.Z), Size2 = (VT(PIECE.Size.Z,PIECE.Size.Y,PIECE.Size.Z))*MRANDOM(7,14)/10, Transparency = PIECE.Transparency, Transparency2 = 1, CFrame = PIECE.CFrame, MoveToPos = PIECE.Position+VT(0,MRANDOM(5,8)/1.5,0), RotationX = MRANDOM(-25,25)/35, RotationY = MRANDOM(-25,25)/35, RotationZ = MRANDOM(-25,25)/35, Material = "Neon", Color = C3(0.4,0,0), SoundID = 3264923, SoundPitch = MRANDOM(12,16)/10, SoundVolume = 2})
1926
					else
1927
						WACKYEFFECT({Time = MRANDOM(10,30)*5, EffectType = "Box", Size = PIECE.Size, Size2 = PIECE.Size*MRANDOM(7,14)/10, Transparency = PIECE.Transparency, Transparency2 = 1, CFrame = PIECE.CFrame, MoveToPos = PIECE.Position+VT(0,MRANDOM(5,8)/1.5,0), MRANDOM(-25,25)/35, RotationY = MRANDOM(-25,25)/35, RotationZ = MRANDOM(-25,25)/35, Material = "Neon", Color = C3(0.4,0,0), SoundID = 3264923, SoundPitch = MRANDOM(12,16)/10, SoundVolume = 2})
1928
					end
1929
					PIECE:remove()
1930
				end
1931
			until #PARTS == 0
1932
		end))
1933
	end
1934
end
1935
1936
1937
function ApplyDamage3(Humanoid,Damage,TorsoPart)
1938
	local defence = Instance.new("BoolValue",Humanoid.Parent)
1939
	defence.Name = ("HitBy"..Player.Name)
1940
	game:GetService("Debris"):AddItem(defence, 0.001)
1941
	Damage = Damage * DAMAGEMULTIPLIER
1942
	if Humanoid.Health ~= 0 then
1943
		local CritChance = MRANDOM(1,100)
1944
		if Damage > Humanoid.Health then
1945
			Damage = math.ceil(Humanoid.Health)
1946
			if Damage == 0 then
1947
				Damage = 0.1
1948
			end
1949
		end
1950
		Humanoid.Health = Humanoid.Health - Damage
1951
	end
1952
end
1953
1954
function ApplyDamage3(Humanoid,Damage,TorsoPart)
1955
	local defence = Instance.new("BoolValue",Humanoid.Parent)
1956
	defence.Name = ("HitBy"..Player.Name)
1957
	game:GetService("Debris"):AddItem(defence, 0.001)
1958
	Damage = Damage * DAMAGEMULTIPLIER
1959
	if Humanoid.Health ~= 0 then
1960
		local CritChance = MRANDOM(1,100)
1961
		if Damage > Humanoid.Health then
1962
			Damage = math.ceil(Humanoid.Health)
1963
			if Damage == 0 then
1964
				Damage = 0.1
1965
			end
1966
		end
1967
		Humanoid.Health = Humanoid.Health - Damage
1968
	end
1969
end
1970
1971
function ApplyAoE3(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
1972
	local CHILDREN = workspace:GetDescendants()
1973
	for index, CHILD in pairs(CHILDREN) do
1974
		if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
1975
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1976
			if HUM then
1977
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1978
				if TORSO then
1979
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
1980
						if INSTAKILL == true then
1981
							CHILD:BreakJoints()
1982
						else
1983
							local DMG = MRANDOM(MINDMG,MAXDMG)
1984
							ApplyDamage(HUM,DMG,TORSO)
1985
						end
1986
						if FLING > 0 then
1987
							for _, c in pairs(CHILD:GetChildren()) do
1988
								if c:IsA("BasePart") then
1989
									local bv = Instance.new("BodyVelocity") 
1990
									bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1991
									bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
1992
									bv.Parent = c
1993
									Debris:AddItem(bv,0.05)
1994
								end
1995
							end
1996
						end
1997
					end
1998
				end
1999
			end
2000
		end
2001
	end
2002
end
2003
2004
function CameraEnshaking(Length, Intensity)
2005
	coroutine.resume(coroutine.create(function()
2006
		local intensity = 1 * Intensity
2007
		local rotM = 0.01 * Intensity
2008
		for i = 0, Length, 0.1 do
2009
			Swait()
2010
			intensity = intensity - 0.05 * Intensity / Length
2011
			rotM = rotM - 5.0E-4 * Intensity / Length
2012
			Humanoid.CameraOffset = Vector3.new(RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity)))
2013
			Cam.CFrame = Cam.CFrame * CF(RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity))) * EULER(RAD(MRANDOM(-intensity, intensity)) * rotM, RAD(MRANDOM(-intensity, intensity)) * rotM, RAD(MRANDOM(-intensity, intensity)) * rotM)
2014
		end
2015
		Humanoid.CameraOffset = Vector3.new(0, 0, 0)
2016
	end))
2017
end
2018
2019
function KillChildren(v)
2020
	v:BreakJoints()
2021
	for _, c in pairs(v:GetChildren()) do
2022
		if c:IsA("BasePart") then
2023
			if c.Transparency < 1 then
2024
				if c:FindFirstChildOfClass("Decal") then
2025
					c:FindFirstChildOfClass("Decal"):remove()
2026
				end
2027
				particles(c)
2028
				c.PE.Enabled = true
2029
				c.Parent = Effects
2030
				c.CanCollide = false
2031
				c.Material = "Neon"
2032
				c.Color = C3(1,0,0)
2033
				c.Transparency = 1
2034
				local grav = Instance.new("BodyPosition",c)
2035
				grav.P = 20000
2036
				grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
2037
				grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5))
2038
				grav.Name = "GravityForce"
2039
				coroutine.resume(coroutine.create(function()
2040
					for i = 1, 20 do
2041
						Swait()
2042
						c.Transparency = c.Transparency + 1/20
2043
					end
2044
					c.PE.Enabled = false
2045
					Debris:AddItem(c,2)
2046
				end))
2047
			end
2048
		end
2049
	end
2050
end
2051
2052
function ApplyAoE(POSITION,RANGE)
2053
	local CHILDREN = workspace:GetDescendants()
2054
	for index, CHILD in pairs(CHILDREN) do
2055
		if CHILD.ClassName == "Model" and CHILD ~= Character then
2056
			local LISTED = false
2057
			for LIST = 1, #WHITELIST do
2058
				if WHITELIST[LIST] ~= nil then
2059
					if CHILD.Name == WHITELIST[LIST] then
2060
						LISTED = true
2061
					end
2062
				end
2063
			end
2064
			if LISTED == false then
2065
				local HUM = CHILD:FindFirstChildOfClass("Humanoid")
2066
				if HUM then
2067
					local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
2068
					if TORSO then
2069
						if (TORSO.Position - POSITION).Magnitude <= RANGE+TORSO.Size.Magnitude then
2070
							KillChildren(CHILD)
2071
						end
2072
					end
2073
				end
2074
			end
2075
		end
2076
	end
2077
end
2078
2079
function SpawnMeteor(POS,SIZE,ISDEBREE,ORIPOS)
2080
	coroutine.resume(coroutine.create(function()
2081
		local METEOR = IT("Model",Effects)
2082
		METEOR.Name = "Meteorite"
2083
		local CENTER = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE)
2084
		METEOR.PrimaryPart = CENTER
2085
		local PRT = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE)
2086
		PRT.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
2087
		for i = 1, 15 do
2088
			local FIRE = CreatePart(3, METEOR, "Neon", 0, 0, "In", "Fire", VT(5.1,1,5.1)*SIZE)
2089
			FIRE.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
2090
		end
2091
		if ISDEBREE ~= true then
2092
			METEOR:SetPrimaryPartCFrame(CF(POS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15)))*CF(0,500,0) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
2093
		else
2094
			METEOR:SetPrimaryPartCFrame(CF(ORIPOS,POS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
2095
		end
2096
		local IMPACT = false
2097
		CreateSound(463593339, CENTER, 10, 0.6)
2098
		if SIZE >= 3.5 then
2099
			for i = 1, MRANDOM(3,7) do
2100
				SpawnMeteor(CF(POS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,SIZE*12).p,SIZE/MRANDOM(4,5),true,CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SIZE*15).p)
2101
			end
2102
		end
2103
		for i = 1, 200 do
2104
			Swait()
2105
			local HITFLOOR,HITPOS = Raycast(CENTER.Position, CF(CENTER.Position,POS).lookVector, 3, Character)
2106
			if HITFLOOR == nil then
2107
				local ORI = CENTER.Orientation
2108
				METEOR:SetPrimaryPartCFrame(CF(HITPOS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
2109
			else
2110
				if HITFLOOR.Anchored == true then
2111
					CreateDebreeRing(HITFLOOR,HITPOS,30*SIZE,VT(6,6,6)*SIZE,5)
2112
					CreateFlyingDebree(HITFLOOR,CF(HITPOS),8,VT(4,4,4)*SIZE,5,175)
2113
				end
2114
				IMPACT = true
2115
				break
2116
			end
2117
		end
2118
		if IMPACT == true then
2119
			WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*4*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5})
2120
			WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*3*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 201858144, SoundPitch = 1, SoundVolume = 5})
2121
			WACKYEFFECT({EffectType = "Sphere", Size = VT(SIZE*20,0,SIZE*20), Size2 = VT(0,SIZE*750,0), Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5})
2122
			ApplyAoE(CENTER.Position,30*SIZE)
2123
		end
2124
		METEOR:remove()
2125
	end))
2126
end
2127
2128
function ApplyAoE4(POSITION,RANGE,BRUTAL)
2129
	local CHILDREN = workspace:GetDescendants()
2130
	for index, CHILD in pairs(CHILDREN) do
2131
		if CHILD.ClassName == "Model" and CHILD ~= Character then
2132
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
2133
			if HUM then
2134
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
2135
				if TORSO then
2136
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
2137
						if BRUTAL == true then
2138
							Kill(CHILD)
2139
						else
2140
							CHILD:BreakJoints()
2141
						end
2142
					end
2143
				end
2144
			end
2145
		end
2146
	end
2147
end
2148
2149
function Kill(Char)
2150
	local NewCharacter = IT("Model",Effects)
2151
	NewCharacter.Name = "Ow im ded ;-;"
2152
	for _, c in pairs(Char:GetDescendants()) do
2153
		if c:IsA("BasePart") and c.Transparency == 0 then
2154
			c:BreakJoints()
2155
			c.Material = "Glass"
2156
			c.Color = C3(1,0,0)
2157
			c.CanCollide = true
2158
			c.Transparency = 0.3
2159
			if c:FindFirstChildOfClass("SpecialMesh") then
2160
				c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
2161
			end
2162
			if c.Name == "Head" then
2163
				c:ClearAllChildren()
2164
				c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
2165
			end
2166
			if c.ClassName == "MeshPart" then
2167
				c.TextureID = ""
2168
			end
2169
			if c:FindFirstChildOfClass("BodyPosition") then
2170
				c:FindFirstChildOfClass("BodyPosition"):remove()
2171
			end
2172
			if c:FindFirstChildOfClass("ParticleEmitter") then
2173
				c:FindFirstChildOfClass("ParticleEmitter"):remove()
2174
			end
2175
			c.Parent = NewCharacter
2176
			c.Name = "DeadPart"
2177
			c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
2178
			c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
2179
		end
2180
	end
2181
	Char:remove()
2182
	Debris:AddItem(NewCharacter,5)
2183
end
2184
2185
function ApplyAoE(POSITION,RANGE,BRUTAL)
2186
	local CHILDREN = workspace:GetDescendants()
2187
	for index, CHILD in pairs(CHILDREN) do
2188
		if CHILD.ClassName == "Model" and CHILD ~= Character then
2189
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
2190
			if HUM then
2191
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
2192
				if TORSO then
2193
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
2194
						if BRUTAL == true then
2195
							Kill(CHILD)
2196
						else
2197
							CHILD:BreakJoints()
2198
						end
2199
					end
2200
				end
2201
			end
2202
		end
2203
	end
2204
end
2205
2206
function ApplyAoE(POSITION,RANGE,BRUTAL)
2207
	local CHILDREN = workspace:GetDescendants()
2208
	for index, CHILD in pairs(CHILDREN) do
2209
		if CHILD.ClassName == "Model" and CHILD ~= Character then
2210
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
2211
			if HUM then
2212
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
2213
				if TORSO then
2214
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
2215
						if BRUTAL == true then
2216
							Kill(CHILD)
2217
						else
2218
							CHILD:BreakJoints()
2219
						end
2220
					end
2221
				end
2222
			end
2223
		end
2224
	end
2225
end
2226
2227
function Banish(Foe)
2228
	if Foe then
2229
		coroutine.resume(coroutine.create(function()
2230
			--if game.Players:FindFirstChild(Foe.Name) then
2231
				table.insert(TOBANISH,Foe.Name)
2232
				printbye(Foe.Name)
2233
			--end
2234
			Foe.Archivable = true
2235
			local CLONE = Foe:Clone()
2236
			Foe:Destroy()
2237
			CLONE.Parent = Effects
2238
			CLONE:BreakJoints()
2239
			local MATERIALS = {"Glass","Neon"}
2240
			for _, c in pairs(CLONE:GetDescendants()) do
2241
				if c:IsA("BasePart") then
2242
					if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
2243
 						CreateSound(138271815, c, 10, 1, false)
2244
					end
2245
					c.Anchored = true
2246
					c.Transparency = c.Transparency + 0.2
2247
					c.Material = MATERIALS[MRANDOM(1,2)]
2248
					c.Color = C3(1,0,0)
2249
					if c.ClassName == "MeshPart" then
2250
						c.TextureID = ""
2251
					end
2252
					if c:FindFirstChildOfClass("SpecialMesh") then
2253
						c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
2254
					end
2255
					if c:FindFirstChildOfClass("Decal") then
2256
						c:FindFirstChildOfClass("Decal"):remove()
2257
					end
2258
					c.Name = "Banished"
2259
					c.CanCollide = false
2260
				else
2261
					c:remove()
2262
				end
2263
			end
2264
			local A = false
2265
			for i = 1, 35 do
2266
				if A == false then
2267
					A = true
2268
				elseif A == true then
2269
					A = false
2270
				end
2271
				for _, c in pairs(CLONE:GetDescendants()) do
2272
					if c:IsA("BasePart") then
2273
						c.Anchored = true
2274
						c.Material = MATERIALS[MRANDOM(1,2)]
2275
						c.Transparency = c.Transparency + 0.8/35
2276
						if A == false then
2277
							c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
2278
						elseif A == true then
2279
							c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)						
2280
						end
2281
					end
2282
				end
2283
				Swait()
2284
			end
2285
			CLONE:remove()
2286
		end))
2287
	end
2288
end
2289
2290
2291
function ApplyAoE(POSITION,RANGE,ISBANISH)
2292
	local CHILDREN = workspace:GetDescendants()
2293
	for index, CHILD in pairs(CHILDREN) do
2294
		if CHILD.ClassName == "Model" and CHILD ~= Character then
2295
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
2296
			if HUM then
2297
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
2298
				if TORSO then
2299
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
2300
						if ISBANISH == true then
2301
							Banish(CHILD)
2302
						else
2303
							if ISBANISH == "Gravity" then
2304
								HUM.PlatformStand = true
2305
								if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
2306
									local grav = Instance.new("BodyPosition",TORSO)
2307
									grav.D = 15
2308
									grav.P = 20000
2309
									grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
2310
									grav.position = TORSO.Position
2311
									grav.Name = "V3BanishForce"..Player.Name
2312
								else
2313
									TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
2314
									TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
2315
								end
2316
							else
2317
								HUM.PlatformStand = false
2318
							end
2319
						end
2320
					elseif ISBANISH == "Gravity" then
2321
						if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
2322
							TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
2323
							HUM.PlatformStand = false
2324
						end
2325
					end
2326
				end
2327
			end
2328
		end
2329
	end
2330
end
2331
2332
function SpawnSmite(POS)
2333
	local HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, Character)
2334
	local EMITPOS = HITPOS
2335
	if HITFLOOR ~= nil then
2336
		if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
2337
			HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent)
2338
			EMITPOS = HITPOS
2339
		elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
2340
			HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent)
2341
			EMITPOS = HITPOS
2342
		end
2343
	end
2344
	if HITFLOOR ~= nil then
2345
		ApplyAoE(EMITPOS,10)
2346
		WACKYEFFECT({EffectType = "Sphere", Size = VT(0,100000,0), Size2 = VT(10,100000,10), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5})
2347
		WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*2, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
2348
		WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*1.5, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
2349
		for i = 1, 5 do
2350
			local TOPOS = CF(EMITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,12)
2351
			WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.2,0,0.2), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS,TOPOS.p) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = TOPOS.p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5})
2352
		end
2353
	end
2354
end
2355
2356
--//=================================\\
2357
--||	ATTACK FUNCTIONS AND STUFF
2358
--\\=================================//
2359
2360
function eh()
2361
	ATTACK = true
2362
	Rooted = false
2363
	Speed = 20
2364
		Swait()
2365
		local CHILDREN = workspace:GetDescendants()
2366
		for index, CHILD in pairs(CHILDREN) do
2367
			if CHILD.ClassName == "Model" and CHILD ~= Character then
2368
				local HUM = CHILD:FindFirstChildOfClass("Humanoid")
2369
				if HUM then
2370
					local TORSO = CHILD:FindFirstChild("Head")
2371
					if TORSO then
2372
						if (TORSO.Position - Head.Position).Magnitude <= 25 then
2373
							WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
2374
							TORSO:remove()
2375
							if CHILD:FindFirstChild("Torso") then
2376
								Ragdoll(CHILD,Torso,true)
2377
							elseif CHILD:FindFirstChild("UpperTorso") then
2378
								R15Ragdoll(CHILD,true)
2379
							end
2380
						end
2381
					end
2382
				end
2383
			end
2384
		end
2385
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
2386
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 1})
2387
	for i=0, 0.3, 0.1 / Animation_Speed do
2388
		Swait()
2389
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed)	
2390
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
2391
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.3) * ANGLES(RAD(180), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
2392
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
2393
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
2394
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
2395
end
2396
	Speed = 20
2397
	ATTACK = false
2398
	Rooted = false
2399
end
2400
2401
function Taunt()
2402
	ATTACK = true
2403
	Rooted = true
2404
	        CreateSound("1238240145", Torso, 6, 0.9)
2405
		for i=0, 0.6, 0.1 / Animation_Speed do
2406
			Swait()
2407
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2408
Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
2409
RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(90), RAD(34), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
2410
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
2411
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2412
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2413
		end
2414
		for i=0, 0.6, 0.1 / Animation_Speed do
2415
			Swait()
2416
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2417
Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
2418
RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
2419
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(15), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
2420
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2421
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2422
		end
2423
		for i=0, 0.6, 0.1 / Animation_Speed do
2424
			Swait()
2425
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2426
Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
2427
RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(90), RAD(34), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
2428
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
2429
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2430
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2431
		end
2432
		for i=0, 0.6, 0.1 / Animation_Speed do
2433
			Swait()
2434
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2435
Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
2436
RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
2437
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(15), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
2438
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2439
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2440
		end
2441
		for i=0, 0.6, 0.1 / Animation_Speed do
2442
			Swait()
2443
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2444
Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
2445
RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(90), RAD(34), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
2446
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
2447
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2448
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2449
		end
2450
		for i=0, 0.6, 0.1 / Animation_Speed do
2451
			Swait()
2452
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2453
Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
2454
RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
2455
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(15), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
2456
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2457
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2458
		end
2459
	ATTACK = false
2460
	Rooted = false
2461
end
2462
2463
function Karmaz()
2464
	if Mode == "Glitch" then
2465
		WACKYEFFECT({TIME = 30 ,EffectType = "Block", Size = VT(0,0,0), Size2 = VT(20,20,20), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 743499393, SoundPitch = 1.05, SoundVolume = 15})
2466
		sick.TimePosition = 15
2467
		sick.SoundId = "rbxassetid://1789295287"
2468
		tecks2.Text = "KARMA."
2469
		tecks2.Font = "Antique"
2470
		Mode = "Karma"
2471
	elseif Mode == "Karma" then
2472
		WACKYEFFECT({TIME = 30 ,EffectType = "Block", Size = VT(0,0,0), Size2 = VT(20,20,20), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 743499393, SoundPitch = 1.05, SoundVolume = 15})
2473
		sick.TimePosition = 0
2474
		tecks2.Text = "The Glitched."
2475
		tecks2.Font = "Code"
2476
		sick.SoundId = "rbxassetid://930541401"
2477
		Mode = "Glitch"
2478
	else
2479
		print("asd")
2480
	end
2481
end
2482
2483
function TakeOnMe()
2484
	Speed = 16
2485
	local MEME = CreateSound(1171341451, Effects, 2, 1, false)
2486
	ATTACK = true
2487
	Rooted = false
2488
	local DANCE = true
2489
	local KEY = Mouse.KeyDown:connect(function(NEWKEY)
2490
		if NEWKEY == "p" then
2491
			DANCE = false
2492
		end
2493
	end)
2494
	PLAYSONG = false
2495
	while true do
2496
		for i = 1, 15 do
2497
			Swait()
2498
			MEME.Parent = Effects
2499
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2500
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2501
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
2502
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
2503
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2504
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2505
		end
2506
		if DANCE == false then
2507
			break
2508
		end
2509
		for i = 1, 15 do
2510
			Swait()
2511
			MEME.Parent = Effects
2512
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2513
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed)
2514
			if MRANDOM(1,7) == 1 then
2515
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
2516
			end			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(150), RAD(65), RAD(85)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
2517
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(150), RAD(65), RAD(85)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
2518
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2519
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2520
		end
2521
	end
2522
	PLAYSONG = true
2523
	KEY:Disconnect()
2524
	MEME:remove()
2525
	Speed = 25
2526
	ATTACK = false
2527
	Rooted = false
2528
end
2529
2530
function Intro()
2531
	ATTACK = true
2532
	Rooted = true
2533
	repeat 
2534
		Swait() 
2535
		WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0) * ANGLES(RAD(MRANDOM(-90,90)), RAD(MRANDOM(-90,90)), RAD(MRANDOM(-90,90))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 0})
2536
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2537
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(-3.5 * COS(SINE / 12)), RAD(-45), RAD(12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
2538
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.8 / Animation_Speed)
2539
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, 0.5) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
2540
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(2.5 * COS(SINE / 12))), 0.8 / Animation_Speed)
2541
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-8), RAD(5), RAD(15-2.5 * COS(SINE / 12))), 0.8 / Animation_Speed)
2542
	until sick.TimePosition > 114
2543
	repeat 
2544
		Swait()
2545
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
2546
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
2547
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
2548
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
2549
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2550
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2551
	until sick.TimePosition > 116
2552
	repeat 
2553
		Swait() 
2554
		WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.2,0.2,0.2), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0) * ANGLES(RAD(MRANDOM(-90,90)), RAD(MRANDOM(-90,90)), RAD(MRANDOM(-90,90))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 0})
2555
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
2556
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
2557
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(45), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
2558
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-90), RAD(45), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
2559
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2560
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2561
	until sick.TimePosition >119
2562
	Gun.Parent = Character
2563
	tecks2.TextTransparency = 0
2564
	for i = 1, 100 do
2565
		Swait()
2566
		for _, c in pairs(Character:GetChildren()) do
2567
			if c.ClassName == "Part" and c.Name ~= "HumanoidRootPart" then
2568
				c.Transparency = 0
2569
			end
2570
		end
2571
		for _, c in pairs(Weapon:GetChildren()) do
2572
			if c.ClassName == "Part" and c.Name ~= "HumanoidRootPart" then
2573
				c.Transparency = 0
2574
			end
2575
		end
2576
for _, c in pairs(Weapon:GetDescendants()) do
2577
	if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
2578
		c.Material = "Glass"
2579
		c.Color = C3(255,255,255)
2580
	elseif c.ClassName == "Part" and c.Name == "Eye" then
2581
		c.Color = C3(1,0,0)
2582
		c.Material = "Neon"
2583
	end
2584
end
2585
	end
2586
	TRANSFORMED = true
2587
	ATTACK = false
2588
	Rooted = false
2589
end
2590
2591
function Shot()
2592
	ATTACK = true
2593
	Rooted = false
2594
	for i=0, 0.2, 0.05 / Animation_Speed do
2595
		Swait()
2596
		turnto(Mouse.Hit.p)
2597
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
2598
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
2599
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
2600
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
2601
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2602
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2603
	end
2604
	repeat
2605
		for i=0, 0.2, 0.05 / Animation_Speed do
2606
			Swait()
2607
			turnto(Mouse.Hit.p)
2608
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
2609
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
2610
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
2611
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
2612
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2613
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2614
		end
2615
		local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
2616
		SpawnTrail(Hole.Position,POS)
2617
		if HIT ~= nil then
2618
			if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
2619
				Banish(HIT.Parent)
2620
			end
2621
		end
2622
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
2623
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
2624
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
2625
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
2626
	Humanoid.CameraOffset = VT(MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5)/30
2627
		for i=0, 0.2, 0.05 / Animation_Speed do
2628
			Swait()
2629
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
2630
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
2631
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
2632
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
2633
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2634
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2635
		end
2636
	until KEYHOLD == false
2637
	ATTACK = false
2638
	Rooted = false
2639
end
2640
2641
function Shot2()
2642
	ATTACK = true
2643
	Rooted = false
2644
	for i=0, 0.2, 0.05 / Animation_Speed do
2645
		Swait()
2646
		turnto(Mouse.Hit.p)
2647
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
2648
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
2649
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
2650
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
2651
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2652
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2653
	end
2654
	repeat
2655
		for i=0, 0.2, 0.05 / Animation_Speed do
2656
			Swait()
2657
			turnto(Mouse.Hit.p)
2658
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
2659
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
2660
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
2661
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
2662
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2663
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2664
		end
2665
		local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
2666
		SpawnTrail(Hole.Position,POS)
2667
		if HIT ~= nil then
2668
			if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
2669
				Kill(HIT.Parent)
2670
			end
2671
		end
2672
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
2673
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
2674
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
2675
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
2676
	Humanoid.CameraOffset = VT(MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5)/30
2677
		for i=0, 0.2, 0.05 / Animation_Speed do
2678
			Swait()
2679
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
2680
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
2681
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
2682
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
2683
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2684
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2685
		end
2686
	until KEYHOLD == false
2687
	ATTACK = false
2688
	Rooted = false
2689
end
2690
2691
function AttackTemplate()
2692
	ATTACK = true
2693
	Rooted = false
2694
	for i=0, 1, 0.1 / Animation_Speed do
2695
		Swait()
2696
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
2697
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
2698
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
2699
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
2700
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2701
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2702
	end
2703
	ATTACK = false
2704
	Rooted = false
2705
end
2706
2707
function Finisher()
2708
	local TARGET = Mouse.Target
2709
	if TARGET ~= nil then
2710
		if TARGET.Parent:FindFirstChildOfClass("Humanoid") then
2711
			local HUM = TARGET.Parent:FindFirstChildOfClass("Humanoid")
2712
			local ROOT = TARGET.Parent:FindFirstChild("HumanoidRootPart") or TARGET.Parent:FindFirstChild("Torso") or TARGET.Parent:FindFirstChild("UpperTorso")
2713
			if ROOT and HUM.Health > 0 then
2714
				local FOE = Mouse.Target.Parent
2715
				ATTACK = true
2716
				Rooted = true
2717
				RootPart.CFrame = ROOT.CFrame*CF(-1.35,0,4)
2718
				ROOT.Anchored = true
2719
				CreateSound(670796769, Torso, 9999, 0.6, false)
2720
				CreateSound(159882598, Torso, 5, 0.9, false)
2721
				for i=0, 0.4, 0.1 / Animation_Speed do
2722
					Swait()
2723
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2724
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2725
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2726
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2727
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2728
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2729
				end
2730
				HUM.PlatformStand = true
2731
				ROOT.CFrame = ROOT.CFrame * CF(0,-2*ROOT.Size.Z,0) * ANGLES(RAD(-90), RAD(0), RAD(0))
2732
				coroutine.resume(coroutine.create(function()
2733
					Swait()
2734
					ROOT.Anchored = true
2735
				end))
2736
				RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.6)
2737
				for i=0, 0.2, 0.1 / Animation_Speed do
2738
					Swait()
2739
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
2740
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
2741
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2742
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2743
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2744
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
2745
				end
2746
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
2747
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
2748
				for i=0, 0.2, 0.1 / Animation_Speed do
2749
					Swait()
2750
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed)
2751
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 1 / Animation_Speed)
2752
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2753
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2754
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2755
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2756
				end
2757
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
2758
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
2759
				local AMMO = 6
2760
				local FIRING = true
2761
				local SHOOTING = false
2762
				local TIMER = 70
2763
				CreateSound(147722227, GunPoint, 6, 1.3, false)
2764
				for i=0, 0.2, 0.1 / Animation_Speed do
2765
					Swait()
2766
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
2767
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
2768
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(30), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2769
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2770
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2771
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
2772
				end
2773
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
2774
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
2775
				for i = 1, 6 do
2776
					local GUNPOS = Hole.CFrame*CF(0, 0, 0).p
2777
					local DISTANCE = (FOE.Head.Position - GUNPOS).Magnitude
2778
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
2779
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
2780
					HUM.Health = HUM.Health/1.5
2781
					for i=0, 0.2, 0.1 / Animation_Speed do
2782
						Swait()
2783
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
2784
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
2785
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2786
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2787
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2788
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
2789
				end
2790
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
2791
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
2792
					for i=0, 0.2, 0.1 / Animation_Speed do
2793
						Swait()
2794
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
2795
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
2796
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(30), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2797
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2798
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2799
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
2800
					end
2801
				end
2802
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
2803
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
2804
				ApplyDamage(HUM,0,true)
2805
				FOE:BreakJoints()
2806
				ROOT.Anchored = false
2807
				for i=0, 0.3, 0.1 / Animation_Speed do
2808
					Swait()
2809
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2810
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(15)), 1 / Animation_Speed)
2811
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2812
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.525, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2813
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2814
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2815
				end
2816
				ATTACK = false
2817
				Rooted = false
2818
			end
2819
		end
2820
	end
2821
end
2822
2823
2824
--//=================================\\
2825
--||	  ASSIGN THINGS TO KEYS
2826
--\\=================================//
2827
2828
function MouseDown(Mouse)
2829
	if ATTACK == false then
2830
	end
2831
end
2832
2833
function MouseUp(Mouse)
2834
HOLD = false
2835
end
2836
2837
function KeyDown(Key)
2838
	KEYHOLD = true
2839
	if Key == "z" and ATTACK == false then
2840
		Shot()
2841
	end
2842
	
2843
	if Key == "m" and ATTACK == false then
2844
		Karmaz()
2845
	end
2846
2847
	if Key == "v" and ATTACK == false then
2848
		Shot2()
2849
	end
2850
2851
	if Key == "x" and ATTACK == false then
2852
                Finisher()
2853
	end
2854
2855
	if Key == "t" and ATTACK == false then
2856
               Taunt()
2857
	end
2858
2859
	if Key == "c" and ATTACK == false then
2860
                eh()
2861
	end
2862
end
2863
2864
function KeyUp(Key)
2865
	KEYHOLD = false
2866
end
2867
2868
	Mouse.Button1Down:connect(function(NEWKEY)
2869
		MouseDown(NEWKEY)
2870
	end)
2871
	Mouse.Button1Up:connect(function(NEWKEY)
2872
		MouseUp(NEWKEY)
2873
	end)
2874
	Mouse.KeyDown:connect(function(NEWKEY)
2875
		KeyDown(NEWKEY)
2876
	end)
2877
	Mouse.KeyUp:connect(function(NEWKEY)
2878
		KeyUp(NEWKEY)
2879
	end)
2880
2881
--//=================================\\
2882
--\\=================================//
2883
2884
2885
function unanchor()
2886
	if UNANCHOR == true then
2887
		g = Character:GetChildren()
2888
		for i = 1, #g do
2889
			if g[i].ClassName == "Part" then
2890
				g[i].Anchored = false
2891
			end
2892
		end
2893
	end
2894
end
2895
2896
2897
--//=================================\\
2898
--||	WRAP THE WHOLE SCRIPT UP
2899
--\\=================================//
2900
2901
Humanoid.Changed:connect(function(Jump)
2902
	if Jump == "Jump" and (Disable_Jump == true) then
2903
		Humanoid.Jump = false
2904
	end
2905
end)
2906
2907
local FF = IT("ForceField",Character)
2908
FF.Visible = false
2909
2910
INSTANT = false
2911
Speed = 20
2912
2913
while true do
2914
	Swait()
2915
	SINE = SINE + CHANGE
2916
		ANIMATE.Parent = nil
2917
		local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
2918
		IDLEANIMATION:Play()
2919
		if TRANSFORMED == true then
2920
			tecks2.TextTransparency = 0
2921
			for _, c in pairs(Character:GetChildren()) do
2922
				if c.ClassName == "Part" and c.Name ~= "HumanoidRootPart" then
2923
					c.Anchored = false
2924
					c.Transparency = 0
2925
				end
2926
			end
2927
			for _, c in pairs(Weapon:GetChildren()) do
2928
				if c.ClassName == "Part" then
2929
					c.Transparency = 0
2930
				end
2931
			end
2932
			local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
2933
			local TORSOVERTICALVELOCITY = RootPart.Velocity.y
2934
			local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
2935
			local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
2936
			local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
2937
			if ATTACK == false and VALUE2 == false then
2938
                            end
2939
			if ANIM == "Walk" and TORSOVELOCITY > 1 then
2940
				RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2941
				Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2942
				RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2943
				LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2944
			elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
2945
				RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2946
				Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2947
				RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2948
				LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2949
			end
2950
			if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
2951
				ANIM = "Jump"
2952
				if ATTACK == false then
2953
					RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2954
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2955
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
2956
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
2957
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
2958
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
2959
			       end
2960
			elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
2961
				ANIM = "Fall"
2962
				if ATTACK == false then
2963
					RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2964
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2965
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
2966
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
2967
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
2968
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
2969
				end
2970
			elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
2971
				ANIM = "Idle"
2972
				if ATTACK == false then
2973
				if Mode == "Glitch" then
2974
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 45) + MRANDOM(-4,4)), RAD(0 + MRANDOM(-4,4)), RAD(-10 + MRANDOM(-4,4))), 3 / Animation_Speed)
2975
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15+ 5 * COS(SINE / 30) + MRANDOM(-4,4)), RAD(0 + MRANDOM(-4,4)), RAD(12 + MRANDOM(-4,4))) * RIGHTSHOULDERC0, 0.8 / Animation_Speed)
2976
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.15 + 0.12 * COS(SINE / 45), -0.05 + 0.1 * COS(SINE / 45)) * ANGLES(RAD(-15 - 6 * COS(SINE / 45)), RAD(0), RAD(0)), 0.8 / Animation_Speed)
2977
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.4, 0.8, 0) * ANGLES(RAD(165 + MRANDOM(-4,4)), RAD(0 + MRANDOM(-4,4)), RAD(25 + MRANDOM(-4,4))) * LEFTSHOULDERC0, 0.8 / Animation_Speed)
2978
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 45), -0.01) * ANGLES(RAD(-15- 6 * COS(SINE / 45)), RAD(80), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(-15)), 0.8 / Animation_Speed)
2979
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 45), -0.01) * ANGLES(RAD(-15- 6 * COS(SINE / 45)), RAD(-80), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.8 / Animation_Speed)
2980
				elseif Mode == "Karma" then
2981
						RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1 + 0.1 * COS(SINE / 24)) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed*3)
2982
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed)
2983
			if MRANDOM(1,7) == 1 then
2984
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
2985
			end					
2986
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(90), RAD(25), RAD(45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
2987
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(95), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
2988
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.1 * COS(SINE / 24), -1 - 0.1 * COS(SINE / 24)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
2989
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.2, 0.2 - 0.1 * COS(SINE / 24), -0.4 - 0.1 * COS(SINE / 24)) * ANGLES(RAD(45), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
2990
				end
2991
				end
2992
			elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
2993
				ANIM = "Walk"
2994
				if ATTACK == false then
2995
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2996
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed)
2997
			if MRANDOM(1,7) == 1 then
2998
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
2999
			end
3000
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(0), RAD(180), RAD(180)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
3001
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
3002
					RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
3003
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
3004
				end
3005
			end
3006
		end
3007
	--end
3008
	Humanoid.DisplayDistanceType = "None"
3009
	unanchor()
3010
	if scrollColortecks2 ~= 2 then
3011
		scrollColortecks2 = 2
3012
		currentColor = BrickColor.new("Really black")
3013
	elseif scrollColortecks2 ~= 1 then
3014
		scrollColortecks2 = 1
3015
		currentColor = BrickColor.new("Institutional white")
3016
	end
3017
	tecks2.TextColor3 = currentColor.Color
3018
	tecks2.TextStrokeColor3 = currentColor.Color
3019
	Humanoid.MaxHealth = "inf"
3020
	Humanoid.Health = "inf"
3021
	if Rooted == false then
3022
		Disable_Jump = false
3023
		Humanoid.WalkSpeed = Speed
3024
	elseif Rooted == true then
3025
		Disable_Jump = true
3026
		Humanoid.WalkSpeed = 0
3027
	end
3028
	if Head:FindFirstChild("face") then
3029
		Head.face.Texture = "rbxassetid://2090706356"
3030
	end
3031
	local MATHS = {"0","1"}
3032
	Humanoid.Name = MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]
3033
	Humanoid.PlatformStand = false
3034
	if INTRO == false and INSTANT == false then
3035
		INTRO = true
3036
		coroutine.resume(coroutine.create(function()
3037
			sick:Play()
3038
			Intro()
3039
		end))
3040
	end
3041
	if INSTANT == true then
3042
		if TRANSFORMED == false then
3043
			sick.TimePosition = 60
3044
			sick:Play()
3045
		end
3046
		TRANSFORMED = true
3047
	end
3048
	script.Parent = PlayerGui
3049
	Character.Parent = workspace
3050
	Humanoid.Parent = Character
3051
end
3052
--//=================================\\
3053
--\\=================================//
3054
3055
3056
3057
3058
3059
--//====================================================\\--
3060
--||			  		 END OF SCRIPT
3061
--\\====================================================//--