foxy_game4

Untitled

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