Advertisement
AxeuerAlt

Untitled

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