Advertisement
Rawscript

Untitled

Aug 24th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.57 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")
  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. self._btrs[name] = self.Heartbeat:Connect(fun)
  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--By Rufus14 Showcase by purpleguy2playZ
  144. wait(2)
  145. script.Parent = nil
  146. mouse = game.Players.LocalPlayer:GetMouse()
  147. local aaabegone = Instance.new("Sound", workspace)
  148. aaabegone.SoundId = "rbxassetid://131057316"
  149. aaabegone.Volume = 10
  150. aaabegone:Play()
  151. print("Script by Rufus14 Showcase by purpleguy2playZ")
  152. --Converted with ttyyuu12345's model to script plugin v4
  153. function sandbox(var,func)
  154. local env = getfenv(func)
  155. local newenv = setmetatable({},{
  156. __index = function(self,k)
  157. if k=="script" then
  158. return var
  159. else
  160. return env[k]
  161. end
  162. end,
  163. })
  164. setfenv(func,newenv)
  165. return func
  166. end
  167. cors = {}
  168. mas = Instance.new("Model",game:GetService("Lighting"))
  169. Model0 = Instance.new("Model")
  170. Part1 = Instance.new("Part")
  171. SpecialMesh2 = Instance.new("SpecialMesh")
  172. Decal3 = Instance.new("Decal")
  173. Part4 = Instance.new("Part")
  174. Decal5 = Instance.new("Decal")
  175. RightShoulder = Instance.new("Motor")
  176. LeftShoulder = Instance.new("Motor")
  177. RightHip = Instance.new("Motor")
  178. LeftHip = Instance.new("Motor")
  179. Neck = Instance.new("Motor")
  180. Part11 = Instance.new("Part")
  181. Part12 = Instance.new("Part")
  182. Part13 = Instance.new("Part")
  183. Part14 = Instance.new("Part")
  184. Humanoid15 = Instance.new("Humanoid")
  185. Model0.Name = "Scp-008 Infected"
  186. Model0.Parent = mas
  187. Model0.PrimaryPart = Part1
  188. Part1.Name = "Head"
  189. Part1.Parent = Model0
  190. Part1.BrickColor = BrickColor.new("Really black")
  191. Part1.FormFactor = Enum.FormFactor.Symmetric
  192. Part1.Size = Vector3.new(2, 1, 1)
  193. Part1.CFrame = CFrame.new(-0.700021029, 4.49999905, 2.99999809, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  194. Part1.TopSurface = Enum.SurfaceType.Smooth
  195. Part1.Color = Color3.new(0.0588235, 0.258824, 0.00392157)
  196. Part1.Position = Vector3.new(-0.700021029, 4.49999905, 2.99999809)
  197. Part1.Color = Color3.new(0.0588235, 0.258824, 0.00392157)
  198. SpecialMesh2.Parent = Part1
  199. SpecialMesh2.Scale = Vector3.new(1.25, 1.25, 1.25)
  200. SpecialMesh2.Scale = Vector3.new(1.25, 1.25, 1.25)
  201. Decal3.Name = "face"
  202. Decal3.Parent = Part1
  203. Decal3.Texture = "http://www.roblox.com/asset/?id=51827997"
  204. Part4.Name = "Torso"
  205. Part4.Parent = Model0
  206. Part4.BrickColor = BrickColor.new("Black")
  207. Part4.FormFactor = Enum.FormFactor.Symmetric
  208. Part4.Size = Vector3.new(2, 2, 1)
  209. Part4.CFrame = CFrame.new(-0.700021029, 2.99999905, 2.99999809, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  210. Part4.LeftSurface = Enum.SurfaceType.Weld
  211. Part4.RightSurface = Enum.SurfaceType.Weld
  212. Part4.Color = Color3.new(0.0156863, 0.14902, 0.243137)
  213. Part4.Position = Vector3.new(-0.700021029, 2.99999905, 2.99999809)
  214. Part4.Color = Color3.new(0.0156863, 0.14902, 0.243137)
  215. Decal5.Name = "roblox"
  216. Decal5.Parent = Part4
  217. RightShoulder.Name = "Right Shoulder"
  218. RightShoulder.Parent = Part4
  219. RightShoulder.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  220. RightShoulder.Part0 = Part4
  221. RightShoulder.Part1 = Part12
  222. RightShoulder.MaxVelocity = 0.15000000596046
  223. LeftShoulder.Name = "Left Shoulder"
  224. LeftShoulder.Parent = Part4
  225. LeftShoulder.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  226. LeftShoulder.Part0 = Part4
  227. LeftShoulder.Part1 = Part11
  228. LeftShoulder.MaxVelocity = 0.15000000596046
  229. RightHip.Name = "Right Hip"
  230. RightHip.Parent = Part4
  231. RightHip.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  232. RightHip.Part0 = Part4
  233. RightHip.Part1 = Part14
  234. RightHip.MaxVelocity = 0.10000000149012
  235. LeftHip.Name = "Left Hip"
  236. LeftHip.Parent = Part4
  237. LeftHip.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  238. LeftHip.Part0 = Part4
  239. LeftHip.Part1 = Part13
  240. LeftHip.MaxVelocity = 0.10000000149012
  241. Neck.Name = "Neck"
  242. Neck.Parent = Part4
  243. Neck.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  244. Neck.Part0 = Part4
  245. Neck.Part1 = Part1
  246. Neck.MaxVelocity = 0.10000000149012
  247. Part11.Name = "Left Arm"
  248. Part11.Parent = Model0
  249. Part11.BrickColor = BrickColor.new("Maroon")
  250. Part11.CanCollide = false
  251. Part11.FormFactor = Enum.FormFactor.Symmetric
  252. Part11.Size = Vector3.new(1, 2, 1)
  253. Part11.CFrame = CFrame.new(-2.20002103, 2.99999905, 2.99999809, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  254. Part11.Color = Color3.new(0.309804, 0.00392157, 0.00392157)
  255. Part11.Position = Vector3.new(-2.20002103, 2.99999905, 2.99999809)
  256. Part11.Color = Color3.new(0.309804, 0.00392157, 0.00392157)
  257. Part12.Name = "Right Arm"
  258. Part12.Parent = Model0
  259. Part12.BrickColor = BrickColor.new("Earth green")
  260. Part12.CanCollide = false
  261. Part12.FormFactor = Enum.FormFactor.Symmetric
  262. Part12.Size = Vector3.new(1, 2, 1)
  263. Part12.CFrame = CFrame.new(0.799978971, 2.99999905, 2.99999809, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  264. Part12.Color = Color3.new(0.0666667, 0.290196, 0.0156863)
  265. Part12.Position = Vector3.new(0.799978971, 2.99999905, 2.99999809)
  266. Part12.Color = Color3.new(0.0666667, 0.290196, 0.0156863)
  267. Part13.Name = "Left Leg"
  268. Part13.Parent = Model0
  269. Part13.BrickColor = BrickColor.new("Earth yellow")
  270. Part13.CanCollide = false
  271. Part13.FormFactor = Enum.FormFactor.Symmetric
  272. Part13.Size = Vector3.new(1, 2, 1)
  273. Part13.CFrame = CFrame.new(-1.20002103, 0.999999046, 2.99999809, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  274. Part13.BottomSurface = Enum.SurfaceType.Smooth
  275. Part13.TopSurface = Enum.SurfaceType.Inlet
  276. Part13.Color = Color3.new(0.396078, 0.454902, 0.168627)
  277. Part13.Position = Vector3.new(-1.20002103, 0.999999046, 2.99999809)
  278. Part13.Color = Color3.new(0.396078, 0.454902, 0.168627)
  279. Part14.Name = "Right Leg"
  280. Part14.Parent = Model0
  281. Part14.BrickColor = BrickColor.new("Earth yellow")
  282. Part14.CanCollide = false
  283. Part14.FormFactor = Enum.FormFactor.Symmetric
  284. Part14.Size = Vector3.new(1, 2, 1)
  285. Part14.CFrame = CFrame.new(-0.200021029, 0.999999046, 2.99999809, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  286. Part14.BottomSurface = Enum.SurfaceType.Smooth
  287. Part14.TopSurface = Enum.SurfaceType.Inlet
  288. Part14.Color = Color3.new(0.396078, 0.454902, 0.168627)
  289. Part14.Position = Vector3.new(-0.200021029, 0.999999046, 2.99999809)
  290. Part14.Color = Color3.new(0.396078, 0.454902, 0.168627)
  291. Humanoid15.Parent = Model0
  292. Humanoid15.NameOcclusion = Enum.NameOcclusion.NoOcclusion
  293. Humanoid15.RightLeg = Part14
  294. Humanoid15.LeftLeg = Part13
  295. Humanoid15.Torso = Part4
  296. for i,v in pairs(mas:GetChildren()) do
  297. v.Parent = workspace
  298. pcall(function() v:MakeJoints() end)
  299. end
  300. mas:Destroy()
  301. for i,v in pairs(cors) do
  302. spawn(function()
  303. pcall(v)
  304. end)
  305. end
  306. local zombiebool = Instance.new("BoolValue", Model0)
  307. zombiebool.Name = "ImAZombie"
  308. --Converted with ttyyuu12345's model to script plugin v4
  309. function sandbox(var,func)
  310. local env = getfenv(func)
  311. local newenv = setmetatable({},{
  312. __index = function(self,k)
  313. if k=="script" then
  314. return var
  315. else
  316. return env[k]
  317. end
  318. end,
  319. })
  320. setfenv(func,newenv)
  321. return func
  322. end
  323. cors = {}
  324. mas = Instance.new("Model",game:GetService("Lighting"))
  325. ded4 = Instance.new("Sound")
  326. ded3 = Instance.new("Sound")
  327. ded2 = Instance.new("Sound")
  328. attacc1 = Instance.new("Sound")
  329. attacc = Instance.new("Sound")
  330. alldied = Instance.new("Sound")
  331. spawnz = Instance.new("Sound")
  332. ded1 = Instance.new("Sound")
  333. ded4.Name = "ded4"
  334. ded4.Parent = mas
  335. ded4.Volume = 10
  336. ded4.SoundId = "rbxassetid://131138845"
  337. ded3.Name = "ded3"
  338. ded3.Parent = mas
  339. ded3.Volume = 10
  340. ded3.SoundId = "rbxassetid://131138850"
  341. ded2.Name = "ded2"
  342. ded2.Parent = mas
  343. ded2.Volume = 10
  344. ded2.SoundId = "rbxassetid://131138839"
  345. attacc1.Name = "attacc1"
  346. attacc1.Parent = mas
  347. attacc1.Volume = 10
  348. attacc1.SoundId = "rbxassetid://131138835"
  349. attacc.Name = "attacc"
  350. attacc.Parent = mas
  351. attacc.Volume = 10
  352. attacc.SoundId = "rbxassetid://131138828"
  353. alldied.Name = "zombiedied"
  354. alldied.Parent = mas
  355. alldied.Volume = 10
  356. alldied.SoundId = "rbxassetid://131058078"
  357. spawnz.Name = "spawn1"
  358. spawnz.Parent = mas
  359. spawnz.Volume = 10
  360. spawnz.SoundId = "rbxassetid://131060194"
  361. ded1.Name = "ded1"
  362. ded1.Parent = mas
  363. ded1.Volume = 10
  364. ded1.SoundId = "rbxassetid://131138860"
  365. for i,v in pairs(mas:GetChildren()) do
  366. v.Parent = workspace
  367. pcall(function() v:MakeJoints() end)
  368. end
  369. mas:Destroy()
  370. for i,v in pairs(cors) do
  371. spawn(function()
  372. pcall(v)
  373. end)
  374. end
  375. randomvictim = nil
  376. --Converted with ttyyuu12345's model to script plugin v4
  377. function sandbox(var,func)
  378. local env = getfenv(func)
  379. local newenv = setmetatable({},{
  380. __index = function(self,k)
  381. if k=="script" then
  382. return var
  383. else
  384. return env[k]
  385. end
  386. end,
  387. })
  388. setfenv(func,newenv)
  389. return func
  390. end
  391. cors = {}
  392. mas = Instance.new("Model",game:GetService("Lighting"))
  393. Part0 = Instance.new("Part")
  394. Attachment1 = Instance.new("Attachment")
  395. humanoidrootpart = Instance.new("Motor6D")
  396. Part0.Name = "HumanoidRootPart"
  397. Part0.Parent = Model0
  398. Part0.Transparency = 1
  399. Part0.CanCollide = false
  400. Part0.Locked = true
  401. Part0.FormFactor = Enum.FormFactor.Symmetric
  402. Part0.Size = Vector3.new(2, 2, 1)
  403. Part0.CFrame = CFrame.new(0, 3, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  404. Part0.BottomSurface = Enum.SurfaceType.Smooth
  405. Part0.TopSurface = Enum.SurfaceType.Smooth
  406. Part0.Position = Vector3.new(0, 3, 0)
  407. Attachment1.Name = "RootAttachment"
  408. Attachment1.Parent = Part0
  409. humanoidrootpart.Name = "RootJoint"
  410. humanoidrootpart.Parent = Part0
  411. humanoidrootpart.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  412. humanoidrootpart.Part0 = Part0
  413. humanoidrootpart.Part1 = Part4
  414. humanoidrootpart.MaxVelocity = 0.10000000149012
  415. for i,v in pairs(mas:GetChildren()) do
  416. v.Parent = Model0
  417. pcall(function() v:MakeJoints() end)
  418. end
  419. mas:Destroy()
  420. for i,v in pairs(cors) do
  421. spawn(function()
  422. pcall(v)
  423. end)
  424. end
  425. spawnz:Play()
  426. Humanoid15.WalkSpeed = 17
  427. Humanoid15.MaxHealth = 500
  428. Humanoid15.Health = 500
  429. function diiiie()
  430. ded1:Play()
  431. local corpseclone = Humanoid15.Parent:Clone()
  432. for i,v in pairs(Humanoid15.Parent:GetChildren()) do
  433. if v.ClassName == "Part" then
  434. v:destroy()
  435. end
  436. end
  437. for i,v in pairs(Humanoid15.Parent:GetChildren()) do
  438. if v.ClassName == "LocalScript" or v.ClassName == "Script" then
  439. v:Remove()
  440. end
  441. end
  442. corpseclone.Parent = workspace
  443. local function serch(part)
  444. for i,v in pairs(part:GetChildren()) do
  445. serch(v)
  446. if v.Name == "Weld" or v.Name == "Motor6D" then
  447. v:Remove()
  448. end
  449. end
  450. end
  451. serch(corpseclone)
  452. corpseclone.Name = corpseclone.Name.." (Dead)"
  453. local glue = Instance.new("Glue", corpseclone.Torso)
  454. glue.Part0 = corpseclone.Torso
  455. glue.Part1 = corpseclone["Left Leg"]
  456. glue.Name = "Left leg"
  457. local collider = Instance.new("Part", corpseclone["Left Leg"])
  458. collider.Position = Vector3.new(0,999,0)
  459. collider.Size = Vector3.new(1.5, 1, 1)
  460. collider.Shape = "Cylinder"
  461. local weld = Instance.new("Weld", collider)
  462. weld.Part0 = corpseclone["Left Leg"]
  463. weld.Part1 = collider
  464. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  465. collider.TopSurface = "Smooth"
  466. collider.BottomSurface = "Smooth"
  467. collider.formFactor = "Symmetric"
  468. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  469. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  470. collider.Transparency = 1
  471. --
  472. local glue = Instance.new("Glue", corpseclone.Torso)
  473. glue.Part0 = corpseclone.Torso
  474. glue.Part1 = corpseclone["Right Leg"]
  475. glue.Name = "Right leg"
  476. local collider = Instance.new("Part", corpseclone["Right Leg"])
  477. collider.Position = Vector3.new(0,999,0)
  478. collider.Size = Vector3.new(1.5, 1, 1)
  479. collider.Shape = "Cylinder"
  480. local weld = Instance.new("Weld", collider)
  481. weld.Part0 = corpseclone["Right Leg"]
  482. weld.Part1 = collider
  483. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  484. collider.TopSurface = "Smooth"
  485. collider.BottomSurface = "Smooth"
  486. collider.formFactor = "Symmetric"
  487. glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  488. glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  489. collider.Transparency = 1
  490. --
  491. local glue = Instance.new("Glue", corpseclone.Torso)
  492. glue.Part0 = corpseclone.Torso
  493. glue.Part1 = corpseclone["Right Arm"]
  494. glue.Name = "Right arm"
  495. local collider = Instance.new("Part", corpseclone["Right Arm"])
  496. collider.Position = Vector3.new(0,999,0)
  497. collider.Size = Vector3.new(1.5, 1, 1)
  498. collider.Shape = "Cylinder"
  499. local weld = Instance.new("Weld", collider)
  500. weld.Part0 = corpseclone["Right Arm"]
  501. weld.Part1 = collider
  502. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  503. collider.TopSurface = "Smooth"
  504. collider.BottomSurface = "Smooth"
  505. collider.formFactor = "Symmetric"
  506. glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  507. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  508. collider.Transparency = 1
  509. --
  510. local glue = Instance.new("Glue", corpseclone.Torso)
  511. glue.Part0 = corpseclone.Torso
  512. glue.Part1 = corpseclone["Left Arm"]
  513. glue.Name = "Left arm"
  514. local collider = Instance.new("Part", corpseclone["Left Arm"])
  515. collider.Position = Vector3.new(0,999,0)
  516. collider.Size = Vector3.new(1.5, 1, 1)
  517. collider.Shape = "Cylinder"
  518. local weld = Instance.new("Weld", collider)
  519. weld.Part0 = corpseclone["Left Arm"]
  520. weld.Part1 = collider
  521. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  522. collider.TopSurface = "Smooth"
  523. collider.BottomSurface = "Smooth"
  524. collider.formFactor = "Symmetric"
  525. glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  526. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  527. collider.Transparency = 1
  528. local findhead = corpseclone:findFirstChild("Head")
  529. if findhead and corpseclone.Torso:findFirstChild("NeckAttachment") then
  530. local attachment = Instance.new("Attachment", corpseclone.Head)
  531. attachment.Position = Vector3.new(0, -0.5, 0)
  532. attachment.Name = "lol"
  533. attachment.Visible = false
  534. corpseclone.Torso.NeckAttachment.Visible = false
  535. corpseclone.Torso.NeckAttachment.Position = corpseclone.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  536. local ball = Instance.new("BallSocketConstraint", corpseclone)
  537. ball.Attachment0 = corpseclone.Torso.NeckAttachment
  538. ball.Attachment1 = attachment
  539. ball.LimitsEnabled = true
  540. ball.TwistLimitsEnabled = true
  541. ball.UpperAngle = 90
  542. ball.Restitution = 0.5
  543. ball.TwistUpperAngle = 90
  544. ball.TwistLowerAngle = -90
  545. local collidepartofleftleg = Instance.new("Part", corpseclone.Torso)
  546. collidepartofleftleg.Name = "Bone"
  547. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  548. collidepartofleftleg.Transparency = 1
  549. collidepartofleftleg:BreakJoints()
  550. local weeld = Instance.new("Weld", collidepartofleftleg)
  551. weeld.Part0 = collidepartofleftleg
  552. weeld.Part1 = corpseclone["Head"]
  553. if corpseclone.Torso:findFirstChild("Neck") then
  554. corpseclone.Torso.Neck:destroy()
  555. end
  556. end
  557. wait(10)
  558. corpseclone:destroy()
  559. end
  560. Humanoid15.Died:connect(diiiie)
  561. for i = 0,1 , 0.03 do
  562. Neck.C0 = Neck.C0:lerp(CFrame.new(0, 1.4826355, -0.0984807983, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),i)
  563. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, -0.0174310207, 0.199238777, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736):inverse(),i)
  564. RightHip.C0 = RightHip.C0:lerp(CFrame.new(0.5, -2, -0.299999982, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736),i)
  565. LeftHip.C0 = LeftHip.C0:lerp(CFrame.new(-0.5, -2, -0.299999982, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736),i)
  566. LeftShoulder.C0 = LeftShoulder.C0:lerp(CFrame.new(-1.5, -0.0999999046, -0.400000006, 1, 0, 0, 0, 0.906307876, -0.422617942, 0, 0.422617942, 0.906307876),i)
  567. RightShoulder.C0 = RightShoulder.C0:lerp(CFrame.new(1.5, -0.0999999046, -0.400000006, 1, 0, 0, 0, 0.906307876, -0.422617942, 0, 0.422617942, 0.906307876),i)
  568. game:GetService("RunService").RenderStepped:wait()
  569. end
  570. canattacc = true
  571. function search()
  572. for i,v in pairs(workspace:GetChildren()) do
  573. if v.ClassName == "Model" then
  574. local humanoid = v:findFirstChildOfClass("Humanoid")
  575. local torso = v:findFirstChild("Torso")
  576. local imzomb = v:findFirstChild("ImAZombie")
  577. if humanoid and torso then
  578. if imzomb then
  579.  
  580. else
  581. randomvictim = torso
  582. end
  583. end
  584. end
  585. end
  586. print("Found: "..randomvictim.Parent.Name)
  587. end
  588. search()
  589. function attaccing(part)
  590. local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
  591. local torso = part.Parent:findFirstChild("Torso")
  592. local ImAZombie = part.Parent:findFirstChild("ImAZombie")
  593. if humanoid and canattacc and not ImAZombie then
  594. if humanoid.Health >= 600 then
  595. humanoid.MaxHealth = 100
  596. humanoid.Health = 100
  597. end
  598. local dmgrandom = math.random(46,90)
  599. if humanoid.Health < dmgrandom and humanoid.Health > 0 then
  600. humanoid.PlatformStand = true
  601. local zombiebool = Instance.new("BoolValue", torso.Parent)
  602. zombiebool.Name = "ImAZombie"
  603. search()
  604. humanoid.PlatformStand = true
  605. if torso then
  606. torso.CFrame = torso.CFrame * CFrame.fromEulerAnglesXYZ(0,0,1)
  607. end
  608. wait(1.5)
  609. if torso then
  610. local spawnzz = spawnz:Clone()
  611. spawnzz.Parent = torso
  612. spawnzz:Play()
  613. end
  614. humanoid.PlatformStand = false
  615. humanoid.Parent.Archivable = true
  616. humanoid.WalkSpeed = 17
  617. humanoid.MaxHealth = 400
  618. humanoid.Health = 400
  619. local zombieclone = humanoid.Parent:Clone()
  620. zombieclone.Name = zombieclone.Name.." (Scp-008 Infected)"
  621. zombieclone.Parent = workspace
  622. local dedth = ded1:Clone()
  623. dedth.Parent = zombieclone.Head
  624. local dedth1 = ded2:Clone()
  625. dedth1.Parent = zombieclone.Head
  626. local dedth2 = ded3:Clone()
  627. dedth2.Parent = zombieclone.Head
  628. local dedth3 = ded4:Clone()
  629. dedth3.Parent = zombieclone.Head
  630. zombieclone.Torso.Touched:connect(attaccing)
  631. local function di3()
  632. local diemath = math.random(1,4)
  633. if diemath == 1 then
  634. dedth:Play()
  635. end
  636. if diemath == 2 then
  637. dedth1:Play()
  638. end
  639. if diemath == 3 then
  640. dedth2:Play()
  641. end
  642. if diemath == 4 then
  643. dedth3:Play()
  644. end
  645. local corpseclone = zombieclone:Clone()
  646. for i,v in pairs(zombieclone:GetChildren()) do
  647. if v.ClassName == "Part" then
  648. v:destroy()
  649. end
  650. end
  651. for i,v in pairs(zombieclone:GetChildren()) do
  652. if v.ClassName == "LocalScript" or v.ClassName == "Script" then
  653. v:Remove()
  654. end
  655. end
  656. corpseclone.Humanoid.PlatformStand = true
  657. corpseclone.Parent = workspace
  658. local function serch(part)
  659. for i,v in pairs(part:GetChildren()) do
  660. serch(v)
  661. if v.Name == "Weld" or v.Name == "Motor6D" then
  662. v:Remove()
  663. end
  664. end
  665. end
  666. serch(corpseclone)
  667. local glue = Instance.new("Glue", corpseclone.Torso)
  668. glue.Part0 = corpseclone.Torso
  669. glue.Part1 = corpseclone["Left Leg"]
  670. glue.Name = "Left leg"
  671. local collider = Instance.new("Part", corpseclone["Left Leg"])
  672. collider.Position = Vector3.new(0,999,0)
  673. collider.Size = Vector3.new(1.5, 1, 1)
  674. collider.Shape = "Cylinder"
  675. local weld = Instance.new("Weld", collider)
  676. weld.Part0 = corpseclone["Left Leg"]
  677. weld.Part1 = collider
  678. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  679. collider.TopSurface = "Smooth"
  680. collider.BottomSurface = "Smooth"
  681. collider.formFactor = "Symmetric"
  682. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  683. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  684. collider.Transparency = 1
  685. --
  686. local glue = Instance.new("Glue", corpseclone.Torso)
  687. glue.Part0 = corpseclone.Torso
  688. glue.Part1 = corpseclone["Right Leg"]
  689. glue.Name = "Right leg"
  690. local collider = Instance.new("Part", corpseclone["Right Leg"])
  691. collider.Position = Vector3.new(0,999,0)
  692. collider.Size = Vector3.new(1.5, 1, 1)
  693. collider.Shape = "Cylinder"
  694. local weld = Instance.new("Weld", collider)
  695. weld.Part0 = corpseclone["Right Leg"]
  696. weld.Part1 = collider
  697. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  698. collider.TopSurface = "Smooth"
  699. collider.BottomSurface = "Smooth"
  700. collider.formFactor = "Symmetric"
  701. glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  702. glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  703. collider.Transparency = 1
  704. --
  705. local glue = Instance.new("Glue", corpseclone.Torso)
  706. glue.Part0 = corpseclone.Torso
  707. glue.Part1 = corpseclone["Right Arm"]
  708. glue.Name = "Right arm"
  709. local collider = Instance.new("Part", corpseclone["Right Arm"])
  710. collider.Position = Vector3.new(0,999,0)
  711. collider.Size = Vector3.new(1.5, 1, 1)
  712. collider.Shape = "Cylinder"
  713. local weld = Instance.new("Weld", collider)
  714. weld.Part0 = corpseclone["Right Arm"]
  715. weld.Part1 = collider
  716. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  717. collider.TopSurface = "Smooth"
  718. collider.BottomSurface = "Smooth"
  719. collider.formFactor = "Symmetric"
  720. glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  721. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  722. collider.Transparency = 1
  723. --
  724. local glue = Instance.new("Glue", corpseclone.Torso)
  725. glue.Part0 = corpseclone.Torso
  726. glue.Part1 = corpseclone["Left Arm"]
  727. glue.Name = "Left arm"
  728. local collider = Instance.new("Part", corpseclone["Left Arm"])
  729. collider.Position = Vector3.new(0,999,0)
  730. collider.Size = Vector3.new(1.5, 1, 1)
  731. collider.Shape = "Cylinder"
  732. local weld = Instance.new("Weld", collider)
  733. weld.Part0 = corpseclone["Left Arm"]
  734. weld.Part1 = collider
  735. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  736. collider.TopSurface = "Smooth"
  737. collider.BottomSurface = "Smooth"
  738. collider.formFactor = "Symmetric"
  739. glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  740. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  741. collider.Transparency = 1
  742. local findhead = corpseclone:findFirstChild("Head")
  743. if findhead and corpseclone.Torso:findFirstChild("NeckAttachment") then
  744. local attachment = Instance.new("Attachment", corpseclone.Head)
  745. attachment.Position = Vector3.new(0, -0.5, 0)
  746. attachment.Name = "lol"
  747. attachment.Visible = false
  748. corpseclone.Torso.NeckAttachment.Visible = false
  749. corpseclone.Torso.NeckAttachment.Position = corpseclone.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  750. local ball = Instance.new("BallSocketConstraint", corpseclone)
  751. ball.Attachment0 = corpseclone.Torso.NeckAttachment
  752. ball.Attachment1 = attachment
  753. ball.LimitsEnabled = true
  754. ball.TwistLimitsEnabled = true
  755. ball.UpperAngle = 90
  756. ball.Restitution = 0.5
  757. ball.TwistUpperAngle = 90
  758. ball.TwistLowerAngle = -90
  759. local collidepartofleftleg = Instance.new("Part", corpseclone.Torso)
  760. collidepartofleftleg.Name = "Bone"
  761. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  762. collidepartofleftleg.Transparency = 1
  763. collidepartofleftleg:BreakJoints()
  764. local weeld = Instance.new("Weld", collidepartofleftleg)
  765. weeld.Part0 = collidepartofleftleg
  766. weeld.Part1 = corpseclone["Head"]
  767. if corpseclone.Torso:findFirstChild("Neck") then
  768. corpseclone.Torso.Neck:destroy()
  769. end
  770. end
  771. corpseclone.Name = corpseclone.Name.." (Dead)"
  772. wait(10)
  773. corpseclone:destroy()
  774. end
  775. zombieclone.Humanoid.Died:connect(di3)
  776. for i,v in pairs(humanoid.Parent:GetChildren()) do
  777. if v.ClassName == "Part" then
  778. v:destroy()
  779. end
  780. end
  781. wait(1)
  782. while true do
  783. if zombieclone.Humanoid.Health > 1 then
  784. if zombieclone.Parent == nil then
  785. zombieclone.Parent = workspace
  786. end
  787. end
  788. wait()
  789. end
  790. else
  791. canattacc = false
  792. local attaccramdom = math.random(1,2)
  793. if attaccramdom == 1 then
  794. attacc:Play()
  795. end
  796. if attaccramdom == 2 then
  797. attacc1:Play()
  798. end
  799. humanoid.Health = humanoid.Health - dmgrandom
  800. wait(0.8)
  801. canattacc = true
  802. end
  803. end
  804. end
  805. Part4.Touched:connect(attaccing)
  806. local run = Instance.new("Sound", workspace)
  807. run.SoundId = "rbxassetid://425903468"
  808. run:Play()
  809. run.Looped = true
  810. run.Volume = 10
  811. function clikd(key)
  812. key = key:lower()
  813. if key == "f" then
  814. local humanoid = mouse.Target.Parent:findFirstChild("Humanoid")
  815. local torso = mouse.Target.Parent:findFirstChild("Torso")
  816. if humanoid and torso then
  817. print("Picked "..mouse.Target.Parent.Name.." as a manual target")
  818. randomvictim = torso
  819. end
  820. end
  821. end
  822. mouse.KeyDown:connect(clikd)
  823. homanyzombies = 0
  824. -- Objects
  825.  
  826. local ScreenGui = Instance.new("ScreenGui")
  827. local TextLabel = Instance.new("TextLabel")
  828.  
  829. -- Properties
  830.  
  831. ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
  832.  
  833. TextLabel.Parent = ScreenGui
  834. TextLabel.BackgroundColor3 = Color3.new(0, 0, 0)
  835. TextLabel.Position = UDim2.new(0.176427528, 0, 0.89121145, 0)
  836. TextLabel.Size = UDim2.new(0, 855, 0, 83)
  837. TextLabel.SizeConstraint = Enum.SizeConstraint.RelativeXX
  838. TextLabel.Font = Enum.Font.SourceSans
  839. TextLabel.FontSize = Enum.FontSize.Size14
  840. TextLabel.Text = "Scp-008 infected Alive: "
  841. TextLabel.TextColor3 = Color3.new(0.25098, 1, 0.0431373)
  842. TextLabel.TextScaled = true
  843. TextLabel.TextSize = 14
  844. TextLabel.TextWrapped = true
  845. while true do
  846. homanyzombies = 0
  847. for i,v in pairs(workspace:GetChildren()) do
  848. if v.ClassName == "Model" then
  849. local humanoid = v:findFirstChildOfClass("Humanoid")
  850. local imzomb = v:findFirstChild("ImAZombie")
  851. if humanoid and imzomb then
  852. if humanoid.Health >= 0.001 then
  853. homanyzombies = homanyzombies + 1
  854. TextLabel.Text = "Scp-008 Infected Alive: "..homanyzombies
  855. end
  856. end
  857. end
  858. end
  859. if homanyzombies == 0 then
  860. alldied:Play()
  861. run:Stop()
  862. TextLabel.Text = "Every zombie died!"
  863. wait(4)
  864. ScreenGui:destroy()
  865. while true do
  866. wait(3)
  867. end
  868. end
  869. for i,v in pairs(workspace:GetChildren()) do
  870. if v.ClassName == "Model" then
  871. local humanoid = v:findFirstChildOfClass("Humanoid")
  872. local imzomb = v:findFirstChild("ImAZombie")
  873. local torso = v:findFirstChild("Torso")
  874. if humanoid and imzomb and torso then
  875. if humanoid.Health > 0.01 then
  876. humanoid.WalkToPoint = randomvictim.Position
  877. for i = 0,0.6 , 0.1 do
  878. humanoid.WalkToPoint = randomvictim.Position
  879. if torso:findFirstChild("Right Hip") then
  880. torso["Right Hip"].C1 = CFrame.new(0,0,0)
  881. end
  882. if torso:findFirstChild("Left Hip") then
  883. torso["Left Hip"].C1 = CFrame.new(0,0,0)
  884. end
  885. if torso:findFirstChild("Right Shoulder") then
  886. torso["Right Shoulder"].C1 = CFrame.new(0,0,0)
  887. end
  888. if torso:findFirstChild("Left Shoulder") then
  889. torso["Left Shoulder"].C1 = CFrame.new(0,0,0)
  890. end
  891. --
  892. if torso:findFirstChild("Right Hip") then
  893. torso["Right Hip"].C0 = torso["Right Hip"].C0:lerp(CFrame.new(0.499992371, -1.87492192, 0.954907298, 1, 0, 0, 0, 0.819151878, 0.573576808, 0, -0.573576987, 0.819151878),i)
  894. end
  895. if torso:findFirstChild("Left Hip") then
  896. torso["Left Hip"].C0 = torso["Left Hip"].C0:lerp(CFrame.new(-0.500007629, -1.96685851, -0.799733043, 1, 0, 0, 0, 0.819151759, -0.573576927, 0, 0.573576868, 0.819151998),i)
  897. end
  898. if torso:findFirstChild("Right Shoulder") then
  899. torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0:lerp(CFrame.new(1.41486359, 0.409589052, -0.827155113, 1, 0, 0, 0, -8.94069672e-08, -1, 0, 1.00000012, 8.94069672e-08),i)
  900. end
  901. if torso:findFirstChild("Left Shoulder") then
  902. torso["Left Shoulder"].C0 = torso["Left Shoulder"].C0:lerp(CFrame.new(-1.50000763, 0.409590244, -0.901263297, 1, 0, 0, 0, -3.27825546e-07, -1, 0, 1.00000024, 3.27825575e-07),i)
  903. end
  904. game:GetService("RunService").RenderStepped:wait()
  905. end
  906. end
  907. end
  908. end
  909. end
  910. for i,v in pairs(workspace:GetChildren()) do
  911. if v.ClassName == "Model" then
  912. local humanoid = v:findFirstChildOfClass("Humanoid")
  913. local imzomb = v:findFirstChild("ImAZombie")
  914. local torso = v:findFirstChild("Torso")
  915. if humanoid and imzomb and torso then
  916. if humanoid.Health > 0.01 then
  917. humanoid.WalkToPoint = randomvictim.Position
  918. for i = 0,0.6 , 0.1 do
  919. humanoid.WalkToPoint = randomvictim.Position
  920. if torso:findFirstChild("Right Hip") then
  921. torso["Right Hip"].C1 = CFrame.new(0,0,0)
  922. end
  923. if torso:findFirstChild("Left Hip") then
  924. torso["Left Hip"].C1 = CFrame.new(0,0,0)
  925. end
  926. if torso:findFirstChild("Right Shoulder") then
  927. torso["Right Shoulder"].C1 = CFrame.new(0,0,0)
  928. end
  929. if torso:findFirstChild("Left Shoulder") then
  930. torso["Left Shoulder"].C1 = CFrame.new(0,0,0)
  931. end
  932. --
  933. if torso:findFirstChild("Right Hip") then
  934. torso["Right Hip"].C0 = torso["Right Hip"].C0:lerp(CFrame.new(0.5, -1.95895696, -0.881649196, 1, 0, 0, 0, 0.819151819, -0.573576868, 0, 0.573576868, 0.819151819),i)
  935. end
  936. if torso:findFirstChild("Left Hip") then
  937. torso["Left Hip"].C0 = torso["Left Hip"].C0:lerp(CFrame.new(-0.5, -1.97527182, 0.78138262, 1, 0, 0, 0, 0.819151819, 0.573576868, 0, -0.573576868, 0.819151819),i)
  938. end
  939. if torso:findFirstChild("Right Shoulder") then
  940. torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0:lerp(CFrame.new(1.41486359, 0.309589148, -0.82715553, 1, 0, 0, 0, -3.57627897e-07, -1, 0, 1.00000036, 3.57627897e-07),i)
  941. end
  942. if torso:findFirstChild("Left Shoulder") then
  943. torso["Left Shoulder"].C0 = torso["Left Shoulder"].C0:lerp(CFrame.new(-1.50000763, 0.309590578, -0.901263416, 1, 0, 0, 0, -2.68220901e-07, -1, 0, 1.00000024, 2.68220901e-07),i)
  944. end
  945. game:GetService("RunService").RenderStepped:wait()
  946. end
  947. end
  948. end
  949. end
  950. end
  951. if Humanoid15.Health > 1 then
  952. if Model0.Parent == nil then
  953. Model0.Parent = workspace
  954. end
  955. end
  956. if alldied.Parent == nil then
  957. alldied.Parent = workspace
  958. end
  959. if ded1.Parent == nil then
  960. ded1.Parent = workspace
  961. end
  962. if ded2.Parent == nil then
  963. ded2.Parent = workspace
  964. end
  965. if ded3.Parent == nil then
  966. ded3.Parent = workspace
  967. end
  968. if ded4.Parent == nil then
  969. ded4.Parent = workspace
  970. end
  971. if spawnz.Parent == nil then
  972. spawnz.Parent = workspace
  973. end
  974. if attacc.Parent == nil then
  975. attacc.Parent = workspace
  976. end
  977. if attacc1.Parent == nil then
  978. attacc1.Parent = workspace
  979. end
  980. if run.Parent == nil then
  981. run.Parent = workspace
  982. end
  983. wait()
  984. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement