Advertisement
GodOfDuckz

AstroV2

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