reset234567890

Untitled

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