View difference between Paste ID: BAmS7pR5 and nvTm91PX
SHOW: | | - or go back to the newest paste.
1-
-----------------------
1+
-- This script has been converted to FE by thx
2
 
3
 
4
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
5
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
6
do
7
    print("FE Compatibility code by thx | Translated to FE by thx")
8
    script.Parent = Player.Character
9
 
10
    --RemoteEvent for communicating
11
    local Event = Instance.new("RemoteEvent")
12
    Event.Name = "UserInput_Event"
13
 
14
    --Fake event to make stuff like Mouse.KeyDown work
15
    local function fakeEvent()
16
        local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
17
        t.connect = t.Connect
18
        return t
19
    end
20
 
21
    --Creating fake input objects with fake variables
22
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
23
    local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
24
    local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
25
        CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
26
    end}
27
    --Merged 2 functions into one by checking amount of arguments
28
    CAS.UnbindAction = CAS.BindAction
29
 
30
    --This function will trigger the events that have been :Connect()'ed
31
    local function te(self,ev,...)
32
        local t = m[ev]
33
        if t and t._fakeEvent and t.Function then
34
            t.Function(...)
35
        end
36
    end
37
    m.TrigEvent = te
38
    UIS.TrigEvent = te
39
 
40
    Event.OnServerEvent:Connect(function(plr,io)
41
        if plr~=Player then return end
42
        if io.isMouse then
43
            m.Target = io.Target
44
            m.Hit = io.Hit
45
        else
46
            local b = io.UserInputState == Enum.UserInputState.Begin
47
            if io.UserInputType == Enum.UserInputType.MouseButton1 then
48
                return m:TrigEvent(b and "Button1Down" or "Button1Up")
49
            end
50
            for _,t in pairs(CAS.Actions) do
51
                for _,k in pairs(t.Keys) do
52
                    if k==io.KeyCode then
53
                        t.Function(t.Name,io.UserInputState,io)
54
                    end
55
                end
56
            end
57
            m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
58
            UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
59
        end
60
    end)
61
    Event.Parent = NLS([==[
62
    local Player = game:GetService("Players").LocalPlayer
63
    local Event = script:WaitForChild("UserInput_Event")
64
 
65
    local UIS = game:GetService("UserInputService")
66
    local input = function(io,a)
67
        if a then return end
68
        --Since InputObject is a client-side instance, we create and pass table instead
69
        Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
70
    end
71
    UIS.InputBegan:Connect(input)
72
    UIS.InputEnded:Connect(input)
73
 
74
    local Mouse = Player:GetMouse()
75
    local h,t
76
    --Give the server mouse data 30 times every second, but only if the values changed
77
    --If player is not moving their mouse, client won't fire events
78
    while wait(1/30) do
79
        if h~=Mouse.Hit or t~=Mouse.Target then
80
            h,t=Mouse.Hit,Mouse.Target
81
            Event:FireServer({isMouse=true,Target=t,Hit=h})
82
        end
83
    end]==],Player.Character)
84
    Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
85
end
86
87
----------------------
88
--Bye Bye--
89
-------------------------------------------------------
90
--A script By makhail07
91
92
--Probably my most brutal script yet :joy:
93
94
--Discord Creterisk#2958 
95
	--Discord Server discord.gg/r7mfmPa self advertisement ftw
96
-------------------------------------------------------
97
98
local FavIDs = {
99
	340106355, --Nefl Crystals
100
	927529620, --Dimension
101
	876981900, --Fantasy
102
	398987889, --Ordinary Days
103
	1117396305, --Oh wait, it's you.
104
	885996042, --Action Winter Journey
105
	919231299, --Sprawling Idiot Effigy
106
	743466274, --Good Day Sunshine
107
	727411183, --Knife Fight
108
	1402748531, --The Earth Is Counting On You!
109
	595230126 --Robot Language
110
	}
111
112
113
114
--The reality of my life isn't real but a Universe -makhail07
115
wait()
116
local plr = game:service'Players'.LocalPlayer
117
print('Local User is '..plr.Name)
118
local char = plr.Character
119
local hum = char.Humanoid
120
local ra = char["Right Arm"]
121
local la= char["Left Arm"]
122
local rl= char["Right Leg"]
123
local ll = char["Left Leg"]
124
local hed = char.Head
125
local root = char.HumanoidRootPart
126
local rootj = root.RootJoint
127
local tors = char.Torso
128
local mouse = plr:GetMouse()
129
local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
130
local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
131
local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
132
133
134
-------------------------------------------------------
135
--Start Good Stuff--
136
-------------------------------------------------------
137
CF = CFrame.new
138
angles = CFrame.Angles
139
attack = false
140
Euler = CFrame.fromEulerAnglesXYZ
141
Rad = math.rad
142
IT = Instance.new
143
BrickC = BrickColor.new
144
Cos = math.cos
145
Acos = math.acos
146
Sin = math.sin
147
Asin = math.asin
148
Abs = math.abs
149
Mrandom = math.random
150
Floor = math.floor
151
-------------------------------------------------------
152
--End Good Stuff--
153
-------------------------------------------------------
154
necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
155
RSH, LSH = nil, nil 
156
RW = Instance.new("Weld") 
157
LW = Instance.new("Weld")
158
RH = tors["Right Hip"]
159
LH = tors["Left Hip"]
160
RSH = tors["Right Shoulder"] 
161
LSH = tors["Left Shoulder"] 
162
RSH.Parent = nil 
163
LSH.Parent = nil 
164
RW.Name = "RW"
165
RW.Part0 = tors 
166
RW.C0 = CF(1.5, 0.5, 0)
167
RW.C1 = CF(0, 0.5, 0) 
168
RW.Part1 = ra
169
RW.Parent = tors 
170
LW.Name = "LW"
171
LW.Part0 = tors 
172
LW.C0 = CF(-1.5, 0.5, 0)
173
LW.C1 = CF(0, 0.5, 0) 
174
LW.Part1 = la
175
LW.Parent = tors
176
Effects = {}
177
178
-------------------------------------------------------
179
--Start HeartBeat--
180
-------------------------------------------------------
181
ArtificialHB = Instance.new("BindableEvent", script)
182
ArtificialHB.Name = "Heartbeat"
183
script:WaitForChild("Heartbeat")
184
185
frame = 1 / 60
186
tf = 0
187
allowframeloss = false
188
tossremainder = false
189
190
191
lastframe = tick()
192
script.Heartbeat:Fire()
193
194
195
game:GetService("RunService").Heartbeat:connect(function(s, p)
196
	tf = tf + s
197
	if tf >= frame then
198
		if allowframeloss then
199
			script.Heartbeat:Fire()
200
			lastframe = tick()
201
		else
202
			for i = 1, math.floor(tf / frame) do
203
				script.Heartbeat:Fire()
204
			end
205
			lastframe = tick()
206
		end
207
		if tossremainder then
208
			tf = 0
209
		else
210
			tf = tf - frame * math.floor(tf / frame)
211
		end
212
	end
213
end)
214
-------------------------------------------------------
215
--End HeartBeat--
216
-------------------------------------------------------
217
218
-------------------------------------------------------
219
--Start Important Functions--
220
-------------------------------------------------------
221
function swait(num)
222
	if num == 0 or num == nil then
223
		game:service("RunService").Stepped:wait(0)
224
	else
225
		for i = 0, num do
226
			game:service("RunService").Stepped:wait(0)
227
		end
228
	end
229
end
230
function thread(f)
231
	coroutine.resume(coroutine.create(f))
232
end
233
function clerp(a, b, t)
234
	local qa = {
235
		QuaternionFromCFrame(a)
236
	}
237
	local qb = {
238
		QuaternionFromCFrame(b)
239
	}
240
	local ax, ay, az = a.x, a.y, a.z
241
	local bx, by, bz = b.x, b.y, b.z
242
	local _t = 1 - t
243
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
244
end
245
function QuaternionFromCFrame(cf)
246
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
247
	local trace = m00 + m11 + m22
248
	if trace > 0 then
249
		local s = math.sqrt(1 + trace)
250
		local recip = 0.5 / s
251
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
252
	else
253
		local i = 0
254
		if m00 < m11 then
255
			i = 1
256
		end
257
		if m22 > (i == 0 and m00 or m11) then
258
			i = 2
259
		end
260
		if i == 0 then
261
			local s = math.sqrt(m00 - m11 - m22 + 1)
262
			local recip = 0.5 / s
263
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
264
		elseif i == 1 then
265
			local s = math.sqrt(m11 - m22 - m00 + 1)
266
			local recip = 0.5 / s
267
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
268
		elseif i == 2 then
269
			local s = math.sqrt(m22 - m00 - m11 + 1)
270
			local recip = 0.5 / s
271
			return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
272
		end
273
	end
274
end
275
function QuaternionToCFrame(px, py, pz, x, y, z, w)
276
	local xs, ys, zs = x + x, y + y, z + z
277
	local wx, wy, wz = w * xs, w * ys, w * zs
278
	local xx = x * xs
279
	local xy = x * ys
280
	local xz = x * zs
281
	local yy = y * ys
282
	local yz = y * zs
283
	local zz = z * zs
284
	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))
285
end
286
function QuaternionSlerp(a, b, t)
287
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
288
	local startInterp, finishInterp
289
	if cosTheta >= 1.0E-4 then
290
		if 1 - cosTheta > 1.0E-4 then
291
			local theta = math.acos(cosTheta)
292
			local invSinTheta = 1 / Sin(theta)
293
			startInterp = Sin((1 - t) * theta) * invSinTheta
294
			finishInterp = Sin(t * theta) * invSinTheta
295
		else
296
			startInterp = 1 - t
297
			finishInterp = t
298
		end
299
	elseif 1 + cosTheta > 1.0E-4 then
300
		local theta = math.acos(-cosTheta)
301
		local invSinTheta = 1 / Sin(theta)
302
		startInterp = Sin((t - 1) * theta) * invSinTheta
303
		finishInterp = Sin(t * theta) * invSinTheta
304
	else
305
		startInterp = t - 1
306
		finishInterp = t
307
	end
308
	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
309
end
310
function rayCast(Position, Direction, Range, Ignore)
311
	return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
312
end
313
local RbxUtility = LoadLibrary("RbxUtility")
314
local Create = RbxUtility.Create
315
316
-------------------------------------------------------
317
--Start Damage Function--
318
-------------------------------------------------------
319
function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
320
	if hit.Parent == nil then
321
		return
322
	end
323
	local h = hit.Parent:FindFirstChildOfClass("Humanoid")
324
	for _, v in pairs(hit.Parent:children()) do
325
		if v:IsA("Humanoid") then
326
			h = v
327
		end
328
	end
329
         if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
330
	
331
         hit.Parent:FindFirstChild("Head"):BreakJoints()
332
         end
333
334
	if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
335
		if hit.Parent:findFirstChild("DebounceHit") ~= nil then
336
			if hit.Parent.DebounceHit.Value == true then
337
				return
338
			end
339
		end
340
         if insta == true then
341
         hit.Parent:FindFirstChild("Head"):BreakJoints()
342
         end
343
		local c = Create("ObjectValue"){
344
			Name = "creator",
345
			Value = game:service("Players").LocalPlayer,
346
			Parent = h,
347
		}
348
		game:GetService("Debris"):AddItem(c, .5)
349
		if HitSound ~= nil and HitPitch ~= nil then
350
			CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) 
351
		end
352
		local Damage = math.random(minim, maxim)
353
		local blocked = false
354
		local block = hit.Parent:findFirstChild("Block")
355
		if block ~= nil then
356
			if block.className == "IntValue" then
357
				if block.Value > 0 then
358
					blocked = true
359
					block.Value = block.Value - 1
360
					print(block.Value)
361
				end
362
			end
363
		end
364
		if blocked == false then
365
			h.Health = h.Health - Damage
366
			ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
367
		else
368
			h.Health = h.Health - (Damage / 2)
369
			ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
370
		end
371
		if Type == "Knockdown" then
372
			local hum = hit.Parent.Humanoid
373
			hum.PlatformStand = true
374
			coroutine.resume(coroutine.create(function(HHumanoid)
375
				swait(1)
376
				HHumanoid.PlatformStand = false
377
			end), hum)
378
			local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
379
			local bodvol = Create("BodyVelocity"){
380
				velocity = angle * knockback,
381
				P = 5000,
382
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
383
				Parent = hit,
384
			}
385
			local rl = Create("BodyAngularVelocity"){
386
				P = 3000,
387
				maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
388
				angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
389
				Parent = hit,
390
			}
391
			game:GetService("Debris"):AddItem(bodvol, .5)
392
			game:GetService("Debris"):AddItem(rl, .5)
393
		elseif Type == "Normal" then
394
			local vp = Create("BodyVelocity"){
395
				P = 500,
396
				maxForce = Vector3.new(math.huge, 0, math.huge),
397
				velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
398
			}
399
			if knockback > 0 then
400
				vp.Parent = hit.Parent.Torso
401
			end
402
			game:GetService("Debris"):AddItem(vp, .5)
403
		elseif Type == "Up" then
404
			local bodyVelocity = Create("BodyVelocity"){
405
				velocity = Vector3.new(0, 20, 0),
406
				P = 5000,
407
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
408
				Parent = hit,
409
			}
410
			game:GetService("Debris"):AddItem(bodyVelocity, .5)
411
		elseif Type == "DarkUp" then
412
			coroutine.resume(coroutine.create(function()
413
				for i = 0, 1, 0.1 do
414
					swait()
415
					Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
416
				end
417
			end))
418
			local bodyVelocity = Create("BodyVelocity"){
419
				velocity = Vector3.new(0, 20, 0),
420
				P = 5000,
421
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
422
				Parent = hit,
423
			}
424
			game:GetService("Debris"):AddItem(bodyVelocity, 1)
425
		elseif Type == "Snare" then
426
			local bp = Create("BodyPosition"){
427
				P = 2000,
428
				D = 100,
429
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
430
				position = hit.Parent.Torso.Position,
431
				Parent = hit.Parent.Torso,
432
			}
433
			game:GetService("Debris"):AddItem(bp, 1)
434
		elseif Type == "Freeze" then
435
			local BodPos = Create("BodyPosition"){
436
				P = 50000,
437
				D = 1000,
438
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
439
				position = hit.Parent.Torso.Position,
440
				Parent = hit.Parent.Torso,
441
			}
442
			local BodGy = Create("BodyGyro") {
443
				maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
444
				P = 20e+003,
445
				Parent = hit.Parent.Torso,
446
				cframe = hit.Parent.Torso.CFrame,
447
			}
448
			hit.Parent.Torso.Anchored = true
449
			coroutine.resume(coroutine.create(function(Part) 
450
				swait(1.5)
451
				Part.Anchored = false
452
			end), hit.Parent.Torso)
453
			game:GetService("Debris"):AddItem(BodPos, 3)
454
			game:GetService("Debris"):AddItem(BodGy, 3)
455
		end
456
		local debounce = Create("BoolValue"){
457
			Name = "DebounceHit",
458
			Parent = hit.Parent,
459
			Value = true,
460
		}
461
		game:GetService("Debris"):AddItem(debounce, Delay)
462
		c = Create("ObjectValue"){
463
			Name = "creator",
464
			Value = Player,
465
			Parent = h,
466
		}
467
		game:GetService("Debris"):AddItem(c, .5)
468
	end
469
end
470
-------------------------------------------------------
471
--End Damage Function--
472
-------------------------------------------------------
473
474
-------------------------------------------------------
475
--Start Damage Function Customization--
476
-------------------------------------------------------
477
function ShowDamage(Pos, Text, Time, Color)
478
	local Rate = (1 / 30)
479
	local Pos = (Pos or Vector3.new(0, 0, 0))
480
	local Text = (Text or "")
481
	local Time = (Time or 2)
482
	local Color = (Color or Color3.new(1, 0, 1))
483
	local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
484
	EffectPart.Anchored = true
485
	local BillboardGui = Create("BillboardGui"){
486
		Size = UDim2.new(3, 0, 3, 0),
487
		Adornee = EffectPart,
488
		Parent = EffectPart,
489
	}
490
	local TextLabel = Create("TextLabel"){
491
		BackgroundTransparency = 1,
492
		Size = UDim2.new(1, 0, 1, 0),
493
		Text = Text,
494
		Font = "Bodoni",
495
		TextColor3 = Color,
496
		TextScaled = true,
497
		TextStrokeColor3 = Color3.fromRGB(0,0,0),
498
		Parent = BillboardGui,
499
	}
500
	game.Debris:AddItem(EffectPart, (Time))
501
	EffectPart.Parent = game:GetService("Workspace")
502
	delay(0, function()
503
		local Frames = (Time / Rate)
504
		for Frame = 1, Frames do
505
			wait(Rate)
506
			local Percent = (Frame / Frames)
507
			EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
508
			TextLabel.TextTransparency = Percent
509
		end
510
		if EffectPart and EffectPart.Parent then
511
			EffectPart:Destroy()
512
		end
513
	end)
514
end
515
-------------------------------------------------------
516
--End Damage Function Customization--
517
-------------------------------------------------------
518
519
function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
520
  for _, c in pairs(workspace:children()) do
521
    local hum = c:findFirstChild("Humanoid")
522
    if hum ~= nil then
523
      local head = c:findFirstChild("Head")
524
      if head ~= nil then
525
        local targ = head.Position - Part.Position
526
        local mag = targ.magnitude
527
        if magni >= mag and c.Name ~= plr.Name then
528
          Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
529
        end
530
      end
531
    end
532
  end
533
end
534
535
536
CFuncs = {
537
	Part = {
538
		Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
539
			local Part = Create("Part")({
540
				Parent = Parent,
541
				Reflectance = Reflectance,
542
				Transparency = Transparency,
543
				CanCollide = false,
544
				Locked = true,
545
				BrickColor = BrickColor.new(tostring(BColor)),
546
				Name = Name,
547
				Size = Size,
548
				Material = Material
549
			})
550
			RemoveOutlines(Part)
551
			return Part
552
		end
553
	},
554
	Mesh = {
555
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
556
			local Msh = Create(Mesh)({
557
				Parent = Part,
558
				Offset = OffSet,
559
				Scale = Scale
560
			})
561
			if Mesh == "SpecialMesh" then
562
				Msh.MeshType = MeshType
563
				Msh.MeshId = MeshId
564
			end
565
			return Msh
566
		end
567
	},
568
	Mesh = {
569
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
570
			local Msh = Create(Mesh)({
571
				Parent = Part,
572
				Offset = OffSet,
573
				Scale = Scale
574
			})
575
			if Mesh == "SpecialMesh" then
576
				Msh.MeshType = MeshType
577
				Msh.MeshId = MeshId
578
			end
579
			return Msh
580
		end
581
	},
582
	Weld = {
583
		Create = function(Parent, Part0, Part1, C0, C1)
584
			local Weld = Create("Weld")({
585
				Parent = Parent,
586
				Part0 = Part0,
587
				Part1 = Part1,
588
				C0 = C0,
589
				C1 = C1
590
			})
591
			return Weld
592
		end
593
	},
594
	Sound = {
595
		Create = function(id, par, vol, pit)
596
			coroutine.resume(coroutine.create(function()
597
				local S = Create("Sound")({
598
					Volume = vol,
599
					Pitch = pit or 1,
600
					SoundId = id,
601
					Parent = par or workspace
602
				})
603
				wait()
604
				S:play()
605
				game:GetService("Debris"):AddItem(S, 6)
606
			end))
607
		end
608
	},
609
	ParticleEmitter = {
610
		Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
611
			local fp = Create("ParticleEmitter")({
612
				Parent = Parent,
613
				Color = ColorSequence.new(Color1, Color2),
614
				LightEmission = LightEmission,
615
				Size = Size,
616
				Texture = Texture,
617
				Transparency = Transparency,
618
				ZOffset = ZOffset,
619
				Acceleration = Accel,
620
				Drag = Drag,
621
				LockedToPart = LockedToPart,
622
				VelocityInheritance = VelocityInheritance,
623
				EmissionDirection = EmissionDirection,
624
				Enabled = Enabled,
625
				Lifetime = LifeTime,
626
				Rate = Rate,
627
				Rotation = Rotation,
628
				RotSpeed = RotSpeed,
629
				Speed = Speed,
630
				VelocitySpread = VelocitySpread
631
			})
632
			return fp
633
		end
634
	}
635
}
636
function RemoveOutlines(part)
637
	part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
638
end
639
function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
640
	local Part = Create("Part")({
641
		formFactor = FormFactor,
642
		Parent = Parent,
643
		Reflectance = Reflectance,
644
		Transparency = Transparency,
645
		CanCollide = false,
646
		Locked = true,
647
		BrickColor = BrickColor.new(tostring(BColor)),
648
		Name = Name,
649
		Size = Size,
650
		Material = Material
651
	})
652
	RemoveOutlines(Part)
653
	return Part
654
end
655
function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
656
	local Msh = Create(Mesh)({
657
		Parent = Part,
658
		Offset = OffSet,
659
		Scale = Scale
660
	})
661
	if Mesh == "SpecialMesh" then
662
		Msh.MeshType = MeshType
663
		Msh.MeshId = MeshId
664
	end
665
	return Msh
666
end
667
function CreateWeld(Parent, Part0, Part1, C0, C1)
668
	local Weld = Create("Weld")({
669
		Parent = Parent,
670
		Part0 = Part0,
671
		Part1 = Part1,
672
		C0 = C0,
673
		C1 = C1
674
	})
675
	return Weld
676
end
677
678
679
-------------------------------------------------------
680
--Start Effect Function--
681
-------------------------------------------------------
682
EffectModel = Instance.new("Model", char)
683
Effects = {
684
  Block = {
685
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
686
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
687
      prt.Anchored = true
688
      prt.CFrame = cframe
689
      local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
690
      game:GetService("Debris"):AddItem(prt, 10)
691
      if Type == 1 or Type == nil then
692
        table.insert(Effects, {
693
          prt,
694
          "Block1",
695
          delay,
696
          x3,
697
          y3,
698
          z3,
699
          msh
700
        })
701
      elseif Type == 2 then
702
        table.insert(Effects, {
703
          prt,
704
          "Block2",
705
          delay,
706
          x3,
707
          y3,
708
          z3,
709
          msh
710
        })
711
      else
712
        table.insert(Effects, {
713
          prt,
714
          "Block3",
715
          delay,
716
          x3,
717
          y3,
718
          z3,
719
          msh
720
        })
721
      end
722
    end
723
  },
724
  Sphere = {
725
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
726
      local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
727
      prt.Anchored = true
728
      prt.CFrame = cframe
729
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
730
      game:GetService("Debris"):AddItem(prt, 10)
731
      table.insert(Effects, {
732
        prt,
733
        "Cylinder",
734
        delay,
735
        x3,
736
        y3,
737
        z3,
738
        msh
739
      })
740
    end
741
  },
742
  Cylinder = {
743
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
744
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
745
      prt.Anchored = true
746
      prt.CFrame = cframe
747
      local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
748
      game:GetService("Debris"):AddItem(prt, 10)
749
      table.insert(Effects, {
750
        prt,
751
        "Cylinder",
752
        delay,
753
        x3,
754
        y3,
755
        z3,
756
        msh
757
      })
758
    end
759
  },
760
  Wave = {
761
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
762
      local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
763
      prt.Anchored = true
764
      prt.CFrame = cframe
765
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
766
      game:GetService("Debris"):AddItem(prt, 10)
767
      table.insert(Effects, {
768
        prt,
769
        "Cylinder",
770
        delay,
771
        x3 / 60,
772
        y3 / 60,
773
        z3 / 60,
774
        msh
775
      })
776
    end
777
  },
778
  Ring = {
779
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
780
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
781
      prt.Anchored = true
782
      prt.CFrame = cframe
783
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
784
      game:GetService("Debris"):AddItem(prt, 10)
785
      table.insert(Effects, {
786
        prt,
787
        "Cylinder",
788
        delay,
789
        x3,
790
        y3,
791
        z3,
792
        msh
793
      })
794
    end
795
  },
796
  Break = {
797
    Create = function(brickcolor, cframe, x1, y1, z1)
798
      local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
799
      prt.Anchored = true
800
      prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
801
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
802
      local num = math.random(10, 50) / 1000
803
      game:GetService("Debris"):AddItem(prt, 10)
804
      table.insert(Effects, {
805
        prt,
806
        "Shatter",
807
        num,
808
        prt.CFrame,
809
        math.random() - math.random(),
810
        0,
811
        math.random(50, 100) / 100
812
      })
813
    end
814
  },
815
Spiral = {
816
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
817
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
818
      prt.Anchored = true
819
      prt.CFrame = cframe
820
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
821
      game:GetService("Debris"):AddItem(prt, 10)
822
      table.insert(Effects, {
823
        prt,
824
        "Cylinder",
825
        delay,
826
        x3,
827
        y3,
828
        z3,
829
        msh
830
      })
831
    end
832
  },
833
Push = {
834
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
835
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
836
      prt.Anchored = true
837
      prt.CFrame = cframe
838
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
839
      game:GetService("Debris"):AddItem(prt, 10)
840
      table.insert(Effects, {
841
        prt,
842
        "Cylinder",
843
        delay,
844
        x3,
845
        y3,
846
        z3,
847
        msh
848
      })
849
    end
850
  }
851
}
852
-------------------------------------------------------
853
--End Effect Function--
854
-------------------------------------------------------
855
856
function CreateSound(ID, PARENT, VOLUME, PITCH)
857
	local NSound = nil
858
	coroutine.resume(coroutine.create(function()
859
		NSound = Instance.new("Sound", PARENT)
860
		NSound.Volume = VOLUME
861
		NSound.Pitch = PITCH
862
		NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
863
		swait()
864
		NSound:play()
865
		game:GetService("Debris"):AddItem(NSound, 10)
866
	end))
867
	return NSound
868
end
869
870
-------------------------------------------------------
871
--Start Kyu's shitty stuff--
872
-------------------------------------------------------
873
874
function ragdoll(model)
875
    local char = model
876
    torso = char.HumanoidRootPart
877
    torso2 = char.Torso
878
    LW.Parent = nil
879
    RW.Parent = nil
880
    LH.Parent = nil
881
    RH.Parent = nil
882
		if hum ~= nil then
883
		hum.PlatformStand = true
884
		end
885
886
		local Head = char:FindFirstChild("Head")
887
		if Head then
888
			local Neck = Instance.new("Weld")
889
			Neck.Name = "Neck"
890
			Neck.Part0 = torso
891
			Neck.Part1 = Head
892
			Neck.C0 = CFrame.new(0, 1.5, 0)
893
			Neck.C1 = CFrame.new()
894
			Neck.Parent = torso
895
		end
896
		local Limb = char:FindFirstChild("Right Arm")
897
		if Limb then
898
899
			Limb.CFrame = torso.CFrame * CFrame.new(1.5, 0, 0)
900
			local Joint = Instance.new("Glue")
901
			Joint.Name = "RightShoulder"
902
			Joint.Part0 = torso
903
			Joint.Part1 = Limb
904
			Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
905
			Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
906
			Joint.Parent = torso
907
908
			local B = Instance.new("Part")
909
			B.TopSurface = 0
910
			B.BottomSurface = 0
911
			B.formFactor = "Symmetric"
912
			B.Size = Vector3.new(1, 1, 1)
913
			B.Transparency = 1
914
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
915
			B.Parent = char
916
			local W = Instance.new("Weld")
917
			W.Part0 = Limb
918
			W.Part1 = B
919
			W.C0 = CFrame.new(0, -0.5, 0)
920
			W.Parent = Limb
921
922
		end
923
		local Limb = char:FindFirstChild("Left Arm")
924
		if Limb then
925
926
			Limb.CFrame = torso.CFrame * CFrame.new(-1.5, 0, 0)
927
			local Joint = Instance.new("Glue")
928
			Joint.Name = "LeftShoulder"
929
			Joint.Part0 = torso
930
			Joint.Part1 = Limb
931
			Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
932
			Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
933
			Joint.Parent = torso
934
935
			local B = Instance.new("Part")
936
			B.TopSurface = 0
937
			B.BottomSurface = 0
938
			B.formFactor = "Symmetric"
939
			B.Size = Vector3.new(1, 1, 1)
940
			B.Transparency = 1
941
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
942
			B.Parent = char
943
			local W = Instance.new("Weld")
944
			W.Part0 = Limb
945
			W.Part1 = B
946
			W.C0 = CFrame.new(0, -0.5, 0)
947
			W.Parent = Limb
948
949
		end
950
		local Limb = char:FindFirstChild("Right Leg")
951
		if Limb then
952
953
			Limb.CFrame = torso.CFrame * CFrame.new(0.5, -2, 0)
954
			local Joint = Instance.new("Glue")
955
			Joint.Name = "RightHip"
956
			Joint.Part0 = torso
957
			Joint.Part1 = Limb
958
			Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
959
			Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
960
			Joint.Parent = torso
961
962
			local B = Instance.new("Part")
963
			B.TopSurface = 0
964
			B.BottomSurface = 0
965
			B.formFactor = "Symmetric"
966
			B.Size = Vector3.new(1, 1, 1)
967
			B.Transparency = 1
968
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
969
			B.Parent = char
970
			local W = Instance.new("Weld")
971
			W.Part0 = Limb
972
			W.Part1 = B
973
			W.C0 = CFrame.new(0, -0.5, 0)
974
			W.Parent = Limb
975
976
		end
977
		local Limb = char:FindFirstChild("Left Leg")
978
		if Limb then
979
980
			Limb.CFrame = torso.CFrame * CFrame.new(-0.5, -2, 0)
981
			local Joint = Instance.new("Glue")
982-
Music.Volume = 2.5
982+
983-
Music.SoundId = "rbxassetid://643172198"
983+
984
			Joint.Part1 = Limb
985
			Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
986
			Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
987
			Joint.Parent = torso
988
989
			local B = Instance.new("Part")
990
			B.TopSurface = 0
991
			B.BottomSurface = 0
992
			B.formFactor = "Symmetric"
993
			B.Size = Vector3.new(1, 1, 1)
994
			B.Transparency = 1
995
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
996
			B.Parent = char
997
			local W = Instance.new("Weld")
998
			W.Part0 = Limb
999
			W.Part1 = B
1000
			W.C0 = CFrame.new(0, -0.5, 0)
1001
			W.Parent = Limb
1002
1003
		end
1004
		--[
1005
		local Bar = Instance.new("Part")
1006
		Bar.TopSurface = 0
1007
		Bar.BottomSurface = 0
1008
		Bar.formFactor = "Symmetric"
1009
		Bar.Size = Vector3.new(1, 1, 1)
1010
		Bar.Transparency = 1
1011
		Bar.CFrame = torso.CFrame * CFrame.new(0, 0.5, 0)
1012
		Bar.Parent = char
1013
		local Weld = Instance.new("Weld")
1014
		Weld.Part0 = torso
1015
		Weld.Part1 = Bar
1016
		Weld.C0 = CFrame.new(0, 0.5, 0)
1017
		Weld.Parent = torso
1018
		--]]
1019
1020
torso.CFrame = CFrame.new(torso.Position)*CFrame.Angles(math.rad(20),math.rad(torso.Orientation.Y),math.rad(torso.Orientation.Z))
1021
1022
end
1023
1024
-------------------------------------------------------
1025
--End Kyu's shitty stuff--
1026
-------------------------------------------------------
1027
1028
function New(Object, Parent, Name, Data)
1029
  local Object = Instance.new(Object)
1030
  for Index, Value in pairs(Data or {}) do
1031
    Object[Index] = Value
1032
  end
1033
  Object.Parent = Parent
1034
  Object.Name = Name
1035
  return Object
1036
end
1037
1038
local Blood1 = Create("ParticleEmitter")({
1039
  Color = ColorSequence.new(Color3.new(0.7, 0, 0), Color3.new(0.1, 0, 0)),
1040
  Transparency = NumberSequence.new(0.1, 1),
1041
  Size = NumberSequence.new(0.5, 0),
1042
  Texture = "rbxassetid://602578593",
1043
  Lifetime = NumberRange.new(0.8),
1044
  Rate = 255,
1045
  VelocitySpread = 40,
1046
  Rotation = NumberRange.new(100),
1047
  Speed = NumberRange.new(5),
1048
  LightEmission = 0,
1049
  LockedToPart = false,
1050
  Acceleration = Vector3.new(0, -10, 0),
1051
  EmissionDirection = "Bottom"
1052
})
1053
1054
FHead = New("Part",char,"FHead",{CanCollide = false,BrickColor = BrickColor.new("Really black"),Size = Vector3.new(1.20000005, 0.600000024, 1),CFrame = CFrame.new(68.5999985, 0.700013041, 9.89999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
1055
Mesh = New("SpecialMesh",FHead,"Mesh",{Scale = Vector3.new(1.25999999, 1.5, 1.25999999),})
1056
Weld = New("Weld",FHead,"mot",{Part0 = FHead,Part1 = char.Head,C1 = CFrame.new(0, 0.200000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
1057
FHead.CanCollide = false
1058
1059
-------------------------------------------------------
1060
--End Important Functions--
1061
-------------------------------------------------------
1062
1063
1064
-------------------------------------------------------
1065
--Start Music Option--
1066
-------------------------------------------------------
1067
local Music = Instance.new("Sound",tors)
1068
Music.Volume = 50
1069
Music.SoundId = "rbxassetid://517120926"
1070
Music.Looped = true
1071
Music.Pitch = 1 --Pitcher
1072
Music:Play()
1073
-------------------------------------------------------
1074
--End Music Option--
1075
-------------------------------------------------------
1076
1077
1078
-------------------------------------------------------
1079
--Start Attacks N Stuff--
1080
-------------------------------------------------------
1081
1082
1083
1084
1085
local sine=0
1086
function ByeBye()
1087
	local target = nil
1088
	local targettorso = nil
1089
	if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
1090
		if mouse.Target.Parent.Humanoid.PlatformStand == false then
1091
			target = mouse.Target.Parent.Humanoid
1092
			targettorso = mouse.Target.Parent:FindFirstChild("Torso") or mouse.Target.Parent:FindFirstChild("UpperTorso")
1093
			targethead = mouse.Target.Parent:FindFirstChild("Head")
1094
		end
1095
	end
1096
	if target ~= nil then
1097
		targettorso.Anchored = true
1098
		attack = true
1099
		hum.WalkSpeed = 0
1100
		root.CFrame = targettorso.CFrame * CF(0,0,2)
1101
		for i = 0,4.2,0.1 do
1102
			swait()
1103
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
1104
		tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
1105
		RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
1106
		LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
1107
		RW.C0 = clerp(RW.C0, CF(1.1, 0.7 + 0.05 * Sin(sine / 30), -.6 + 0.025 * Cos(sine / 20)) * angles(Rad(115), Rad(0), Rad(-15)), 0.1)
1108
		LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(-25)), 0.1)
1109
		end
1110
		local bloody = Instance.new("ParticleEmitter",targettorso)
1111
		bloody.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0))
1112
		bloody.LightEmission = .1
1113
		bloody.Size = NumberSequence.new(0.5, 0)
1114
		bloody.Texture = "http://www.roblox.com/asset/?ID=602578593"
1115
		aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
1116
		bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
1117
		bloody.Transparency = bbb
1118
		bloody.Size = aaa
1119
		bloody.ZOffset = -.9
1120
		bloody.Acceleration = Vector3.new(0, -5, 0)
1121
		bloody.LockedToPart = false
1122
		bloody.Lifetime = NumberRange.new(0.8)
1123
		bloody.Rate = 255
1124
		bloody.Rotation = NumberRange.new(-100, 100)
1125
		bloody.RotSpeed = NumberRange.new(-100, 100)
1126
		bloody.Speed = NumberRange.new(6)
1127
		bloody.VelocitySpread = 0
1128
		bloody.Enabled=true
1129
		targethead:Remove()
1130
		CreateSound("429400881", targettorso, 5, .8)
1131
		CreateSound("1093102664", targettorso, 10, 1)
1132
		for i = 0,6.2,0.1 do
1133
			swait()
1134
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(110)), 0.15)
1135
		tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-110)), 0.3)
1136
		RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
1137
		LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
1138
		RW.C0 = clerp(RW.C0, CF(1.3, 0.7 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(100), Rad(0), Rad(-15)), 0.1)
1139
		LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1)
1140
		end
1141
		targettorso.Anchored = false
1142
		attack = false
1143
		hum.WalkSpeed = 16
1144
		root.CFrame = targettorso.CFrame * CF(0,0,3)
1145
	end
1146
end
1147
1148
1149
function Sayonara()
1150
	local target = nil
1151
	local targettorso = nil
1152
	if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
1153
		if mouse.Target.Parent.Humanoid.PlatformStand == false then
1154
			target = mouse.Target.Parent.Humanoid
1155
			targettorso = mouse.Target.Parent:FindFirstChild("Torso") or mouse.Target.Parent:FindFirstChild("UpperTorso")
1156
			targethead = mouse.Target.Parent:FindFirstChild("Head")
1157
			targetrightarm = mouse.Target.Parent:FindFirstChild("Right Arm")
1158
			targetleftarm = mouse.Target.Parent:FindFirstChild("Left Arm")
1159
		end
1160
	end
1161
	if target ~= nil then
1162
		targettorso.Anchored = true
1163
		attack = true
1164
		hum.WalkSpeed = 0
1165
		root.CFrame = targettorso.CFrame * CF(0,0,2.4)
1166
		for i = 0,6.2,0.1 do
1167
			swait()
1168
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(10), Rad(0), Rad(0)), 0.15)
1169
		tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(10), Rad(0)), 0.3)
1170
		RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(10)), 0.15)
1171
		LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-10)), 0.15)
1172
		RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(10)), 0.1)
1173
		LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(-10)), 0.1)
1174
		end
1175
		do
1176
		CreateSound("429400881", targettorso, 5, 1)
1177
        local ModelArm02 = New("Model", char, "Arm", {})
1178
		local ModelArm03 = New("Model", char, "Arm", {})
1179
        local Humanoid02 = New("Humanoid", ModelArm02, "Humanoid", {})
1180
		local Humanoid03 = New("Humanoid", ModelArm03, "Humanoid", {})
1181
        local Arm02 = targetleftarm:Clone()
1182
		local Arm03 = targetrightarm:Clone()
1183
        targetleftarm.Transparency = 1
1184
		targetrightarm.Transparency = 1
1185
        Arm02.Parent = ModelArm02
1186
		Arm03.Parent = ModelArm03
1187
        for i, v in pairs(Arm02:GetChildren()) do
1188
          v:Destroy()
1189
        end
1190
		for i, v in pairs(Arm03:GetChildren()) do
1191
          v:Destroy()
1192
        end
1193
        local weldArm02 = Instance.new("Weld")
1194
        weldArm02.Parent = Arm02
1195
        weldArm02.Part0 = targetleftarm
1196
        weldArm02.Part1 = Arm02
1197
        weldArm02.C1 = CFrame.new(0, 0, 0)
1198
		local weldArm03 = Instance.new("Weld")
1199
        weldArm03.Parent = Arm03
1200
        weldArm03.Part0 = targetrightarm
1201
        weldArm03.Part1 = Arm03
1202
        weldArm03.C1 = CFrame.new(0, 0, 0)
1203
        for i, v in pairs(target:GetChildren()) do
1204
          if v:IsA("Shirt") then
1205
            v:clone().Parent = ModelArm02
1206
          end
1207
        end
1208
		for i, v in pairs(target:GetChildren()) do
1209
          if v:IsA("Shirt") then
1210
            v:clone().Parent = ModelArm03
1211
          end
1212
        end
1213
		weldArm02.Part0 = la
1214
        weldArm02.C1 = CFrame.new(0, 0, 1.2) * angles(math.rad(90), math.rad(0), math.rad(0))
1215
		weldArm03.Part0 = ra
1216
        weldArm03.C1 = CFrame.new(0, 0, 1.2) * angles(math.rad(90), math.rad(0), math.rad(0))
1217
        local BE1 = Blood1:Clone()
1218
        BE1.Parent = targetleftarm
1219
        game:GetService("Debris"):AddItem(BE1, 3)
1220
        BE1.Rate = 255
1221
		local BE2 = Blood1:Clone()
1222
        BE2.Parent = targetrightarm
1223
        game:GetService("Debris"):AddItem(BE2, 3)
1224
        BE2.Rate = 255
1225
		for i = 0,6.2,0.1 do
1226
			swait()
1227
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-10), Rad(0), Rad(0)), 0.15)
1228
		tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
1229
		RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(-10)), 0.15)
1230
		LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(10)), 0.15)
1231
		RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), .6 + 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(15)), 0.1)
1232
		LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), .6 + 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(-15)), 0.1)
1233
		end
1234
		for i = 0,6.2,0.1 do
1235
			swait()
1236
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.15)
1237
		tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
1238
		RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(-20)), 0.15)
1239
		LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(20)), 0.15)
1240
		RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(180), Rad(0), Rad(15)), 0.1)
1241
		LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(180), Rad(0), Rad(-15)), 0.1)
1242
		end
1243
		CreateSound("541909763", targettorso, 5, .8)
1244
		weldArm02:Destroy()
1245
        Arm02.CanCollide = true
1246
		weldArm03:Destroy()
1247
        Arm03.CanCollide = true
1248
        local bodyVelocity2 = Create("BodyVelocity")({
1249
          velocity = Vector3.new(0, 10, 0) + root.CFrame.lookVector * 50,
1250
          P = 5000,
1251
          maxForce = Vector3.new(8000, 8000, 8000),
1252
          Parent = Arm02
1253
        })
1254
		local bodyVelocity3 = Create("BodyVelocity")({
1255
          velocity = Vector3.new(0, 10, 0) + root.CFrame.lookVector * 50,
1256
          P = 5000,
1257
          maxForce = Vector3.new(8000, 8000, 8000),
1258
          Parent = Arm03
1259
        })
1260
        game:GetService("Debris"):AddItem(bodyVelocity2, 0.05)
1261
		game:GetService("Debris"):AddItem(bodyVelocity3, 0.05)
1262
		for i = 0,6.2,0.1 do
1263
			swait()
1264
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.15)
1265
		tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
1266
		RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(35)), 0.15)
1267
		LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-20)), 0.15)
1268
		RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(95), Rad(0), Rad(15)), 0.1)
1269
		LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(95), Rad(0), Rad(-15)), 0.1)
1270
		end
1271
		for i = 0,6.2,0.1 do
1272
			swait()
1273
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.15)
1274
		tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
1275
		RH.C0 = clerp(RH.C0, CF(1, -0.3 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(90)), 0.15)
1276
		LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(20)), 0.15)
1277
		RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-30), Rad(0), Rad(15)), 0.1)
1278
		LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-30), Rad(0), Rad(-15)), 0.1)
1279
		end
1280
		targettorso:Remove()
1281
		for i = 0,6.2,0.1 do
1282
			swait()
1283
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0, -2.5, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(35), Rad(0), Rad(0)), 0.15)
1284
		tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
1285
		RH.C0 = clerp(RH.C0, CF(1, -0.2 - 0.1 * Cos(sine / 20), -.5 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(90)), 0.15)
1286
		LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-35)), 0.15)
1287
		RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-55), Rad(0), Rad(15)), 0.1)
1288
		LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-55), Rad(0), Rad(-15)), 0.1)
1289
		end
1290
		end
1291
		targettorso.Anchored = false
1292
		attack = false
1293
		hum.WalkSpeed = 16
1294
		root.CFrame = targettorso.CFrame * CF(0,0,3.4)
1295
	end
1296
end
1297
1298
function AlohaMyFriend()
1299
	local target = nil
1300
	local targettorso = nil
1301
	if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
1302
		if mouse.Target.Parent.Humanoid.PlatformStand == false then
1303
			target = mouse.Target.Parent.Humanoid
1304
			targettorso = mouse.Target.Parent:FindFirstChild("Torso") or mouse.Target.Parent:FindFirstChild("UpperTorso")
1305
			targethead = mouse.Target.Parent:FindFirstChild("Head")
1306
		end
1307
	end
1308
	if target ~= nil then
1309
		targettorso.Anchored = true
1310
		attack = true
1311
		hum.WalkSpeed = 0
1312
		root.CFrame = targettorso.CFrame * CF(0,0,2.6)
1313
		for i = 0,6.2,0.1 do
1314
			swait()
1315
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(20)), 0.15)
1316
		tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-20)), 0.3)
1317
		RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
1318
		LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
1319
		RW.C0 = clerp(RW.C0, CF(1.1, 0.7 + 0.05 * Sin(sine / 30), -.6 + 0.025 * Cos(sine / 20)) * angles(Rad(115), Rad(0), Rad(-15)), 0.1)
1320
		LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.1)
1321
		end
1322
		local ModelHead01 = New("Model", char, "Head of Decapitated", {})
1323
        local Humanoid01 = New("Humanoid", ModelHead01, "Humanoid", {})
1324
        local Head01 = targethead:Clone()
1325
        targethead.Transparency = 1
1326
        Head01.Parent = ModelHead01
1327
        local weldHead01 = Instance.new("Weld")
1328
        weldHead01.Parent = Head01
1329
        weldHead01.Part0 = targethead
1330
        weldHead01.Part1 = Head01
1331
        weldHead01.C1 = CFrame.new(0, 0, 0)
1332-
        Heart.BrickColor = BrickColor.new("Really red")
1332+
1333
		weldHead01.Part0 = ra
1334
        weldHead01.C1 = CFrame.new(0, 0, 1.2) * angles(math.rad(90), math.rad(0), math.rad(0))
1335
        local BE1 = Blood1:Clone()
1336
        BE1.Parent = targethead
1337
        game:GetService("Debris"):AddItem(BE1, 3)
1338
        BE1.Rate = 255
1339
		targettorso:BreakJoints()
1340
		CreateSound("314390675", targettorso, 5, .7)
1341
		for i = 0,4.2,0.1 do
1342
			swait()
1343
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(20)), 0.15)
1344
		tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-20)), 0.3)
1345
		RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
1346
		LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
1347
		RW.C0 = clerp(RW.C0, CF(1.1, 0.7 + 0.05 * Sin(sine / 30), -.6 + 0.025 * Cos(sine / 20)) * angles(Rad(145), Rad(0), Rad(-15)), 0.1)
1348
		LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.1)
1349
		end
1350
		for i = 0,6.2,0.1 do
1351
			swait()
1352
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-40)), 0.15)
1353
		tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(40)), 0.3)
1354
		RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
1355
		LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
1356
		RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(185), Rad(0), Rad(15)), 0.1)
1357
		LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(-15)), 0.1)
1358
		end
1359
		CreateSound("541909763", targettorso, 5, .8)
1360
		weldHead01:Destroy()
1361
        Head01.CanCollide = true
1362
        local bodyVelocity2 = Create("BodyVelocity")({
1363
          velocity = Vector3.new(0, 10, 0) + root.CFrame.lookVector * 50,
1364
          P = 5000,
1365
          maxForce = Vector3.new(8000, 8000, 8000),
1366
          Parent = Head01
1367
        })
1368
        game:GetService("Debris"):AddItem(bodyVelocity2, 0.05)
1369
		for i = 0,6.2,0.1 do
1370
			swait()
1371
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(40)), 0.15)
1372
		tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-40)), 0.3)
1373
		RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
1374
		LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
1375
		RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(-15)), 0.1)
1376
		LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(-15)), 0.1)
1377
		end
1378
		targettorso.Anchored = false
1379
		attack = false
1380
		hum.WalkSpeed = 16
1381
		root.CFrame = targettorso.CFrame * CF(0,0,3.4)
1382
	end
1383
end
1384
1385
function Good_Bye()
1386
	local target = nil
1387
	local targettorso = nil
1388
	if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
1389
		if mouse.Target.Parent.Humanoid.PlatformStand == false then
1390
			target = mouse.Target.Parent.Humanoid
1391
			targettorso = mouse.Target.Parent:FindFirstChild("Torso") or mouse.Target.Parent:FindFirstChild("UpperTorso")
1392
			targethead = mouse.Target.Parent:FindFirstChild("Head")
1393
		end
1394
	end
1395
	if target ~= nil then
1396
		targettorso.Anchored = true
1397
		attack = true
1398
		hum.WalkSpeed = 0
1399
		root.CFrame = targettorso.CFrame * CF(0,0,3)
1400
		for i = 0,6.2,0.1 do
1401
			swait()
1402
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-45)), 0.15)
1403
		tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(45)), 0.3)
1404
		RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
1405
		LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
1406
		RW.C0 = clerp(RW.C0, CF(1.3, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(25)), 0.1)
1407
		LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.1)
1408
		end
1409
		local BloodColor = Color3.new(1, 0, 0)
1410
        local PE1 = Blood1:Clone()
1411
        local PE2 = Blood1:Clone()
1412
        local Heart = Instance.new("Part")
1413
        Heart.Parent = workspace
1414
        Heart.Size = Vector3.new(1, 1, 1)
1415
        Heart.Archivable = true
1416
        Heart.Transparency = 0
1417
		Heart.CanCollide = false
1418
        Heart.BrickColor = BrickColor.new("Really black")
1419
        Heart.Material = "Granite"
1420
        Heart.CanCollide = true
1421
        local weld1Heart = Instance.new("Weld")
1422
        weld1Heart.Parent = ra
1423
        weld1Heart.Part0 = ra
1424
        weld1Heart.Part1 = Heart
1425
        weld1Heart.C1 = CFrame.new(0, 1.3, 0)
1426
		CreateSound("429400881", targettorso, 5, 1)
1427
		CreateSound("131038747", targettorso, 7, 1)
1428
        PE1.Parent = ra
1429
        PE2.Parent = Heart
1430
        game:GetService("Debris"):AddItem(PE1, 3)
1431
        game:GetService("Debris"):AddItem(weld1Heart, 1.5)
1432
        game:GetService("Debris"):AddItem(Heart, 8)
1433
		for i = 0,8,0.1 do
1434
			swait()
1435
		rootj.C0 = clerp(rootj.C0, RootCF * CF(1.2, -2.5, -0.2) * angles(Rad(0), Rad(0), Rad(40)), 0.15)
1436
		tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(10), Rad(-45)), 0.3)
1437
		RH.C0 = clerp(RH.C0, CF(1, -0.8, -0.4) * RHCF * angles(Rad(-5), Rad(0), Rad(-20)), 0.15)
1438
		LH.C0 = clerp(LH.C0, CF(-1, -0.8, -0.2) * LHCF * angles(Rad(-5), Rad(0), Rad(56)), 0.15)
1439
		RW.C0 = clerp(RW.C0, CF(1.5, 0.51 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(40)), 0.1)
1440
		LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.1)
1441
		end
1442
		targettorso:BreakJoints()
1443
		for i = 0,9,0.1 do
1444
			swait()
1445
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
1446
		tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(-20)), 0.3)
1447
		RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
1448
		LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
1449
		RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(15)), 0.1)
1450
		LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.1)
1451
		end
1452
		targettorso.Anchored = false
1453
		attack = false
1454
		hum.WalkSpeed = 16
1455
		root.CFrame = targettorso.CFrame * CF(0,0,3.4)
1456
	end
1457
end
1458
1459
function Taunt()
1460
	attack = true
1461
	hum.WalkSpeed = 0
1462
	CreateSound("290084602", tors, 10, 1)
1463
	for i = 0,6.2,0.1 do
1464
			swait()
1465
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
1466
		tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-30), Rad(0), Rad(0)), 0.3)
1467
		RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
1468
		LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
1469
		RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-0), Rad(0), Rad(145)), 0.1)
1470
		LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-0), Rad(0), Rad(-145)), 0.1)
1471
	end
1472
	for i = 0,6.2,0.1 do
1473
			swait()
1474
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.15)
1475
		tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
1476
		RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(20)), 0.15)
1477
		LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-20)), 0.15)
1478
		RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-30), Rad(0), Rad(15)), 0.1)
1479
		LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-30), Rad(0), Rad(-15)), 0.1)
1480
	end
1481
	attack = false
1482
	hum.WalkSpeed = 16
1483
end
1484
-------------------------------------------------------
1485
--End Attacks N Stuff--
1486
-------------------------------------------------------
1487
mouse.KeyDown:connect(function(key)
1488
	if attack == false then
1489
		if key == 'e' then
1490
			ByeBye()
1491
		elseif key == 'q' then
1492
			Sayonara()
1493
		elseif key == 'r' then
1494
			AlohaMyFriend()
1495
		elseif key == 'f' then
1496
			Good_Bye()
1497
		elseif key == 't' then
1498
			Taunt()
1499
		end
1500
	end
1501
 end)
1502
1503
1504
1505
1506
1507
1508
-------------------------------------------------------
1509
--Start Animations--
1510
-------------------------------------------------------
1511
local equipped = false
1512
local idle = 0
1513
local change = 1
1514
local val = 0
1515
local toim = 0
1516
local idleanim = 0.4
1517
hum.Animator.Parent = nil
1518
while true do
1519
	swait()
1520
	sine = sine + change
1521
	
1522
	Music.Parent = char
1523
	local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
1524
	local velderp = root.Velocity.y
1525
	hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4, char)
1526
	if equipped == true or equipped == false then
1527
		if attack == false then
1528
			idle = idle + 1
1529
		else
1530
			idle = 0
1531
		end
1532
		if 1 < root.Velocity.y and hitfloor == nil then
1533
			Anim = "Jump"
1534
			if attack == false then
1535
				rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-10), Rad(0), Rad(0)), 0.3)
1536
				tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-10), Rad(0), Rad(0)), 0.3)
1537
				RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(Rad(30), Rad(0), Rad(20)), 0.3)
1538
				LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(Rad(-20), Rad(0), Rad(-30)), 0.3)
1539
				LH.C0=clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15)
1540
				RH.C0=clerp(RH.C0, CF(1,-1-0.1 * Cos(sine / 20), -.3) * angles(Rad(0), Rad(90), Rad(0)), .3)
1541
			end
1542
		elseif -1 > root.Velocity.y and hitfloor == nil then
1543
			Anim = "Fall"
1544
			if attack == false then
1545
				rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(5), Rad(0), Rad(0)), 0.3)
1546
				tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(10), Rad(0), Rad(0)), 0.3)
1547
				RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(Rad(30), Rad(0), Rad(20)), 0.3)
1548
				LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(Rad(-20), Rad(0), Rad(-30)), 0.3)
1549
				LH.C0 = clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15)
1550
				RH.C0 = clerp(RH.C0, CF(1,-1-0.1 * Cos(sine / 20), -.3) * angles(Rad(0), Rad(90), Rad(0)), .3)
1551
			end
1552
		elseif torvel < 1 and hitfloor ~= nil then
1553
			Anim = "Idle"
1554
			change = 1
1555
			if attack == false then
1556
				rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(5), Rad(0), Rad(0)), 0.15)
1557
				tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(-10 - 2.5 * Sin(sine/ 20)), Rad(20 * Cos(sine / 20))), 0.3)
1558
				RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), -.2 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-3.5), Rad(0), Rad(5)), 0.15)
1559
				LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-7), Rad(0), Rad(-5)), 0.15)
1560
				RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.10 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(10 + 5 * Sin(sine/ 20))), 0.1)
1561
				LW.C0 = clerp(LW.C0, CF(-1.4, 0.5 + 0.10 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-10 - 5 * Sin(sine/ 20))), 0.1)
1562
			end
1563
		elseif tors.Velocity.magnitude < 50 and hitfloor ~= nil then
1564
			Anim = "Walk"
1565
			change = 1
1566
			if attack == false then
1567
				rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(9-2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(10 * Cos(sine / 7))), 0.15)
1568
				tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
1569
				RH.C0 = clerp(RH.C0, CF(1, -0.925 - 0.5 * Cos(sine / 7) / 2, 0.5 * Cos(sine / 7) / 2) * angles(Rad(-15 - 35 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
1570
         		LH.C0 = clerp(LH.C0, CF(-1, -0.925 + 0.5 * Cos(sine / 7) / 2, -0.5 * Cos(sine / 7) / 2) * angles(Rad(-15 + 35 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
1571
				RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(70)  * Cos(sine / 7) , Rad(0), Rad(10) - ra.RotVelocity.Y / 75), 0.1)
1572
				LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-70)  * Cos(sine / 7) , Rad(0) ,	Rad(-10) + la.RotVelocity.Y / 75), 0.1)
1573
			end
1574
		end
1575
	end
1576
	if 0 < #Effects then
1577
		for e = 1, #Effects do
1578
			if Effects[e] ~= nil then
1579
				local Thing = Effects[e]
1580
				if Thing ~= nil then
1581
					local Part = Thing[1]
1582
					local Mode = Thing[2]
1583
					local Delay = Thing[3]
1584
					local IncX = Thing[4]
1585
					local IncY = Thing[5]
1586
					local IncZ = Thing[6]
1587
					if 1 >= Thing[1].Transparency then
1588
						if Thing[2] == "Block1" then
1589
							Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1590
							local Mesh = Thing[1].Mesh
1591
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1592
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1593
						elseif Thing[2] == "Block2" then
1594
							Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
1595
							local Mesh = Thing[7]
1596
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1597
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1598
						elseif Thing[2] == "Block3" then
1599
							Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0)
1600
							local Mesh = Thing[7]
1601
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1602
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1603
						elseif Thing[2] == "Cylinder" then
1604
							local Mesh = Thing[1].Mesh
1605
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1606
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1607
						elseif Thing[2] == "Blood" then
1608
							local Mesh = Thing[7]
1609
							Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
1610
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1611
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1612
						elseif Thing[2] == "Elec" then
1613
							local Mesh = Thing[1].Mesh
1614
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
1615
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1616
						elseif Thing[2] == "Disappear" then
1617
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1618
						elseif Thing[2] == "Shatter" then
1619
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1620
							Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
1621
							Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
1622
							Thing[6] = Thing[6] + Thing[5]
1623
						end
1624
					else
1625
						Part.Parent = nil
1626
						table.remove(Effects, e)
1627
					end
1628
				end
1629
			end
1630
		end
1631
	end
1632
end
1633
-------------------------------------------------------
1634
--End Animations And Script--
1635
-------------------------------------------------------