Advertisement
Void_scripter0

Plague

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