View difference between Paste ID: 1wUSdcBv and sEfuBixp
SHOW: | | - or go back to the newest paste.
1
Sound0 = Instance.new("Sound")
2
Sound0.Volume = 10
3
Sound0.Parent = game.Players.LocalPlayer.Character.Head
4
Sound0.SoundId = "rbxassetid://SOUNDID"
5
Sound0.Looped = true
6
Sound0:Play()
7
 
8
CV="White"
9
 
10
    p = game.Players.LocalPlayer
11
    char = p.Character
12
    local txt = Instance.new("BillboardGui", char)
13
    txt.Adornee = char .Head
14
    txt.Name = "_status"
15
    txt.Size = UDim2.new(2, 0, 1.2, 0)
16
    txt.StudsOffset = Vector3.new(-9, 8, 0)
17
    local text = Instance.new("TextLabel", txt)
18
    text.Size = UDim2.new(10, 0, 7, 0)
19
    text.FontSize = "Size24"
20
    text.TextScaled = true
21
    text.TextTransparency = 0
22
    text.BackgroundTransparency = 1
23
    text.TextTransparency = 0
24
    text.TextStrokeTransparency = 0
25
    text.Font = "Arcade"
26
    text.TextStrokeColor3 = Color3.fromRGB(255,0,255)
27
 
28
    v=Instance.new("Part")
29
    v.Name = "ColorBrick"
30
    v.Parent=p.Character
31
    v.FormFactor="Symmetric"
32
    v.Anchored=true
33
    v.CanCollide=false
34
    v.BottomSurface="Smooth"
35
    v.TopSurface="Smooth"
36
    v.Size=Vector3.new(10,5,3)
37
    v.Transparency=1
38
    v.CFrame=char.Torso.CFrame
39
    v.BrickColor=BrickColor.new(CV)
40
    v.Transparency=1
41
    text.TextColor3 = Color3.fromRGB(255, 0, 0)
42
    v.Shape="Block"
43
    text.Text = "Edit by Erasedcat."
44
coroutine.wrap(function()
45
    while wait() do
46
        wait(3)
47
        text.Text = ""
48
    end
49
end)()
50
p = game.Players.LocalPlayer
51
 
52
 
53
 
54
char = p.Character
55
torso = char.Torso
56
neck = char.Torso.Neck
57-
warn("Edited by boss_kiddos and made by Theamazingnater.")
57+
warn("Edited by Erasedcat and made by Theamazingnater.")
58
wait(2)
59
-- made by Theamazingnater, And edit by boss_kiddos.
60
plr = game.Players.LocalPlayer
61
char = plr.Character
62
warn("BEGONE TH0T ;C")
63
wait(2)
64
local PlayerSize = 1
65
local FT, RA, LA, RL, LL = Instance.new("SpecialMesh"), Instance.new("SpecialMesh"), Instance.new("SpecialMesh"), Instance.new("SpecialMesh"), Instance.new("SpecialMesh")
66
FT.MeshId, FT.Scale = "rbxasset://fonts/torso.mesh", Vector3.new(PlayerSize, PlayerSize, PlayerSize)
67
RA.MeshId, RA.Scale = "rbxasset://fonts/rightarm.mesh", Vector3.new(PlayerSize, PlayerSize, PlayerSize)
68
LA.MeshId, LA.Scale = "rbxasset://fonts/leftarm.mesh", Vector3.new(PlayerSize, PlayerSize, PlayerSize)
69
RL.MeshId, RL.Scale = "rbxasset://fonts/rightleg.mesh", Vector3.new(PlayerSize, PlayerSize, PlayerSize)
70
LL.MeshId, LL.Scale = "rbxasset://fonts/leftleg.mesh", Vector3.new(PlayerSize, PlayerSize, PlayerSize)
71
function swait(num)
72
    if num == 0 or num == nil then
73
        game:service("RunService").Stepped:wait(0)
74
    else
75
        for i = 0, num do
76
            game:service("RunService").Stepped:wait(0)
77
        end
78
    end
79
end
80
local sound = Instance.new("Sound",char)
81
sound.SoundId = "rbxassetid://1209871551"
82
sound.Volume = 4
83
sound:Play()
84
   for i = 1,200 do
85
                                swait()
86
                           
87
                                FT.Parent = char.Torso
88
                                RA.Parent = char["Right Arm"]
89
                                LA.Parent = char["Left Arm"]
90
                                RL.Parent = char["Right Leg"]
91
                                LL.Parent = char["Left Leg"]
92
                                for _, v in next, char:GetDescendants() do
93
                                    if v:IsA("DataModelMesh") then
94
                                        v.Offset = Vector3.new(math.random(-45, 45) / 100, math.random(-45, 45) / 100, math.random(-45, 45) / 100)
95
                                    end
96
                                end
97
end
98
FT.Parent = nil
99
RA.Parent = nil
100
LA.Parent = nil
101
RL.Parent = nil
102
LL.Parent = nil
103
for i,v in pairs(char:GetChildren()) do
104
	if v.ClassName == "CharacterMesh" then
105
		v:Destroy()
106
	end
107
end
108
bdycolors = char["Body Colors"]
109-
bdycolors.HeadColor = BrickColor.new("Bright orange")
109+
bdycolors.HeadColor = BrickColor.new("Pastel brown")
110-
bdycolors.RightArmColor = BrickColor.new("Pastel brown")
110+
bdycolors.RightArmColor = BrickColor.new("Bright orange")
111
bdycolors.LeftArmColor = BrickColor.new("Bright orange")
112
bdycolors.RightLegColor = BrickColor.new("Pastel brown")
113
bdycolors.LeftLegColor = BrickColor.new("Pastel brown")
114
bdycolors.TorsoColor = BrickColor.new("Pastel brown")
115
shirt = Instance.new("Shirt", char)
116
shirt.Name = "Shirt"
117
pants = Instance.new("Pants", char)
118-
char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=732890040"
118+
119-
char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=379753257"
119+
char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=2015192330"
120
char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=1986176054"
121
char.Head.face.Texture = "http://www.roblox.com/asset/?id=202183814"
122
function hat()
123-
	hat2.Size = Vector3.new(3.6, 0.2, 2)
123+
124
	hat2.Size = Vector3.new(3.6, 10.2, 2)
125
	hat2.CanCollide = false
126
	local hatmesh = Instance.new("SpecialMesh",hat2)
127
	hatmesh.MeshId = "http://www.roblox.com/asset/?id=1374148"
128
	hatmesh.TextureId = "http://www.roblox.com/asset/?id=413143035"
129
	hatmesh.Scale = Vector3.new(1.05,1.05,1.05)
130
	local hatd = Instance.new("Decal",hat2)
131
	hatd.Texture = "http://www.roblox.com/asset/?id=0"
132
	for i = 1,10 do
133
		wait()
134
		hat2.CFrame = char.Torso.CFrame
135
	end
136
	local hatweld = Instance.new("Weld",hat2)
137
	hatweld.Part0 = hat2
138
	hatweld.Part1 = char.Head
139
	hatweld.C0 = CFrame.new(-0.0600004196, -0.680000305, -0.230271339, 0.999999523, 7.81437848e-09, 1.1920929e-07, -7.9307938e-09, 1, 3.49245965e-10, 8.94069672e-08, 2.91038305e-10, 0.999999285)
140
end
141-
function Character()
141+
142-
	local right = Instance.new("CharacterMesh",char)
142+
143-
	right.MeshId = "27111882"
143+
144-
	right.BodyPart = Enum.BodyPart.RightLeg
144+
145-
	local torso = Instance.new("CharacterMesh",char)
145+
146-
	torso.MeshId = "27111894"
146+
147-
	torso.BodyPart = Enum.BodyPart.Torso
147+
148-
	local lefta = Instance.new("CharacterMesh",char)
148+
149-
	lefta.MeshId = "27111419"
149+
150-
	lefta.BodyPart = Enum.BodyPart.LeftArm
150+
151-
	local leftl = Instance.new("CharacterMesh",char)
151+
152-
	leftl.MeshId = "27111857"
152+
153-
	leftl.BodyPart = Enum.BodyPart.LeftLeg
153+
154-
	local righta = Instance.new("CharacterMesh",char)
154+
155-
	righta.MeshId = "27111864"
155+
156-
	righta.BodyPart = Enum.BodyPart.RightArm
156+
157
weld.Part1 = char.HumanoidRootPart
158-
Character()
158+
159
coroutine.wrap(function()
160
	while true do
161
		wait(0.01)
162
		for i,v in pairs(char:GetChildren()) do
163
	if v.ClassName == "Accessory" then
164
	end
165
end
166
	end
167
end)()
168
    for _, v in next, char:GetDescendants() do
169
                                    if v:IsA("DataModelMesh") then
170
                                        v.Offset = Vector3.new(0,0,0)
171
                                    end
172
                                end
173
kills = 0
174
local knife = Instance.new("Part",game.Players.LocalPlayer.Character)
175
knife.Name = "knifu"
176
knife.CanCollide = false
177
local knifemesh = Instance.new("FileMesh",knife)
178
knifemesh.MeshId = "http://www.roblox.com/asset/?id=0"
179
knifemesh.TextureId = "http://www.roblox.com/asset/?ID=0"
180-
	if v.ClassName == "Hat" or v.ClassName == "Accessory" then
180+
181
weld.Part0 = knife
182
weld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
183
weld.C0 = CFrame.new(0, -0.800003052, 0.999999046, 1, 0, 0, 0, 0, -1, 0, 0.999999523, 0)
184
local plr = game:service'Players'.LocalPlayer
185
local TrailAtt = Instance.new("Attachment",knife)
186
TrailAtt.Position = Vector3.new(0.02, 0.79, -0.285)
187
local TrailAtt2 = Instance.new("Attachment",knife)
188
TrailAtt2.Position = Vector3.new(0.01, -0.54, -0.285)
189
local trail = Instance.new("Trail",knife)
190
trail.Enabled = false
191
trail.Color = ColorSequence.new(BrickColor.new("Crimson").Color)
192
trail.Attachment0 = TrailAtt
193
trail.Attachment1 = TrailAtt2
194
trail.Lifetime = 0.1
195
local char = plr.Character
196
local hum = char.Humanoid
197
local ra = char["Right Arm"]
198
local la= char["Left Arm"]
199
local rl= char["Right Leg"]
200
local ll = char["Left Leg"]
201
local hed = char.Head
202
local root = char.HumanoidRootPart
203
local rootj = root.RootJoint
204
local tors = char.Torso
205
local mouse = plr:GetMouse()
206
local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
207
local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
208
local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
209
local maincolor = BrickColor.new("Pastel yellow")
210
211
function Ragdoll(dude)
212
    local humanoid = dude:FindFirstChildOfClass("Humanoid")
213
    dude:BreakJoints()
214
     local isr15 = dude:findFirstChild("UpperTorso")
215
                if isr15 then
216
                    if humanoid.Parent:findFirstChild("HumanoidRootPart") then
217
                        humanoid.Parent.HumanoidRootPart.CanCollide = false
218
                    end
219
                    local function makeballlimb(attachone, attachtwo, upperang, lowang, twist)
220
                        local constraint = Instance.new("BallSocketConstraint", humanoid.Parent)
221
                        constraint.Attachment0 = attachone
222
                        constraint.Attachment1 = attachtwo
223
                        constraint.LimitsEnabled = true
224
                        constraint.TwistLimitsEnabled = true
225
                        constraint.TwistLowerAngle = lowang
226
                        constraint.TwistUpperAngle = upperang
227
                        constraint.UpperAngle = twist
228
                    end
229
                    local function makehingelimb(attachone, attachtwo, upperang, lowang)
230
                        local constraint = Instance.new("HingeConstraint", humanoid.Parent)
231
                        constraint.Attachment0 = attachone
232
                        constraint.Attachment1 = attachtwo
233
                        constraint.LimitsEnabled = true
234
                        constraint.LowerAngle = lowang
235
                        constraint.UpperAngle = upperang
236
                    end
237
                    for i,v in pairs(humanoid.Parent:GetChildren()) do --scan player
238
                        if v.ClassName == "Accessory" then
239
                            local findhandle = v:findFirstChild("Handle") --finding handle in accesorry
240
                            if findhandle then
241
                                local attach = findhandle:findFirstChildOfClass("Attachment")
242
                                for q,w in pairs(humanoid.Parent:GetChildren()) do --scan player
243
                                    if w.Name == "UpperTorso" or w.Name == "Head" then
244
                                        attach1 = w:findFirstChild(attach.Name) --finding attachment in head/uppertorso
245
                                    end
246
                                end
247
                                if attach and attach1 then
248
                                    local constraint = Instance.new("HingeConstraint", humanoid.Parent) --making fake weld
249
                                    constraint.Attachment0 = attach
250
                                    constraint.Attachment1 = attach1
251
                                    constraint.LimitsEnabled = true
252
                                    constraint.LowerAngle = 0
253
                                    constraint.UpperAngle = 0
254
                                end
255
                            end
256
                        end
257
                    end
258
                    if humanoid.Parent:findFirstChild("Head") and humanoid.Parent:findFirstChild("UpperTorso") then
259
                                local attachment = Instance.new("Attachment", humanoid.Parent.Head)
260
                                attachment.Position = Vector3.new(0, -0.5, 0)
261
                                attachment.Name = "lol"
262
                                attachment.Visible = false
263
                                humanoid.Parent.UpperTorso.NeckAttachment.Visible = false
264
                                humanoid.Parent.UpperTorso.NeckAttachment.Position = humanoid.Parent.UpperTorso.NeckAttachment.Position + Vector3.new(0,0,0)
265
                                local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
266
                                ball.Attachment0 = humanoid.Parent.UpperTorso.NeckAttachment
267
                                ball.Attachment1 = attachment
268
                                ball.LimitsEnabled = true
269
                                ball.TwistLimitsEnabled = true
270
                                ball.UpperAngle = 40
271
                                ball.Restitution = 0.5
272
                                ball.TwistUpperAngle = 40
273
                                ball.TwistLowerAngle = -40
274
                                local  collidepartofleftleg = Instance.new("Part", humanoid.Parent.UpperTorso)
275
                                collidepartofleftleg.Name = "Bone"
276
                                collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
277
                                collidepartofleftleg.Transparency = 1
278
                                collidepartofleftleg:BreakJoints()
279
                                local weeld = Instance.new("Weld", collidepartofleftleg)
280
                                weeld.Part0 = collidepartofleftleg
281
                                weeld.Part1 = humanoid.Parent["Head"]
282
                                if humanoid.Parent.Head:findFirstChild("Neck") then
283
                                    humanoid.Parent.Head.Neck:destroy()
284
                                end
285
                                if humanoid.Parent.Head:findFirstChild("face") then
286
                                    humanoid.Parent.Head.face.Texture = "http://www.roblox.com/asset/?id=810245460"
287
                                end
288
                    end
289
                    local LeftUpperLeg = humanoid.Parent:findFirstChild("LeftUpperLeg")
290
                    local LeftLowerLeg = humanoid.Parent:findFirstChild("LeftLowerLeg")
291
                    --
292
                    local RightUpperLeg = humanoid.Parent:findFirstChild("RightUpperLeg")
293
                    local RightLowerLeg = humanoid.Parent:findFirstChild("RightLowerLeg")
294
                    --
295
                    local RightUpperArm = humanoid.Parent:findFirstChild("RightUpperArm")
296
                    local RightLowerArm = humanoid.Parent:findFirstChild("RightLowerArm")
297
                    --
298
                    local LeftUpperArm = humanoid.Parent:findFirstChild("LeftUpperArm")
299
                    local LeftLowerArm = humanoid.Parent:findFirstChild("LeftLowerArm")
300
                    --Foot & Hands--
301
                   
302
                    local LeftFoot = humanoid.Parent:findFirstChild("LeftFoot")
303
                    local RightFoot = humanoid.Parent:findFirstChild("RightFoot")
304
                    --
305
                    local LeftHand = humanoid.Parent:findFirstChild("LeftHand")
306
                    local RightHand = humanoid.Parent:findFirstChild("RightHand")
307
                   
308
                    --END--
309
                    --TORSOS--
310
                   
311
                    local UpperTorso = humanoid.Parent:findFirstChild("UpperTorso")
312
                    local LowerTorso = humanoid.Parent:findFirstChild("LowerTorso")
313
                   
314
                    --END--
315
                    if LowerTorso then
316
                        if LeftUpperLeg then
317
                            makeballlimb(LowerTorso["LeftHipRigAttachment"], LeftUpperLeg["LeftHipRigAttachment"], 50,-50, 90)
318
                        end
319
                        if RightUpperLeg then
320
                            makeballlimb(LowerTorso["RightHipRigAttachment"], RightUpperLeg["RightHipRigAttachment"], 50,-50, 90)
321
                        end
322
                        if LeftLowerLeg then
323
                            makehingelimb(LeftUpperLeg["LeftKneeRigAttachment"], LeftLowerLeg["LeftKneeRigAttachment"], 0,-90)
324
                        end
325
                        if RightLowerLeg then
326
                            makehingelimb(RightUpperLeg["RightKneeRigAttachment"], RightLowerLeg["RightKneeRigAttachment"], 0,-90)
327
                        end
328
                        if LeftFoot then
329
                            makehingelimb(LeftLowerLeg["LeftAnkleRigAttachment"], LeftFoot["LeftAnkleRigAttachment"], 30, -30)
330
                        end
331
                        if RightFoot then
332
                            makehingelimb(RightLowerLeg["RightAnkleRigAttachment"], RightFoot["RightAnkleRigAttachment"], 30, -30)
333
                        end
334
                        if UpperTorso then
335
                            makehingelimb(UpperTorso["WaistRigAttachment"], LowerTorso["WaistRigAttachment"], 30, -30)
336
                        end
337
                    end
338
                    if UpperTorso then
339
                        local canhit = true
340
                        local hitval = 15
341
                        local uptor = humanoid.Parent.UpperTorso
342
                        if RightUpperArm then
343
                            makeballlimb(RightUpperArm["RightShoulderRigAttachment"], UpperTorso["RightShoulderRigAttachment"], 90,-50, 180)
344
                        end
345
                        if RightLowerArm then
346
                            makehingelimb(RightLowerArm["RightElbowRigAttachment"], RightUpperArm["RightElbowRigAttachment"], 0,-90)
347
                        end
348
                        if RightHand then
349
                            makehingelimb(RightHand["RightWristRigAttachment"], RightLowerArm["RightWristRigAttachment"], 30,30)
350
                        end
351
                        if LeftUpperArm then
352
                            makeballlimb(LeftUpperArm["LeftShoulderRigAttachment"], UpperTorso["LeftShoulderRigAttachment"], 90,-50, 180)
353
                        end
354
                        if LeftLowerArm then
355
                            makehingelimb(LeftLowerArm["LeftElbowRigAttachment"], LeftUpperArm["LeftElbowRigAttachment"], 0,-90)
356
                        end
357
                        if LeftHand then
358
                            makehingelimb(LeftHand["LeftWristRigAttachment"], LeftLowerArm["LeftWristRigAttachment"], 30,30)
359
                        end
360
                    end
361
                elseif dude:findFirstChild("Torso") then
362
                    canspin = false
363
                    if humanoid.Parent:findFirstChild("Health") then
364
                        humanoid.Parent.Health:Remove()
365
                    end
366
                    humanoid.WalkSpeed = 0
367
                    humanoid.JumpPower = 0
368
                    humanoid.PlatformStand = true
369
                    for z,x in pairs(humanoid.Parent:GetChildren()) do
370
                        if x.ClassName == "Accessory" then
371
                            local handle = x:findFirstChild("Handle")
372
                            if handle then
373
                                local attachment = handle:findFirstChildOfClass("Attachment")
374
                                if attachment then
375
                                    for q,w in pairs(humanoid.Parent:GetChildren()) do
376
                                        if w.Name == "Torso" or w.Name == "Head" then
377
                                            local anotherone = w:findFirstChild(attachment.Name)
378
                                            if attachment and anotherone then
379
                                                local constraint = Instance.new("HingeConstraint", humanoid.Parent) --making fake weld
380
                                                constraint.Attachment0 = attachment
381
                                                constraint.Attachment1 = anotherone
382
                                                constraint.LimitsEnabled = true
383
                                                constraint.LowerAngle = 0
384
                                                constraint.UpperAngle = 0
385
                                            end
386
                                        end
387
                                    end
388
                                end
389
                            end
390
                        end
391
                    end
392
                    if humanoid.Parent:findFirstChild("Right Arm") and humanoid.Parent:findFirstChild("Torso") then
393
                        local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
394
                        attachment.Position = Vector3.new(1, 1, 0)
395
                        local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
396
                        ball.Attachment0 = humanoid.Parent["Right Arm"].RightShoulderAttachment
397
                        ball.Attachment1 = attachment
398
                        collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
399
                        collidepartofleftleg.Name = "Bone"
400
                        collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
401
                        collidepartofleftleg.Transparency = 1
402
                        collidepartofleftleg:BreakJoints()
403
                        local weeld = Instance.new("Weld", collidepartofleftleg)
404
                        weeld.Part0 = humanoid.Parent["Right Arm"]
405
                        weeld.Part1 = collidepartofleftleg
406
                        weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
407
                    end
408
                    if humanoid.Parent:findFirstChild("Left Arm") and humanoid.Parent:findFirstChild("Torso") then
409
                        local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
410
                        attachment.Position = Vector3.new(-1, 1, 0)
411
                        local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
412
                        ball.Attachment0 = attachment
413
                        ball.Attachment1 = humanoid.Parent["Left Arm"].LeftShoulderAttachment
414
                        collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
415
                        collidepartofleftleg.Name = "Bone"
416
                        collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
417
                        collidepartofleftleg.Transparency = 1
418
                        collidepartofleftleg:BreakJoints()
419
                        local weeld = Instance.new("Weld", collidepartofleftleg)
420
                        weeld.Part0 = humanoid.Parent["Left Arm"]
421
                        weeld.Part1 = collidepartofleftleg
422
                        weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
423
                    end
424
                    if humanoid.Parent:findFirstChild("Right Leg") and humanoid.Parent:findFirstChild("Torso") then
425
                        local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
426
                        attachment.Position = Vector3.new(0.5, -1, 0)
427
                        local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
428
                        ball.Attachment0 = humanoid.Parent["Right Leg"].RightFootAttachment
429
                        ball.Attachment1 = attachment
430
                        humanoid.Parent["Right Leg"].RightFootAttachment.Position = Vector3.new(0, 1, 0)
431
                        collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
432
                        collidepartofleftleg.Name = "Bone"
433
                        collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
434
                        collidepartofleftleg.Transparency = 1
435
                        collidepartofleftleg:BreakJoints()
436
                        local weeld = Instance.new("Weld", collidepartofleftleg)
437
                        weeld.Part0 = humanoid.Parent["Right Leg"]
438
                        weeld.Part1 = collidepartofleftleg
439
                        weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
440
                    end
441
                    if humanoid.Parent:findFirstChild("Left Leg") and humanoid.Parent:findFirstChild("Torso") then
442
                        local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
443
                        attachment.Position = Vector3.new(-0.5, -1, 0)
444
                        local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
445
                        ball.Attachment0 = humanoid.Parent["Left Leg"].LeftFootAttachment
446
                        ball.Attachment1 = attachment
447
                        humanoid.Parent["Left Leg"].LeftFootAttachment.Position = Vector3.new(0, 1, 0)
448
                        collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
449
                        collidepartofleftleg.Name = "Bone"
450
                        collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
451
                        collidepartofleftleg.Transparency = 1
452
                        collidepartofleftleg:BreakJoints()
453
                        local weeld = Instance.new("Weld", collidepartofleftleg)
454
                        weeld.Part0 = humanoid.Parent["Left Leg"]
455
                        weeld.Part1 = collidepartofleftleg
456
                        weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
457
                    end
458
                    if humanoid.Parent:findFirstChild("Head") and humanoid.Parent:findFirstChild("Torso") then
459
                        local attachment = Instance.new("Attachment", humanoid.Parent.Head)
460
                        attachment.Position = Vector3.new(0, -0.5, 0)
461
                        attachment.Name = "lol"
462
                        attachment.Visible = false
463
                        humanoid.Parent.Torso.NeckAttachment.Visible = false
464
                        humanoid.Parent.Torso.NeckAttachment.Position = humanoid.Parent.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
465
                        local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
466
                        ball.Attachment0 = humanoid.Parent.Torso.NeckAttachment
467
                        ball.Attachment1 = attachment
468
                        ball.LimitsEnabled = true
469
                        ball.TwistLimitsEnabled = true
470
                        ball.UpperAngle = 90
471
                        ball.Restitution = 0.5
472
                        ball.TwistUpperAngle = 90
473
                        ball.TwistLowerAngle = -90
474
                        local  collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
475
                        collidepartofleftleg.Name = "Bone"
476
                        collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
477
                        collidepartofleftleg.Transparency = 1
478
                        collidepartofleftleg:BreakJoints()
479
                        local weeld = Instance.new("Weld", collidepartofleftleg)
480
                        weeld.Part0 = collidepartofleftleg
481
                        weeld.Part1 = humanoid.Parent["Head"]
482
                        if humanoid.Parent.Torso:findFirstChild("Neck") then
483
                            humanoid.Parent.Torso.Neck:destroy()
484
                        end
485
                        if humanoid.Parent.Head:findFirstChild("face") then
486
                            humanoid.Parent.Head.face.Texture = "http://www.roblox.com/asset/?id=810245460"
487
                        end
488
                    end
489
                    if humanoid.Parent:findFirstChild("Head") then
490
                     
491
         end
492
end
493
end
494
495
-------------------------------------------------------
496
--Start Good Stuff--
497
-------------------------------------------------------
498
CF = CFrame.new
499
angles = CFrame.Angles
500
attack = false
501
Euler = CFrame.fromEulerAnglesXYZ
502
Rad = math.rad
503
IT = Instance.new
504
BrickC = BrickColor.new
505
Cos = math.cos
506
Acos = math.acos
507
Sin = math.sin
508
Asin = math.asin
509
Abs = math.abs
510
Mrandom = math.random
511
Floor = math.floor
512
-------------------------------------------------------
513
--End Good Stuff--
514
-------------------------------------------------------
515
necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
516
RSH, LSH = nil, nil 
517
RW = Instance.new("Weld") 
518
LW = Instance.new("Weld")
519
RH = tors["Right Hip"]
520
LH = tors["Left Hip"]
521
RSH = tors["Right Shoulder"] 
522
LSH = tors["Left Shoulder"] 
523
RSH.Parent = nil 
524
LSH.Parent = nil 
525
RW.Name = "RW"
526
RW.Part0 = tors 
527
RW.C0 = CF(1.5, 0.5, 0)
528
RW.C1 = CF(0, 0.5, 0) 
529
RW.Part1 = ra
530
RW.Parent = tors 
531
LW.Name = "LW"
532
LW.Part0 = tors 
533
LW.C0 = CF(-1.5, 0.5, 0)
534
LW.C1 = CF(0, 0.5, 0) 
535
LW.Part1 = la
536
LW.Parent = tors
537
Effects = {}
538
539
-------------------------------------------------------
540
--Start HeartBeat--
541
-------------------------------------------------------
542
ArtificialHB = Instance.new("BindableEvent", script)
543
ArtificialHB.Name = "Heartbeat"
544
script:WaitForChild("Heartbeat")
545
546
frame = 1 / 60
547
tf = 0
548
allowframeloss = false
549
tossremainder = false
550
551
552
lastframe = tick()
553
script.Heartbeat:Fire()
554
555
canglitch = true
556
local FT, RA, LA, RL, LL = Instance.new("SpecialMesh"), Instance.new("SpecialMesh"), Instance.new("SpecialMesh"), Instance.new("SpecialMesh"), Instance.new("SpecialMesh")
557
        local PlayerSize = 1
558
        FT.MeshId, FT.Scale = "rbxasset://fonts/torso.mesh", Vector3.new(PlayerSize, PlayerSize, PlayerSize)
559
RA.MeshId, RA.Scale = "rbxasset://fonts/rightarm.mesh", Vector3.new(PlayerSize, PlayerSize, PlayerSize)
560
LA.MeshId, LA.Scale = "rbxasset://fonts/leftarm.mesh", Vector3.new(PlayerSize, PlayerSize, PlayerSize)
561
RL.MeshId, RL.Scale = "rbxasset://fonts/rightleg.mesh", Vector3.new(PlayerSize, PlayerSize, PlayerSize)
562
LL.MeshId, LL.Scale = "rbxasset://fonts/leftleg.mesh", Vector3.new(PlayerSize, PlayerSize, PlayerSize)
563
local txtfag = Instance.new("BillboardGui", game.Players.LocalPlayer.Character.Head)
564
txtfag.Adornee = suckadick
565
txtfag.Name = "kys nigga"
566
txtfag.Size = UDim2.new(2, 0, 1.2, 0)
567
txtfag.StudsOffset = Vector3.new(-5, 3, 0)
568
local textfag = Instance.new("TextLabel", txtfag)
569
textfag.Size = UDim2.new(6, 0, 1, 0)
570
textfag.FontSize = "Size8"
571
textfag.TextScaled = true
572
textfag.TextTransparency = 0
573
textfag.BackgroundTransparency = 1
574
textfag.TextTransparency = 0
575
textfag.TextStrokeTransparency = 0
576
textfag.Font = "Arcade"
577
textfag.TextStrokeColor3 = Color3.new(0, 1, 0)
578
v = Instance.new("Part")
579
v.Name = "ColorBrick"
580
v.Parent = part
581
v.FormFactor = "Symmetric"
582
v.Anchored = true
583
v.CanCollide = false
584
v.BottomSurface = "Smooth"
585
v.TopSurface = "Smooth"
586
v.Size = Vector3.new(10, 5, 3)
587
v.Transparency = 0.7
588
v.BrickColor = game.Players.LocalPlayer.Character.Torso.BrickColor
589
v.Transparency = 1
590
textfag.TextColor3 = BrickColor.new("Really red").Color
591
textfag.TextStrokeColor3 = BrickColor.new("Really black").Color
592
v.Shape = "Block"
593
textfag.Text = "Erasedcat, the deviant android"
594
coroutine.resume(coroutine.create(function()
595
    while textfag ~= nil do
596
        swait()
597
        textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3))  
598
        textfag.Rotation = math.random(-3,3)
599
    end
600
end))
601
local kills2 = Instance.new("ScreenGui",plr.PlayerGui) -- This will make a ScreenGui, which shows how much kills ya got.
602
local text = Instance.new("TextLabel",kills2)
603
text.Text = "SLASHED " .. kills -- Changes the text to "KILLS: 0" since the value is 0.
604
text.Position = UDim2.new(0.728, 0,0.793, 0) -- This position failed, don't know why.
605
text.Size = UDim2.new(0.271, 0,0.207, 0)
606
text.TextColor3 = textfag.TextColor3
607
text.TextScaled = true
608
text.BackgroundTransparency = 1
609
local number = Instance.new("NumberValue",char) -- Creates a NumberValue, which is the Kills value.
610
number.Name = "Slashes"
611-
textfag.Text = "MAD Playful Cat"
611+
612
coroutine.wrap(function()
613
	while true do
614
		wait(0.01)
615
		number.Value = kills -- Keeps up updating. We need this so the text will change.
616
	end
617
end)()
618
coroutine.resume(coroutine.create(function()
619
    while text ~= nil do
620
        swait()
621
        text.Text = "SLASHED: " .. number.Value -- Updates each time it changes the value.
622
        text.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3))  
623
        text.Rotation = math.random(-3,3)
624
    end
625
end))
626
killall = false
627
function IAMGOD(key)
628
	if key == "q" and not killall then
629
        killall = true
630
		local lAuGh = Instance.new("Sound",workspace)
631
		lAuGh.SoundId = "rbxassetid://1091083826"
632
		lAuGh.Volume = 10000
633
		lAuGh.Looped = false
634
		lAuGh:Play()
635
		for i,v in pairs(workspace:GetChildren()) do
636
			if v.ClassName == "Model" then
637
				v:FindFirstChildOfClass("Humanoid").Health = 0
638
			end
639
		end
640
	end
641
end
642
mouse.KeyDown:connect(IAMGOD)
643
game:GetService("RunService").Heartbeat:connect(function(s, p)
644
	tf = tf + s
645
	if tf >= frame then
646
		if allowframeloss then
647
			script.Heartbeat:Fire()
648
			lastframe = tick()
649
		else
650
			for i = 1, math.floor(tf / frame) do
651
				script.Heartbeat:Fire()
652
			end
653
			lastframe = tick()
654
		end
655
		if tossremainder then
656
			tf = 0
657
		else
658
			tf = tf - frame * math.floor(tf / frame)
659
		end
660
	end
661
end)
662
-------------------------------------------------------
663
--End HeartBeat--
664
-------------------------------------------------------
665
666
-------------------------------------------------------
667
--Start Important Functions--
668
-------------------------------------------------------
669
function swait(num)
670
	if num == 0 or num == nil then
671
		game:service("RunService").Stepped:wait(0)
672
	else
673
		for i = 0, num do
674
			game:service("RunService").Stepped:wait(0)
675
		end
676
	end
677
end
678
function thread(f)
679
	coroutine.resume(coroutine.create(f))
680
end
681
function clerp(a, b, t)
682
	local qa = {
683
		QuaternionFromCFrame(a)
684
	}
685
	local qb = {
686
		QuaternionFromCFrame(b)
687
	}
688
	local ax, ay, az = a.x, a.y, a.z
689
	local bx, by, bz = b.x, b.y, b.z
690
	local _t = 1 - t
691
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
692
end
693
function QuaternionFromCFrame(cf)
694
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
695
	local trace = m00 + m11 + m22
696
	if trace > 0 then
697
		local s = math.sqrt(1 + trace)
698
		local recip = 0.5 / s
699
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
700
	else
701
		local i = 0
702
		if m00 < m11 then
703
			i = 1
704
		end
705
		if m22 > (i == 0 and m00 or m11) then
706
			i = 2
707
		end
708
		if i == 0 then
709
			local s = math.sqrt(m00 - m11 - m22 + 1)
710
			local recip = 0.5 / s
711
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
712
		elseif i == 1 then
713
			local s = math.sqrt(m11 - m22 - m00 + 1)
714
			local recip = 0.5 / s
715
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
716
		elseif i == 2 then
717
			local s = math.sqrt(m22 - m00 - m11 + 1)
718
			local recip = 0.5 / s
719
			return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
720
		end
721
	end
722
end
723
function QuaternionToCFrame(px, py, pz, x, y, z, w)
724
	local xs, ys, zs = x + x, y + y, z + z
725
	local wx, wy, wz = w * xs, w * ys, w * zs
726
	local xx = x * xs
727
	local xy = x * ys
728
	local xz = x * zs
729
	local yy = y * ys
730
	local yz = y * zs
731
	local zz = z * zs
732
	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))
733
end
734
function QuaternionSlerp(a, b, t)
735
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
736
	local startInterp, finishInterp
737
	if cosTheta >= 1.0E-4 then
738
		if 1 - cosTheta > 1.0E-4 then
739
			local theta = math.acos(cosTheta)
740
			local invSinTheta = 1 / Sin(theta)
741
			startInterp = Sin((1 - t) * theta) * invSinTheta
742
			finishInterp = Sin(t * theta) * invSinTheta
743
		else
744
			startInterp = 1 - t
745
			finishInterp = t
746
		end
747
	elseif 1 + cosTheta > 1.0E-4 then
748
		local theta = math.acos(-cosTheta)
749
		local invSinTheta = 1 / Sin(theta)
750
		startInterp = Sin((t - 1) * theta) * invSinTheta
751
		finishInterp = Sin(t * theta) * invSinTheta
752
	else
753
		startInterp = t - 1
754
		finishInterp = t
755
	end
756
	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
757
end
758
function rayCast(Position, Direction, Range, Ignore)
759
	return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
760
end
761
local RbxUtility = LoadLibrary("RbxUtility")
762
local Create = RbxUtility.Create
763
764
-------------------------------------------------------
765
--Start Damage Function--
766
-------------------------------------------------------
767
function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
768
	if hit.Parent == nil then
769
		return
770
	end
771
	local h = hit.Parent:FindFirstChildOfClass("Humanoid")
772
	for _, v in pairs(hit.Parent:children()) do
773
		if v:IsA("Humanoid") then
774
			h = v
775
		end
776
	end
777
         if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
778
	
779
         hit.Parent:FindFirstChild("Head"):BreakJoints()
780
         end
781
782
	if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
783
		if hit.Parent:findFirstChild("DebounceHit") ~= nil then
784
			if hit.Parent.DebounceHit.Value == true then
785
				return
786
			end
787
		end
788
         if insta == true then
789
         hit.Parent:FindFirstChild("Head"):BreakJoints()
790
         end
791
		local c = Create("ObjectValue"){
792
			Name = "creator",
793
			Value = game:service("Players").LocalPlayer,
794
			Parent = h,
795
		}
796
		game:GetService("Debris"):AddItem(c, .5)
797
		if HitSound ~= nil and HitPitch ~= nil then
798
			CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) 
799
		end
800
		local Damage = math.random(minim, maxim)
801
		local blocked = false
802
		local block = hit.Parent:findFirstChild("Block")
803
		if block ~= nil then
804
			if block.className == "IntValue" then
805
				if block.Value > 0 then
806
					blocked = true
807
					block.Value = block.Value - 1
808
					print(block.Value)
809
				end
810
			end
811
		end
812
		if blocked == false then
813
			h.Health = h.Health - Damage
814
			ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
815
		else
816
			h.Health = h.Health - (Damage / 2)
817
			ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
818
		end
819
		if Type == "Knockdown" then
820
			local hum = hit.Parent.Humanoid
821
			hum.PlatformStand = true
822
			coroutine.resume(coroutine.create(function(HHumanoid)
823
				swait(1)
824
				HHumanoid.PlatformStand = false
825
			end), hum)
826
			local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
827
			local bodvol = Create("BodyVelocity"){
828
				velocity = angle * knockback,
829
				P = 5000,
830
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
831
				Parent = hit,
832
			}
833
			local rl = Create("BodyAngularVelocity"){
834
				P = 3000,
835
				maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
836
				angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
837
				Parent = hit,
838
			}
839
			game:GetService("Debris"):AddItem(bodvol, .5)
840
			game:GetService("Debris"):AddItem(rl, .5)
841
		elseif Type == "Normal" then
842
			local vp = Create("BodyVelocity"){
843
				P = 500,
844
				maxForce = Vector3.new(math.huge, 0, math.huge),
845
				velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
846
			}
847
			if knockback > 0 then
848
				vp.Parent = hit.Parent.Torso
849
			end
850
			game:GetService("Debris"):AddItem(vp, .5)
851
		elseif Type == "Up" then
852
			local bodyVelocity = Create("BodyVelocity"){
853
				velocity = Vector3.new(0, 20, 0),
854
				P = 5000,
855
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
856
				Parent = hit,
857
			}
858
			game:GetService("Debris"):AddItem(bodyVelocity, .5)
859
		elseif Type == "DarkUp" then
860
			coroutine.resume(coroutine.create(function()
861
				for i = 0, 1, 0.1 do
862
					swait()
863
					Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
864
				end
865
			end))
866
			local bodyVelocity = Create("BodyVelocity"){
867
				velocity = Vector3.new(0, 20, 0),
868
				P = 5000,
869
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
870
				Parent = hit,
871
			}
872
			game:GetService("Debris"):AddItem(bodyVelocity, 1)
873
		elseif Type == "Snare" then
874
			local bp = Create("BodyPosition"){
875
				P = 2000,
876
				D = 100,
877
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
878
				position = hit.Parent.Torso.Position,
879
				Parent = hit.Parent.Torso,
880
			}
881
			game:GetService("Debris"):AddItem(bp, 1)
882
		elseif Type == "Freeze" then
883
			local BodPos = Create("BodyPosition"){
884
				P = 50000,
885
				D = 1000,
886
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
887
				position = hit.Parent.Torso.Position,
888
				Parent = hit.Parent.Torso,
889
			}
890
			local BodGy = Create("BodyGyro") {
891
				maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
892
				P = 20e+003,
893
				Parent = hit.Parent.Torso,
894
				cframe = hit.Parent.Torso.CFrame,
895
			}
896
			hit.Parent.Torso.Anchored = true
897
			coroutine.resume(coroutine.create(function(Part) 
898
				swait(1.5)
899
				Part.Anchored = false
900
			end), hit.Parent.Torso)
901
			game:GetService("Debris"):AddItem(BodPos, 3)
902
			game:GetService("Debris"):AddItem(BodGy, 3)
903
		end
904
		local debounce = Create("BoolValue"){
905
			Name = "DebounceHit",
906
			Parent = hit.Parent,
907
			Value = true,
908
		}
909
		game:GetService("Debris"):AddItem(debounce, Delay)
910
		c = Create("ObjectValue"){
911
			Name = "creator",
912
			Value = Player,
913
			Parent = h,
914
		}
915
		game:GetService("Debris"):AddItem(c, .5)
916
	end
917
end
918
-------------------------------------------------------
919
--End Damage Function--
920
-------------------------------------------------------
921
922
-------------------------------------------------------
923
--Start Damage Function Customization--
924
-------------------------------------------------------
925
function ShowDamage(Pos, Text, Time, Color)
926
	local Rate = (1 / 30)
927
	local Pos = (Pos or Vector3.new(0, 0, 0))
928
	local Text = (Text or "")
929
	local Time = (Time or 2)
930
	local Color = (Color or Color3.new(1, 0, 1))
931
	local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
932
	EffectPart.Anchored = true
933
	local BillboardGui = Create("BillboardGui"){
934
		Size = UDim2.new(3, 0, 3, 0),
935
		Adornee = EffectPart,
936
		Parent = EffectPart,
937
	}
938
	local TextLabel = Create("TextLabel"){
939
		BackgroundTransparency = 1,
940
		Size = UDim2.new(1, 0, 1, 0),
941
		Text = Text,
942
		Font = "Bodoni",
943
		TextColor3 = Color,
944
		TextScaled = true,
945
		TextStrokeColor3 = Color3.fromRGB(0,0,0),
946
		Parent = BillboardGui,
947
	}
948
	game.Debris:AddItem(EffectPart, (Time))
949
	EffectPart.Parent = game:GetService("Workspace")
950
	delay(0, function()
951
		local Frames = (Time / Rate)
952
		for Frame = 1, Frames do
953
			wait(Rate)
954
			local Percent = (Frame / Frames)
955
			EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
956
			TextLabel.TextTransparency = Percent
957
		end
958
		if EffectPart and EffectPart.Parent then
959
			EffectPart:Destroy()
960
		end
961
	end)
962
end
963
-------------------------------------------------------
964
--End Damage Function Customization--
965
-------------------------------------------------------
966
967
function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
968
  for _, c in pairs(workspace:children()) do
969
    local hum = c:findFirstChild("Humanoid")
970
    if hum ~= nil then
971
      local head = c:findFirstChild("Head")
972
      if head ~= nil then
973
        local targ = head.Position - Part.Position
974
        local mag = targ.magnitude
975
        if magni >= mag and c.Name ~= plr.Name then
976
          Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
977
        end
978
      end
979
    end
980
  end
981
end
982
983
984
CFuncs = {
985
	Part = {
986
		Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
987
			local Part = Create("Part")({
988
				Parent = Parent,
989
				Reflectance = Reflectance,
990
				Transparency = Transparency,
991
				CanCollide = false,
992
				Locked = true,
993
				BrickColor = BrickColor.new(tostring(BColor)),
994
				Name = Name,
995
				Size = Size,
996
				Material = Material
997
			})
998
			RemoveOutlines(Part)
999
			return Part
1000
		end
1001
	},
1002
	Mesh = {
1003
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
1004
			local Msh = Create(Mesh)({
1005
				Parent = Part,
1006
				Offset = OffSet,
1007
				Scale = Scale
1008
			})
1009
			if Mesh == "SpecialMesh" then
1010
				Msh.MeshType = MeshType
1011
				Msh.MeshId = MeshId
1012
			end
1013
			return Msh
1014
		end
1015
	},
1016
	Mesh = {
1017
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
1018
			local Msh = Create(Mesh)({
1019
				Parent = Part,
1020
				Offset = OffSet,
1021
				Scale = Scale
1022
			})
1023
			if Mesh == "SpecialMesh" then
1024
				Msh.MeshType = MeshType
1025
				Msh.MeshId = MeshId
1026
			end
1027
			return Msh
1028
		end
1029
	},
1030
	Weld = {
1031
		Create = function(Parent, Part0, Part1, C0, C1)
1032
			local Weld = Create("Weld")({
1033
				Parent = Parent,
1034
				Part0 = Part0,
1035
				Part1 = Part1,
1036
				C0 = C0,
1037
				C1 = C1
1038
			})
1039
			return Weld
1040
		end
1041
	},
1042
	Sound = {
1043
		Create = function(id, par, vol, pit)
1044
			coroutine.resume(coroutine.create(function()
1045
				local S = Create("Sound")({
1046
					Volume = vol,
1047
					Pitch = pit or 1,
1048
					SoundId = id,
1049
					Parent = par or workspace
1050
				})
1051
				wait()
1052
				S:play()
1053
				game:GetService("Debris"):AddItem(S, 6)
1054
			end))
1055
		end
1056
	},
1057
	ParticleEmitter = {
1058
		Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
1059
			local fp = Create("ParticleEmitter")({
1060
				Parent = Parent,
1061
				Color = ColorSequence.new(Color1, Color2),
1062
				LightEmission = LightEmission,
1063
				Size = Size,
1064
				Texture = Texture,
1065
				Transparency = Transparency,
1066
				ZOffset = ZOffset,
1067
				Acceleration = Accel,
1068
				Drag = Drag,
1069
				LockedToPart = LockedToPart,
1070
				VelocityInheritance = VelocityInheritance,
1071
				EmissionDirection = EmissionDirection,
1072
				Enabled = Enabled,
1073
				Lifetime = LifeTime,
1074
				Rate = Rate,
1075
				Rotation = Rotation,
1076
				RotSpeed = RotSpeed,
1077
				Speed = Speed,
1078
				VelocitySpread = VelocitySpread
1079
			})
1080
			return fp
1081
		end
1082
	}
1083
}
1084
function RemoveOutlines(part)
1085
	part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
1086
end
1087
function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
1088
	local Part = Create("Part")({
1089
		formFactor = FormFactor,
1090
		Parent = Parent,
1091
		Reflectance = Reflectance,
1092
		Transparency = Transparency,
1093
		CanCollide = false,
1094
		Locked = true,
1095
		BrickColor = BrickColor.new(tostring(BColor)),
1096
		Name = Name,
1097
		Size = Size,
1098
		Material = Material
1099
	})
1100
	RemoveOutlines(Part)
1101
	return Part
1102
end
1103
function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
1104
	local Msh = Create(Mesh)({
1105
		Parent = Part,
1106
		Offset = OffSet,
1107
		Scale = Scale
1108
	})
1109
	if Mesh == "SpecialMesh" then
1110
		Msh.MeshType = MeshType
1111
		Msh.MeshId = MeshId
1112
	end
1113
	return Msh
1114
end
1115
function CreateWeld(Parent, Part0, Part1, C0, C1)
1116
	local Weld = Create("Weld")({
1117
		Parent = Parent,
1118
		Part0 = Part0,
1119
		Part1 = Part1,
1120
		C0 = C0,
1121
		C1 = C1
1122
	})
1123
	return Weld
1124
end
1125
1126
1127
-------------------------------------------------------
1128
--Start Effect Function--
1129
-------------------------------------------------------
1130
EffectModel = Instance.new("Model", char)
1131
Effects = {
1132
  Block = {
1133
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
1134
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
1135
      prt.Anchored = true
1136
      prt.CFrame = cframe
1137
      local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1138
      game:GetService("Debris"):AddItem(prt, 10)
1139
      if Type == 1 or Type == nil then
1140
        table.insert(Effects, {
1141
          prt,
1142
          "Block1",
1143
          delay,
1144
          x3,
1145
          y3,
1146
          z3,
1147
          msh
1148
        })
1149
      elseif Type == 2 then
1150
        table.insert(Effects, {
1151
          prt,
1152
          "Block2",
1153
          delay,
1154
          x3,
1155
          y3,
1156
          z3,
1157
          msh
1158
        })
1159
      else
1160
        table.insert(Effects, {
1161
          prt,
1162
          "Block3",
1163
          delay,
1164
          x3,
1165
          y3,
1166
          z3,
1167
          msh
1168
        })
1169
      end
1170
    end
1171
  },
1172
  Sphere = {
1173
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1174
      local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
1175
      prt.Anchored = true
1176
      prt.CFrame = cframe
1177
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1178
      game:GetService("Debris"):AddItem(prt, 10)
1179
      table.insert(Effects, {
1180
        prt,
1181
        "Cylinder",
1182
        delay,
1183
        x3,
1184
        y3,
1185
        z3,
1186
        msh
1187
      })
1188
    end
1189
  },
1190
  Cylinder = {
1191
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1192
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
1193
      prt.Anchored = true
1194
      prt.CFrame = cframe
1195
      local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1196
      game:GetService("Debris"):AddItem(prt, 10)
1197
      table.insert(Effects, {
1198
        prt,
1199
        "Cylinder",
1200
        delay,
1201
        x3,
1202
        y3,
1203
        z3,
1204
        msh
1205
      })
1206
    end
1207
  },
1208
  Wave = {
1209
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1210
      local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
1211
      prt.Anchored = true
1212
      prt.CFrame = cframe
1213
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
1214
      game:GetService("Debris"):AddItem(prt, 10)
1215
      table.insert(Effects, {
1216
        prt,
1217
        "Cylinder",
1218
        delay,
1219
        x3 / 60,
1220
        y3 / 60,
1221
        z3 / 60,
1222
        msh
1223
      })
1224
    end
1225
  },
1226
  Ring = {
1227
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1228
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
1229
      prt.Anchored = true
1230
      prt.CFrame = cframe
1231
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1232
      game:GetService("Debris"):AddItem(prt, 10)
1233
      table.insert(Effects, {
1234
        prt,
1235
        "Cylinder",
1236
        delay,
1237
        x3,
1238
        y3,
1239
        z3,
1240
        msh
1241
      })
1242
    end
1243
  },
1244
  Break = {
1245
    Create = function(brickcolor, cframe, x1, y1, z1)
1246
      local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
1247
      prt.Anchored = true
1248
      prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1249
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1250
      local num = math.random(10, 50) / 1000
1251
      game:GetService("Debris"):AddItem(prt, 10)
1252
      table.insert(Effects, {
1253
        prt,
1254
        "Shatter",
1255
        num,
1256
        prt.CFrame,
1257
        math.random() - math.random(),
1258
        0,
1259
        math.random(50, 100) / 100
1260
      })
1261
    end
1262
  },
1263
Spiral = {
1264
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1265
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
1266
      prt.Anchored = true
1267
      prt.CFrame = cframe
1268
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1269
      game:GetService("Debris"):AddItem(prt, 10)
1270
      table.insert(Effects, {
1271
        prt,
1272
        "Cylinder",
1273
        delay,
1274
        x3,
1275
        y3,
1276
        z3,
1277
        msh
1278
      })
1279
    end
1280
  },
1281
Push = {
1282
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1283
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
1284
      prt.Anchored = true
1285
      prt.CFrame = cframe
1286
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1287
      game:GetService("Debris"):AddItem(prt, 10)
1288
      table.insert(Effects, {
1289
        prt,
1290
        "Cylinder",
1291
        delay,
1292
        x3,
1293
        y3,
1294
        z3,
1295
        msh
1296
      })
1297
    end
1298
  }
1299
}
1300
function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
1301
	local fp = IT("Part")
1302
	fp.formFactor = formfactor 
1303
	fp.Parent = parent
1304
	fp.Reflectance = reflectance
1305
	fp.Transparency = transparency
1306
	fp.CanCollide = false 
1307
	fp.Locked = true
1308
	fp.BrickColor = brickcolor
1309
	fp.Name = name
1310
	fp.Size = size
1311
	fp.Position = tors.Position 
1312
	RemoveOutlines(fp)
1313
	fp.Material = "SmoothPlastic"
1314
	fp:BreakJoints()
1315
	return fp 
1316
end 
1317
 
1318
function mesh(Mesh,part,meshtype,meshid,offset,scale)
1319
	local mesh = IT(Mesh) 
1320
	mesh.Parent = part
1321
	if Mesh == "SpecialMesh" then
1322
		mesh.MeshType = meshtype
1323
	if meshid ~= "nil" then
1324
		mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
1325
		end
1326
	end
1327
	mesh.Offset = offset
1328
	mesh.Scale = scale
1329
	return mesh
1330
end
1331
1332
function Magic(bonuspeed, type, pos, scale, value, color, MType)
1333
	local type = type
1334
	local rng = Instance.new("Part", char)
1335
	rng.Anchored = true
1336
	rng.BrickColor = color
1337
	rng.CanCollide = false
1338
	rng.FormFactor = 3
1339
	rng.Name = "Ring"
1340
	rng.Material = "Neon"
1341
	rng.Size = Vector3.new(1, 1, 1)
1342
	rng.Transparency = 0
1343
	rng.TopSurface = 0
1344
	rng.BottomSurface = 0
1345
	rng.CFrame = pos
1346
	local rngm = Instance.new("SpecialMesh", rng)
1347
	rngm.MeshType = MType
1348
	rngm.Scale = scale
1349
	local scaler2 = 1
1350
	if type == "Add" then
1351
		scaler2 = 1 * value
1352
	elseif type == "Divide" then
1353
		scaler2 = 1 / value
1354
	end
1355
	coroutine.resume(coroutine.create(function()
1356
		for i = 0, 10 / bonuspeed, 0.1 do
1357
			swait()
1358
			if type == "Add" then
1359
				scaler2 = scaler2 - 0.01 * value / bonuspeed
1360
			elseif type == "Divide" then
1361
				scaler2 = scaler2 - 0.01 / value * bonuspeed
1362
			end
1363
			rng.Transparency = rng.Transparency + 0.01 * bonuspeed
1364
			rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
1365
		end
1366
		rng:Destroy()
1367
	end))
1368
end
1369
1370
function Eviscerate(dude)
1371
	if dude.Name ~= char then
1372
		local bgf = IT("BodyGyro", dude.Head)
1373
		bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
1374
		local val = IT("BoolValue", dude)
1375
		val.Name = "IsHit"
1376
		local ds = coroutine.wrap(function()
1377
			dude:WaitForChild("Head"):BreakJoints()
1378
			wait(0.5)
1379
			target = nil
1380
			coroutine.resume(coroutine.create(function()
1381
				for i, v in pairs(dude:GetChildren()) do
1382
					if v:IsA("Accessory") then
1383
						v:Destroy()
1384
					end
1385
					if v:IsA("Humanoid") then
1386
						v:Destroy()
1387
					end
1388
					if v:IsA("CharacterMesh") then
1389
						v:Destroy()
1390
					end
1391
					if v:IsA("Model") then
1392
						v:Destroy()
1393
					end
1394
					if v:IsA("Part") or v:IsA("MeshPart") then
1395
						for x, o in pairs(v:GetChildren()) do
1396
							if o:IsA("Decal") then
1397
								o:Destroy()
1398
							end
1399
						end
1400
						coroutine.resume(coroutine.create(function()
1401
							v.Material = "Neon"
1402
							v.CanCollide = false
1403
							local PartEmmit1 = IT("ParticleEmitter", v)
1404
							PartEmmit1.LightEmission = 1
1405
							PartEmmit1.Texture = "rbxassetid://284205403"
1406
							PartEmmit1.Color = ColorSequence.new(maincolor.Color)
1407
							PartEmmit1.Rate = 150
1408
							PartEmmit1.Lifetime = NumberRange.new(1)
1409
							PartEmmit1.Size = NumberSequence.new({
1410
								NumberSequenceKeypoint.new(0, 0.75, 0),
1411
								NumberSequenceKeypoint.new(1, 0, 0)
1412
							})
1413
							PartEmmit1.Transparency = NumberSequence.new({
1414
								NumberSequenceKeypoint.new(0, 0, 0),
1415
								NumberSequenceKeypoint.new(1, 1, 0)
1416
							})
1417
							PartEmmit1.Speed = NumberRange.new(0, 0)
1418
							PartEmmit1.VelocitySpread = 30000
1419
							PartEmmit1.Rotation = NumberRange.new(-500, 500)
1420
							PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
1421
							local BodPoss = IT("BodyPosition", v)
1422
							BodPoss.P = 3000
1423
							BodPoss.D = 1000
1424
							BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
1425
							BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
1426
							v.Color = maincolor.Color
1427
							coroutine.resume(coroutine.create(function()
1428
								for i = 0, 49 do
1429
									swait(1)
1430
									v.Transparency = v.Transparency + 0.08
1431
								end
1432
								wait(0.5)
1433
								PartEmmit1.Enabled = false
1434
								wait(3)
1435
								v:Destroy()
1436
								dude:Destroy()
1437
							end))
1438
						end))
1439
					end
1440
				end
1441
			end))
1442
		end)
1443
		ds()
1444
	end
1445
end
1446
1447
function FindNearestHead(Position, Distance, SinglePlayer)
1448
	if SinglePlayer then
1449
		return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
1450
	end
1451
	local List = {}
1452
	for i, v in pairs(workspace:GetChildren()) do
1453
		if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
1454
			table.insert(List, v)
1455
		end
1456
	end
1457
	return List
1458
end
1459
1460
function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
1461
	local type = type
1462
	local rng = Instance.new("Part", char)
1463
	rng.Anchored = true
1464
	rng.BrickColor = color
1465
	rng.CanCollide = false
1466
	rng.FormFactor = 3
1467
	rng.Name = "Ring"
1468
	rng.Material = "Neon"
1469
	rng.Size = Vector3.new(1, 1, 1)
1470
	rng.Transparency = 0
1471
	rng.TopSurface = 0
1472
	rng.BottomSurface = 0
1473
	rng.CFrame = pos
1474
	rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
1475
	local rngm = Instance.new("SpecialMesh", rng)
1476
	rngm.MeshType = MType
1477
	rngm.Scale = Vector3.new(x1, y1, z1)
1478
	local scaler2 = 1
1479
	local speeder = FastSpeed
1480
	if type == "Add" then
1481
		scaler2 = 1 * value
1482
	elseif type == "Divide" then
1483
		scaler2 = 1 / value
1484
	end
1485
	coroutine.resume(coroutine.create(function()
1486
		for i = 0, 10 / bonuspeed, 0.1 do
1487
			swait()
1488
			if type == "Add" then
1489
				scaler2 = scaler2 - 0.01 * value / bonuspeed
1490
			elseif type == "Divide" then
1491
				scaler2 = scaler2 - 0.01 / value * bonuspeed
1492
			end
1493
			speeder = speeder - 0.01 * FastSpeed * bonuspeed
1494
			rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
1495
			rng.Transparency = rng.Transparency + 0.01 * bonuspeed
1496
			rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
1497
		end
1498
		rng:Destroy()
1499
	end))
1500
end
1501
1502
1503
function SoulSteal(dude)
1504
if dude.Name ~= char then
1505
local bgf = IT("BodyGyro", dude.Head)
1506
bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
1507
local val = IT("BoolValue", dude)
1508
val.Name = "IsHit"
1509
local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
1510
local soulst = coroutine.wrap(function()
1511
local soul = Instance.new("Part",dude)
1512
soul.Size = Vector3.new(1,1,1)
1513
soul.CanCollide = false
1514
soul.Anchored = false
1515
soul.Position = torso.Position
1516
soul.Transparency = 1
1517
local PartEmmit1 = IT("ParticleEmitter", soul)
1518
PartEmmit1.LightEmission = 1
1519
PartEmmit1.Texture = "rbxassetid://569507414"
1520
PartEmmit1.Color = ColorSequence.new(maincolor.Color)
1521
PartEmmit1.Rate = 250
1522
PartEmmit1.Lifetime = NumberRange.new(1.6)
1523
PartEmmit1.Size = NumberSequence.new({
1524
	NumberSequenceKeypoint.new(0, 1, 0),
1525
	NumberSequenceKeypoint.new(1, 0, 0)
1526
})
1527
PartEmmit1.Transparency = NumberSequence.new({
1528
	NumberSequenceKeypoint.new(0, 0, 0),
1529
	NumberSequenceKeypoint.new(1, 1, 0)
1530
})
1531
PartEmmit1.Speed = NumberRange.new(0, 0)
1532
PartEmmit1.VelocitySpread = 30000
1533
PartEmmit1.Rotation = NumberRange.new(-360, 360)
1534
PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
1535
local BodPoss = IT("BodyPosition", soul)
1536
BodPoss.P = 3000
1537
BodPoss.D = 1000
1538
BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
1539
BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
1540
wait(1.6)
1541
soul.Touched:connect(function(hit)
1542
	if hit.Parent == char then
1543
	soul:Destroy()
1544
	end
1545
end)
1546
wait(1.2)
1547
while soul do
1548
	swait()
1549
	PartEmmit1.Color = ColorSequence.new(maincolor.Color)
1550
	BodPoss.Position = tors.Position
1551
end
1552
end)
1553
	soulst()
1554
	end
1555
end
1556
function FaceMouse()
1557
local	Cam = workspace.CurrentCamera
1558
	return {
1559
		CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
1560
		Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
1561
	}
1562
end
1563
-------------------------------------------------------
1564
--End Effect Function--
1565
-------------------------------------------------------
1566
function Cso(ID, PARENT, VOLUME, PITCH)
1567
	local NSound = nil
1568
	coroutine.resume(coroutine.create(function()
1569
		NSound = IT("Sound", PARENT)
1570
		NSound.Volume = VOLUME
1571
		NSound.Pitch = PITCH
1572
		NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
1573
		swait()
1574
		NSound:play()
1575
		game:GetService("Debris"):AddItem(NSound, 10)
1576
	end))
1577
	return NSound
1578
end
1579
-------------------------------------------------------
1580
--End Important Functions--
1581
-------------------------------------------------------
1582
1583
New = function(Object, Parent, Name, Data)
1584
	local Object = Instance.new(Object)
1585
	for Index, Value in pairs(Data or {}) do
1586
		Object[Index] = Value
1587
	end
1588
	Object.Parent = Parent
1589
	Object.Name = Name
1590
	return Object
1591
end
1592
	
1593
Steamed_Hams = New("Model",char,"Reference",{})
1594
Handle = New("Part",Steamed_Hams,"Handle",{BrickColor = BrickColor.new("Institutional white"),Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.0500000007, 1.42000008, 1.42000008),CFrame = CFrame.new(6.24385071, 1.07595825, -192.477875, -4.37113883e-08, -1, 0, 1, -4.37113883e-08, 0, 0, 0, 1),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
1595
Plate = New("Part",Steamed_Hams,"Plate",{BrickColor = BrickColor.new("Institutional white"),Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.0500000007, 2, 2),CFrame = CFrame.new(6.24385071, 1.13595831, -192.477875, -4.37113883e-08, -1, 0, 1, -4.37113883e-08, 0, 0, 0, 1),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
1596
mot = New("Motor",Plate,"mot",{Part0 = Plate,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 1, 0, -1, -4.37113883e-08, 0, 0, 0, 1),C1 = CFrame.new(0.060000062, 0, 0, -4.37113883e-08, 1, 0, -1, -4.37113883e-08, 0, 0, 0, 1),})
1597
Burg = New("Part",Steamed_Hams,"Burg",{BrickColor = BrickColor.new("Mid gray"),Reflectance = 5,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1, 0.800000012, 1),CFrame = CFrame.new(6.24385071, 1.46095836, -192.45787, -1, 0, -7.54683664e-23, 0, 1, 2.64573537e-17, 7.54683664e-23, 2.64573537e-17, -1),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),})
1598
Mesh = New("SpecialMesh",Burg,"Mesh",{MeshId = "http://www.roblox.com/asset/?id=16646125",TextureId = "http://www.roblox.com/asset/?id=16432575",MeshType = Enum.MeshType.FileMesh,})
1599
mot = New("Motor",Burg,"mot",{Part0 = Burg,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, -2.64569136e-17, 7.54683664e-23, -2.64569136e-17, 1, 2.64573537e-17, -7.54683664e-23, 2.64573537e-17, -1),C1 = CFrame.new(0.38500011, 0, 0.0200042725, -4.37113883e-08, 1, 0, -1, -4.37113883e-08, 0, 0, 0, 1),})
1600
for i,v in pairs(Steamed_Hams:GetChildren()) do
1601
	if v.ClassName == "Part" then
1602
		v.Transparency = 1
1603
		v.CanCollide = false
1604
	end
1605
end
1606
1607
NewInstance = function(instance,parent,properties)
1608
	local inst = Instance.new(instance,parent)
1609
	if(properties)then
1610
		for i,v in next, properties do
1611
			pcall(function() inst[i] = v end)
1612
		end
1613
	end
1614
	return inst;
1615
end
1616
1617
local HW = NewInstance('Motor', char, {Part0 = ra, Part1 = Handle, C0 = CF(0,-.7,-.5) * angles(Rad(0),Rad(90),Rad(0))})
1618
1619
-------------------------------------------------------
1620
--Start Music Option--
1621
-------------------------------------------------------
1622
local Music = Instance.new("Sound",tors)
1623
Music.Volume = 2
1624
Music.SoundId = "rbxassetid://346936465"
1625
Music.Looped = true
1626
Music.Pitch = 1 --Pitcher
1627
Music:Play()
1628
-------------------------------------------------------
1629
--End Music Option--
1630
-------------------------------------------------------
1631
1632
1633
-------------------------------------------------------
1634
--Start Attacks N Stuff--
1635
-------------------------------------------------------
1636
local sine=0
1637
wait2 = false
1638
combo = 1
1639
local stabby = Instance.new("Sound",char.Torso)
1640
stabby.SoundId = "rbxassetid://271550300"
1641
stabby.Volume = 10
1642
mouse.Button1Down:connect(function(key)
1643
  if attack == false then
1644
    attack = true
1645
    hum.WalkSpeed = 3.01
1646
    trail.Enabled = true
1647
    if combo == 1 and wait2 == false then
1648
      wait2 = true
1649
		for i = 0, 1.6, 0.1 do
1650
        swait()
1651
        rootj.C0 = clerp(rootj.C0, RootCF * CF(0, -.5, 0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-5), Rad(0), Rad(-65)), 0.3)
1652
        tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-10), Rad(0), Rad(65)), 0.1)
1653
        RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(Rad(0), Rad(0), Rad(90)), 0.1)
1654
        LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0.6) * angles(Rad(-25), Rad(0), Rad(40)), 0.3)
1655
        RH.C0 = clerp(RH.C0, CF(1, -1, -0.2) * RHCF * angles(Rad(-6.5), Rad(0), Rad(-6)), 0.3)
1656
        LH.C0 = clerp(LH.C0, CF(-1, -1, 0) * LHCF * angles(Rad(-2.5), Rad(15), Rad(20)), 0.3)
1657
		HW.C0 = clerp(HW.C0, CF(0,-.7,-.5) * angles(Rad(0), Rad(90), Rad(0)), 0.1)
1658
		  end
1659
		Cso("138097048", ra, 3, .8)
1660
		local boiser = false
1661
		local hit = knife.Touched:connect(function(hit2)
1662
			if boiser == false then
1663
				boiser = true
1664
				local human = hit2.Parent:FindFirstChildOfClass("Humanoid")
1665
			    if human then
1666
				Ragdoll(human.Parent)
1667
                human:Destroy()
1668
				stabby:Play()
1669
				kills = kills + 1
1670
			    end
1671
			end
1672
		end)
1673
      for i = 0, 1.2, 0.1 do
1674
        swait()
1675
        rootj.C0 = clerp(rootj.C0, RootCF * CF(0, -.5, 0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(5), Rad(0), Rad(75)), 0.3)
1676
        tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(35), Rad(0), Rad(-75)), 0.1)
1677
        RW.C0 = clerp(RW.C0, CF(1.5, 0.5, -0.8) * angles(Rad(90), Rad(0), Rad(-40)), 0.1)
1678
        LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(Rad(-25), Rad(0), Rad(-10)), 0.3)
1679
        RH.C0 = clerp(RH.C0, CF(1, -1, 0) * RHCF * angles(Rad(-2.5), Rad(-25), Rad(17)), 0.3)
1680
        LH.C0 = clerp(LH.C0, CF(-1, -1, 0) * LHCF * angles(Rad(-6.5), Rad(0), Rad(0)), 0.3)
1681
		HW.C0 = clerp(HW.C0, CF(0,-.7,-.5) * angles(Rad(0), Rad(90), Rad(0)), 0.1)
1682
      end
1683
		hit:Disconnect()
1684
      combo = 1
1685
    end
1686
    weld.C0 = CFrame.new(0, -0.800003052, 0.999999046, 1, 0, 0, 0, 0, -1, 0, 0.999999523, 0)
1687
    hum.WalkSpeed = 20
1688
    wait2 = false
1689
    attack = false
1690
    trail.Enabled = false
1691
	end
1692
end)
1693
hum.WalkSpeed = 20
1694
-------------------------------------------------------
1695
--End Attacks N Stuff--
1696
-------------------------------------------------------
1697
1698
1699
1700
1701
1702
1703
1704
-------------------------------------------------------
1705
--Start Animations--
1706
-------------------------------------------------------
1707
local equipped = false
1708
local idle = 0
1709
local change = 1
1710
local val = 0
1711
local toim = 0
1712
local idleanim = 0.4
1713
hum.Animator.Parent = nil
1714
char.Animate.Parent = nil
1715
while true do
1716
	swait()
1717
	sine = sine + change
1718
	Music.Parent = tors
1719
	local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
1720
	local velderp = root.Velocity.y
1721
	hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4, char)
1722
	if equipped == true or equipped == false then
1723
		if attack == false then
1724
			idle = idle + 1
1725
		else
1726
			idle = 0
1727
		end
1728
		if 1 < root.Velocity.y and hitfloor == nil then
1729
			Anim = "Jump"
1730
			if attack == false then
1731
				rootj.C0 = clerp(rootj.C0, RootCF * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,0),0.3)
1732
				tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-10), Rad(0), Rad(0)), 0.3)
1733
				RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(15)),0.3)
1734
				LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(-15)),0.3)
1735
				LH.C0=clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15)
1736
				RH.C0=clerp(RH.C0, CF(1,-1-0.1 * Cos(sine / 20), -.3) * angles(Rad(0), Rad(90), Rad(0)), .3)
1737
			end
1738
		elseif -1 > root.Velocity.y and hitfloor == nil then
1739
			Anim = "Fall"
1740
			if attack == false then
1741
				rootj.C0 = clerp(rootj.C0, RootCF * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,0),0.3)
1742
				tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(10), Rad(0), Rad(0)), 0.3)
1743
				RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(30)),0.3)
1744
				LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(-30)),0.3)
1745
				LH.C0 = clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15)
1746
				RH.C0 = clerp(RH.C0, CF(1,-1-0.1 * Cos(sine / 20), -.3) * angles(Rad(0), Rad(90), Rad(0)), .3)
1747
			end
1748
		elseif torvel < 1 and hitfloor ~= nil then
1749
			Anim = "Idle"
1750
			change = 1.7
1751
			if attack == false then
1752
				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)
1753
				tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(-20)), 0.3)
1754
				RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
1755
				LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
1756
				RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(4.5 * Sin(sine / 30)), Rad(15 + 4.5 * Sin(sine / 30))), 0.1)
1757
				LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(4.5 * Sin(sine / 30)), Rad(-5 - 4.5 * Sin(sine / 30))), 0.1)
1758
			end
1759
		elseif tors.Velocity.magnitude < 50 and hitfloor ~= nil then
1760
			Anim = "Walk"
1761
			change = 1
1762
			if attack == false then
1763
				rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.015 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(4 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(3 * Cos(sine / 7))), 0.15)
1764
				tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
1765
				RH.C0 = clerp(RH.C0, CF(1, -0.925 - 0.5 * Cos(sine / 7) / 2, 0.5 * Cos(sine / 7) / 2) * angles(Rad(-15 - 5 * 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)
1766
         		LH.C0 = clerp(LH.C0, CF(-1, -0.925 + 0.5 * Cos(sine / 7) / 2, -0.5 * Cos(sine / 7) / 2) * angles(Rad(-15 + 5 * 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)
1767
				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 + 4.5 * Sin(sine / 30)) - ra.RotVelocity.Y / 75), 0.1)
1768
				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(-5 - 4.5 * Sin(sine / 30)) + la.RotVelocity.Y / 75), 0.1)
1769
			end
1770
		end
1771
	end
1772
	if 0 < #Effects then
1773
		for e = 1, #Effects do
1774
			if Effects[e] ~= nil then
1775
				local Thing = Effects[e]
1776
				if Thing ~= nil then
1777
					local Part = Thing[1]
1778
					local Mode = Thing[2]
1779
					local Delay = Thing[3]
1780
					local IncX = Thing[4]
1781
					local IncY = Thing[5]
1782
					local IncZ = Thing[6]
1783
					if 1 >= Thing[1].Transparency then
1784
						if Thing[2] == "Block1" then
1785
							Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1786
							local Mesh = Thing[1].Mesh
1787
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1788
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1789
						elseif Thing[2] == "Block2" then
1790
							Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
1791
							local Mesh = Thing[7]
1792
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1793
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1794
						elseif Thing[2] == "Block3" then
1795
							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)
1796
							local Mesh = Thing[7]
1797
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1798
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1799
						elseif Thing[2] == "Cylinder" then
1800
							local Mesh = Thing[1].Mesh
1801
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1802
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1803
						elseif Thing[2] == "Blood" then
1804
							local Mesh = Thing[7]
1805
							Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
1806
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1807
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1808
						elseif Thing[2] == "Elec" then
1809
							local Mesh = Thing[1].Mesh
1810
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
1811
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1812
						elseif Thing[2] == "Disappear" then
1813
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1814
						elseif Thing[2] == "Shatter" then
1815
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1816
							Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
1817
							Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
1818
							Thing[6] = Thing[6] + Thing[5]
1819
						end
1820
					else
1821
						Part.Parent = nil
1822
						table.remove(Effects, e)
1823
					end
1824
				end
1825
			end
1826
		end
1827
	end
1828
end
1829
-------------------------------------------------------
1830
--End Animations And Script--
1831
-------------------------------------------------------