Advertisement
shjshjdahsdhjkdajhds

Untitled

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