Advertisement
Vintage-Furry

SCP

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