Advertisement
nicopow

Untitled

Jul 7th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.36 KB | None | 0 0
  1. --PROTOSMASHER VOIDACITY STEALER!
  2.  
  3.  
  4.  
  5. while not getmetatable(shared) do
  6. wait()
  7. end
  8. shared(script)
  9. Player = game:GetService("Players").LocalPlayer
  10. Character = Player.Character
  11. local Orbd = Instance.new("Part", Character)
  12. Orbd.Name = "Orbd"
  13. Orbd.Shape = Enum.PartType.Ball
  14. Orbd.CanCollide = false
  15. Orbd.BrickColor = BrickColor.new("Really black")
  16. Orbd.Transparency = 0
  17. Orbd.Material = "Neon"
  18. Orbd.Size = Vector3.new(0.3, 0.3, 0.3)
  19. Orbd.TopSurface = Enum.SurfaceType.Smooth
  20. Orbd.BottomSurface = Enum.SurfaceType.Smooth
  21. local Weld = Instance.new("Weld", Orbd)
  22. Weld.Part0 = Character.Head
  23. Weld.Part1 = Orbd
  24. Weld.C1 = CFrame.new(-0.26, -0.24, 0.55)
  25. local Orbvc = Instance.new("Part", Character)
  26. Orbvc.Name = "Orbvc"
  27. Orbvc.Shape = Enum.PartType.Ball
  28. Orbvc.CanCollide = false
  29. Orbvc.BrickColor = BrickColor.new("Really black")
  30. Orbvc.Transparency = 0
  31. Orbvc.Material = "Neon"
  32. Orbvc.Size = Vector3.new(0.3, 0.3, 0.3)
  33. Orbvc.TopSurface = Enum.SurfaceType.Smooth
  34. Orbvc.BottomSurface = Enum.SurfaceType.Smooth
  35. local Weld = Instance.new("Weld", Orbvc)
  36. Weld.Part0 = Character.Head
  37. Weld.Part1 = Orbvc
  38. Weld.C1 = CFrame.new(0.26, -0.24, 0.55)
  39. local Mask = Instance.new("Part", Character)
  40. Mask.Name = "Mask"
  41. Mask.CanCollide = false
  42. Mask.BrickColor = BrickColor.new("Medium stone grey")
  43. Mask.Transparency = 0
  44. Mask.Material = "Neon"
  45. Mask.Size = Vector3.new(0.1, 0.1, 0.1)
  46. Mask.TopSurface = Enum.SurfaceType.Smooth
  47. Mask.BottomSurface = Enum.SurfaceType.Smooth
  48. local Weld = Instance.new("Weld", Mask)
  49. Weld.Part0 = Character.Head
  50. Weld.Part1 = Mask
  51. Weld.C1 = CFrame.new(0, -0.1, 0.8)
  52. local M1 = Instance.new("SpecialMesh")
  53. M1.Parent = Mask
  54. M1.MeshId = "http://www.roblox.com/asset/?id=62679079"
  55. M1.Scale = Vector3.new(1, 1, 2)
  56. local Hood = Instance.new("Part", Character)
  57. Hood.Name = "Hood"
  58. Hood.CanCollide = false
  59. Hood.BrickColor = BrickColor.new("Really black")
  60. Hood.Transparency = 0
  61. Hood.Material = "Plastic"
  62. Hood.Size = Vector3.new(0.1, 0.1, 0.1)
  63. Hood.TopSurface = Enum.SurfaceType.Smooth
  64. Hood.BottomSurface = Enum.SurfaceType.Smooth
  65. local Weld = Instance.new("Weld", Hood)
  66. Weld.Part0 = Character.Head
  67. Weld.Part1 = Hood
  68. Weld.C1 = CFrame.new(0, -0.2, 0)
  69. local M2 = Instance.new("SpecialMesh")
  70. M2.Parent = Hood
  71. M2.MeshId = "http://www.roblox.com/asset/?id=83499032"
  72. M2.Scale = Vector3.new(1, 1.2, 1.1)
  73. p = game.Players.LocalPlayer
  74. char049 = p.Character
  75. char049.Shirt:Remove()
  76. for i, v in pairs(char049:GetChildren()) do
  77. if v:IsA("Pants") then
  78. v:Remove()
  79. end
  80. end
  81. wait()
  82. shirt = Instance.new("Shirt", char049)
  83. shirt.Name = "Shirt"
  84. pants = Instance.new("Pants", char049)
  85. pants.Name = "Pants"
  86. char049.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=648758131"
  87. char049.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=472675863"
  88. maincolor = game.Players.LocalPlayer.Character.Torso.BrickColor.Name
  89. secondcolor = "Really black"
  90. wait(0.016666666666666666)
  91. Effects = {}
  92. local Player = game.Players.localPlayer
  93. local Character = Player.Character
  94. local Humanoid = Character.Humanoid
  95. local mouse = Player:GetMouse()
  96. local LeftArm = Character["Left Arm"]
  97. local RightArm = Character["Right Arm"]
  98. local LeftLeg = Character["Left Leg"]
  99. local RightLeg = Character["Right Leg"]
  100. local Head = Character.Head
  101. local Torso = Character.Torso
  102. local cam = game.Workspace.CurrentCamera
  103. local RootPart = Character.HumanoidRootPart
  104. local RootJoint = RootPart.RootJoint
  105. local equipped = false
  106. local attack = false
  107. local Anim = "Idle"
  108. local idle = 0
  109. local attacktype = 1
  110. local Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  111. local velocity = RootPart.Velocity.y
  112. local sine = 0
  113. local change = 1
  114. local grabbed = false
  115. local cn = CFrame.new
  116. local mr = math.rad
  117. local angles = CFrame.Angles
  118. local ud = UDim2.new
  119. local c3 = Color3.new
  120. local NeckCF = cn(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  121. Character.Animate:Destroy()
  122. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  123. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  124. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  125. RSH, LSH = nil, nil
  126. RW = Instance.new("Weld")
  127. LW = Instance.new("Weld")
  128. RH = Torso["Right Hip"]
  129. LH = Torso["Left Hip"]
  130. RSH = Torso["Right Shoulder"]
  131. LSH = Torso["Left Shoulder"]
  132. RSH.Parent = nil
  133. LSH.Parent = nil
  134. RW.Name = "RW"
  135. RW.Part0 = Torso
  136. RW.C0 = cn(1.5, 0.5, 0)
  137. RW.C1 = cn(0, 0.5, 0)
  138. RW.Part1 = RightArm
  139. RW.Parent = Torso
  140. LW.Name = "LW"
  141. LW.Part0 = Torso
  142. LW.C0 = cn(-1.5, 0.5, 0)
  143. LW.C1 = cn(0, 0.5, 0)
  144. LW.Part1 = LeftArm
  145. LW.Parent = Torso
  146. function clerp(a, b, t)
  147. local qa = {
  148. QuaternionFromCFrame(a)
  149. }
  150. local qb = {
  151. QuaternionFromCFrame(b)
  152. }
  153. local ax, ay, az = a.x, a.y, a.z
  154. local bx, by, bz = b.x, b.y, b.z
  155. local _t = 1 - t
  156. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  157. end
  158. function QuaternionFromCFrame(cf)
  159. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  160. local trace = m00 + m11 + m22
  161. if trace > 0 then
  162. local s = math.sqrt(1 + trace)
  163. local recip = 0.5 / s
  164. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  165. else
  166. local i = 0
  167. if m00 < m11 then
  168. i = 1
  169. end
  170. if m22 > (i == 0 and m00 or m11) then
  171. i = 2
  172. end
  173. if i == 0 then
  174. local s = math.sqrt(m00 - m11 - m22 + 1)
  175. local recip = 0.5 / s
  176. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  177. elseif i == 1 then
  178. local s = math.sqrt(m11 - m22 - m00 + 1)
  179. local recip = 0.5 / s
  180. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  181. elseif i == 2 then
  182. local s = math.sqrt(m22 - m00 - m11 + 1)
  183. local recip = 0.5 / s
  184. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  185. end
  186. end
  187. end
  188. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  189. local xs, ys, zs = x + x, y + y, z + z
  190. local wx, wy, wz = w * xs, w * ys, w * zs
  191. local xx = x * xs
  192. local xy = x * ys
  193. local xz = x * zs
  194. local yy = y * ys
  195. local yz = y * zs
  196. local zz = z * zs
  197. 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))
  198. end
  199. function QuaternionSlerp(a, b, t)
  200. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  201. local startInterp, finishInterp
  202. if cosTheta >= 1.0E-4 then
  203. if 1 - cosTheta > 1.0E-4 then
  204. local theta = math.acos(cosTheta)
  205. local invSinTheta = 1 / math.sin(theta)
  206. startInterp = math.sin((1 - t) * theta) * invSinTheta
  207. finishInterp = math.sin(t * theta) * invSinTheta
  208. else
  209. startInterp = 1 - t
  210. finishInterp = t
  211. end
  212. elseif 1 + cosTheta > 1.0E-4 then
  213. local theta = math.acos(-cosTheta)
  214. local invSinTheta = 1 / math.sin(theta)
  215. startInterp = math.sin((t - 1) * theta) * invSinTheta
  216. finishInterp = math.sin(t * theta) * invSinTheta
  217. else
  218. startInterp = t - 1
  219. finishInterp = t
  220. end
  221. 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
  222. end
  223. function swait(num)
  224. if num == 0 or num == nil then
  225. game:service("RunService").RenderStepped:wait(0)
  226. else
  227. for i = 0, num do
  228. game:service("RunService").RenderStepped:wait(0)
  229. end
  230. end
  231. end
  232. local RbxUtility = LoadLibrary("RbxUtility")
  233. local Create = RbxUtility.Create
  234. function RemoveOutlines(part)
  235. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  236. end
  237. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  238. local Part = Create("Part")({
  239. formFactor = FormFactor,
  240. Parent = Parent,
  241. Reflectance = Reflectance,
  242. Transparency = Transparency,
  243. CanCollide = false,
  244. Locked = true,
  245. BrickColor = BrickColor.new(tostring(BColor)),
  246. Name = Name,
  247. Size = Size,
  248. Material = Material
  249. })
  250. RemoveOutlines(Part)
  251. return Part
  252. end
  253. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  254. local Msh = Create(Mesh)({
  255. Parent = Part,
  256. Offset = OffSet,
  257. Scale = Scale
  258. })
  259. if Mesh == "SpecialMesh" then
  260. Msh.MeshType = MeshType
  261. Msh.MeshId = MeshId
  262. end
  263. return Msh
  264. end
  265. function CreateWeld(Parent, Part0, Part1, C0, C1)
  266. local Weld = Create("Weld")({
  267. Parent = Parent,
  268. Part0 = Part0,
  269. Part1 = Part1,
  270. C0 = C0,
  271. C1 = C1
  272. })
  273. return Weld
  274. end
  275. function rayCast(Position, Direction, Range, Ignore)
  276. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  277. end
  278. function CreateSound(id, par, vol, pit)
  279. coroutine.resume(coroutine.create(function()
  280. local sou = Instance.new("Sound", par or workspace)
  281. sou.Volume = vol
  282. sou.Pitch = pit or 1
  283. sou.SoundId = id
  284. wait()
  285. sou:play()
  286. game:GetService("Debris"):AddItem(sou, 6)
  287. end))
  288. end
  289. local function getclosest(obj, distance)
  290. local last, lastx = distance + 1, nil
  291. for i, v in pairs(workspace:GetChildren()) do
  292. if v:IsA("Model") and v ~= Character and v:findFirstChild("Humanoid") and v:findFirstChild("Torso") and v:findFirstChild("Humanoid").Health > 0 then
  293. local t = v.Torso
  294. local dist = t.Position - obj.Position.magnitude
  295. if distance >= dist and last > dist then
  296. last = dist
  297. lastx = v
  298. end
  299. end
  300. end
  301. return lastx
  302. end
  303. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  304. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  305. prt.Anchored = true
  306. prt.CFrame = cframe
  307. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  308. game:GetService("Debris"):AddItem(prt, 10)
  309. if Type == 1 or Type == nil then
  310. table.insert(Effects, {
  311. prt,
  312. "Block1",
  313. delay,
  314. x3,
  315. y3,
  316. z3,
  317. msh
  318. })
  319. elseif Type == 2 then
  320. table.insert(Effects, {
  321. prt,
  322. "Block2",
  323. delay,
  324. x3,
  325. y3,
  326. z3,
  327. msh
  328. })
  329. end
  330. end
  331. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  332. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  333. prt.Anchored = true
  334. prt.CFrame = cframe
  335. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  336. game:GetService("Debris"):AddItem(prt, 10)
  337. table.insert(Effects, {
  338. prt,
  339. "Cylinder",
  340. delay,
  341. x3,
  342. y3,
  343. z3,
  344. msh
  345. })
  346. end
  347. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  348. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  349. prt.Anchored = true
  350. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  351. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  352. game:GetService("Debris"):AddItem(prt, 10)
  353. table.insert(Effects, {
  354. prt,
  355. "Cylinder",
  356. delay,
  357. x3,
  358. y3,
  359. z3,
  360. msh
  361. })
  362. end
  363. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  364. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  365. prt.Anchored = true
  366. prt.CFrame = cframe
  367. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  368. game:GetService("Debris"):AddItem(prt, 10)
  369. table.insert(Effects, {
  370. prt,
  371. "Cylinder",
  372. delay,
  373. x3,
  374. y3,
  375. z3,
  376. msh
  377. })
  378. end
  379. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  380. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  381. prt.Anchored = true
  382. prt.CFrame = cframe
  383. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  384. game:GetService("Debris"):AddItem(prt, 10)
  385. table.insert(Effects, {
  386. prt,
  387. "Cylinder",
  388. delay,
  389. x3,
  390. y3,
  391. z3,
  392. msh
  393. })
  394. end
  395. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  396. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  397. prt.Anchored = true
  398. prt.CFrame = cframe
  399. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  400. game:GetService("Debris"):AddItem(prt, 10)
  401. table.insert(Effects, {
  402. prt,
  403. "Cylinder",
  404. delay,
  405. x3,
  406. y3,
  407. z3,
  408. msh
  409. })
  410. end
  411. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  412. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  413. prt.Anchored = true
  414. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  415. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  416. local num = math.random(10, 50) / 1000
  417. game:GetService("Debris"):AddItem(prt, 10)
  418. table.insert(Effects, {
  419. prt,
  420. "Shatter",
  421. num,
  422. prt.CFrame,
  423. math.random() - math.random(),
  424. 0,
  425. math.random(50, 100) / 100
  426. })
  427. end
  428. for i = 0, 1, 0.05 do
  429. swait()
  430. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  431. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), 0.1)
  432. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  433. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
  434. if Torsovelocity > 2 then
  435. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), 0.2)
  436. RH.C0 = clerp(RH.C0, cn(1, -1 + 0.1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), 0.3)
  437. LH.C0 = clerp(LH.C0, cn(-1, -1 + 0.1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), 0.3)
  438. elseif Torsovelocity < 1 then
  439. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  440. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), 0.1)
  441. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), 0.1)
  442. end
  443. end
  444. attack = false
  445. game:GetService("RunService").Stepped:connect(function()
  446. Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  447. velocity = RootPart.Velocity.y
  448. sine = sine + change
  449. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  450. if equipped == true or equipped == false then
  451. if 1 < RootPart.Velocity.y and hit == nil then
  452. Anim = "Jump"
  453. if attack == false then
  454. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1)
  455. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  456. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(30)), 0.1)
  457. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-30)), 0.1)
  458. RH.C0 = clerp(RH.C0, cn(1, -0.9, -0.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), 0.1)
  459. LH.C0 = clerp(LH.C0, cn(-1, -0.7, -0.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), 0.1)
  460. end
  461. elseif RootPart.Velocity.y < -1 and hit == nil then
  462. Anim = "Fall"
  463. if attack == false then
  464. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  465. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  466. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), 0.1)
  467. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), 0.1)
  468. RH.C0 = clerp(RH.C0, cn(1, -1, -0.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1)
  469. LH.C0 = clerp(LH.C0, cn(-1, -0.8, -0.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1)
  470. end
  471. elseif Torsovelocity < 1 and hit ~= nil then
  472. Anim = "Idle"
  473. if attack == false then
  474. change = 1
  475. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(5)), 0.1)
  476. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), 0.1)
  477. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(5 + 3 * math.cos(sine / 25))), 0.1)
  478. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5 - 3 * math.cos(sine / 25))), 0.1)
  479. RH.C0 = clerp(RH.C0, cn(1, -0.9 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-2 + 2 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), 0.1)
  480. LH.C0 = clerp(LH.C0, cn(-1, -0.9 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-2 + 2 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), 0.1)
  481. end
  482. elseif Torsovelocity > 2 and hit ~= nil then
  483. Anim = "Walk"
  484. if attack == false then
  485. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + 0.1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(5 * math.cos(sine / 5))), 0.2)
  486. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(-5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), 0.2)
  487. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), 0.2)
  488. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), 0.2)
  489. RH.C0 = clerp(RH.C0, cn(1, -1 + 0.1 * math.cos(sine / 3), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), 0.3)
  490. LH.C0 = clerp(LH.C0, cn(-1, -1 + 0.1 * math.cos(sine / 3), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), 0.3)
  491. end
  492. end
  493. end
  494. if 0 < #Effects then
  495. for e = 1, #Effects do
  496. if Effects[e] ~= nil then
  497. local Thing = Effects[e]
  498. if Thing ~= nil then
  499. local Part = Thing[1]
  500. local Mode = Thing[2]
  501. local Delay = Thing[3]
  502. local IncX = Thing[4]
  503. local IncY = Thing[5]
  504. local IncZ = Thing[6]
  505. if 1 >= Thing[1].Transparency then
  506. if Thing[2] == "Block1" then
  507. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  508. local Mesh = Thing[1].Mesh
  509. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  510. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  511. elseif Thing[2] == "Block2" then
  512. Thing[1].CFrame = Thing[1].CFrame
  513. local Mesh = Thing[7]
  514. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  515. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  516. elseif Thing[2] == "Cylinder" then
  517. local Mesh = Thing[1].Mesh
  518. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  519. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  520. elseif Thing[2] == "Blood" then
  521. local Mesh = Thing[7]
  522. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  523. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  524. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  525. elseif Thing[2] == "Elec" then
  526. local Mesh = Thing[1].Mesh
  527. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  528. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  529. elseif Thing[2] == "Disappear" then
  530. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  531. elseif Thing[2] == "Shatter" then
  532. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  533. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  534. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  535. Thing[6] = Thing[6] + Thing[5]
  536. end
  537. else
  538. Part.Parent = nil
  539. table.remove(Effects, e)
  540. end
  541. end
  542. end
  543. end
  544. end
  545. end)
  546. p = game.Players.LocalPlayer.Name
  547. char = game.Players.LocalPlayer.Character
  548. local player = game.Players.LocalPlayer
  549. repeat
  550. wait()
  551. until player.Character.Humanoid
  552. local humanoid = player.Character.Humanoid
  553. local mouse = player:GetMouse()
  554. for i, v in pairs(char:GetChildren()) do
  555. if v.ClassName == "Accessory" then
  556. v:Destroy()
  557. end
  558. end
  559. ScarySound1 = Instance.new("Sound")
  560. ScarySound1.Parent = char.Torso
  561. ScarySound1.SoundId = "rbxassetid://161964276"
  562. ScarySound1.Volume = 0.5
  563. ScarySound2 = Instance.new("Sound")
  564. ScarySound2.Parent = char.Torso
  565. ScarySound2.SoundId = "rbxassetid://669623416"
  566. ScarySound2.Volume = 2
  567. ScarySound2.Looped = true
  568. ScarySound3 = Instance.new("Sound")
  569. ScarySound3.Parent = char.Torso
  570. ScarySound3.SoundId = "rbxassetid://483810543"
  571. ScarySound3.Volume = 0.3
  572. ScarySound3.Looped = true
  573. ScarySound4 = Instance.new("Sound")
  574. ScarySound4.Parent = char.Torso
  575. ScarySound4.SoundId = "rbxassetid://177113856"
  576. ScarySound4.Volume = 2
  577. ScarySound4.Looped = false
  578. Punch = Instance.new("Sound")
  579. Punch.Parent = char.Torso
  580. Punch.SoundId = "rbxassetid://146938349"
  581. Punch.Volume = 1.5
  582. Punch.Looped = false
  583. Punch.Pitch = 0.8
  584. hole = Instance.new("Sound")
  585. hole.Parent = char.Torso
  586. hole.SoundId = "rbxassetid://224339308"
  587. hole.Volume = 0.3
  588. game.Players.LocalPlayer.Character.Sound:Destroy()
  589. function Normal()
  590. ScarySound3:Play()
  591. char.Humanoid.WalkSpeed = 18
  592. char.Head.face.Texture = "rbxassetid://0"
  593. char["Left Leg"].Transparency = 0
  594. char.Head.Transparency = 0
  595. char["Right Leg"].Transparency = 0
  596. char.Torso.Transparency = 0
  597. char["Left Arm"].Transparency = 0
  598. char["Right Arm"].Transparency = 0
  599. end
  600. function GoInvisible()
  601. ScarySound3:Stop()
  602. ScarySound1:Stop()
  603. char.Humanoid.WalkSpeed = 120
  604. char.Head.face.Transparency = 1
  605. char["Left Leg"].Transparency = 0
  606. char.Head.Transparency = 0.5
  607. char["Right Leg"].Transparency = 0.5
  608. char.Torso.Transparency = 0.5
  609. char["Left Arm"].Transparency = 0.5
  610. char["Right Arm"].Transparency = 0.5
  611. Hood.Transparency = 0.5
  612. Mask.Transparency = 0.5
  613. Orbvc.Transparency = 0.5
  614. Orbd.Transparency = 0.5
  615. Orbvc.BrickColor = BrickColor.new("Really red")
  616. Orbd.BrickColor = BrickColor.new("Really red")
  617. wait(0.001)
  618. char["Left Leg"].Transparency = 0.6
  619. char.Head.Transparency = 0.6
  620. char["Right Leg"].Transparency = 0.6
  621. char.Torso.Transparency = 0.6
  622. char["Left Arm"].Transparency = 0.6
  623. char["Right Arm"].Transparency = 0.6
  624. Hood.Transparency = 0.6
  625. Mask.Transparency = 0.6
  626. Orbvc.Transparency = 0.6
  627. Orbd.Transparency = 0.6
  628. wait(0.001)
  629. char["Left Leg"].Transparency = 0.7
  630. char.Head.Transparency = 0.7
  631. char["Right Leg"].Transparency = 0.7
  632. char.Torso.Transparency = 0.7
  633. char["Left Arm"].Transparency = 0.7
  634. char["Right Arm"].Transparency = 0.7
  635. Hood.Transparency = 0.7
  636. Mask.Transparency = 0.7
  637. Orbvc.Transparency = 0.7
  638. Orbd.Transparency = 0.7
  639. wait(0.001)
  640. char["Left Leg"].Transparency = 1
  641. char.Head.Transparency = 1
  642. char["Right Leg"].Transparency = 1
  643. char.Torso.Transparency = 1
  644. char["Left Arm"].Transparency = 1
  645. char["Right Arm"].Transparency = 1
  646. Hood.Transparency = 1
  647. Mask.Transparency = 1
  648. Orbvc.Transparency = 1
  649. Orbd.Transparency = 1
  650. end
  651. function GoVisible()
  652. ScarySound3:Play()
  653. char.Humanoid.WalkSpeed = 16
  654. ScarySound1:Play()
  655. char.Head.face.Transparency = 0
  656. Orbvc.BrickColor = BrickColor.new("Really black")
  657. Orbd.BrickColor = BrickColor.new("Really black")
  658. char["Left Leg"].Transparency = 0.9
  659. char.Head.Transparency = 0.9
  660. char["Right Leg"].Transparency = 9
  661. char.Torso.Transparency = 0.9
  662. char["Left Arm"].Transparency = 0.9
  663. char["Right Arm"].Transparency = 0.9
  664. Hood.Transparency = 0.9
  665. Mask.Transparency = 0.9
  666. Orbvc.Transparency = 0.9
  667. Orbd.Transparency = 0.9
  668. wait(0.001)
  669. char["Left Leg"].Transparency = 0.7
  670. char.Head.Transparency = 0.7
  671. char["Right Leg"].Transparency = 0.7
  672. char.Torso.Transparency = 0.7
  673. char["Left Arm"].Transparency = 0.7
  674. char["Right Arm"].Transparency = 0.7
  675. Hood.Transparency = 0.7
  676. Mask.Transparency = 0.7
  677. Orbvc.Transparency = 0.7
  678. Orbd.Transparency = 0.7
  679. wait(0.001)
  680. char["Left Leg"].Transparency = 0
  681. char.Head.Transparency = 0
  682. char["Right Leg"].Transparency = 0
  683. char.Torso.Transparency = 0
  684. char["Left Arm"].Transparency = 0
  685. char["Right Arm"].Transparency = 0
  686. Hood.Transparency = 0
  687. Mask.Transparency = 0
  688. Orbvc.Transparency = 0
  689. Orbd.Transparency = 0
  690. end
  691. Normal()
  692. mouse.KeyDown:connect(function(key)
  693. if key == "z" then
  694. if char.Head.Transparency == 0 then
  695. GoInvisible()
  696. elseif char.Head.Transparency == 1 then
  697. GoVisible()
  698. end
  699. end
  700. end)
  701. mouse.KeyDown:connect(function(key)
  702. if key == "x" then
  703. if ScarySound2.IsPlaying == false then
  704. ScarySound2:Play()
  705. elseif ScarySound2.IsPlaying == true then
  706. ScarySound2:Stop()
  707. end
  708. end
  709. end)
  710. mouse.KeyDown:connect(function(key)
  711. if key == "r" then
  712. if ScarySound4.IsPlaying == false then
  713. ScarySound4:Play()
  714. elseif ScarySound2.IsPlaying == true then
  715. ScarySound4:Stop()
  716. end
  717. end
  718. end)
  719. function onTouch(part)
  720. local humanoid = part.Parent:findFirstChild("Humanoid")
  721. local model = part.Parent
  722. local torso = part.Parent:findFirstChild("Torso")
  723. local head = part.Parent:findFirstChild("Head")
  724. local leftleg = part.Parent:findFirstChild("Left Leg")
  725. local rightleg = part.Parent:findFirstChild("Right Leg")
  726. local leftarm = part.Parent:findFirstChild("Left Arm")
  727. local rightarm = part.Parent:findFirstChild("Right Arm")
  728. if humanoid ~= nil then
  729. head.BrickColor = BrickColor.new("Really black")
  730. torso.BrickColor = BrickColor.new("Really black")
  731. leftleg.BrickColor = BrickColor.new("Really black")
  732. rightleg.BrickColor = BrickColor.new("Really black")
  733. rightarm.BrickColor = BrickColor.new("Really black")
  734. leftarm.BrickColor = BrickColor.new("Really black")
  735. humanoid.Sit = true
  736. wait(0.5)
  737. torso.Anchored = true
  738. wait(3)
  739. e = Instance.new("Part", model)
  740. e.Size = Vector3.new(2.25, 2.25, 2.25)
  741. e.Transparency = 1
  742. e.Anchored = true
  743. e.CFrame = CFrame.new(head.Position)
  744. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  745. wait(0.1)
  746. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  747. wait(0.1)
  748. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  749. wait(0.1)
  750. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  751. wait(0.1)
  752. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  753. wait(0.1)
  754. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  755. wait(0.1)
  756. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  757. wait(0.1)
  758. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  759. wait(0.1)
  760. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  761. wait(0.1)
  762. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  763. wait(0.1)
  764. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  765. wait(0.1)
  766. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  767. wait(0.1)
  768. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  769. wait(0.1)
  770. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  771. wait(0.1)
  772. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  773. wait(0.1)
  774. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  775. wait(0.1)
  776. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  777. wait(0.1)
  778. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  779. wait(0.1)
  780. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  781. wait(0.1)
  782. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  783. wait(0.1)
  784. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  785. wait(0.1)
  786. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  787. wait(0.1)
  788. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  789. wait(0.1)
  790. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  791. wait(0.1)
  792. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  793. wait(0.1)
  794. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  795. wait(0.1)
  796. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  797. wait(0.1)
  798. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  799. wait(0.1)
  800. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  801. wait(0.1)
  802. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  803. wait(0.1)
  804. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  805. wait(0.1)
  806. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  807. wait(0.1)
  808. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  809. wait(0.1)
  810. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  811. wait(0.1)
  812. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  813. wait(0.1)
  814. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  815. wait(0.1)
  816. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  817. wait(0.1)
  818. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  819. wait(0.1)
  820. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  821. wait(0.1)
  822. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  823. wait(0.1)
  824. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  825. wait(0.1)
  826. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  827. wait(0.1)
  828. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  829. wait(0.1)
  830. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  831. wait(0.1)
  832. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  833. wait(0.1)
  834. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  835. wait(0.1)
  836. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  837. wait(0.1)
  838. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01, 0.01, 0.01)
  839. wait(2)
  840. head:Destroy()
  841. q = Instance.new("ParticleEmitter", e)
  842. q.Size = NumberSequence.new(1)
  843. q.Rate = 500
  844. q.Transparency = NumberSequence.new(0.5)
  845. q.Speed = NumberRange.new(7)
  846. q.VelocitySpread = 40
  847. q.Lifetime = NumberRange.new(0.1, 1)
  848. q.Texture = "rbxassetid://164417280"
  849. torso.Anchored = true
  850. rightleg.Anchored = true
  851. leftleg.Anchored = true
  852. rightarm.Anchored = true
  853. leftarm.Anchored = true
  854. ded = Instance.new("Sound")
  855. ded.Parent = torso
  856. ded.SoundId = "rbxassetid://130976109"
  857. ded.Volume = 3
  858. ded.Looped = false
  859. wait()
  860. ded:Play()
  861. end
  862. end
  863. char.Torso.Touched:connect(onTouch)
  864. mouse.KeyDown:connect(function(key)
  865. if key == "c" then
  866. Punch:Play()
  867. end
  868. end)
  869. debounce = false
  870. function onTouched(hit)
  871. hole:Play()
  872. hit.CanCollide = false
  873. wait(0.5)
  874. hit.CanCollide = true
  875. debounce = true
  876. end
  877. game.Players.LocalPlayer.Character.Torso.Touched:connect(onTouched)
  878. while wait() do
  879. char["Left Leg"].BrickColor = BrickColor.new("Really black")
  880. char.Head.BrickColor = BrickColor.new("Really black")
  881. char["Right Leg"].BrickColor = BrickColor.new("Really black")
  882. char.Torso.BrickColor = BrickColor.new("Really black")
  883. char["Left Arm"].BrickColor = BrickColor.new("Black")
  884. char["Right Arm"].BrickColor = BrickColor.new("Black")
  885. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement