Hitman_Hell

SCP Plague Doctor

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