Advertisement
00fjg

Untitled

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