Advertisement
copra50

test 049

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