Advertisement
danielaust

Untitled

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