Advertisement
AxeuerAlt

Untitled

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