VoidScript

Satan

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