Advertisement
Void_scripter0

Scp 106 V2

Feb 3rd, 2019
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 42.11 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros | Showcase by Bacon Hair!")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local Mouse = Player:GetMouse()
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84.  
  85. ----Sandboxed game object that allows the usage of client-side methods and services
  86. --Real game object
  87. local _rg = game
  88.  
  89. --Metatable for fake service
  90. local fsmt = {
  91. __index = function(self,k)
  92. local s = rawget(self,"_RealService")
  93. if s then return s[k] end
  94. end,
  95. __newindex = function(self,k,v)
  96. local s = rawget(self,"_RealService")
  97. if s then s[k]=v end
  98. end,
  99. __call = function(self,...)
  100. local s = rawget(self,"_RealService")
  101. if s then return s(...) end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return self[s]
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. }
  120. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  121. g.service = g.GetService
  122.  
  123. g.RunService = FakeService({
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126.  
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132.  
  133. setmetatable(g,{
  134. __index=function(self,s)
  135. return _rg:GetService(s) or typeof(_rg[s])=="function"
  136. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  137. end,
  138. __newindex = fsmt.__newindex,
  139. __call = fsmt.__call
  140. })
  141. --Changing owner to fake player object to support owner:GetMouse()
  142. game,owner = g,g.Players.LocalPlayer
  143. end
  144. Player=game:GetService("Players").LocalPlayer
  145. Character=Player.Character
  146.  
  147.  
  148. -------------------------------------------------------
  149. local Orbd = Instance.new("Part", Character)
  150. Orbd.Name = "Orbd"
  151. Orbd.Shape = Enum.PartType.Ball
  152. Orbd.CanCollide = false
  153. Orbd.BrickColor = BrickColor.new("Really black")
  154. Orbd.Transparency = 0
  155. Orbd.Material = "Neon"
  156. Orbd.Size = Vector3.new(0.2, 0.2, 0.2)
  157. Orbd.TopSurface = Enum.SurfaceType.Smooth
  158. Orbd.BottomSurface = Enum.SurfaceType.Smooth
  159.  
  160. local Weld = Instance.new("Weld", Orbd)
  161. Weld.Part0 = Character.Head
  162. Weld.Part1 = Orbd
  163. Weld.C1 = CFrame.new(-0.26, -0.24, 0.55)
  164.  
  165. --------------------------------------------------------
  166. local Orbvc = Instance.new("Part", Character)
  167. Orbvc.Name = "Orbvc"
  168. Orbvc.Shape = Enum.PartType.Ball
  169. Orbvc.CanCollide = false
  170. Orbvc.BrickColor = BrickColor.new("Really black")
  171. Orbvc.Transparency = 0
  172. Orbvc.Material = "Neon"
  173. Orbvc.Size = Vector3.new(0.2, 0.2, 0,2)
  174. Orbvc.TopSurface = Enum.SurfaceType.Smooth
  175. Orbvc.BottomSurface = Enum.SurfaceType.Smooth
  176.  
  177. local Weld = Instance.new("Weld", Orbvc)
  178. Weld.Part0 = Character.Head
  179. Weld.Part1 = Orbvc
  180. Weld.C1 = CFrame.new(0.26, -0.24, 0.55)
  181. ---------------------------------------------------------
  182. local Mask = Instance.new("Part", Character)
  183. Mask.Name = "Mask"
  184. Mask.CanCollide = false
  185. Mask.BrickColor = BrickColor.new("Mid gray")
  186. Mask.Transparency = 0
  187. Mask.Material = "Plastic"
  188. Mask.Size = Vector3.new(0.1, 0.1, 0.1)
  189. Mask.TopSurface = Enum.SurfaceType.Smooth
  190. Mask.BottomSurface = Enum.SurfaceType.Smooth
  191.  
  192. local Weld = Instance.new("Weld", Mask)
  193. Weld.Part0 = Character.Head
  194. Weld.Part1 = Mask
  195. Weld.C1 = CFrame.new(0, -0.1, 0.8)
  196.  
  197. local M1 = Instance.new("SpecialMesh")
  198. M1.Parent = Mask
  199. M1.MeshId = "http://www.roblox.com/asset/?id=0"
  200. M1.Scale = Vector3.new( 1, 1, 2)
  201. ----------------------------------------------------------
  202. local Hood = Instance.new("Part", Character)
  203. Hood.Name = "Hood"
  204. Hood.CanCollide = false
  205. Hood.BrickColor = BrickColor.new("Really black")
  206. Hood.Transparency = 0
  207. Hood.Material = "Plastic"
  208. Hood.Size = Vector3.new(0.1, 0.1, 0.1)
  209. Hood.TopSurface = Enum.SurfaceType.Smooth
  210. Hood.BottomSurface = Enum.SurfaceType.Smooth
  211.  
  212. local Weld = Instance.new("Weld", Hood)
  213. Weld.Part0 = Character.Head
  214. Weld.Part1 = Hood
  215. Weld.C1 = CFrame.new(0, -0.2, 0)
  216.  
  217. local M2 = Instance.new("SpecialMesh")
  218. M2.Parent = Hood
  219. M2.MeshId = "http://www.roblox.com/asset/?id=0"
  220. M2.Scale = Vector3.new( 1, 1.2, 1.1)
  221. ------------------------------------------------------
  222.  
  223. p = game.Players.LocalPlayer
  224. char049 = p.Character
  225.  
  226. char049.Shirt:Remove()
  227. for i,v in pairs(char049:GetChildren()) do if v:IsA("Pants") then v:Remove() end end
  228. wait()shirt = Instance.new("Shirt", char049)
  229. shirt.Name = "Shirt"
  230. pants = Instance.new("Pants", char049)
  231. pants.Name = "Pants"
  232.  
  233. char049.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=137681493"
  234. char049.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=137681493"
  235.  
  236.  
  237. -------------------------------------------------
  238. ---- Orbd,Orbvc,Mask,Hood
  239.  
  240. --[[NIGHTOWLACE_WEAPONRY]]--
  241. maincolor = game.Players.LocalPlayer.Character.Torso.BrickColor.Name
  242. secondcolor = "Really black"
  243.  
  244. wait(1 / 60)
  245. Effects = { }
  246. local Player = game.Players.localPlayer
  247. local Character = Player.Character
  248. local Humanoid = Character.Humanoid
  249. local mouse = Player:GetMouse()
  250. local LeftArm = Character["Left Arm"]
  251. local RightArm = Character["Right Arm"]
  252. local LeftLeg = Character["Left Leg"]
  253. local RightLeg = Character["Right Leg"]
  254. local Head = Character.Head
  255. local Torso = Character.Torso
  256. local cam = game.Workspace.CurrentCamera
  257. local RootPart = Character.HumanoidRootPart
  258. local RootJoint = RootPart.RootJoint
  259. local equipped = false
  260. local attack = false
  261. local Anim = 'Idle'
  262. local idle = 0
  263. local attacktype = 1
  264. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  265. local velocity = RootPart.Velocity.y
  266. local sine = 0
  267. local change = 1
  268. local grabbed = false
  269. local cn = CFrame.new
  270. local mr = math.rad
  271. local angles = CFrame.Angles
  272. local ud = UDim2.new
  273. local c3 = Color3.new
  274.  
  275. local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  276. Humanoid.Animator:Destroy()
  277. Character.Animate:Destroy()
  278.  
  279. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  280. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  281. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  282.  
  283. RSH, LSH = nil, nil
  284.  
  285. RW = Instance.new("Weld")
  286. LW = Instance.new("Weld")
  287.  
  288. RH = Torso["Right Hip"]
  289. LH = Torso["Left Hip"]
  290.  
  291. RSH = Torso["Right Shoulder"]
  292. LSH = Torso["Left Shoulder"]
  293.  
  294. RSH.Parent = nil
  295. LSH.Parent = nil
  296.  
  297. RW.Name = "RW"
  298. RW.Part0 = Torso
  299. RW.C0 = cn(1.5, 0.5, 0)
  300. RW.C1 = cn(0, 0.5, 0)
  301. RW.Part1 = RightArm
  302. RW.Parent = Torso
  303.  
  304. LW.Name = "LW"
  305. LW.Part0 = Torso
  306. LW.C0 = cn(-1.5, 0.5, 0)
  307. LW.C1 = cn(0, 0.5, 0)
  308. LW.Part1 = LeftArm
  309. LW.Parent = Torso
  310.  
  311. function clerp(a, b, t)
  312. local qa = {
  313. QuaternionFromCFrame(a)
  314. }
  315. local qb = {
  316. QuaternionFromCFrame(b)
  317. }
  318. local ax, ay, az = a.x, a.y, a.z
  319. local bx, by, bz = b.x, b.y, b.z
  320. local _t = 1 - t
  321. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  322. end
  323.  
  324. function QuaternionFromCFrame(cf)
  325. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  326. local trace = m00 + m11 + m22
  327. if trace > 0 then
  328. local s = math.sqrt(1 + trace)
  329. local recip = 0.5 / s
  330. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  331. else
  332. local i = 0
  333. if m11 > m00 then
  334. i = 1
  335. end
  336. if m22 > (i == 0 and m00 or m11) then
  337. i = 2
  338. end
  339. if i == 0 then
  340. local s = math.sqrt(m00 - m11 - m22 + 1)
  341. local recip = 0.5 / s
  342. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  343. elseif i == 1 then
  344. local s = math.sqrt(m11 - m22 - m00 + 1)
  345. local recip = 0.5 / s
  346. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  347. elseif i == 2 then
  348. local s = math.sqrt(m22 - m00 - m11 + 1)
  349. local recip = 0.5 / s
  350. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  351. end
  352. end
  353. end
  354.  
  355. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  356. local xs, ys, zs = x + x, y + y, z + z
  357. local wx, wy, wz = w * xs, w * ys, w * zs
  358. local xx = x * xs
  359. local xy = x * ys
  360. local xz = x * zs
  361. local yy = y * ys
  362. local yz = y * zs
  363. local zz = z * zs
  364. 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))
  365. end
  366.  
  367. function QuaternionSlerp(a, b, t)
  368. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  369. local startInterp, finishInterp;
  370. if cosTheta >= 0.0001 then
  371. if (1 - cosTheta) > 0.0001 then
  372. local theta = math.acos(cosTheta)
  373. local invSinTheta = 1 / math.sin(theta)
  374. startInterp = math.sin((1 - t) * theta) * invSinTheta
  375. finishInterp = math.sin(t * theta) * invSinTheta
  376. else
  377. startInterp = 1 - t
  378. finishInterp = t
  379. end
  380. else
  381. if (1 + cosTheta) > 0.0001 then
  382. local theta = math.acos(-cosTheta)
  383. local invSinTheta = 1 / math.sin(theta)
  384. startInterp = math.sin((t - 1) * theta) * invSinTheta
  385. finishInterp = math.sin(t * theta) * invSinTheta
  386. else
  387. startInterp = t - 1
  388. finishInterp = t
  389. end
  390. end
  391. 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
  392. end
  393.  
  394. function swait(num)
  395. if num == 0 or num == nil then
  396. game:service'RunService'.RenderStepped:wait(0)
  397. else
  398. for i = 0, num do
  399. game:service'RunService'.RenderStepped:wait(0)
  400. end
  401. end
  402. end
  403.  
  404. local RbxUtility = LoadLibrary("RbxUtility")
  405. local Create = RbxUtility.Create
  406.  
  407. function RemoveOutlines(part)
  408. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.jasonackSurface = 10, 10, 10, 10, 10, 10
  409. end
  410.  
  411. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  412. local Part = Create("Part"){
  413. formFactor = FormFactor,
  414. Parent = Parent,
  415. Reflectance = Reflectance,
  416. Transparency = Transparency,
  417. CanCollide = false,
  418. Locked = true,
  419. BrickColor = BrickColor.new(tostring(BColor)),
  420. Name = Name,
  421. Size = Size,
  422. Material = Material,
  423. }
  424. RemoveOutlines(Part)
  425. return Part
  426. end
  427.  
  428. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  429. local Msh = Create(Mesh){
  430. Parent = Part,
  431. Offset = OffSet,
  432. Scale = Scale,
  433. }
  434. if Mesh == "SpecialMesh" then
  435. Msh.MeshType = MeshType
  436. Msh.MeshId = MeshId
  437. end
  438. return Msh
  439. end
  440.  
  441. function CreateWeld(Parent, Part0, Part1, C0, C1)
  442. local Weld = Create("Weld"){
  443. Parent = Parent,
  444. Part0 = Part0,
  445. Part1 = Part1,
  446. C0 = C0,
  447. C1 = C1,
  448. }
  449. return Weld
  450. end
  451.  
  452. function rayCast(Position, Direction, Range, Ignore)
  453. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  454. end
  455.  
  456. function CreateSound(id, par, vol, pit)
  457. coroutine.resume(coroutine.create(function()
  458. local sou = Instance.new("Sound", par or workspace)
  459. sou.Volume = vol
  460. sou.Pitch = pit or 1
  461. sou.SoundId = id
  462. wait()
  463. sou:play()
  464. game:GetService("Debris"):AddItem(sou, 6)
  465. end))
  466. end
  467.  
  468. local function getclosest(obj, distance)
  469. local last, lastx = distance + 1
  470. for i, v in pairs(workspace:GetChildren()) do
  471. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  472. local t = v.Torso
  473. local dist = (t.Position - obj.Position).magnitude
  474. if dist <= distance then
  475. if dist < last then
  476. last = dist
  477. lastx = v
  478. end
  479. end
  480. end
  481. end
  482. return lastx
  483. end
  484.  
  485. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  486. for i, v in pairs(hit:GetChildren()) do
  487. if v:IsA("Humanoid") and hit.Name ~= Character.Name then
  488. local find = v:FindFirstChild("Hitz")
  489. if not find then
  490. if v.Parent:findFirstChild("Head") then
  491. local BillG = Create("BillboardGui"){
  492. Parent = v.Parent.Head,
  493. Size = UDim2.new(1, 0, 1, 0),
  494. Adornee = v.Parent.Head,
  495. StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  496. }
  497. local TL = Create("TextLabel"){
  498. Parent = BillG,
  499. Size = UDim2.new(3, 3, 3, 3),
  500. BackgroundTransparency = 1,
  501. Text = tostring(damage).."-",
  502. TextColor3 = Color1.Color,
  503. TextStrokeColor3 = Color2.Color,
  504. TextStrokeTransparency = 0,
  505. TextXAlignment = Enum.TextXAlignment.Center,
  506. TextYAlignment = Enum.TextYAlignment.Center,
  507. FontSize = Enum.FontSize.Size18,
  508. Font = "ArialBold",
  509. }
  510. coroutine.resume(coroutine.create(function()
  511. wait(1)
  512. for i = 0, 1, .1 do
  513. wait(.1)
  514. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  515. end
  516. BillG:Destroy()
  517. end))
  518. end
  519. v.Health = v.Health - damage
  520. local bool = Create("BoolValue"){
  521. Parent = v,
  522. Name = 'Hitz',
  523. }
  524. if HSound ~= nil and HPitch ~= nil then
  525. CreateSound(HSound, hit, 1, HPitch)
  526. end
  527. game:GetService("Debris"):AddItem(bool, cooldown)
  528. end
  529. end
  530. end
  531. end
  532.  
  533.  
  534. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  535. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  536. prt.Anchored = true
  537. prt.CFrame = cframe
  538. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  539. game:GetService("Debris"):AddItem(prt, 10)
  540. if Type == 1 or Type == nil then
  541. table.insert(Effects, {
  542. prt,
  543. "Block1",
  544. delay,
  545. x3,
  546. y3,
  547. z3,
  548. msh
  549. })
  550. elseif Type == 2 then
  551. table.insert(Effects, {
  552. prt,
  553. "Block2",
  554. delay,
  555. x3,
  556. y3,
  557. z3,
  558. msh
  559. })
  560. end
  561. end
  562.  
  563. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  564. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  565. prt.Anchored = true
  566. prt.CFrame = cframe
  567. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  568. game:GetService("Debris"):AddItem(prt, 10)
  569. table.insert(Effects, {
  570. prt,
  571. "Cylinder",
  572. delay,
  573. x3,
  574. y3,
  575. z3,
  576. msh
  577. })
  578. end
  579.  
  580. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  581. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  582. prt.Anchored = true
  583. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  584. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  585. game:GetService("Debris"):AddItem(prt, 10)
  586. table.insert(Effects, {
  587. prt,
  588. "Cylinder",
  589. delay,
  590. x3,
  591. y3,
  592. z3,
  593. msh
  594. })
  595. end
  596.  
  597. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  598. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  599. prt.Anchored = true
  600. prt.CFrame = cframe
  601. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  602. game:GetService("Debris"):AddItem(prt, 10)
  603. table.insert(Effects, {
  604. prt,
  605. "Cylinder",
  606. delay,
  607. x3,
  608. y3,
  609. z3,
  610. msh
  611. })
  612. end
  613.  
  614. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  615. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  616. prt.Anchored = true
  617. prt.CFrame = cframe
  618. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  619. game:GetService("Debris"):AddItem(prt, 10)
  620. table.insert(Effects, {
  621. prt,
  622. "Cylinder",
  623. delay,
  624. x3,
  625. y3,
  626. z3,
  627. msh
  628. })
  629. end
  630.  
  631. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  632. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  633. prt.Anchored = true
  634. prt.CFrame = cframe
  635. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  636. game:GetService("Debris"):AddItem(prt, 10)
  637. table.insert(Effects, {
  638. prt,
  639. "Cylinder",
  640. delay,
  641. x3,
  642. y3,
  643. z3,
  644. msh
  645. })
  646. end
  647.  
  648. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  649. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  650. prt.Anchored = true
  651. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  652. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  653. local num = math.random(10, 50) / 1000
  654. game:GetService("Debris"):AddItem(prt, 10)
  655. table.insert(Effects, {
  656. prt,
  657. "Shatter",
  658. num,
  659. prt.CFrame,
  660. math.random() - math.random(),
  661. 0,
  662. math.random(50, 100) / 100
  663. })
  664. end
  665.  
  666.  
  667.  
  668.  
  669. for i = 0, 1, 0.05 do
  670. swait()
  671. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  672. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1)
  673. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  674. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
  675. if Torsovelocity > 2 then
  676. 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)
  677. 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)
  678. 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)
  679. elseif Torsovelocity < 1 then
  680. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  681. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  682. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  683. end
  684. end
  685. attack = false
  686.  
  687.  
  688.  
  689. game:GetService'RunService'.Stepped:connect(function()
  690. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  691. velocity = RootPart.Velocity.y
  692. sine = sine + change
  693. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  694. if equipped == true or equipped == false then
  695. if RootPart.Velocity.y > 1 and hit == nil then
  696. Anim = "Jump"
  697. if attack == false then
  698. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  699. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  700. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(30)), .1)
  701. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-30)), .1)
  702. RH.C0 = clerp(RH.C0, cn(1, -.9, -.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), .1)
  703. LH.C0 = clerp(LH.C0, cn(-1, -.7, -.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), .1)
  704. end
  705. elseif RootPart.Velocity.y < -1 and hit == nil then
  706. Anim = "Fall"
  707. if attack == false then
  708. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  709. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  710. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), .1)
  711. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), .1)
  712. RH.C0 = clerp(RH.C0, cn(1, -1, -.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  713. LH.C0 = clerp(LH.C0, cn(-1, -.8, -.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  714. end
  715. elseif Torsovelocity < 1 and hit ~= nil then
  716. Anim = "Idle"
  717. if attack == false then
  718. change = 1
  719. 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)
  720. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), .1)
  721. 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)
  722. 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)
  723. 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)
  724. 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)
  725. end
  726. elseif Torsovelocity > 2 and hit ~= nil then
  727. Anim = "Walk"
  728. if attack == false then
  729. 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)
  730. 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)
  731. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(4)), .2)
  732. 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)
  733. 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)
  734. 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)
  735. end
  736. end
  737. end
  738. if #Effects > 0 then
  739. for e = 1, #Effects do
  740. if Effects[e] ~= nil then
  741. local Thing = Effects[e]
  742. if Thing ~= nil then
  743. local Part = Thing[1]
  744. local Mode = Thing[2]
  745. local Delay = Thing[3]
  746. local IncX = Thing[4]
  747. local IncY = Thing[5]
  748. local IncZ = Thing[6]
  749. if Thing[1].Transparency <= 1 then
  750. if Thing[2] == "Block1" then
  751. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  752. local Mesh = Thing[1].Mesh
  753. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  754. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  755. elseif Thing[2] == "Block2" then
  756. Thing[1].CFrame = Thing[1].CFrame
  757. local Mesh = Thing[7]
  758. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  759. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  760. elseif Thing[2] == "Cylinder" then
  761. local Mesh = Thing[1].Mesh
  762. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  763. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  764. elseif Thing[2] == "Blood" then
  765. local Mesh = Thing[7]
  766. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
  767. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  768. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  769. elseif Thing[2] == "Elec" then
  770. local Mesh = Thing[1].Mesh
  771. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  772. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  773. elseif Thing[2] == "Disappear" then
  774. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  775. elseif Thing[2] == "Shatter" then
  776. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  777. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  778. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  779. Thing[6] = Thing[6] + Thing[5]
  780. end
  781. else
  782. Part.Parent = nil
  783. table.remove(Effects, e)
  784. end
  785. end
  786. end
  787. end
  788. end
  789. end)
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796.  
  797.  
  798. p = (game.Players.LocalPlayer.Name)
  799. char = game.Players.LocalPlayer.Character
  800.  
  801.  
  802. local player = game.Players.LocalPlayer
  803. repeat wait() until player.Character.Humanoid
  804. local humanoid = player.Character.Humanoid
  805. local mouse = player:GetMouse()
  806.  
  807. for i,v in pairs(char:GetChildren()) do
  808. if v.ClassName == 'Accessory' then
  809. v:Destroy()
  810. end
  811. end
  812.  
  813. ScarySound1 = Instance.new("Sound")
  814. ScarySound1.Parent = char.Torso
  815. ScarySound1.SoundId = "rbxassetid://177339878"
  816. ScarySound1.Volume = .5
  817.  
  818. ScarySound2 = Instance.new("Sound")
  819. ScarySound2.Parent = char.Torso
  820. ScarySound2.SoundId = "rbxassetid://833620953"
  821. ScarySound2.Volume = 7
  822. ScarySound2.Looped = true
  823.  
  824. ScarySound3 = Instance.new("Sound")
  825. ScarySound3.Parent = char.Torso
  826. ScarySound3.SoundId = "rbxassetid://483810543"
  827. ScarySound3.Volume = 0.3
  828. ScarySound3.Looped = true
  829.  
  830. ScarySound4 = Instance.new("Sound")
  831. ScarySound4.Parent = char.Torso
  832. ScarySound4.SoundId = "rbxassetid://649587991"
  833. ScarySound4.Volume = 5
  834. ScarySound4.Looped = false
  835.  
  836. Punch = Instance.new("Sound")
  837. Punch.Parent = char.Torso
  838. Punch.SoundId = "rbxassetid://146938349"
  839. Punch.Volume = 1.5
  840. Punch.Looped = false
  841. Punch.Pitch = 0.8
  842.  
  843. hole = Instance.new("Sound")
  844. hole.Parent = char.Torso
  845. hole.SoundId = "rbxassetid://224339308"
  846. hole.Volume = .3
  847.  
  848.  
  849. game.Players.LocalPlayer.Character.Sound:Destroy()
  850.  
  851. function Normal()
  852. ScarySound3:Play()
  853. char.Humanoid.WalkSpeed = 18
  854. char.Head.face.Texture = "rbxassetid://0"
  855. char["Left Leg"].Transparency = 0
  856. char["Head"].Transparency = 0
  857. char["Right Leg"].Transparency = 0
  858. char["Torso"].Transparency = 0
  859. char["Left Arm"].Transparency = 0
  860. char["Right Arm"].Transparency = 0
  861. end
  862.  
  863. function GoInvisible()
  864. ScarySound3:Stop()
  865. ScarySound1:Stop()
  866. char.Humanoid.WalkSpeed = 120
  867. char.Head.face.Transparency = 1
  868. char["Left Leg"].Transparency = 0.5
  869. char["Head"].Transparency = 0.5
  870. char["Right Leg"].Transparency = 0.5
  871. char["Torso"].Transparency = 0.5
  872. char["Left Arm"].Transparency = 0.5
  873. char["Right Arm"].Transparency = 0.5
  874. Hood.Transparency = 0.5
  875. Mask.Transparency = 0.5
  876. Orbvc.Transparency = 0.5
  877. Orbd.Transparency = 0.5
  878. Orbvc.BrickColor = BrickColor.new("Really red")
  879. Orbd.BrickColor = BrickColor.new("Really red")
  880. wait(0.001)
  881. char["Left Leg"].Transparency = 0.6
  882. char["Head"].Transparency = 0.6
  883. char["Right Leg"].Transparency = 0.6
  884. char["Torso"].Transparency = 0.6
  885. char["Left Arm"].Transparency = 0.6
  886. char["Right Arm"].Transparency = 0.6
  887. Hood.Transparency = 0.6
  888. Mask.Transparency = 0.6
  889. Orbvc.Transparency = 0.6
  890. Orbd.Transparency = 0.6
  891. wait(0.001)
  892. char["Left Leg"].Transparency = 0.7
  893. char["Head"].Transparency = 0.7
  894. char["Right Leg"].Transparency = 0.7
  895. char["Torso"].Transparency = 0.7
  896. char["Left Arm"].Transparency = 0.7
  897. char["Right Arm"].Transparency = 0.7
  898. Hood.Transparency = 0.7
  899. Mask.Transparency = 0.7
  900. Orbvc.Transparency = 0.7
  901. Orbd.Transparency = 0.7
  902. wait(0.001)
  903. char["Left Leg"].Transparency = 1
  904. char["Head"].Transparency = 1
  905. char["Right Leg"].Transparency = 1
  906. char["Torso"].Transparency = 1
  907. char["Left Arm"].Transparency = 1
  908. char["Right Arm"].Transparency = 1
  909. Hood.Transparency = 1
  910. Mask.Transparency = 1
  911. Orbvc.Transparency = 1
  912. Orbd.Transparency = 1
  913. end
  914.  
  915. function GoVisible()
  916. ScarySound3:Play()
  917. char.Humanoid.WalkSpeed = 16
  918. ScarySound1:Play()
  919. char.Head.face.Transparency = 0
  920. Orbvc.BrickColor = BrickColor.new("Really black")
  921. Orbd.BrickColor = BrickColor.new("Really black")
  922. char["Left Leg"].Transparency = 0.9
  923. char["Head"].Transparency = 0.9
  924. char["Right Leg"].Transparency = 9
  925. char["Torso"].Transparency = 0.9
  926. char["Left Arm"].Transparency = 0.9
  927. char["Right Arm"].Transparency = 0.9
  928. Hood.Transparency = 0.9
  929. Mask.Transparency = 0.9
  930. Orbvc.Transparency = 0.9
  931. Orbd.Transparency = 0.9
  932. wait(0.001)
  933. char["Left Leg"].Transparency = 0.7
  934. char["Head"].Transparency = 0.7
  935. char["Right Leg"].Transparency = 0.7
  936. char["Torso"].Transparency = 0.7
  937. char["Left Arm"].Transparency = 0.7
  938. char["Right Arm"].Transparency = 0.7
  939. Hood.Transparency = 0.7
  940. Mask.Transparency = 0.7
  941. Orbvc.Transparency = 0.7
  942. Orbd.Transparency = 0.7
  943. wait(0.001)
  944. char["Left Leg"].Transparency = 0
  945. char["Head"].Transparency = 0
  946. char["Right Leg"].Transparency = 0
  947. char["Torso"].Transparency = 0
  948. char["Left Arm"].Transparency = 0
  949. char["Right Arm"].Transparency = 0
  950. Hood.Transparency = 0
  951. Mask.Transparency = 0
  952. Orbvc.Transparency = 0
  953. Orbd.Transparency = 0
  954. end
  955.  
  956. Normal()
  957.  
  958.  
  959.  
  960. mouse.KeyDown:connect(function(key)
  961. if key == "z" then
  962. if char.Head.Transparency == 0 then
  963. GoInvisible()
  964.  
  965. elseif char.Head.Transparency == 1 then
  966. GoVisible()
  967. end
  968. end end)
  969.  
  970. mouse.KeyDown:connect(function(key)
  971. if key == "x" then
  972. if ScarySound2.IsPlaying == false then
  973. ScarySound2:Play()
  974. elseif ScarySound2.IsPlaying == true then
  975. ScarySound2:Stop()
  976.  
  977.  
  978. end
  979. end end)
  980.  
  981. mouse.KeyDown:connect(function(key)
  982. if key == "r" then
  983. if ScarySound4.IsPlaying == false then
  984. ScarySound4:Play()
  985. elseif ScarySound2.IsPlaying == true then
  986. ScarySound4:Stop()
  987.  
  988.  
  989. end
  990. end end)
  991. mouse.KeyDown:connect(function(key)
  992. if key == "u" then
  993. for _, z in pairs(workspace:GetChildren()) do
  994.  
  995. if z.Name == "Zombie" then
  996.  
  997. z:Destroy()
  998.  
  999. end
  1000. end
  1001. end
  1002. end)
  1003.  
  1004.  
  1005.  
  1006. mouse.KeyDown:connect(function(key)
  1007. if key == "h" then
  1008. for _, z in pairs(workspace:GetChildren()) do
  1009.  
  1010. if z.Name == "Zombie" then
  1011.  
  1012.  
  1013.  
  1014. end
  1015. end
  1016. end
  1017. end)
  1018.  
  1019.  
  1020. function SpawnZombie()
  1021.  
  1022.  
  1023. if ZomWait == false and ZomWait2 == false then
  1024. Zombie.Parent = game.Lighting
  1025. Zombie2 = Zombie:Clone()
  1026. Zombie3 = Zombie:Clone()
  1027.  
  1028. Zombie:Destroy()
  1029. ----------------------------
  1030. ZomWait2 = true
  1031. wait()
  1032. ZomWait = true
  1033. end
  1034.  
  1035.  
  1036.  
  1037. if ZomWait == true and ZomWait2 == false then
  1038. Zombie3.Parent = game.Lighting
  1039. Zombie2 = Zombie3:Clone()
  1040. Zombie = Zombie3:Clone()
  1041.  
  1042. Zombie3:Destroy()
  1043. ----------------------------
  1044. ZomWait2 = true
  1045. wait()
  1046. ZomWait = false
  1047. end
  1048. Zombie2.Parent = game.Workspace
  1049.  
  1050. end
  1051.  
  1052.  
  1053.  
  1054.  
  1055. function ResetZombie()
  1056. wait(4)
  1057. ZomSyle = false
  1058. ZomWait2 = false
  1059.  
  1060. end
  1061.  
  1062. function onTouch(part)
  1063.  
  1064. local humanoid = part.Parent:findFirstChild("Humanoid")
  1065. local model = part.Parent
  1066. local torso = part.Parent:findFirstChild("Torso")
  1067. local head = part.Parent:findFirstChild("Head")
  1068. local leftleg = part.Parent:findFirstChild("Left Leg")
  1069. local rightleg = part.Parent:findFirstChild("Right Leg")
  1070. local leftarm = part.Parent:findFirstChild("Left Arm")
  1071. local rightarm = part.Parent:findFirstChild("Right Arm")
  1072. if model.Name == 'Zombie' == false then
  1073.  
  1074.  
  1075. if (humanoid ~=nil) then
  1076.  
  1077. --humanoid.Health = 0
  1078.  
  1079.  
  1080.  
  1081.  
  1082. head.BrickColor = BrickColor.new("Really black")
  1083. torso.BrickColor = BrickColor.new("Really black")
  1084. leftleg.BrickColor = BrickColor.new("Really black")
  1085. rightleg.BrickColor = BrickColor.new("Really black")
  1086. rightarm.BrickColor = BrickColor.new("Really black")
  1087. leftarm.BrickColor = BrickColor.new("Really black")
  1088. humanoid.Sit = true
  1089. wait(0.5)
  1090. torso.Anchored = true
  1091. wait(.3)
  1092. zomchar = humanoid.Parent
  1093. e=Instance.new('Part', model)
  1094. e.Size = Vector3.new(2.25,2.25,2.25)
  1095. e.Transparency = 1
  1096. e.Anchored = true
  1097. e.CFrame = CFrame.new(torso.Position)
  1098.  
  1099.  
  1100.  
  1101. wait(1)
  1102. torso:Destroy()
  1103. q=Instance.new('ParticleEmitter', e)
  1104. q.Size = NumberSequence.new(2,.0)
  1105. q.Rate = 500
  1106. q.Transparency = NumberSequence.new(0,1)
  1107. q.Speed = NumberRange.new(7)
  1108. q.VelocitySpread = 100
  1109. q.Lifetime = NumberRange.new(0.1,1)
  1110. q.Texture = 'rbxassetid://164417280'
  1111. wait(.1)
  1112. torso.Anchored = true
  1113. rightleg.Anchored = true
  1114. leftleg.Anchored = true
  1115. rightarm.Anchored = true
  1116. leftarm.Anchored = true
  1117. ded = Instance.new("Sound")
  1118. ded.Parent = e
  1119. ded.SoundId = "rbxassetid://347611423"
  1120. ded.Volume = 3
  1121. ded.Looped = false
  1122. wait()
  1123.  
  1124. ded:Play()
  1125.  
  1126. wait(1)
  1127. leftleg.Transparency = 0.5
  1128. head.Transparency = 0.5
  1129. rightleg.Transparency = 0.5
  1130. torso.Transparency = 0.5
  1131. leftarm.Transparency = 0.5
  1132. rightarm.Transparency = 0.5
  1133.  
  1134.  
  1135. wait(0.001)
  1136. leftleg.Transparency = 0.6
  1137. head.Transparency = 0.6
  1138. rightleg.Transparency = 0.6
  1139. torso.Transparency = 0.6
  1140. leftarm.Transparency = 0.6
  1141. rightarm.Transparency = 0.6
  1142.  
  1143. wait(0.001)
  1144. leftleg.Transparency = 0.7
  1145. head.Transparency = 0.7
  1146. rightleg.Transparency = 0.7
  1147. torso.Transparency = 0.7
  1148. leftarm.Transparency = 0.7
  1149. rightarm.Transparency = 0.7
  1150.  
  1151.  
  1152.  
  1153.  
  1154.  
  1155.  
  1156. wait(0.001)
  1157. leftleg.Transparency = 1
  1158. head.Transparency = 1
  1159. rightleg.Transparency = 1
  1160. torso.Transparency = 1
  1161. leftarm.Transparency = 1
  1162. rightarm.Transparency = 1
  1163. wait()
  1164.  
  1165. SpawnZombie()
  1166. Zombie2.Name = 'Zombie'
  1167.  
  1168. wait()
  1169. Zombie2:MoveTo(zomchar.Head.Position + Vector3.new(math.random(0,1),0,math.random(0,1)))
  1170. ----------------------
  1171.  
  1172. if ZomSyle == false then
  1173. ZomSyle = true
  1174.  
  1175.  
  1176.  
  1177.  
  1178.  
  1179.  
  1180.  
  1181.  
  1182. Zombie2.archivable = false
  1183.  
  1184.  
  1185. skin = zomchar["Body Colors"]:Clone()
  1186. skin.Parent = Zombie2
  1187. wait()
  1188.  
  1189.  
  1190. Character= Zombie2
  1191. plr = Zombie2
  1192. Headmaker = Character.Head
  1193. Headcol1 = Headmaker.BrickColor
  1194. Headmat = Headmaker.Material
  1195. Headsize = Headmaker.Size
  1196. Headsize2 = Headmaker.Mesh.Scale
  1197. hed = Character.Head
  1198. hed.Transparency = 1
  1199.  
  1200. local Headnr1 = Instance.new("Model",Character.Head)
  1201. Headnr1.Name = "Lmao"
  1202. local Headnr2 = Instance.new("Model",Headnr1)
  1203. Headnr2.Name = ""..zomchar.Name
  1204.  
  1205.  
  1206. ----------------------------------------------------------
  1207. wait()
  1208. local Mask = Instance.new("Part", Headnr2)
  1209. Mask.Name = "Head"
  1210. Mask.CanCollide = false
  1211. Mask.BrickColor = Headcol1
  1212. Mask.Transparency = 0
  1213. Mask.Material = Headmat
  1214. Mask.Size = Headsize
  1215. Mask.TopSurface = Enum.SurfaceType.Smooth
  1216. Mask.BottomSurface = Enum.SurfaceType.Smooth
  1217. local Weld = Instance.new("Weld", Mask)
  1218. Weld.Part0 = Character.Head
  1219. Weld.Part1 = Mask
  1220. Weld.C1 = CFrame.new(0,0,0)
  1221.  
  1222. local M1 = Instance.new("SpecialMesh")
  1223. M1.Parent = Mask
  1224. M1.MeshType='Head'
  1225. M1.Scale = Headsize2
  1226. ----------------------------------------------------------
  1227. local Name2 = Instance.new("Humanoid",Headnr2)
  1228. Zombie2.Torso.Touched:connect(onTouch)
  1229. wait()
  1230.  
  1231. for i,v in pairs(zomchar:GetChildren()) do
  1232. if v:IsA("CharacterMesh") then
  1233. v:clone().Parent = Zombie2
  1234. end
  1235.  
  1236. if v:IsA("ShirtGraphic") then
  1237. v:clone().Parent = Zombie2
  1238. end
  1239.  
  1240. if v:IsA("Pants") then
  1241. v:clone().Parent = Zombie2
  1242. end
  1243. if v:IsA("Shirt") then
  1244. v:clone().Parent = Zombie2
  1245.  
  1246. end
  1247.  
  1248.  
  1249. if v:IsA("Accessory") then
  1250. v:clone().Parent = Zombie2
  1251. end
  1252.  
  1253. if v:IsA("Hat") then
  1254. v:clone().Parent = Zombie2
  1255. end
  1256.  
  1257. end
  1258.  
  1259.  
  1260.  
  1261. end
  1262.  
  1263.  
  1264.  
  1265.  
  1266.  
  1267.  
  1268.  
  1269. ----------------------
  1270. wait()
  1271. leftleg:Destroy()
  1272. head:Destroy()
  1273. rightleg:Destroy()
  1274. leftarm:Destroy()
  1275. rightarm:Destroy()
  1276. ResetZombie()
  1277. end
  1278. end
  1279. end
  1280.  
  1281.  
  1282.  
  1283. char.Torso.Touched:connect(onTouch)
  1284.  
  1285. mouse.KeyDown:connect(function(key)
  1286. if key == "c" then
  1287.  
  1288. LockOn()
  1289.  
  1290.  
  1291.  
  1292.  
  1293.  
  1294. end
  1295. end)
  1296.  
  1297.  
  1298. debounce = false
  1299.  
  1300. function onTouched(hit)
  1301. hole:Play()
  1302. hit.CanCollide=false
  1303. wait(.5)
  1304. hit.CanCollide = true
  1305. debounce = true
  1306.  
  1307. end
  1308.  
  1309. game.Players.LocalPlayer.Character.Torso.Touched:connect(onTouched)
  1310.  
  1311.  
  1312. while wait() do
  1313. char["Left Leg"].BrickColor = BrickColor.new("Really black")
  1314. char["Head"].BrickColor = BrickColor.new("Really black")
  1315. char["Right Leg"].BrickColor = BrickColor.new("Really black")
  1316. char["Torso"].BrickColor = BrickColor.new("Really black")
  1317. char["Left Arm"].BrickColor = BrickColor.new("Really black")
  1318. char["Right Arm"].BrickColor = BrickColor.new("Really black")
  1319. imgl.Rotation = imgl.Rotation + 1
  1320. if targetted ~= nil then
  1321. crosshair.Adornee = targetted:FindFirstChild("Torso") or targetted:FindFirstChild("UpperTorso")
  1322. crosshair.Enabled = true
  1323. elseif targetted == nil then
  1324. crosshair.Adornee = nil
  1325. crosshair.Enabled = false
  1326. end
  1327. game:GetService("RunService"):BindToRenderStep("ew", 0, function()
  1328. for _, z in pairs(workspace:GetChildren()) do
  1329.  
  1330. if z.Name == "Zombie" then
  1331.  
  1332. z.Humanoid:MoveTo(targetted.Head.Position)
  1333.  
  1334. end
  1335. end
  1336. end)
  1337.  
  1338. playertarg = game.Players.LocalPlayer
  1339. chara = playertarg.Character
  1340. Mouse = playertarg:GetMouse()
  1341. targetted = nil
  1342.  
  1343. New = function(Object, Parent, Name, Data)
  1344. local Object = Instance.new(Object)
  1345. for Index, Value in pairs(Data or {}) do
  1346. Object[Index] = Value
  1347. end
  1348. Object.Parent = Parent
  1349. Object.Name = Name
  1350. return Object
  1351. end
  1352.  
  1353.  
  1354.  
  1355. crosshair = Instance.new("BillboardGui",chara)
  1356. crosshair.Size = UDim2.new(10,0,10,0)
  1357. crosshair.Enabled = false
  1358. imgl = Instance.new("ImageLabel",crosshair)
  1359. imgl.Position = UDim2.new(0,0,0,0)
  1360. imgl.Size = UDim2.new(1,0,1,0)
  1361. imgl.Image = "rbxassetid://182932517"
  1362. imgl.BackgroundTransparency = 1
  1363. imgl.ImageTransparency = .7
  1364. imgl.ImageColor3 = Color3.new(0,0,0)
  1365.  
  1366.  
  1367. function LoadSnd(id,loop,vol,pit)
  1368. local snd = New("Sound",chara,"Sound",{SoundId = "rbxassetid://"..id,Looped = loop,Volume = vol,Pitch = pit})
  1369. return snd
  1370. end
  1371.  
  1372. TargetSnd = LoadSnd(167191994,false,2,.8)
  1373.  
  1374.  
  1375. function TargetSelect(person)
  1376. local dd=coroutine.wrap(function()
  1377. if targetted ~= person then
  1378. targetted = person
  1379. for i = 0,30,10 do
  1380. wait(.05)
  1381. crosshair.Size = UDim2.new(40-i,0,40-i,0)
  1382. end
  1383. end
  1384. end)
  1385. dd()
  1386. end
  1387.  
  1388.  
  1389.  
  1390. function LockOn()
  1391. if Mouse.Target.Parent ~= chara and Mouse.Target.Parent.Parent ~= chara and Mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
  1392. TargetSelect(Mouse.Target.Parent)
  1393. TargetSnd:Play()
  1394. else end
  1395. end
  1396.  
  1397.  
  1398.  
  1399.  
  1400.  
  1401.  
  1402.  
  1403.  
  1404.  
  1405.  
  1406.  
  1407.  
  1408.  
  1409.  
  1410.  
  1411.  
  1412.  
  1413.  
  1414.  
  1415.  
  1416.  
  1417.  
  1418.  
  1419.  
  1420. ZomWait = false
  1421. ZomWait2 = false
  1422. ZomSyle = false
  1423.  
  1424.  
  1425. Target1 =script.Parent.Name
  1426. Target2 = game.Players[Target1]
  1427. Target2.Character.archivable = true
  1428. clone4 = Target2.Character:Clone()
  1429. clone4.Parent = game.Lighting
  1430.  
  1431.  
  1432.  
  1433.  
  1434.  
  1435.  
  1436.  
  1437.  
  1438.  
  1439.  
  1440.  
  1441.  
  1442.  
  1443.  
  1444.  
  1445.  
  1446.  
  1447.  
  1448.  
  1449.  
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456.  
  1457.  
  1458.  
  1459.  
  1460.  
  1461.  
  1462.  
  1463.  
  1464. Glow1 = Color3.new(.5,0,0)
  1465. Glow2 = Color3.new(0,0,0)
  1466.  
  1467. GlowParticle = Instance.new("ParticleEmitter",clone4.Torso)
  1468. GlowParticle.LightEmission = 0
  1469. GlowParticle.Color = ColorSequence.new(Glow1,Glow2)
  1470. GlowParticle.Size = NumberSequence.new(2,0)
  1471. GlowParticle.Texture = "http://www.roblox.com/asset/?id=118641183"
  1472. GlowParticle.Transparency = NumberSequence.new(.3,.8)
  1473. GlowParticle.LockedToPart = false
  1474. GlowParticle.Lifetime = NumberRange.new(.5,.6)
  1475. GlowParticle.Rate= 100
  1476. GlowParticle.Speed =NumberRange.new(6)
  1477. GlowParticle.VelocitySpread = 360
  1478.  
  1479.  
  1480.  
  1481. for i,v in pairs(clone4:GetChildren()) do
  1482.  
  1483.  
  1484. if v:IsA("ShirtGraphic") then
  1485. v:Destroy()
  1486. end
  1487.  
  1488. if v:IsA("Pants") then
  1489. v:Destroy()
  1490. end
  1491. if v:IsA("Shirt") then
  1492. v:Destroy()
  1493. end
  1494. if v:IsA("Hat") then
  1495. v:Destroy()
  1496.  
  1497. end
  1498. if v:IsA("Accessory") then
  1499. v:Destroy()
  1500. end
  1501.  
  1502. end
  1503.  
  1504. clone4["Body Colors"]:Destroy()
  1505. clone4.Head.face.Texture = "rbxassetid://97880283"
  1506.  
  1507. wait()
  1508. Zombie = clone4:Clone()
  1509.  
  1510. wait()
  1511.  
  1512. clone4:Destroy()
  1513.  
  1514. wait()
  1515.  
  1516.  
  1517.  
  1518.  
  1519.  
  1520.  
  1521. end
  1522.  
  1523.  
  1524.  
  1525.  
  1526. ------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement