Advertisement
Manaphy2100idk

Untitled

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