SHARE
TWEET

SCP plague doctor FE

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