Advertisement
nicopow

Untitled

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