copra50

updated plaque doctor

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