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