Advertisement
cat568

test of mad cat

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