Hugo1234cool

Untitled

Jan 16th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.82 KB | None | 0 0
  1. --By Rufus14 Showcase by purpleguy2playZ
  2. wait(2)-- This script has been converted to FE by iPxter
  3.  
  4.  
  5. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  6. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  7. do
  8. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  9. script.Parent = Player.Character
  10.  
  11. --RemoteEvent for communicating
  12. local Event = Instance.new("RemoteEvent")
  13. Event.Name = "UserInput_Event"
  14.  
  15. --Fake event to make stuff like Mouse.KeyDown work
  16. local function fakeEvent()
  17. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  18. t.connect = t.Connect
  19. return t
  20. end
  21.  
  22. --Creating fake input objects with fake variables
  23. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  24. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  25. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  26. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  27. end}
  28. --Merged 2 functions into one by checking amount of arguments
  29. CAS.UnbindAction = CAS.BindAction
  30.  
  31. --This function will trigger the events that have been :Connect()'ed
  32. local function te(self,ev,...)
  33. local t = m[ev]
  34. if t and t._fakeEvent and t.Function then
  35. t.Function(...)
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=Player then return end
  43. if io.isMouse then
  44. m.Target = io.Target
  45. m.Hit = io.Hit
  46. else
  47. local b = io.UserInputState == Enum.UserInputState.Begin
  48. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  49. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  50. end
  51. for _,t in pairs(CAS.Actions) do
  52. for _,k in pairs(t.Keys) do
  53. if k==io.KeyCode then
  54. t.Function(t.Name,io.UserInputState,io)
  55. end
  56. end
  57. end
  58. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  59. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  60. end
  61. end)
  62. Event.Parent = NLS([==[
  63. local Player =owner
  64. local Event = script:WaitForChild("UserInput_Event")
  65.  
  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})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  75. local Mouse = Player:GetMouse()
  76. local h,t
  77. --Give the server mouse data 30 times every second, but only if the values changed
  78. --If player is not moving their mouse, client won't fire events
  79. while wait(1/30) do
  80. if h~=Mouse.Hit or t~=Mouse.Target then
  81. h,t=Mouse.Hit,Mouse.Target
  82. Event:FireServer({isMouse=true,Target=t,Hit=h})
  83. end
  84. end]==],Player.Character)
  85. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  86. end
  87. script.Parent = nil
  88.  
  89. local aaabegone = Instance.new("Sound", workspace)
  90. aaabegone.SoundId = "rbxassetid://131057316"
  91. aaabegone.Volume = 10
  92. aaabegone:Play()
  93. print("Script by Rufus14 Showcase by purpleguy2playZ")
  94. --Converted with ttyyuu12345's model to script plugin v4
  95. function sandbox(var,func)
  96. local env = getfenv(func)
  97. local newenv = setmetatable({},{
  98. __index = function(self,k)
  99. if k=="script" then
  100. return var
  101. else
  102. return env[k]
  103. end
  104. end,
  105. })
  106. setfenv(func,newenv)
  107. return func
  108. end
  109. cors = {}
  110. mas = Instance.new("Model",game:GetService("Lighting"))
  111. Model0 = Instance.new("Model")
  112. Part1 = Instance.new("Part")
  113. SpecialMesh2 = Instance.new("SpecialMesh")
  114. Decal3 = Instance.new("Decal")
  115. Part4 = Instance.new("Part")
  116. Decal5 = Instance.new("Decal")
  117. RightShoulder = Instance.new("Motor")
  118. LeftShoulder = Instance.new("Motor")
  119. RightHip = Instance.new("Motor")
  120. LeftHip = Instance.new("Motor")
  121. Neck = Instance.new("Motor")
  122. Part11 = Instance.new("Part")
  123. Part12 = Instance.new("Part")
  124. Part13 = Instance.new("Part")
  125. Part14 = Instance.new("Part")
  126. Humanoid15 = Instance.new("Humanoid")
  127. Model0.Name = "Scp-008 Infected"
  128. Model0.Parent = mas
  129. Model0.PrimaryPart = Part1
  130. Part1.Name = "Head"
  131. Part1.Parent = Model0
  132. Part1.BrickColor = BrickColor.new("Really black")
  133. Part1.FormFactor = Enum.FormFactor.Symmetric
  134. Part1.Size = Vector3.new(2, 1, 1)
  135. Part1.CFrame = CFrame.new(-0.700021029, 4.49999905, 2.99999809, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  136. Part1.TopSurface = Enum.SurfaceType.Smooth
  137. Part1.Color = Color3.new(0.0588235, 0.258824, 0.00392157)
  138. Part1.Position = Vector3.new(-0.700021029, 4.49999905, 2.99999809)
  139. Part1.Color = Color3.new(0.0588235, 0.258824, 0.00392157)
  140. SpecialMesh2.Parent = Part1
  141. SpecialMesh2.Scale = Vector3.new(1.25, 1.25, 1.25)
  142. SpecialMesh2.Scale = Vector3.new(1.25, 1.25, 1.25)
  143. Decal3.Name = "face"
  144. Decal3.Parent = Part1
  145. Decal3.Texture = "http://www.roblox.com/asset/?id=51827997"
  146. Part4.Name = "Torso"
  147. Part4.Parent = Model0
  148. Part4.BrickColor = BrickColor.new("Black")
  149. Part4.FormFactor = Enum.FormFactor.Symmetric
  150. Part4.Size = Vector3.new(2, 2, 1)
  151. Part4.CFrame = CFrame.new(-0.700021029, 2.99999905, 2.99999809, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  152. Part4.LeftSurface = Enum.SurfaceType.Weld
  153. Part4.RightSurface = Enum.SurfaceType.Weld
  154. Part4.Color = Color3.new(0.0156863, 0.14902, 0.243137)
  155. Part4.Position = Vector3.new(-0.700021029, 2.99999905, 2.99999809)
  156. Part4.Color = Color3.new(0.0156863, 0.14902, 0.243137)
  157. Decal5.Name = "roblox"
  158. Decal5.Parent = Part4
  159. RightShoulder.Name = "Right Shoulder"
  160. RightShoulder.Parent = Part4
  161. RightShoulder.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  162. RightShoulder.Part0 = Part4
  163. RightShoulder.Part1 = Part12
  164. RightShoulder.MaxVelocity = 0.15000000596046
  165. LeftShoulder.Name = "Left Shoulder"
  166. LeftShoulder.Parent = Part4
  167. LeftShoulder.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  168. LeftShoulder.Part0 = Part4
  169. LeftShoulder.Part1 = Part11
  170. LeftShoulder.MaxVelocity = 0.15000000596046
  171. RightHip.Name = "Right Hip"
  172. RightHip.Parent = Part4
  173. RightHip.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  174. RightHip.Part0 = Part4
  175. RightHip.Part1 = Part14
  176. RightHip.MaxVelocity = 0.10000000149012
  177. LeftHip.Name = "Left Hip"
  178. LeftHip.Parent = Part4
  179. LeftHip.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  180. LeftHip.Part0 = Part4
  181. LeftHip.Part1 = Part13
  182. LeftHip.MaxVelocity = 0.10000000149012
  183. Neck.Name = "Neck"
  184. Neck.Parent = Part4
  185. Neck.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  186. Neck.Part0 = Part4
  187. Neck.Part1 = Part1
  188. Neck.MaxVelocity = 0.10000000149012
  189. Part11.Name = "Left Arm"
  190. Part11.Parent = Model0
  191. Part11.BrickColor = BrickColor.new("Maroon")
  192. Part11.CanCollide = false
  193. Part11.FormFactor = Enum.FormFactor.Symmetric
  194. Part11.Size = Vector3.new(1, 2, 1)
  195. Part11.CFrame = CFrame.new(-2.20002103, 2.99999905, 2.99999809, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  196. Part11.Color = Color3.new(0.309804, 0.00392157, 0.00392157)
  197. Part11.Position = Vector3.new(-2.20002103, 2.99999905, 2.99999809)
  198. Part11.Color = Color3.new(0.309804, 0.00392157, 0.00392157)
  199. Part12.Name = "Right Arm"
  200. Part12.Parent = Model0
  201. Part12.BrickColor = BrickColor.new("Earth green")
  202. Part12.CanCollide = false
  203. Part12.FormFactor = Enum.FormFactor.Symmetric
  204. Part12.Size = Vector3.new(1, 2, 1)
  205. Part12.CFrame = CFrame.new(0.799978971, 2.99999905, 2.99999809, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  206. Part12.Color = Color3.new(0.0666667, 0.290196, 0.0156863)
  207. Part12.Position = Vector3.new(0.799978971, 2.99999905, 2.99999809)
  208. Part12.Color = Color3.new(0.0666667, 0.290196, 0.0156863)
  209. Part13.Name = "Left Leg"
  210. Part13.Parent = Model0
  211. Part13.BrickColor = BrickColor.new("Earth yellow")
  212. Part13.CanCollide = false
  213. Part13.FormFactor = Enum.FormFactor.Symmetric
  214. Part13.Size = Vector3.new(1, 2, 1)
  215. Part13.CFrame = CFrame.new(-1.20002103, 0.999999046, 2.99999809, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  216. Part13.BottomSurface = Enum.SurfaceType.Smooth
  217. Part13.TopSurface = Enum.SurfaceType.Inlet
  218. Part13.Color = Color3.new(0.396078, 0.454902, 0.168627)
  219. Part13.Position = Vector3.new(-1.20002103, 0.999999046, 2.99999809)
  220. Part13.Color = Color3.new(0.396078, 0.454902, 0.168627)
  221. Part14.Name = "Right Leg"
  222. Part14.Parent = Model0
  223. Part14.BrickColor = BrickColor.new("Earth yellow")
  224. Part14.CanCollide = false
  225. Part14.FormFactor = Enum.FormFactor.Symmetric
  226. Part14.Size = Vector3.new(1, 2, 1)
  227. Part14.CFrame = CFrame.new(-0.200021029, 0.999999046, 2.99999809, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  228. Part14.BottomSurface = Enum.SurfaceType.Smooth
  229. Part14.TopSurface = Enum.SurfaceType.Inlet
  230. Part14.Color = Color3.new(0.396078, 0.454902, 0.168627)
  231. Part14.Position = Vector3.new(-0.200021029, 0.999999046, 2.99999809)
  232. Part14.Color = Color3.new(0.396078, 0.454902, 0.168627)
  233. Humanoid15.Parent = Model0
  234. Humanoid15.NameOcclusion = Enum.NameOcclusion.NoOcclusion
  235. Humanoid15.RightLeg = Part14
  236. Humanoid15.LeftLeg = Part13
  237. Humanoid15.Torso = Part4
  238. for i,v in pairs(mas:GetChildren()) do
  239. v.Parent = workspace
  240. pcall(function() v:MakeJoints() end)
  241. end
  242. mas:Destroy()
  243. for i,v in pairs(cors) do
  244. spawn(function()
  245. pcall(v)
  246. end)
  247. end
  248. local zombiebool = Instance.new("BoolValue", Model0)
  249. zombiebool.Name = "ImAZombie"
  250. --Converted with ttyyuu12345's model to script plugin v4
  251. function sandbox(var,func)
  252. local env = getfenv(func)
  253. local newenv = setmetatable({},{
  254. __index = function(self,k)
  255. if k=="script" then
  256. return var
  257. else
  258. return env[k]
  259. end
  260. end,
  261. })
  262. setfenv(func,newenv)
  263. return func
  264. end
  265. cors = {}
  266. mas = Instance.new("Model",game:GetService("Lighting"))
  267. ded4 = Instance.new("Sound")
  268. ded3 = Instance.new("Sound")
  269. ded2 = Instance.new("Sound")
  270. attacc1 = Instance.new("Sound")
  271. attacc = Instance.new("Sound")
  272. alldied = Instance.new("Sound")
  273. spawnz = Instance.new("Sound")
  274. ded1 = Instance.new("Sound")
  275. ded4.Name = "ded4"
  276. ded4.Parent = mas
  277. ded4.Volume = 10
  278. ded4.SoundId = "rbxassetid://131138845"
  279. ded3.Name = "ded3"
  280. ded3.Parent = mas
  281. ded3.Volume = 10
  282. ded3.SoundId = "rbxassetid://131138850"
  283. ded2.Name = "ded2"
  284. ded2.Parent = mas
  285. ded2.Volume = 10
  286. ded2.SoundId = "rbxassetid://131138839"
  287. attacc1.Name = "attacc1"
  288. attacc1.Parent = mas
  289. attacc1.Volume = 10
  290. attacc1.SoundId = "rbxassetid://131138835"
  291. attacc.Name = "attacc"
  292. attacc.Parent = mas
  293. attacc.Volume = 10
  294. attacc.SoundId = "rbxassetid://131138828"
  295. alldied.Name = "zombiedied"
  296. alldied.Parent = mas
  297. alldied.Volume = 10
  298. alldied.SoundId = "rbxassetid://131058078"
  299. spawnz.Name = "spawn1"
  300. spawnz.Parent = mas
  301. spawnz.Volume = 10
  302. spawnz.SoundId = "rbxassetid://131060194"
  303. ded1.Name = "ded1"
  304. ded1.Parent = mas
  305. ded1.Volume = 10
  306. ded1.SoundId = "rbxassetid://131138860"
  307. for i,v in pairs(mas:GetChildren()) do
  308. v.Parent = workspace
  309. pcall(function() v:MakeJoints() end)
  310. end
  311. mas:Destroy()
  312. for i,v in pairs(cors) do
  313. spawn(function()
  314. pcall(v)
  315. end)
  316. end
  317. randomvictim = nil
  318. --Converted with ttyyuu12345's model to script plugin v4
  319. function sandbox(var,func)
  320. local env = getfenv(func)
  321. local newenv = setmetatable({},{
  322. __index = function(self,k)
  323. if k=="script" then
  324. return var
  325. else
  326. return env[k]
  327. end
  328. end,
  329. })
  330. setfenv(func,newenv)
  331. return func
  332. end
  333. cors = {}
  334. mas = Instance.new("Model",game:GetService("Lighting"))
  335. Part0 = Instance.new("Part")
  336. Attachment1 = Instance.new("Attachment")
  337. humanoidrootpart = Instance.new("Motor6D")
  338. Part0.Name = "HumanoidRootPart"
  339. Part0.Parent = Model0
  340. Part0.Transparency = 1
  341. Part0.CanCollide = false
  342. Part0.Locked = true
  343. Part0.FormFactor = Enum.FormFactor.Symmetric
  344. Part0.Size = Vector3.new(2, 2, 1)
  345. Part0.CFrame = CFrame.new(0, 3, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  346. Part0.BottomSurface = Enum.SurfaceType.Smooth
  347. Part0.TopSurface = Enum.SurfaceType.Smooth
  348. Part0.Position = Vector3.new(0, 3, 0)
  349. Attachment1.Name = "RootAttachment"
  350. Attachment1.Parent = Part0
  351. humanoidrootpart.Name = "RootJoint"
  352. humanoidrootpart.Parent = Part0
  353. humanoidrootpart.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  354. humanoidrootpart.Part0 = Part0
  355. humanoidrootpart.Part1 = Part4
  356. humanoidrootpart.MaxVelocity = 0.10000000149012
  357. for i,v in pairs(mas:GetChildren()) do
  358. v.Parent = Model0
  359. pcall(function() v:MakeJoints() end)
  360. end
  361. mas:Destroy()
  362. for i,v in pairs(cors) do
  363. spawn(function()
  364. pcall(v)
  365. end)
  366. end
  367. spawnz:Play()
  368. Humanoid15.WalkSpeed = 17
  369. Humanoid15.MaxHealth = 500
  370. Humanoid15.Health = 500
  371. function diiiie()
  372. ded1:Play()
  373. local corpseclone = Humanoid15.Parent:Clone()
  374. for i,v in pairs(Humanoid15.Parent:GetChildren()) do
  375. if v.ClassName == "Part" then
  376. v:destroy()
  377. end
  378. end
  379. for i,v in pairs(Humanoid15.Parent:GetChildren()) do
  380. if v.ClassName == "LocalScript" or v.ClassName == "Script" then
  381. v:Remove()
  382. end
  383. end
  384. corpseclone.Parent = workspace
  385. local function serch(part)
  386. for i,v in pairs(part:GetChildren()) do
  387. serch(v)
  388. if v.Name == "Weld" or v.Name == "Motor6D" then
  389. v:Remove()
  390. end
  391. end
  392. end
  393. serch(corpseclone)
  394. corpseclone.Name = corpseclone.Name.." (Dead)"
  395. local glue = Instance.new("Glue", corpseclone.Torso)
  396. glue.Part0 = corpseclone.Torso
  397. glue.Part1 = corpseclone["Left Leg"]
  398. glue.Name = "Left leg"
  399. local collider = Instance.new("Part", corpseclone["Left Leg"])
  400. collider.Position = Vector3.new(0,999,0)
  401. collider.Size = Vector3.new(1.5, 1, 1)
  402. collider.Shape = "Cylinder"
  403. local weld = Instance.new("Weld", collider)
  404. weld.Part0 = corpseclone["Left Leg"]
  405. weld.Part1 = collider
  406. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  407. collider.TopSurface = "Smooth"
  408. collider.BottomSurface = "Smooth"
  409. collider.formFactor = "Symmetric"
  410. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  411. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  412. collider.Transparency = 1
  413. --
  414. local glue = Instance.new("Glue", corpseclone.Torso)
  415. glue.Part0 = corpseclone.Torso
  416. glue.Part1 = corpseclone["Right Leg"]
  417. glue.Name = "Right leg"
  418. local collider = Instance.new("Part", corpseclone["Right Leg"])
  419. collider.Position = Vector3.new(0,999,0)
  420. collider.Size = Vector3.new(1.5, 1, 1)
  421. collider.Shape = "Cylinder"
  422. local weld = Instance.new("Weld", collider)
  423. weld.Part0 = corpseclone["Right Leg"]
  424. weld.Part1 = collider
  425. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  426. collider.TopSurface = "Smooth"
  427. collider.BottomSurface = "Smooth"
  428. collider.formFactor = "Symmetric"
  429. glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  430. glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  431. collider.Transparency = 1
  432. --
  433. local glue = Instance.new("Glue", corpseclone.Torso)
  434. glue.Part0 = corpseclone.Torso
  435. glue.Part1 = corpseclone["Right Arm"]
  436. glue.Name = "Right arm"
  437. local collider = Instance.new("Part", corpseclone["Right Arm"])
  438. collider.Position = Vector3.new(0,999,0)
  439. collider.Size = Vector3.new(1.5, 1, 1)
  440. collider.Shape = "Cylinder"
  441. local weld = Instance.new("Weld", collider)
  442. weld.Part0 = corpseclone["Right Arm"]
  443. weld.Part1 = collider
  444. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  445. collider.TopSurface = "Smooth"
  446. collider.BottomSurface = "Smooth"
  447. collider.formFactor = "Symmetric"
  448. glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  449. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  450. collider.Transparency = 1
  451. --
  452. local glue = Instance.new("Glue", corpseclone.Torso)
  453. glue.Part0 = corpseclone.Torso
  454. glue.Part1 = corpseclone["Left Arm"]
  455. glue.Name = "Left arm"
  456. local collider = Instance.new("Part", corpseclone["Left Arm"])
  457. collider.Position = Vector3.new(0,999,0)
  458. collider.Size = Vector3.new(1.5, 1, 1)
  459. collider.Shape = "Cylinder"
  460. local weld = Instance.new("Weld", collider)
  461. weld.Part0 = corpseclone["Left Arm"]
  462. weld.Part1 = collider
  463. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  464. collider.TopSurface = "Smooth"
  465. collider.BottomSurface = "Smooth"
  466. collider.formFactor = "Symmetric"
  467. glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  468. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  469. collider.Transparency = 1
  470. local findhead = corpseclone:findFirstChild("Head")
  471. if findhead and corpseclone.Torso:findFirstChild("NeckAttachment") then
  472. local attachment = Instance.new("Attachment", corpseclone.Head)
  473. attachment.Position = Vector3.new(0, -0.5, 0)
  474. attachment.Name = "lol"
  475. attachment.Visible = false
  476. corpseclone.Torso.NeckAttachment.Visible = false
  477. corpseclone.Torso.NeckAttachment.Position = corpseclone.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  478. local ball = Instance.new("BallSocketConstraint", corpseclone)
  479. ball.Attachment0 = corpseclone.Torso.NeckAttachment
  480. ball.Attachment1 = attachment
  481. ball.LimitsEnabled = true
  482. ball.TwistLimitsEnabled = true
  483. ball.UpperAngle = 90
  484. ball.Restitution = 0.5
  485. ball.TwistUpperAngle = 90
  486. ball.TwistLowerAngle = -90
  487. local collidepartofleftleg = Instance.new("Part", corpseclone.Torso)
  488. collidepartofleftleg.Name = "Bone"
  489. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  490. collidepartofleftleg.Transparency = 1
  491. collidepartofleftleg:BreakJoints()
  492. local weeld = Instance.new("Weld", collidepartofleftleg)
  493. weeld.Part0 = collidepartofleftleg
  494. weeld.Part1 = corpseclone["Head"]
  495. if corpseclone.Torso:findFirstChild("Neck") then
  496. corpseclone.Torso.Neck:destroy()
  497. end
  498. end
  499. wait(10)
  500. corpseclone:destroy()
  501. end
  502. Humanoid15.Died:connect(diiiie)
  503. for i = 0,1 , 0.03 do
  504. 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)
  505. 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)
  506. 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)
  507. 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)
  508. 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)
  509. 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)
  510. game:GetService("RunService").RenderStepped:wait()
  511. end
  512. canattacc = true
  513. function search()
  514. for i,v in pairs(workspace:GetChildren()) do
  515. if v.ClassName == "Model" then
  516. local humanoid = v:findFirstChildOfClass("Humanoid")
  517. local torso = v:findFirstChild("Torso")
  518. local imzomb = v:findFirstChild("ImAZombie")
  519. if humanoid and torso then
  520. if imzomb then
  521.  
  522. else
  523. randomvictim = torso
  524. end
  525. end
  526. end
  527. end
  528. print("Found: "..randomvictim.Parent.Name)
  529. end
  530. search()
  531. function attaccing(part)
  532. local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
  533. local torso = part.Parent:findFirstChild("Torso")
  534. local ImAZombie = part.Parent:findFirstChild("ImAZombie")
  535. if humanoid and canattacc and not ImAZombie then
  536. if humanoid.Health >= 600 then
  537. humanoid.MaxHealth = 100
  538. humanoid.Health = 100
  539. end
  540. local dmgrandom = math.random(46,90)
  541. if humanoid.Health < dmgrandom and humanoid.Health > 0 then
  542. humanoid.PlatformStand = true
  543. local zombiebool = Instance.new("BoolValue", torso.Parent)
  544. zombiebool.Name = "ImAZombie"
  545. search()
  546. humanoid.PlatformStand = true
  547. if torso then
  548. torso.CFrame = torso.CFrame * CFrame.fromEulerAnglesXYZ(0,0,1)
  549. end
  550. wait(1.5)
  551. if torso then
  552. local spawnzz = spawnz:Clone()
  553. spawnzz.Parent = torso
  554. spawnzz:Play()
  555. end
  556. humanoid.PlatformStand = false
  557. humanoid.Parent.Archivable = true
  558. humanoid.WalkSpeed = 17
  559. humanoid.MaxHealth = 400
  560. humanoid.Health = 400
  561. local zombieclone = humanoid.Parent:Clone()
  562. zombieclone.Name = zombieclone.Name.." (Scp-008 Infected)"
  563. zombieclone.Parent = workspace
  564. local dedth = ded1:Clone()
  565. dedth.Parent = zombieclone.Head
  566. local dedth1 = ded2:Clone()
  567. dedth1.Parent = zombieclone.Head
  568. local dedth2 = ded3:Clone()
  569. dedth2.Parent = zombieclone.Head
  570. local dedth3 = ded4:Clone()
  571. dedth3.Parent = zombieclone.Head
  572. zombieclone.Torso.Touched:connect(attaccing)
  573. local function di3()
  574. local diemath = math.random(1,4)
  575. if diemath == 1 then
  576. dedth:Play()
  577. end
  578. if diemath == 2 then
  579. dedth1:Play()
  580. end
  581. if diemath == 3 then
  582. dedth2:Play()
  583. end
  584. if diemath == 4 then
  585. dedth3:Play()
  586. end
  587. local corpseclone = zombieclone:Clone()
  588. for i,v in pairs(zombieclone:GetChildren()) do
  589. if v.ClassName == "Part" then
  590. v:destroy()
  591. end
  592. end
  593. for i,v in pairs(zombieclone:GetChildren()) do
  594. if v.ClassName == "LocalScript" or v.ClassName == "Script" then
  595. v:Remove()
  596. end
  597. end
  598. corpseclone.Humanoid.PlatformStand = true
  599. corpseclone.Parent = workspace
  600. local function serch(part)
  601. for i,v in pairs(part:GetChildren()) do
  602. serch(v)
  603. if v.Name == "Weld" or v.Name == "Motor6D" then
  604. v:Remove()
  605. end
  606. end
  607. end
  608. serch(corpseclone)
  609. local glue = Instance.new("Glue", corpseclone.Torso)
  610. glue.Part0 = corpseclone.Torso
  611. glue.Part1 = corpseclone["Left Leg"]
  612. glue.Name = "Left leg"
  613. local collider = Instance.new("Part", corpseclone["Left Leg"])
  614. collider.Position = Vector3.new(0,999,0)
  615. collider.Size = Vector3.new(1.5, 1, 1)
  616. collider.Shape = "Cylinder"
  617. local weld = Instance.new("Weld", collider)
  618. weld.Part0 = corpseclone["Left Leg"]
  619. weld.Part1 = collider
  620. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  621. collider.TopSurface = "Smooth"
  622. collider.BottomSurface = "Smooth"
  623. collider.formFactor = "Symmetric"
  624. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  625. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  626. collider.Transparency = 1
  627. --
  628. local glue = Instance.new("Glue", corpseclone.Torso)
  629. glue.Part0 = corpseclone.Torso
  630. glue.Part1 = corpseclone["Right Leg"]
  631. glue.Name = "Right leg"
  632. local collider = Instance.new("Part", corpseclone["Right Leg"])
  633. collider.Position = Vector3.new(0,999,0)
  634. collider.Size = Vector3.new(1.5, 1, 1)
  635. collider.Shape = "Cylinder"
  636. local weld = Instance.new("Weld", collider)
  637. weld.Part0 = corpseclone["Right Leg"]
  638. weld.Part1 = collider
  639. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  640. collider.TopSurface = "Smooth"
  641. collider.BottomSurface = "Smooth"
  642. collider.formFactor = "Symmetric"
  643. glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  644. glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  645. collider.Transparency = 1
  646. --
  647. local glue = Instance.new("Glue", corpseclone.Torso)
  648. glue.Part0 = corpseclone.Torso
  649. glue.Part1 = corpseclone["Right Arm"]
  650. glue.Name = "Right arm"
  651. local collider = Instance.new("Part", corpseclone["Right Arm"])
  652. collider.Position = Vector3.new(0,999,0)
  653. collider.Size = Vector3.new(1.5, 1, 1)
  654. collider.Shape = "Cylinder"
  655. local weld = Instance.new("Weld", collider)
  656. weld.Part0 = corpseclone["Right Arm"]
  657. weld.Part1 = collider
  658. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  659. collider.TopSurface = "Smooth"
  660. collider.BottomSurface = "Smooth"
  661. collider.formFactor = "Symmetric"
  662. glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  663. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  664. collider.Transparency = 1
  665. --
  666. local glue = Instance.new("Glue", corpseclone.Torso)
  667. glue.Part0 = corpseclone.Torso
  668. glue.Part1 = corpseclone["Left Arm"]
  669. glue.Name = "Left arm"
  670. local collider = Instance.new("Part", corpseclone["Left Arm"])
  671. collider.Position = Vector3.new(0,999,0)
  672. collider.Size = Vector3.new(1.5, 1, 1)
  673. collider.Shape = "Cylinder"
  674. local weld = Instance.new("Weld", collider)
  675. weld.Part0 = corpseclone["Left Arm"]
  676. weld.Part1 = collider
  677. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  678. collider.TopSurface = "Smooth"
  679. collider.BottomSurface = "Smooth"
  680. collider.formFactor = "Symmetric"
  681. glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  682. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  683. collider.Transparency = 1
  684. local findhead = corpseclone:findFirstChild("Head")
  685. if findhead and corpseclone.Torso:findFirstChild("NeckAttachment") then
  686. local attachment = Instance.new("Attachment", corpseclone.Head)
  687. attachment.Position = Vector3.new(0, -0.5, 0)
  688. attachment.Name = "lol"
  689. attachment.Visible = false
  690. corpseclone.Torso.NeckAttachment.Visible = false
  691. corpseclone.Torso.NeckAttachment.Position = corpseclone.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  692. local ball = Instance.new("BallSocketConstraint", corpseclone)
  693. ball.Attachment0 = corpseclone.Torso.NeckAttachment
  694. ball.Attachment1 = attachment
  695. ball.LimitsEnabled = true
  696. ball.TwistLimitsEnabled = true
  697. ball.UpperAngle = 90
  698. ball.Restitution = 0.5
  699. ball.TwistUpperAngle = 90
  700. ball.TwistLowerAngle = -90
  701. local collidepartofleftleg = Instance.new("Part", corpseclone.Torso)
  702. collidepartofleftleg.Name = "Bone"
  703. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  704. collidepartofleftleg.Transparency = 1
  705. collidepartofleftleg:BreakJoints()
  706. local weeld = Instance.new("Weld", collidepartofleftleg)
  707. weeld.Part0 = collidepartofleftleg
  708. weeld.Part1 = corpseclone["Head"]
  709. if corpseclone.Torso:findFirstChild("Neck") then
  710. corpseclone.Torso.Neck:destroy()
  711. end
  712. end
  713. corpseclone.Name = corpseclone.Name.." (Dead)"
  714. wait(10)
  715. corpseclone:destroy()
  716. end
  717. zombieclone.Humanoid.Died:connect(di3)
  718. for i,v in pairs(humanoid.Parent:GetChildren()) do
  719. if v.ClassName == "Part" then
  720. v:destroy()
  721. end
  722. end
  723. wait(1)
  724. while true do
  725. if zombieclone.Humanoid.Health > 1 then
  726. if zombieclone.Parent == nil then
  727. zombieclone.Parent = workspace
  728. end
  729. end
  730. wait()
  731. end
  732. else
  733. canattacc = false
  734. local attaccramdom = math.random(1,2)
  735. if attaccramdom == 1 then
  736. attacc:Play()
  737. end
  738. if attaccramdom == 2 then
  739. attacc1:Play()
  740. end
  741. humanoid.Health = humanoid.Health - dmgrandom
  742. wait(0.8)
  743. canattacc = true
  744. end
  745. end
  746. end
  747. Part4.Touched:connect(attaccing)
  748. local run = Instance.new("Sound", workspace)
  749. run.SoundId = "rbxassetid://425903468"
  750. run:Play()
  751. run.Looped = true
  752. run.Volume = 10
  753. function clikd(key)
  754. key = key:lower()
  755. if key == "f" then
  756. local humanoid = mouse.Target.Parent:findFirstChild("Humanoid")
  757. local torso = mouse.Target.Parent:findFirstChild("Torso")
  758. if humanoid and torso then
  759. print("Picked "..mouse.Target.Parent.Name.." as a manual target")
  760. randomvictim = torso
  761. end
  762. end
  763. end
  764. mouse.KeyDown:connect(clikd)
  765. homanyzombies = 0
  766. -- Objects
  767.  
  768. local ScreenGui = Instance.new("ScreenGui")
  769. local TextLabel = Instance.new("TextLabel")
  770.  
  771. -- Properties
  772.  
  773. ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
  774.  
  775. TextLabel.Parent = ScreenGui
  776. TextLabel.BackgroundColor3 = Color3.new(0, 0, 0)
  777. TextLabel.Position = UDim2.new(0.176427528, 0, 0.89121145, 0)
  778. TextLabel.Size = UDim2.new(0, 855, 0, 83)
  779. TextLabel.SizeConstraint = Enum.SizeConstraint.RelativeXX
  780. TextLabel.Font = Enum.Font.SourceSans
  781. TextLabel.FontSize = Enum.FontSize.Size14
  782. TextLabel.Text = "Scp-008 infected Alive: "
  783. TextLabel.TextColor3 = Color3.new(0.25098, 1, 0.0431373)
  784. TextLabel.TextScaled = true
  785. TextLabel.TextSize = 14
  786. TextLabel.TextWrapped = true
  787. while true do
  788. homanyzombies = 0
  789. for i,v in pairs(workspace:GetChildren()) do
  790. if v.ClassName == "Model" then
  791. local humanoid = v:findFirstChildOfClass("Humanoid")
  792. local imzomb = v:findFirstChild("ImAZombie")
  793. if humanoid and imzomb then
  794. if humanoid.Health >= 0.001 then
  795. homanyzombies = homanyzombies + 1
  796. TextLabel.Text = "Scp-008 Infected Alive: "..homanyzombies
  797. end
  798. end
  799. end
  800. end
  801. if homanyzombies == 0 then
  802. alldied:Play()
  803. run:Stop()
  804. TextLabel.Text = "Every zombie died!"
  805. wait(4)
  806. ScreenGui:destroy()
  807. while true do
  808. wait(3)
  809. end
  810. end
  811. for i,v in pairs(workspace:GetChildren()) do
  812. if v.ClassName == "Model" then
  813. local humanoid = v:findFirstChildOfClass("Humanoid")
  814. local imzomb = v:findFirstChild("ImAZombie")
  815. local torso = v:findFirstChild("Torso")
  816. if humanoid and imzomb and torso then
  817. if humanoid.Health > 0.01 then
  818. humanoid.WalkToPoint = randomvictim.Position
  819. for i = 0,0.6 , 0.1 do
  820. humanoid.WalkToPoint = randomvictim.Position
  821. if torso:findFirstChild("Right Hip") then
  822. torso["Right Hip"].C1 = CFrame.new(0,0,0)
  823. end
  824. if torso:findFirstChild("Left Hip") then
  825. torso["Left Hip"].C1 = CFrame.new(0,0,0)
  826. end
  827. if torso:findFirstChild("Right Shoulder") then
  828. torso["Right Shoulder"].C1 = CFrame.new(0,0,0)
  829. end
  830. if torso:findFirstChild("Left Shoulder") then
  831. torso["Left Shoulder"].C1 = CFrame.new(0,0,0)
  832. end
  833. --
  834. if torso:findFirstChild("Right Hip") then
  835. 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)
  836. end
  837. if torso:findFirstChild("Left Hip") then
  838. 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)
  839. end
  840. if torso:findFirstChild("Right Shoulder") then
  841. 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)
  842. end
  843. if torso:findFirstChild("Left Shoulder") then
  844. 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)
  845. end
  846. game:GetService("RunService").RenderStepped:wait()
  847. end
  848. end
  849. end
  850. end
  851. end
  852. for i,v in pairs(workspace:GetChildren()) do
  853. if v.ClassName == "Model" then
  854. local humanoid = v:findFirstChildOfClass("Humanoid")
  855. local imzomb = v:findFirstChild("ImAZombie")
  856. local torso = v:findFirstChild("Torso")
  857. if humanoid and imzomb and torso then
  858. if humanoid.Health > 0.01 then
  859. humanoid.WalkToPoint = randomvictim.Position
  860. for i = 0,0.6 , 0.1 do
  861. humanoid.WalkToPoint = randomvictim.Position
  862. if torso:findFirstChild("Right Hip") then
  863. torso["Right Hip"].C1 = CFrame.new(0,0,0)
  864. end
  865. if torso:findFirstChild("Left Hip") then
  866. torso["Left Hip"].C1 = CFrame.new(0,0,0)
  867. end
  868. if torso:findFirstChild("Right Shoulder") then
  869. torso["Right Shoulder"].C1 = CFrame.new(0,0,0)
  870. end
  871. if torso:findFirstChild("Left Shoulder") then
  872. torso["Left Shoulder"].C1 = CFrame.new(0,0,0)
  873. end
  874. --
  875. if torso:findFirstChild("Right Hip") then
  876. 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)
  877. end
  878. if torso:findFirstChild("Left Hip") then
  879. 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)
  880. end
  881. if torso:findFirstChild("Right Shoulder") then
  882. 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)
  883. end
  884. if torso:findFirstChild("Left Shoulder") then
  885. 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)
  886. end
  887. game:GetService("RunService").RenderStepped:wait()
  888. end
  889. end
  890. end
  891. end
  892. end
  893. if Humanoid15.Health > 1 then
  894. if Model0.Parent == nil then
  895. Model0.Parent = workspace
  896. end
  897. end
  898. if alldied.Parent == nil then
  899. alldied.Parent = workspace
  900. end
  901. if ded1.Parent == nil then
  902. ded1.Parent = workspace
  903. end
  904. if ded2.Parent == nil then
  905. ded2.Parent = workspace
  906. end
  907. if ded3.Parent == nil then
  908. ded3.Parent = workspace
  909. end
  910. if ded4.Parent == nil then
  911. ded4.Parent = workspace
  912. end
  913. if spawnz.Parent == nil then
  914. spawnz.Parent = workspace
  915. end
  916. if attacc.Parent == nil then
  917. attacc.Parent = workspace
  918. end
  919. if attacc1.Parent == nil then
  920. attacc1.Parent = workspace
  921. end
  922. if run.Parent == nil then
  923. run.Parent = workspace
  924. end
  925. wait()
  926. end
Advertisement
Add Comment
Please, Sign In to add comment