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