waconline

doctor2

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