Advertisement
replic8

Untitled

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