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