Advertisement
ThatOneGuy561

Untitled

Jun 26th, 2017
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 47.08 KB | None | 0 0
  1. targettedOn = false
  2. function onTouched(hit)
  3. hole:Play()
  4. hit.CanCollide=false
  5. wait(.5)
  6. hit.CanCollide = true
  7. debounce = true
  8.  
  9. end
  10.  
  11. dft = {}
  12.  
  13. function GetPlayers()
  14. local c = game.Players:GetChildren()
  15. for i = 1, #c do
  16. table.insert(dft, c[i].Name)
  17. end
  18. end
  19.  
  20. function Randomize()
  21. GetPlayers()
  22. local d = math.random(1, #dft)
  23. s = d
  24.  
  25.  
  26.  
  27. end
  28. ---------------------------------------------
  29. Player = game.Players.LocalPlayer
  30. Character = Player.Character
  31. local char = Player.Character
  32. torso = Character.Torso
  33. neck = Character.Torso.Neck
  34. hum = Character.Humanoid
  35. hum.MaxHealth = math.huge
  36. wait()
  37. hum.Health =hum.MaxHealth
  38. -------------------------------
  39. Reaper2 = Instance.new("Model")
  40. Reaper2.Parent = Player.Character
  41. Reaper2.Name = "Reaper2"
  42. rh2 = Instance.new("Part")
  43. rh2.Parent = Reaper2
  44. rh2.BrickColor = BrickColor.new("Brown")
  45. rh2.Locked = true
  46. rh2.CanCollide = false
  47. mesh2 = Instance.new("SpecialMesh")
  48. rh2.formFactor = "Symmetric"
  49. mesh2.MeshType = "FileMesh"
  50. mesh2.MeshId = "http://www.roblox.com/asset/?id=167554431"
  51. mesh2.Parent = rh2
  52. local weld2 = Instance.new("Weld")
  53. weld2.Parent = rh2
  54. rh2.Transparency = 0
  55. weld2.Part0 = rh2
  56. weld2.Part1 = Player.Character.Head
  57. weld2.C0 = CFrame.new(-0.05, -0.05, -0.1025)*CFrame.Angles(0, 0, 0)
  58.  
  59.  
  60. --------------------------------
  61. local l = game.Lighting
  62. local sky = Instance.new("Sky",l)
  63. l.TimeOfDay = "00:00:00"
  64. l.Brightness = 1
  65. l.Ambient = Color3.new(0.25, 0.5, 0.75)
  66. sky.CelestialBodiesShown = false
  67. sky.SkyboxBk = "http://www.roblox.com/asset/?id=1010388"
  68. sky.SkyboxDn = "http://www.roblox.com/asset/?id=1010389"
  69. sky.SkyboxFt = "http://www.roblox.com/asset/?id=1010386"
  70. sky.SkyboxLf = "http://www.roblox.com/asset/?id=1010387"
  71. sky.SkyboxRt = "http://www.roblox.com/asset/?id=1010385"
  72. sky.SkyboxUp = "http://www.roblox.com/asset/?id=1010390"
  73. sky.StarCount = 0
  74. sky.Name = "IcySkies"
  75.  
  76. playertarg = game.Players.LocalPlayer
  77. chara = playertarg.Character
  78. Mouse = playertarg:GetMouse()
  79. targetted = nil
  80.  
  81. New = function(Object, Parent, Name, Data)
  82. local Object = Instance.new(Object)
  83. for Index, Value in pairs(Data or {}) do
  84. Object[Index] = Value
  85. end
  86. Object.Parent = Parent
  87. Object.Name = Name
  88. return Object
  89. end
  90.  
  91.  
  92.  
  93. crosshair = Instance.new("BillboardGui",chara)
  94. crosshair.Size = UDim2.new(10,0,10,0)
  95. crosshair.Enabled = false
  96. imgl = Instance.new("ImageLabel",crosshair)
  97. imgl.Position = UDim2.new(0,0,0,0)
  98. imgl.Size = UDim2.new(1,0,1,0)
  99. imgl.Image = "rbxassetid://182932517"
  100. imgl.BackgroundTransparency = 1
  101. imgl.ImageTransparency = .7
  102. imgl.ImageColor3 = Color3.new(0,0,0)
  103.  
  104. CV="Maroon"
  105. Player = game.Players.LocalPlayer
  106. Character = Player.Character
  107. local txt = Instance.new("BillboardGui", Character)
  108. txt.Adornee = Character .Head
  109. txt.Name = "_status"
  110. txt.Size = UDim2.new(2, 0, 1.2, 0)
  111. txt.StudsOffset = Vector3.new(-9, 8, 0)
  112. local text = Instance.new("TextLabel", txt)
  113. text.Size = UDim2.new(10, 0, 7, 0)
  114. text.FontSize = "Size24"
  115. text.TextScaled = true
  116. text.TextTransparency = 0
  117. text.BackgroundTransparency = 1
  118. text.TextTransparency = 0
  119. text.TextStrokeTransparency = 0
  120. text.Font = "Bodoni"
  121. text.TextStrokeColor3 = Color3.new(255,255,255)
  122.  
  123. v=Instance.new("Part")
  124. v.Name = "ColorBrick"
  125. v.Parent=Player.Character
  126. v.FormFactor="Symmetric"
  127. v.Anchored=true
  128. v.CanCollide=false
  129. v.BottomSurface="Smooth"
  130. v.TopSurface="Smooth"
  131. v.Size=Vector3.new(10,5,3)
  132. v.Transparency=1
  133. v.CFrame=Character.Torso.CFrame
  134. v.BrickColor=BrickColor.new(CV)
  135. v.Transparency=1
  136. text.TextColor3 = Color3.new(0,0,0)
  137. v.Shape="Block"
  138. text.Text = "The Ebola Virus"
  139. -----------------------------------------
  140.  
  141. function LoadSnd(id,loop,vol,pit)
  142. local snd = New("Sound",chara,"Sound",{SoundId = "rbxassetid://"..id,Looped = loop,Volume = vol,Pitch = pit})
  143. return snd
  144. end
  145.  
  146. TargetSnd = LoadSnd(167191994,false,2.2,.8)
  147.  
  148.  
  149. function TargetSelect(person)
  150. local dd=coroutine.wrap(function()
  151. if targetted ~= person then
  152. targetted = person
  153.  
  154. for i = 0,30,10 do
  155. wait(.05)
  156. crosshair.Size = UDim2.new(40-i,0,40-i,0)
  157. end
  158. end
  159. end)
  160. dd()
  161. end
  162.  
  163.  
  164.  
  165. function LockOn()
  166. if Mouse.Target.Parent ~= chara and Mouse.Target.Parent.Parent ~= chara and Mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
  167. TargetSelect(Mouse.Target.Parent)
  168. TargetSnd:Play()
  169. else end
  170. end
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180. ZomWait = false
  181. ZomWait2 = false
  182. ZomSyle = false
  183.  
  184.  
  185. Target1 =script.Parent.Name
  186. Target2 = game.Players[Target1]
  187. Target2.Character.archivable = true
  188. clone4 = Target2.Character:Clone()
  189. clone4.Parent = game.Lighting
  190.  
  191.  
  192.  
  193.  
  194.  
  195. clone4.Torso["Left Shoulder"].DesiredAngle = -1.5
  196. clone4.Torso["Right Shoulder"].DesiredAngle = 1.5
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206. Glow1 = Color3.new(.5,0,0)
  207. Glow2 = Color3.new(0,0,0)
  208.  
  209. GlowParticle = Instance.new("ParticleEmitter",clone4.Torso)
  210. GlowParticle.LightEmission = 0
  211. GlowParticle.Color = ColorSequence.new(Glow1,Glow2)
  212. GlowParticle.Size = NumberSequence.new(2,0)
  213. GlowParticle.Texture = "http://www.roblox.com/asset/?id=118641183"
  214. GlowParticle.Transparency = NumberSequence.new(.3,.8)
  215. GlowParticle.LockedToPart = false
  216. GlowParticle.Lifetime = NumberRange.new(.5,.6)
  217. GlowParticle.Rate= 100
  218. GlowParticle.Speed =NumberRange.new(6)
  219. GlowParticle.VelocitySpread = 360
  220.  
  221.  
  222.  
  223. for i,v in pairs(clone4:GetChildren()) do
  224.  
  225.  
  226. if v:IsA("ShirtGraphic") then
  227. v:Destroy()
  228. end
  229.  
  230. if v:IsA("Pants") then
  231. v:Destroy()
  232. end
  233. if v:IsA("Shirt") then
  234. v:Destroy()
  235. end
  236. if v:IsA("Hat") then
  237. v:Destroy()
  238.  
  239. end
  240. if v:IsA("Accessory") then
  241. v:Destroy()
  242. end
  243.  
  244. end
  245.  
  246. clone4["Body Colors"]:Destroy()
  247. clone4.Head.face.Texture = "rbxassetid://97880283"
  248.  
  249. wait()
  250. Zombie = clone4:Clone()
  251.  
  252. wait()
  253.  
  254. clone4:Destroy()
  255.  
  256. wait()
  257.  
  258.  
  259. Player=game:GetService("Players").LocalPlayer
  260. Character=Player.Character
  261.  
  262.  
  263. -------------------------------------------------------
  264.  
  265. --------------------------------------------------------
  266.  
  267. ---------------------------------------------------------
  268.  
  269. ----------------------------------------------------------
  270. local Hood = Instance.new("Part", Character)
  271. Hood.Name = "Hood"
  272. Hood.CanCollide = false
  273. Hood.BrickColor = BrickColor.new("Really black")
  274. Hood.Transparency = 0
  275. Hood.Material = "Granite"
  276. Hood.Size = Vector3.new(0.1, 0.1, 0.1)
  277. Hood.TopSurface = Enum.SurfaceType.Smooth
  278. Hood.BottomSurface = Enum.SurfaceType.Smooth
  279.  
  280. local Weld = Instance.new("Weld", Hood)
  281. Weld.Part0 = Character.Head
  282. Weld.Part1 = Hood
  283. Weld.C1 = CFrame.new(0, -0.2, 0)
  284.  
  285. local M2 = Instance.new("SpecialMesh")
  286. M2.Parent = Hood
  287. M2.MeshId = "http://www.roblox.com/asset/?id=83499032"
  288. M2.Scale = Vector3.new( 1, 1.2, 1.1)
  289. ------------------------------------------------------
  290.  
  291. p = game.Players.LocalPlayer
  292. char049 = p.Character
  293.  
  294. char049.Shirt:Remove()
  295. for i,v in pairs(char049:GetChildren()) do if v:IsA("Pants") then v:Remove() end end
  296. wait()shirt = Instance.new("Shirt", char049)
  297. shirt.Name = "Shirt"
  298. pants = Instance.new("Pants", char049)
  299. pants.Name = "Pants"
  300.  
  301. char049.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=648758131"
  302. char049.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=472675863"
  303. -------------------------------------------------
  304. ---- Orbd,Orbvc,Mask,Hood
  305.  
  306. --[[NIGHTOWLACE_WEAPONRY]]--
  307. maincolor = game.Players.LocalPlayer.Character.Torso.BrickColor.Name
  308. secondcolor = "Really black"
  309.  
  310. wait(1 / 60)
  311. Effects = { }
  312. local Player = game.Players.localPlayer
  313. local Character = Player.Character
  314. local Humanoid = Character.Humanoid
  315. local mouse = Player:GetMouse()
  316. local LeftArm = Character["Left Arm"]
  317. local RightArm = Character["Right Arm"]
  318. local LeftLeg = Character["Left Leg"]
  319. local RightLeg = Character["Right Leg"]
  320. local Head = Character.Head
  321. local Torso = Character.Torso
  322. local cam = game.Workspace.CurrentCamera
  323. local RootPart = Character.HumanoidRootPart
  324. local RootJoint = RootPart.RootJoint
  325. local equipped = false
  326. local attack = false
  327. local Anim = 'Idle'
  328. local idle = 0
  329. local attacktype = 1
  330. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  331. local velocity = RootPart.Velocity.y
  332. local sine = 0
  333. local change = 1
  334. local grabbed = false
  335. local cn = CFrame.new
  336. local mr = math.rad
  337. local angles = CFrame.Angles
  338. local ud = UDim2.new
  339. local c3 = Color3.new
  340.  
  341. local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  342. Humanoid.Animator:Destroy()
  343. Character.Animate:Destroy()
  344.  
  345. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  346. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  347. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  348.  
  349. RSH, LSH = nil, nil
  350.  
  351. RW = Instance.new("Weld")
  352. LW = Instance.new("Weld")
  353.  
  354. RH = Torso["Right Hip"]
  355. LH = Torso["Left Hip"]
  356.  
  357. RSH = Torso["Right Shoulder"]
  358. LSH = Torso["Left Shoulder"]
  359.  
  360. RSH.Parent = nil
  361. LSH.Parent = nil
  362.  
  363. RW.Name = "RW"
  364. RW.Part0 = Torso
  365. RW.C0 = cn(1.5, 0.5, 0)
  366. RW.C1 = cn(0, 0.5, 0)
  367. RW.Part1 = RightArm
  368. RW.Parent = Torso
  369.  
  370. LW.Name = "LW"
  371. LW.Part0 = Torso
  372. LW.C0 = cn(-1.5, 0.5, 0)
  373. LW.C1 = cn(0, 0.5, 0)
  374. LW.Part1 = LeftArm
  375. LW.Parent = Torso
  376.  
  377. function clerp(a, b, t)
  378. local qa = {
  379. QuaternionFromCFrame(a)
  380. }
  381. local qb = {
  382. QuaternionFromCFrame(b)
  383. }
  384. local ax, ay, az = a.x, a.y, a.z
  385. local bx, by, bz = b.x, b.y, b.z
  386. local _t = 1 - t
  387. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  388. end
  389.  
  390. function QuaternionFromCFrame(cf)
  391. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  392. local trace = m00 + m11 + m22
  393. if trace > 0 then
  394. local s = math.sqrt(1 + trace)
  395. local recip = 0.5 / s
  396. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  397. else
  398. local i = 0
  399. if m11 > m00 then
  400. i = 1
  401. end
  402. if m22 > (i == 0 and m00 or m11) then
  403. i = 2
  404. end
  405. if i == 0 then
  406. local s = math.sqrt(m00 - m11 - m22 + 1)
  407. local recip = 0.5 / s
  408. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  409. elseif i == 1 then
  410. local s = math.sqrt(m11 - m22 - m00 + 1)
  411. local recip = 0.5 / s
  412. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  413. elseif i == 2 then
  414. local s = math.sqrt(m22 - m00 - m11 + 1)
  415. local recip = 0.5 / s
  416. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  417. end
  418. end
  419. end
  420.  
  421. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  422. local xs, ys, zs = x + x, y + y, z + z
  423. local wx, wy, wz = w * xs, w * ys, w * zs
  424. local xx = x * xs
  425. local xy = x * ys
  426. local xz = x * zs
  427. local yy = y * ys
  428. local yz = y * zs
  429. local zz = z * zs
  430. 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))
  431. end
  432.  
  433. function QuaternionSlerp(a, b, t)
  434. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  435. local startInterp, finishInterp;
  436. if cosTheta >= 0.0001 then
  437. if (1 - cosTheta) > 0.0001 then
  438. local theta = math.acos(cosTheta)
  439. local invSinTheta = 1 / math.sin(theta)
  440. startInterp = math.sin((1 - t) * theta) * invSinTheta
  441. finishInterp = math.sin(t * theta) * invSinTheta
  442. else
  443. startInterp = 1 - t
  444. finishInterp = t
  445. end
  446. else
  447. if (1 + cosTheta) > 0.0001 then
  448. local theta = math.acos(-cosTheta)
  449. local invSinTheta = 1 / math.sin(theta)
  450. startInterp = math.sin((t - 1) * theta) * invSinTheta
  451. finishInterp = math.sin(t * theta) * invSinTheta
  452. else
  453. startInterp = t - 1
  454. finishInterp = t
  455. end
  456. end
  457. 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
  458. end
  459.  
  460. function swait(num)
  461. if num == 0 or num == nil then
  462. game:service'RunService'.RenderStepped:wait(0)
  463. else
  464. for i = 0, num do
  465. game:service'RunService'.RenderStepped:wait(0)
  466. end
  467. end
  468. end
  469.  
  470. local RbxUtility = LoadLibrary("RbxUtility")
  471. local Create = RbxUtility.Create
  472.  
  473. function RemoveOutlines(part)
  474. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  475. end
  476.  
  477. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  478. local Part = Create("Part"){
  479. formFactor = FormFactor,
  480. Parent = Parent,
  481. Reflectance = Reflectance,
  482. Transparency = Transparency,
  483. CanCollide = false,
  484. Locked = true,
  485. BrickColor = BrickColor.new(tostring(BColor)),
  486. Name = Name,
  487. Size = Size,
  488. Material = Material,
  489. }
  490. RemoveOutlines(Part)
  491. return Part
  492. end
  493.  
  494. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  495. local Msh = Create(Mesh){
  496. Parent = Part,
  497. Offset = OffSet,
  498. Scale = Scale,
  499. }
  500. if Mesh == "SpecialMesh" then
  501. Msh.MeshType = MeshType
  502. Msh.MeshId = MeshId
  503. end
  504. return Msh
  505. end
  506.  
  507. function CreateWeld(Parent, Part0, Part1, C0, C1)
  508. local Weld = Create("Weld"){
  509. Parent = Parent,
  510. Part0 = Part0,
  511. Part1 = Part1,
  512. C0 = C0,
  513. C1 = C1,
  514. }
  515. return Weld
  516. end
  517.  
  518. function rayCast(Position, Direction, Range, Ignore)
  519. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  520. end
  521.  
  522. function CreateSound(id, par, vol, pit)
  523. coroutine.resume(coroutine.create(function()
  524. local sou = Instance.new("Sound", par or workspace)
  525. sou.Volume = vol
  526. sou.Pitch = pit or 1
  527. sou.SoundId = id
  528. wait()
  529. sou:play()
  530. game:GetService("Debris"):AddItem(sou, 6)
  531. end))
  532. end
  533.  
  534. local function getclosest(obj, distance)
  535. local last, lastx = distance + 1
  536. for i, v in pairs(workspace:GetChildren()) do
  537. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  538. local t = v.Torso
  539. local dist = (t.Position - obj.Position).magnitude
  540. if dist <= distance then
  541. if dist < last then
  542. last = dist
  543. lastx = v
  544. end
  545. end
  546. end
  547. end
  548. return lastx
  549. end
  550.  
  551. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  552. for i, v in pairs(hit:GetChildren()) do
  553. if v:IsA("Humanoid") and hit.Name ~= Character.Name then
  554. local find = v:FindFirstChild("Hitz")
  555. if not find then
  556. if v.Parent:findFirstChild("Head") then
  557. local BillG = Create("BillboardGui"){
  558. Parent = v.Parent.Head,
  559. Size = UDim2.new(1, 0, 1, 0),
  560. Adornee = v.Parent.Head,
  561. StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  562. }
  563. local TL = Create("TextLabel"){
  564. Parent = BillG,
  565. Size = UDim2.new(3, 3, 3, 3),
  566. BackgroundTransparency = 1,
  567. Text = tostring(damage).."-",
  568. TextColor3 = Color1.Color,
  569. TextStrokeColor3 = Color2.Color,
  570. TextStrokeTransparency = 0,
  571. TextXAlignment = Enum.TextXAlignment.Center,
  572. TextYAlignment = Enum.TextYAlignment.Center,
  573. FontSize = Enum.FontSize.Size36,
  574. Font = "Garamondd",
  575. }
  576. coroutine.resume(coroutine.create(function()
  577. wait(1)
  578. for i = 0, 1, .1 do
  579. wait(.1)
  580. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  581. end
  582. BillG:Destroy()
  583. end))
  584. end
  585. v.Health = v.Health - damage
  586. local bool = Create("BoolValue"){
  587. Parent = v,
  588. Name = 'Hitz',
  589. }
  590. if HSound ~= nil and HPitch ~= nil then
  591. CreateSound(HSound, hit, 1, HPitch)
  592. end
  593. game:GetService("Debris"):AddItem(bool, cooldown)
  594. end
  595. end
  596. end
  597. end
  598.  
  599.  
  600. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  601. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  602. prt.Anchored = true
  603. prt.CFrame = cframe
  604. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  605. game:GetService("Debris"):AddItem(prt, 10)
  606. if Type == 1 or Type == nil then
  607. table.insert(Effects, {
  608. prt,
  609. "Block1",
  610. delay,
  611. x3,
  612. y3,
  613. z3,
  614. msh
  615. })
  616. elseif Type == 2 then
  617. table.insert(Effects, {
  618. prt,
  619. "Block2",
  620. delay,
  621. x3,
  622. y3,
  623. z3,
  624. msh
  625. })
  626. end
  627. end
  628.  
  629. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  630. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  631. prt.Anchored = true
  632. prt.CFrame = cframe
  633. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  634. game:GetService("Debris"):AddItem(prt, 10)
  635. table.insert(Effects, {
  636. prt,
  637. "Cylinder",
  638. delay,
  639. x3,
  640. y3,
  641. z3,
  642. msh
  643. })
  644. end
  645.  
  646. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  647. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  648. prt.Anchored = true
  649. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  650. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  651. game:GetService("Debris"):AddItem(prt, 10)
  652. table.insert(Effects, {
  653. prt,
  654. "Cylinder",
  655. delay,
  656. x3,
  657. y3,
  658. z3,
  659. msh
  660. })
  661. end
  662.  
  663. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  664. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  665. prt.Anchored = true
  666. prt.CFrame = cframe
  667. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  668. game:GetService("Debris"):AddItem(prt, 10)
  669. table.insert(Effects, {
  670. prt,
  671. "Cylinder",
  672. delay,
  673. x3,
  674. y3,
  675. z3,
  676. msh
  677. })
  678. end
  679.  
  680. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  681. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  682. prt.Anchored = true
  683. prt.CFrame = cframe
  684. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  685. game:GetService("Debris"):AddItem(prt, 10)
  686. table.insert(Effects, {
  687. prt,
  688. "Cylinder",
  689. delay,
  690. x3,
  691. y3,
  692. z3,
  693. msh
  694. })
  695. end
  696.  
  697. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  698. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  699. prt.Anchored = true
  700. prt.CFrame = cframe
  701. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  702. game:GetService("Debris"):AddItem(prt, 10)
  703. table.insert(Effects, {
  704. prt,
  705. "Cylinder",
  706. delay,
  707. x3,
  708. y3,
  709. z3,
  710. msh
  711. })
  712. end
  713.  
  714. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  715. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  716. prt.Anchored = true
  717. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  718. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  719. local num = math.random(10, 50) / 1000
  720. game:GetService("Debris"):AddItem(prt, 10)
  721. table.insert(Effects, {
  722. prt,
  723. "Shatter",
  724. num,
  725. prt.CFrame,
  726. math.random() - math.random(),
  727. 0,
  728. math.random(50, 100) / 100
  729. })
  730. end
  731.  
  732.  
  733.  
  734.  
  735. for i = 0, 1, 0.05 do
  736. swait()
  737. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  738. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1)
  739. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  740. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
  741. if Torsovelocity > 2 then
  742. 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)
  743. 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)
  744. 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)
  745. elseif Torsovelocity < 1 then
  746. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  747. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  748. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  749. end
  750. end
  751. attack = false
  752.  
  753.  
  754.  
  755. game:GetService'RunService'.Stepped:connect(function()
  756. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  757. velocity = RootPart.Velocity.y
  758. sine = sine + change
  759. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  760. if equipped == true or equipped == false then
  761. if RootPart.Velocity.y > 1 and hit == nil then
  762. Anim = "Jump"
  763. if attack == false then
  764. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  765. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  766. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(30)), .1)
  767. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-30)), .1)
  768. RH.C0 = clerp(RH.C0, cn(1, -.9, -.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), .1)
  769. LH.C0 = clerp(LH.C0, cn(-1, -.7, -.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), .1)
  770. end
  771. elseif RootPart.Velocity.y < -1 and hit == nil then
  772. Anim = "Fall"
  773. if attack == false then
  774. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  775. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  776. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), .1)
  777. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), .1)
  778. RH.C0 = clerp(RH.C0, cn(1, -1, -.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  779. LH.C0 = clerp(LH.C0, cn(-1, -.8, -.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  780. end
  781. elseif Torsovelocity < 1 and hit ~= nil then
  782. Anim = "Idle"
  783. if attack == false then
  784. change = 1
  785. 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)
  786. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), .1)
  787. 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)
  788. 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)
  789. 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)
  790. 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)
  791. end
  792. elseif Torsovelocity > 2 and hit ~= nil then
  793. Anim = "Walk"
  794. if attack == false then
  795. 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)
  796. 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)
  797. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(4)), .2)
  798. 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)
  799. 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)
  800. 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)
  801. end
  802. end
  803. end
  804. if #Effects > 0 then
  805. for e = 1, #Effects do
  806. if Effects[e] ~= nil then
  807. local Thing = Effects[e]
  808. if Thing ~= nil then
  809. local Part = Thing[1]
  810. local Mode = Thing[2]
  811. local Delay = Thing[3]
  812. local IncX = Thing[4]
  813. local IncY = Thing[5]
  814. local IncZ = Thing[6]
  815. if Thing[1].Transparency <= 1 then
  816. if Thing[2] == "Block1" then
  817. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  818. local Mesh = Thing[1].Mesh
  819. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  820. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  821. elseif Thing[2] == "Block2" then
  822. Thing[1].CFrame = Thing[1].CFrame
  823. local Mesh = Thing[7]
  824. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  825. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  826. elseif Thing[2] == "Cylinder" then
  827. local Mesh = Thing[1].Mesh
  828. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  829. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  830. elseif Thing[2] == "Blood" then
  831. local Mesh = Thing[7]
  832. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
  833. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  834. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  835. elseif Thing[2] == "Elec" then
  836. local Mesh = Thing[1].Mesh
  837. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  838. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  839. elseif Thing[2] == "Disappear" then
  840. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  841. elseif Thing[2] == "Shatter" then
  842. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  843. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  844. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  845. Thing[6] = Thing[6] + Thing[5]
  846. end
  847. else
  848. Part.Parent = nil
  849. table.remove(Effects, e)
  850. end
  851. end
  852. end
  853. end
  854. end
  855. end)
  856.  
  857.  
  858. local lp = game.Players.LocalPlayer
  859. local chr = lp.Character
  860. local mouseV2 = lp:GetMouse()
  861. local euler = CFrame.fromEulerAnglesXYZ
  862. local rad = math.rad
  863. local trso = chr.Torso
  864.  
  865.  
  866.  
  867.  
  868.  
  869.  
  870.  
  871.  
  872.  
  873.  
  874.  
  875.  
  876.  
  877.  
  878.  
  879.  
  880.  
  881.  
  882.  
  883.  
  884.  
  885.  
  886.  
  887.  
  888.  
  889. hum = chr.Humanoid
  890.  
  891.  
  892.  
  893. function CreateMesh(parent, id, x, y, z, texture)
  894. local m=Instance.new("SpecialMesh", parent)
  895. m.MeshType = "FileMesh"
  896. m.MeshId="http://www.roblox.com/asset/?id="..id
  897. if texture ~= nil then
  898. m.TextureId="http://www.roblox.com/asset/?id="..texture
  899. end
  900. m.Scale = Vector3.new(x,y,z)
  901. end
  902.  
  903.  
  904.  
  905. Hat=function()
  906. hat = Instance.new("Part", chr)
  907. hat.Transparency = 1
  908. hat.Name = "Top hat"
  909. hat.Locked = true
  910. hat.BrickColor = BrickColor.new("Really black")
  911. hat.CanCollide=true
  912. hat.Size=Vector3.new(1,1,1)
  913. hatw = Instance.new("Weld",hat)
  914. hatw.Part0=hat
  915. hatw.Part1=chr['Head']
  916. hatw.C0=CFrame.new(0,-1.7,0)
  917. hatw.C1=euler(rad(0),rad(0),rad(0))
  918. end
  919.  
  920. Hat()
  921.  
  922.  
  923.  
  924. function Name(msg)
  925. if hat.Parent then
  926. pcall(function()
  927. local Gui = Instance.new('BillboardGui', hat)
  928. Gui.ExtentsOffset = Vector3.new(0,1.5,0)
  929. Gui.Size = UDim2.new(0,200,0,300)
  930. local Frame = Instance.new('Frame',Gui)
  931. Frame.BackgroundTransparency = 1
  932. Frame.Size = UDim2.new(1,0,1,0)
  933. local Txt = Instance.new('TextLabel',Frame)
  934. Txt.BackgroundTransparency = 1
  935. Txt.Size = UDim2.new(1,0,1,0)
  936. Txt.Font = 'ArialBold'
  937. Txt.FontSize = 'Size24'
  938. Txt.Text = msg
  939. Txt.TextColor3 = BrickColor.new("Really black").Color
  940. Txt.TextStrokeColor3 = Color3.new(1,0,0)
  941. Txt.TextStrokeTransparency = 0
  942. Txt.TextWrapped = true
  943. Txt.TextScaled = false
  944. end)
  945. else
  946. end
  947. end
  948.  
  949. function Chat(msg) -- Credit to jillmiles1, kthxbye
  950. if hat.Parent then
  951. pcall(function()
  952. if hat:FindFirstChild("Fazbear Chat Gui") then
  953. hat['Fazbear Chat Gui']:destroy()
  954. end
  955. local Gui = Instance.new('BillboardGui', hat)
  956. Gui.Name = "Fazbear Chat Gui"
  957. Gui.ExtentsOffset = Vector3.new(0,3,0)
  958. Gui.Size = UDim2.new(0,200,0,300)
  959. local Frame = Instance.new('Frame',Gui)
  960. Frame.BackgroundTransparency = 1
  961. Frame.Size = UDim2.new(1,0,1,0)
  962. local Txt = Instance.new('TextLabel',Frame)
  963. Txt.BackgroundTransparency = 1
  964. Txt.Size = UDim2.new(1,0,1,0)
  965. Txt.Font = 'ArialBold'
  966. Txt.Name = "ChatGui"
  967. Txt.FontSize = 'Size24'
  968. Txt.Text = ''
  969. Txt.TextColor3 = BrickColor.new("Really black").Color
  970. Txt.TextStrokeColor3 = Color3.new(1,1,1)
  971. Txt.TextStrokeTransparency = .5
  972. Txt.TextWrapped = true
  973. Txt.TextScaled = false
  974.  
  975. delay(wait(),function()
  976. for v = 1, #msg do
  977. Txt.Text=string.sub(msg,1,v)
  978. Gui.ExtentsOffset = Vector3.new(.1,2.9,0)
  979. wait(.009)
  980. Gui.ExtentsOffset = Vector3.new(0,3,-0.1)
  981. wait(.009)
  982. Gui.ExtentsOffset = Vector3.new(0,3,0)
  983. end;
  984.  
  985.  
  986.  
  987. Gui.ExtentsOffset = Vector3.new(.1,2.9,0)
  988. wait(.03)
  989. Gui.ExtentsOffset = Vector3.new(0,3,-0.1)
  990. wait(.03)
  991. Gui.ExtentsOffset = Vector3.new(0,3,0)
  992. wait(.03)
  993. Gui.ExtentsOffset = Vector3.new(.1,2.9,0)
  994. wait(.03)
  995. Gui.ExtentsOffset = Vector3.new(0,3,-0.1)
  996. wait(.03)
  997. Gui.ExtentsOffset = Vector3.new(0,3,0)
  998. wait(.03)
  999. Gui.ExtentsOffset = Vector3.new(.1,2.9,0)
  1000. wait(.03)
  1001. Gui.ExtentsOffset = Vector3.new(0,3,-0.1)
  1002. wait(.03)
  1003. Gui.ExtentsOffset = Vector3.new(0,3,0)
  1004. wait(.03)
  1005. Gui.ExtentsOffset = Vector3.new(.1,2.9,0)
  1006. wait(.03)
  1007. Gui.ExtentsOffset = Vector3.new(0,3,-0.1)
  1008. wait(.03)
  1009. Gui.ExtentsOffset = Vector3.new(0,3,0)
  1010. wait(.03)
  1011. Gui.ExtentsOffset = Vector3.new(.1,2.9,0)
  1012. wait(.03)
  1013. Gui.ExtentsOffset = Vector3.new(0,3,-0.1)
  1014. wait(.03)
  1015. Gui.ExtentsOffset = Vector3.new(0,3,0)
  1016. wait(.03)
  1017. Gui.ExtentsOffset = Vector3.new(.1,2.9,0)
  1018. wait(.03)
  1019. Gui.ExtentsOffset = Vector3.new(0,3,-0.1)
  1020. wait(.03)
  1021. Gui.ExtentsOffset = Vector3.new(0,3,0)
  1022. wait(.03)
  1023.  
  1024. Txt.TextStrokeTransparency = .6
  1025. wait()
  1026. Txt.TextStrokeTransparency = .7
  1027. wait()
  1028. Txt.TextStrokeTransparency = .8
  1029. wait()
  1030. Txt.TextStrokeTransparency = .9
  1031. wait()
  1032. Txt.TextStrokeTransparency = 1
  1033. wait()
  1034.  
  1035. for v = 1, #Txt.Text do
  1036. Txt.Text=string.sub(msg,-1,v)
  1037.  
  1038.  
  1039.  
  1040.  
  1041.  
  1042.  
  1043.  
  1044. end;
  1045. Gui:remove()
  1046. end)
  1047. end)
  1048. else
  1049. end
  1050. end
  1051.  
  1052.  
  1053.  
  1054.  
  1055. function PlaySound(id, pitch, looped)
  1056. epicsound = Instance.new("Sound")
  1057. epicsound.Name = "FazbearSound"
  1058. epicsound.SoundId = "rbxassetid://"..id
  1059. epicsound.Volume = 2
  1060. epicsound.Pitch = pitch
  1061. if looped == nil then
  1062. looped = true
  1063. else
  1064. looped = looped
  1065. end
  1066. wait()
  1067. epicsound.Looped = looped
  1068. epicsound.Parent = workspace
  1069. if epicsound.SoundId=="rbxassetid://tt" then -- TELL ME, TELL ME, WHERE DA FREAKS AT!
  1070. epicsound.SoundId="rbxassetid://181158033"
  1071. elseif epicsound.SoundId=="rbxassetid://fabulous" then -- FA-FA-FABULOUS!
  1072. epicsound.SoundId="rbxassetid://191819419"
  1073. elseif epicsound.SoundId=="rbxassetid://ufdb" then -- ultimate final death battle(fairy tail XD)
  1074. epicsound.SoundId="rbxassetid://153085393"
  1075. elseif epicsound.SoundId=="rbxassetid://nnm" then
  1076. epicsound.SoundId="rbxassetid://210189234"
  1077. elseif epicsound.SoundId=="rbxassetid://tun" then -- tunak tunak tun
  1078. epicsound.SoundId="rbxassetid://162682002"
  1079. elseif epicsound.SoundId=="rbxassetid://zelda" then
  1080. epicsound.SoundId="rbxassetid://158215156"
  1081. elseif epicsound.SoundId=="rbxassetid://cc" then
  1082. epicsound.SoundId="rbxassetid://177080835"
  1083. end
  1084. es=epicsound:clone()
  1085. es:Stop()
  1086. es.Parent = chr
  1087. wait()
  1088. es:Play()
  1089. end
  1090.  
  1091.  
  1092.  
  1093.  
  1094. lp.Chatted:connect(function(msg)
  1095. Chat(msg)
  1096. end)
  1097.  
  1098. goldie=true
  1099.  
  1100.  
  1101. function StopMusic()
  1102. if chr:FindFirstChild("FazbearSound") then
  1103. if chr.FazbearSound.ClassName == "Sound" then
  1104. chr.FazbearSound:Stop()
  1105. wait()
  1106. chr.FazbearSound:Destroy()
  1107. end
  1108. end
  1109. end
  1110.  
  1111. Name("")
  1112.  
  1113.  
  1114. mouseV2.KeyDown:connect(function(key)
  1115. if key == "g" then
  1116. if goldie==false then
  1117. goldie=true
  1118.  
  1119. elseif goldie==true then
  1120. goldie=false
  1121.  
  1122. end
  1123. elseif key == "j" then -- Plays a song
  1124. StopMusic()
  1125. PlaySound(150456585, 1.1, true)
  1126. elseif key == "k" then -- Plays a song
  1127. StopMusic()
  1128. PlaySound(172117148, 1, true)
  1129. Chat("Ebola...")
  1130. elseif key == "p" then -- Stops any sound(s) playing from your torso
  1131. StopMusic()
  1132. Chat("All sounds stopped!")
  1133. end
  1134. end)
  1135.  
  1136.  
  1137.  
  1138. hum.Died:connect(function()
  1139. es.Pitch = 10
  1140. wait()
  1141. es:Pause()
  1142. es:Stop()
  1143. es.Name = "Ded"
  1144. wait()
  1145. es:Destroy()
  1146. end)
  1147.  
  1148.  
  1149.  
  1150.  
  1151.  
  1152.  
  1153. p = (game.Players.LocalPlayer.Name)
  1154. char = game.Players.LocalPlayer.Character
  1155.  
  1156.  
  1157. local player = game.Players.LocalPlayer
  1158. repeat wait() until player.Character.Humanoid
  1159. local humanoid = player.Character.Humanoid
  1160. local mouse = player:GetMouse()
  1161.  
  1162. for i,v in pairs(char:GetChildren()) do
  1163. if v.ClassName == 'Accessory' then
  1164. v:Destroy()
  1165. end
  1166. end
  1167.  
  1168. ScarySound1 = Instance.new("Sound")
  1169. ScarySound1.Parent = char.Torso
  1170. ScarySound1.SoundId = "rbxassetid://161964276"
  1171. ScarySound1.Volume = .5
  1172.  
  1173. ScarySound2 = Instance.new("Sound")
  1174. ScarySound2.Parent = char.Torso
  1175. ScarySound2.SoundId = "rbxassetid://669623416"
  1176. ScarySound2.Volume = 2
  1177. ScarySound2.Looped = true
  1178.  
  1179. ScarySound3 = Instance.new("Sound")
  1180. ScarySound3.Parent = char.Torso
  1181. ScarySound3.SoundId = "rbxassetid://483810543"
  1182. ScarySound3.Volume = 0.3
  1183. ScarySound3.Looped = true
  1184.  
  1185. ScarySound4 = Instance.new("Sound")
  1186. ScarySound4.Parent = char.Torso
  1187. ScarySound4.SoundId = "rbxassetid://177113856"
  1188. ScarySound4.Volume = 2
  1189. ScarySound4.Looped = false
  1190.  
  1191. Punch = Instance.new("Sound")
  1192. Punch.Parent = char.Torso
  1193. Punch.SoundId = "rbxassetid://146938349"
  1194. Punch.Volume = 1.5
  1195. Punch.Looped = false
  1196. Punch.Pitch = 0.8
  1197.  
  1198. hole = Instance.new("Sound")
  1199. hole.Parent = char.Torso
  1200. hole.SoundId = "rbxassetid://224339308"
  1201. hole.Volume = .3
  1202.  
  1203.  
  1204. game.Players.LocalPlayer.Character.Sound:Destroy()
  1205.  
  1206. function Normal()
  1207. ScarySound3:Play()
  1208. char.Humanoid.WalkSpeed = 18
  1209. char.Head.face.Texture = "rbxassetid://0"
  1210. char["Left Leg"].Transparency = 0
  1211. char["Head"].Transparency = 0
  1212. char["Right Leg"].Transparency = 0
  1213. char["Torso"].Transparency = 0
  1214. char["Left Arm"].Transparency = 0
  1215. char["Right Arm"].Transparency = 0
  1216. end
  1217.  
  1218. function GoInvisible()
  1219. ScarySound3:Stop()
  1220. ScarySound1:Stop()
  1221. char.Humanoid.WalkSpeed = 120
  1222. char.Head.face.Transparency = 1
  1223. char["Left Leg"].Transparency = 0.5
  1224. char["Head"].Transparency = 0.5
  1225. char["Right Leg"].Transparency = 0.5
  1226. char["Torso"].Transparency = 0.5
  1227. char["Left Arm"].Transparency = 0.5
  1228. char["Right Arm"].Transparency = 0.5
  1229. Hood.Transparency = 0.5
  1230. Mask.Transparency = 0.5
  1231. Orbvc.Transparency = 0.5
  1232. Orbd.Transparency = 0.5
  1233. Orbvc.BrickColor = BrickColor.new("Really red")
  1234. Orbd.BrickColor = BrickColor.new("Really red")
  1235. wait(0.001)
  1236. char["Left Leg"].Transparency = 0.6
  1237. char["Head"].Transparency = 0.6
  1238. char["Right Leg"].Transparency = 0.6
  1239. char["Torso"].Transparency = 0.6
  1240. char["Left Arm"].Transparency = 0.6
  1241. char["Right Arm"].Transparency = 0.6
  1242. Hood.Transparency = 0.6
  1243. Mask.Transparency = 0.6
  1244. Orbvc.Transparency = 0.6
  1245. Orbd.Transparency = 0.6
  1246. wait(0.001)
  1247. char["Left Leg"].Transparency = 0.7
  1248. char["Head"].Transparency = 0.7
  1249. char["Right Leg"].Transparency = 0.7
  1250. char["Torso"].Transparency = 0.7
  1251. char["Left Arm"].Transparency = 0.7
  1252. char["Right Arm"].Transparency = 0.7
  1253. Hood.Transparency = 0.7
  1254. Mask.Transparency = 0.7
  1255. Orbvc.Transparency = 0.7
  1256. Orbd.Transparency = 0.7
  1257. wait(0.001)
  1258. char["Left Leg"].Transparency = 1
  1259. char["Head"].Transparency = 1
  1260. char["Right Leg"].Transparency = 1
  1261. char["Torso"].Transparency = 1
  1262. char["Left Arm"].Transparency = 1
  1263. char["Right Arm"].Transparency = 1
  1264. Hood.Transparency = 1
  1265. Mask.Transparency = 1
  1266. Orbvc.Transparency = 1
  1267. Orbd.Transparency = 1
  1268. end
  1269.  
  1270. function GoVisible()
  1271. ScarySound3:Play()
  1272. char.Humanoid.WalkSpeed = 16
  1273. ScarySound1:Play()
  1274. char.Head.face.Transparency = 0
  1275. Orbvc.BrickColor = BrickColor.new("Really black")
  1276. Orbd.BrickColor = BrickColor.new("Really black")
  1277. char["Left Leg"].Transparency = 0.9
  1278. char["Head"].Transparency = 0.9
  1279. char["Right Leg"].Transparency = 9
  1280. char["Torso"].Transparency = 0.9
  1281. char["Left Arm"].Transparency = 0.9
  1282. char["Right Arm"].Transparency = 0.9
  1283. Hood.Transparency = 0.9
  1284. Mask.Transparency = 0.9
  1285. Orbvc.Transparency = 0.9
  1286. Orbd.Transparency = 0.9
  1287. wait(0.001)
  1288. char["Left Leg"].Transparency = 0.7
  1289. char["Head"].Transparency = 0.7
  1290. char["Right Leg"].Transparency = 0.7
  1291. char["Torso"].Transparency = 0.7
  1292. char["Left Arm"].Transparency = 0.7
  1293. char["Right Arm"].Transparency = 0.7
  1294. Hood.Transparency = 0.7
  1295. Mask.Transparency = 0.7
  1296. Orbvc.Transparency = 0.7
  1297. Orbd.Transparency = 0.7
  1298. wait(0.001)
  1299. char["Left Leg"].Transparency = 0
  1300. char["Head"].Transparency = 0
  1301. char["Right Leg"].Transparency = 0
  1302. char["Torso"].Transparency = 0
  1303. char["Left Arm"].Transparency = 0
  1304. char["Right Arm"].Transparency = 0
  1305. Hood.Transparency = 0
  1306. Mask.Transparency = 0
  1307. Orbvc.Transparency = 0
  1308. Orbd.Transparency = 0
  1309. end
  1310.  
  1311. Normal()
  1312.  
  1313. Music1 = New("Sound",chara,"Music",{SoundId = "rbxassetid://293341992",Volume = 2,Looped = true})
  1314. Music1.Pitch = 1
  1315. musicon = false
  1316. mouse.KeyDown:connect(function(key)
  1317. if key == "z" then
  1318. if char.Head.Transparency == 0 then
  1319. GoInvisible()
  1320.  
  1321. elseif char.Head.Transparency == 1 then
  1322. GoVisible()
  1323. Chat("...")
  1324. end
  1325. end end)
  1326.  
  1327. mouse.KeyDown:connect(function(key)
  1328. if key == "x" then
  1329. if ScarySound2.IsPlaying == false then
  1330. ScarySound2:Play()
  1331. elseif ScarySound2.IsPlaying == true then
  1332. ScarySound2:Stop()
  1333.  
  1334.  
  1335. end
  1336. end end)
  1337.  
  1338. mouse.KeyDown:connect(function(key)
  1339. if key == "r" then
  1340. if ScarySound4.IsPlaying == false then
  1341. ScarySound4:Play()
  1342. Chat("Hello...")
  1343. wait(1.5)
  1344. Chat("greetings...")
  1345. wait(2)
  1346. Chat("o my...")
  1347. wait(1.5)
  1348. Chat("he have another victim of the disease")
  1349. wait(3)
  1350. Chat("you are not a doctor...")
  1351. wait(2)
  1352. Chat("i sense the the disease in you")
  1353. wait(2.3)
  1354. Chat("i am the cure...")
  1355. wait(2)
  1356. Chat("do not be afraid")
  1357. wait(2)
  1358. Chat("i am the cure")
  1359. wait(2)
  1360. Chat("stop resisting...")
  1361. wait(1.8)
  1362. Chat("i am here to cure you...")
  1363.  
  1364.  
  1365.  
  1366.  
  1367. end
  1368. end end)
  1369. mouse.KeyDown:connect(function(key)
  1370. if key == "u" then
  1371. for _, z in pairs(workspace:GetChildren()) do
  1372.  
  1373. if z.Name == "Zombie" then
  1374. Chat("Clean...")
  1375. z:Destroy()
  1376.  
  1377. end
  1378. end
  1379. end
  1380. end)
  1381.  
  1382.  
  1383. mouse.KeyDown:connect(function(key)
  1384. if key == "m" then
  1385. if musicon == true then
  1386. Music1:Stop()
  1387. musicon = false
  1388. Chat("Auto Target: Deactivated")
  1389. else
  1390. Chat("Auto Target: Activated")
  1391. Music1:Play()
  1392. musicon = true
  1393.  
  1394. end
  1395. end
  1396. end)
  1397.  
  1398. Virus = true
  1399.  
  1400.  
  1401. mouse.KeyDown:connect(function(key)
  1402. if key == "v" then
  1403. if Virus == true then
  1404. Chat("Infection: Deactivated")
  1405. Virus = false
  1406.  
  1407. else
  1408.  
  1409. Virus = true
  1410. Chat("Infection: Activated")
  1411. end
  1412. end
  1413. end)
  1414.  
  1415.  
  1416.  
  1417. mouse.KeyDown:connect(function(key)
  1418. if key == "h" then
  1419. for _, z in pairs(workspace:GetChildren()) do
  1420.  
  1421. if z.Name == "Zombie" then
  1422.  
  1423.  
  1424.  
  1425. end
  1426. end
  1427. end
  1428. end)
  1429.  
  1430.  
  1431.  
  1432.  
  1433. mouse.KeyDown:connect(function(key)
  1434. if key == "f" then
  1435. if targetted == nil then
  1436. targetted = char
  1437. else
  1438.  
  1439. targetted = nil
  1440. end
  1441.  
  1442.  
  1443. end
  1444. end)
  1445.  
  1446.  
  1447.  
  1448.  
  1449.  
  1450. function SpawnZombie()
  1451.  
  1452.  
  1453. if ZomWait == false and ZomWait2 == false then
  1454. Zombie.Parent = game.Lighting
  1455. Zombie2 = Zombie:Clone()
  1456. Zombie3 = Zombie:Clone()
  1457.  
  1458. Zombie:Destroy()
  1459. ----------------------------
  1460. ZomWait2 = true
  1461. wait()
  1462. ZomWait = true
  1463. end
  1464.  
  1465.  
  1466.  
  1467. if ZomWait == true and ZomWait2 == false then
  1468. Zombie3.Parent = game.Lighting
  1469. Zombie2 = Zombie3:Clone()
  1470. Zombie = Zombie3:Clone()
  1471.  
  1472. Zombie3:Destroy()
  1473. ----------------------------
  1474. ZomWait2 = true
  1475. wait()
  1476. ZomWait = false
  1477. end
  1478. Zombie2.Parent = game.Workspace
  1479.  
  1480. end
  1481.  
  1482.  
  1483.  
  1484.  
  1485. function ResetZombie()
  1486. wait(4)
  1487. ZomSyle = false
  1488. ZomWait2 = false
  1489.  
  1490. end
  1491. waitV2 = false
  1492. function onTouch(part)
  1493.  
  1494. local humanoid = part.Parent:findFirstChild("Humanoid")
  1495. local model = part.Parent
  1496. local torso = part.Parent:FindFirstChild("Torso")
  1497. local head = part.Parent:findFirstChild("Head")
  1498. local leftleg = part.Parent:findFirstChild("Left Leg")
  1499. local rightleg = part.Parent:findFirstChild("Right Leg")
  1500. local leftarm = part.Parent:findFirstChild("Left Arm")
  1501. local rightarm = part.Parent:findFirstChild("Right Arm")
  1502. if model.Name == 'Zombie' == false and model.Name == ''..p == false and Virus == true and waitV2 == false then
  1503. waitV2 = true
  1504. wait(.2)
  1505. waitV2 = false
  1506.  
  1507.  
  1508.  
  1509.  
  1510. if (humanoid ~=nil) then
  1511.  
  1512. --humanoid.Health = 0
  1513.  
  1514.  
  1515. ---------------------------R15-------------------------------------------------
  1516. if part.Parent:FindFirstChild("Torso") == nil and model.Humanoid.Health == 0 == false then
  1517. local torso2 = part.Parent:FindFirstChild("UpperTorso")
  1518. torso2:Destroy()
  1519. end
  1520. -------------------------------------------------------------------------------
  1521.  
  1522.  
  1523.  
  1524. humanoid.Sit = true
  1525. wait(0.5)
  1526. torso.Anchored = true
  1527. wait(.3)
  1528. zomchar = humanoid.Parent
  1529. e=Instance.new('Part', model)
  1530. e.Size = Vector3.new(2.25,2.25,2.25)
  1531. e.Transparency = 1
  1532. e.Anchored = true
  1533. e.CFrame = CFrame.new(torso.Position)
  1534.  
  1535.  
  1536.  
  1537. wait(1)
  1538. torso:Destroy()
  1539. q=Instance.new('ParticleEmitter', e)
  1540. q.Size = NumberSequence.new(2,.0)
  1541. q.Rate = 500
  1542. q.Transparency = NumberSequence.new(0,1)
  1543. q.Speed = NumberRange.new(7)
  1544. q.VelocitySpread = 100
  1545. q.Lifetime = NumberRange.new(0.1,1)
  1546. q.Texture = 'rbxassetid://164417280'
  1547. wait(.1)
  1548. torso.Anchored = true
  1549. rightleg.Anchored = true
  1550. leftleg.Anchored = true
  1551. rightarm.Anchored = true
  1552. leftarm.Anchored = true
  1553. ded = Instance.new("Sound")
  1554. ded.Parent = e
  1555. ded.SoundId = "rbxassetid://130976109"
  1556. ded.Volume = 3
  1557. ded.Looped = false
  1558. wait()
  1559.  
  1560. ded:Play()
  1561.  
  1562. wait(1)
  1563. leftleg.Transparency = 0.5
  1564. head.Transparency = 0.5
  1565. rightleg.Transparency = 0.5
  1566. torso.Transparency = 0.5
  1567. leftarm.Transparency = 0.5
  1568. rightarm.Transparency = 0.5
  1569.  
  1570.  
  1571. wait(0.001)
  1572. leftleg.Transparency = 0.6
  1573. head.Transparency = 0.6
  1574. rightleg.Transparency = 0.6
  1575. torso.Transparency = 0.6
  1576. leftarm.Transparency = 0.6
  1577. rightarm.Transparency = 0.6
  1578.  
  1579. wait(0.001)
  1580. leftleg.Transparency = 0.7
  1581. head.Transparency = 0.7
  1582. rightleg.Transparency = 0.7
  1583. torso.Transparency = 0.7
  1584. leftarm.Transparency = 0.7
  1585. rightarm.Transparency = 0.7
  1586.  
  1587.  
  1588.  
  1589.  
  1590.  
  1591.  
  1592. wait(0.001)
  1593. leftleg.Transparency = 1
  1594. head.Transparency = 1
  1595. rightleg.Transparency = 1
  1596. torso.Transparency = 1
  1597. leftarm.Transparency = 1
  1598. rightarm.Transparency = 1
  1599. wait()
  1600.  
  1601. SpawnZombie()
  1602. Zombie2.Torso.Touched:connect(onTouch)
  1603. Zombie2.Name = 'Zombie'
  1604. function AutoJump()
  1605. Zombie2.Humanoid.Jump = true
  1606. end
  1607. Zombie2.Torso.Touched:connect(AutoJump)
  1608. wait()
  1609. Zombie2:MoveTo(zomchar.Head.Position + Vector3.new(math.random(0,1),0,math.random(0,1)))
  1610. ----------------------
  1611.  
  1612. if ZomSyle == false then
  1613. ZomSyle = true
  1614.  
  1615.  
  1616.  
  1617.  
  1618.  
  1619.  
  1620.  
  1621.  
  1622. Zombie2.archivable = false
  1623.  
  1624.  
  1625. skin = zomchar["Body Colors"]:Clone()
  1626. skin.Parent = Zombie2
  1627. wait()
  1628.  
  1629.  
  1630. Character= Zombie2
  1631. plr = Zombie2
  1632. Headmaker = Character.Head
  1633. Headcol1 = Headmaker.BrickColor
  1634. Headmat = Headmaker.Material
  1635. Headsize = Headmaker.Size
  1636. Headsize2 = Headmaker.Mesh.Scale
  1637. hed = Character.Head
  1638. hed.Transparency = 1
  1639.  
  1640. local Headnr1 = Instance.new("Model",Character.Head)
  1641. Headnr1.Name = "Lmao"
  1642. local Headnr2 = Instance.new("Model",Headnr1)
  1643. Headnr2.Name = ""..zomchar.Name
  1644.  
  1645.  
  1646. ----------------------------------------------------------
  1647.  
  1648. ----------------------------------------------------------
  1649. local Name2 = Instance.new("Humanoid",Headnr2)
  1650.  
  1651. wait()
  1652.  
  1653. for i,v in pairs(zomchar:GetChildren()) do
  1654. if v:IsA("CharacterMesh") then
  1655. v:clone().Parent = Zombie2
  1656. end
  1657.  
  1658. if v:IsA("ShirtGraphic") then
  1659. v:clone().Parent = Zombie2
  1660. end
  1661.  
  1662. if v:IsA("Pants") then
  1663. v:clone().Parent = Zombie2
  1664. end
  1665. if v:IsA("Shirt") then
  1666. v:clone().Parent = Zombie2
  1667.  
  1668. end
  1669.  
  1670.  
  1671. if v:IsA("Accessory") then
  1672. v:clone().Parent = Zombie2
  1673. end
  1674.  
  1675. if v:IsA("Hat") then
  1676. v:clone().Parent = Zombie2
  1677. end
  1678.  
  1679. end
  1680.  
  1681.  
  1682.  
  1683. end
  1684.  
  1685.  
  1686.  
  1687.  
  1688.  
  1689.  
  1690.  
  1691. ----------------------
  1692. wait()
  1693. leftleg:Destroy()
  1694. head:Destroy()
  1695. rightleg:Destroy()
  1696. leftarm:Destroy()
  1697. rightarm:Destroy()
  1698. ResetZombie()
  1699. end
  1700. end
  1701. end
  1702.  
  1703.  
  1704.  
  1705. char.Torso.Touched:connect(onTouch)
  1706.  
  1707. mouse.KeyDown:connect(function(key)
  1708. if key == "c" then
  1709.  
  1710. LockOn()
  1711.  
  1712.  
  1713.  
  1714.  
  1715.  
  1716. end
  1717. end)
  1718.  
  1719.  
  1720. debounce = false
  1721.  
  1722. function onTouched(hit)
  1723. hole:Play()
  1724. hit.CanCollide=false
  1725. wait(.5)
  1726. hit.CanCollide = true
  1727. debounce = true
  1728.  
  1729. end
  1730. game.Players.LocalPlayer.Character.Torso.Touched:connect(onTouched)
  1731.  
  1732.  
  1733.  
  1734. game:GetService("RunService"):BindToRenderStep("ew", 0, function()
  1735.  
  1736.  
  1737. if targetted == nil and musicon == true then
  1738. print('Waiting For A Target...')
  1739. wait()
  1740. GetPlayers()
  1741. local d = math.random(1, #dft)
  1742. local s = d
  1743. print(''..dft[s]..'?')
  1744.  
  1745.  
  1746.  
  1747. for _, z in pairs(workspace:GetChildren()) do
  1748.  
  1749. if z.Name == ""..dft[s] then
  1750.  
  1751.  
  1752.  
  1753.  
  1754.  
  1755. targetted = z
  1756.  
  1757. if z.Name == ''..p then
  1758.  
  1759. targetted = nil
  1760.  
  1761. print('Wait a sec is that not me!')
  1762.  
  1763. end
  1764. end
  1765. end
  1766.  
  1767.  
  1768. end
  1769.  
  1770. if musicon == true and targetted.Humanoid.Health == 0 then
  1771. targetted = nil
  1772.  
  1773. end
  1774.  
  1775. for _, z in pairs(workspace:GetChildren()) do
  1776.  
  1777. if z.Name == "Zombie" then
  1778.  
  1779. z.Humanoid:MoveTo(targetted.Head.Position)
  1780.  
  1781. end
  1782. end
  1783. for _, z in pairs(workspace:GetChildren()) do
  1784.  
  1785. if z.Name == "Zombie" then
  1786. if z.Humanoid.Health == 0 then
  1787. z.Head.face.Transparency = 1
  1788. z["Left Leg"].Transparency = 0.5
  1789. z["Head"].Transparency = 0.5
  1790. z["Right Leg"].Transparency = 0.5
  1791. z["Torso"].Transparency = 0.5
  1792. z["Left Arm"].Transparency = 0.5
  1793. z["Right Arm"].Transparency = 0.5
  1794. wait(0.1)
  1795. z:Destroy()
  1796. end
  1797. end
  1798. end
  1799.  
  1800.  
  1801.  
  1802. -------------------
  1803. end)
  1804.  
  1805.  
  1806.  
  1807. print('Loaded...')
  1808. print('---------------------')
  1809. print('Made by 123jl123')
  1810. print('---------------------')
  1811. print('do not leak...')
  1812. print('Have a nice day :)')
  1813. print('---------------------')
  1814. while wait() do
  1815.  
  1816.  
  1817.  
  1818. char["Left Leg"].BrickColor = BrickColor.new("Really black")
  1819. char["Head"].BrickColor = BrickColor.new("Pastel Brown")
  1820. char["Right Leg"].BrickColor = BrickColor.new("Really black")
  1821. char["Torso"].BrickColor = BrickColor.new("Really black")
  1822. char["Left Arm"].BrickColor = BrickColor.new("Black")
  1823. char["Right Arm"].BrickColor = BrickColor.new("Black")
  1824. imgl.Rotation = imgl.Rotation + 1
  1825. if targetted ~= nil then
  1826. crosshair.Adornee = targetted:FindFirstChild("Torso") or targetted:FindFirstChild("UpperTorso")
  1827. crosshair.Enabled = true
  1828.  
  1829. elseif targetted == nil then
  1830.  
  1831. crosshair.Adornee = nil
  1832. crosshair.Enabled = false
  1833.  
  1834. end
  1835.  
  1836.  
  1837.  
  1838.  
  1839.  
  1840.  
  1841.  
  1842.  
  1843.  
  1844.  
  1845.  
  1846.  
  1847. end
  1848.  
  1849.  
  1850. ------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement