Advertisement
antgame11

Untitled

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