SHOW:
|
|
- or go back to the newest paste.
1 | targettedOn = false | |
2 | function onTouched(hit) | |
3 | hole:Play() | |
4 | hit.CanCollide=false | |
5 | wait(.5) | |
6 | hit.CanCollide = true | |
7 | debounce = true | |
8 | ||
9 | end | |
10 | ||
11 | dft = {} | |
12 | ||
13 | function GetPlayers() | |
14 | local c = game.Players:GetChildren() | |
15 | for i = 1, #c do | |
16 | table.insert(dft, c[i].Name) | |
17 | end | |
18 | end | |
19 | ||
20 | function Randomize() | |
21 | GetPlayers() | |
22 | local d = math.random(1, #dft) | |
23 | s = d | |
24 | ||
25 | ||
26 | ||
27 | end | |
28 | ||
29 | playertarg = game.Players.LocalPlayer | |
30 | chara = playertarg.Character | |
31 | Mouse = playertarg:GetMouse() | |
32 | targetted = nil | |
33 | New = function(Object, Parent, Name, Data) | |
34 | local Object = Instance.new(Object) | |
35 | for Index, Value in pairs(Data or {}) do | |
36 | Object[Index] = Value | |
37 | end | |
38 | Object.Parent = Parent | |
39 | Object.Name = Name | |
40 | return Object | |
41 | end | |
42 | ||
43 | ----------------------------------------- | |
44 | ||
45 | function LoadSnd(id,loop,vol,pit) | |
46 | local snd = New("Sound",chara,"Sound",{SoundId = "rbxassetid://"..id,Looped = loop,Volume = vol,Pitch = pit}) | |
47 | return snd | |
48 | end | |
49 | ||
50 | TargetSnd = LoadSnd(167191994,false,2.2,.8) | |
51 | ||
52 | ||
53 | function TargetSelect(person) | |
54 | local dd=coroutine.wrap(function() | |
55 | if targetted ~= person then | |
56 | targetted = person | |
57 | ||
58 | for i = 0,30,10 do | |
59 | wait(.05) | |
60 | crosshair.Size = UDim2.new(40-i,0,40-i,0) | |
61 | end | |
62 | end | |
63 | end) | |
64 | dd() | |
65 | end | |
66 | ||
67 | ||
68 | ||
69 | function LockOn() | |
70 | if Mouse.Target.Parent ~= chara and Mouse.Target.Parent.Parent ~= chara and Mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then | |
71 | TargetSelect(Mouse.Target.Parent) | |
72 | TargetSnd:Play() | |
73 | else end | |
74 | end | |
75 | ||
76 | ||
77 | ||
78 | ||
79 | ||
80 | ||
81 | ||
82 | ||
83 | ||
84 | ZomWait = false | |
85 | ZomWait2 = false | |
86 | ZomSyle = false | |
87 | ||
88 | ||
89 | Target1 =script.Parent.Name | |
90 | Target2 = game.Players[Target1] | |
91 | Target2.Character.archivable = true | |
92 | clone4 = Target2.Character:Clone() | |
93 | clone4.Parent = game.Lighting | |
94 | ||
95 | ||
96 | ||
97 | ||
98 | ||
99 | clone4.Torso["Left Shoulder"].DesiredAngle = -1.5 | |
100 | clone4.Torso["Right Shoulder"].DesiredAngle = 1.5 | |
101 | ||
102 | ||
103 | ||
104 | ||
105 | ||
106 | ||
107 | ||
108 | ||
109 | ||
110 | Glow1 = Color3.new(.5,0,0) | |
111 | Glow2 = Color3.new(0,0,0) | |
112 | ||
113 | GlowParticle = Instance.new("ParticleEmitter",clone4.Torso) | |
114 | GlowParticle.LightEmission = 0 | |
115 | GlowParticle.Color = ColorSequence.new(Glow1,Glow2) | |
116 | GlowParticle.Size = NumberSequence.new(2,0) | |
117 | GlowParticle.Texture = "http://www.roblox.com/asset/?id=118641183" | |
118 | GlowParticle.Transparency = NumberSequence.new(.3,.8) | |
119 | GlowParticle.LockedToPart = false | |
120 | GlowParticle.Lifetime = NumberRange.new(.5,.6) | |
121 | GlowParticle.Rate= 100 | |
122 | GlowParticle.Speed =NumberRange.new(6) | |
123 | GlowParticle.VelocitySpread = 360 | |
124 | ||
125 | ||
126 | ||
127 | for i,v in pairs(clone4:GetChildren()) do | |
128 | ||
129 | ||
130 | if v:IsA("ShirtGraphic") then | |
131 | v:Destroy() | |
132 | end | |
133 | ||
134 | if v:IsA("Pants") then | |
135 | v:Destroy() | |
136 | end | |
137 | if v:IsA("Shirt") then | |
138 | v:Destroy() | |
139 | end | |
140 | if v:IsA("Hat") then | |
141 | v:Destroy() | |
142 | ||
143 | end | |
144 | if v:IsA("Accessory") then | |
145 | v:Destroy() | |
146 | end | |
147 | ||
148 | end | |
149 | ||
150 | clone4["Body Colors"]:Destroy() | |
151 | clone4.Head.face.Texture = "rbxassetid://97880283" | |
152 | ||
153 | wait() | |
154 | Zombie = clone4:Clone() | |
155 | ||
156 | wait() | |
157 | ||
158 | clone4:Destroy() | |
159 | ||
160 | wait() | |
161 | ||
162 | ||
163 | Player=game:GetService("Players").LocalPlayer | |
164 | Character=Player.Character | |
165 | - | game.Workspace.Owlv.Humanoid.MaxHealth = math.huge |
165 | + | game.Workspace.RiasGremoryDxDBorN.Humanoid.MaxHealth = math.huge |
166 | ||
167 | ||
168 | ------------------------------------------------------- | |
169 | local Orbd = Instance.new("Part", Character) | |
170 | Orbd.Name = "Orbd" | |
171 | Orbd.Shape = Enum.PartType.Ball | |
172 | Orbd.CanCollide = false | |
173 | Orbd.BrickColor = BrickColor.new("Really black") | |
174 | Orbd.Transparency = 0 | |
175 | Orbd.Material = "Neon" | |
176 | Orbd.Size = Vector3.new(0.3, 0.3, 0.3) | |
177 | Orbd.TopSurface = Enum.SurfaceType.Smooth | |
178 | Orbd.BottomSurface = Enum.SurfaceType.Smooth | |
179 | ||
180 | local Weld = Instance.new("Weld", Orbd) | |
181 | Weld.Part0 = Character.Head | |
182 | Weld.Part1 = Orbd | |
183 | Weld.C1 = CFrame.new(-0.26, -0.24, 0.55) | |
184 | ||
185 | -------------------------------------------------------- | |
186 | local Orbvc = Instance.new("Part", Character) | |
187 | Orbvc.Name = "Orbvc" | |
188 | Orbvc.Shape = Enum.PartType.Ball | |
189 | Orbvc.CanCollide = false | |
190 | Orbvc.BrickColor = BrickColor.new("Really black") | |
191 | Orbvc.Transparency = 0 | |
192 | Orbvc.Material = "Neon" | |
193 | Orbvc.Size = Vector3.new(0.3, 0.3, 0.3) | |
194 | Orbvc.TopSurface = Enum.SurfaceType.Smooth | |
195 | Orbvc.BottomSurface = Enum.SurfaceType.Smooth | |
196 | ||
197 | local Weld = Instance.new("Weld", Orbvc) | |
198 | Weld.Part0 = Character.Head | |
199 | Weld.Part1 = Orbvc | |
200 | Weld.C1 = CFrame.new(0.26, -0.24, 0.55) | |
201 | --------------------------------------------------------- | |
202 | local Mask = Instance.new("Part", Character) | |
203 | Mask.Name = "Mask" | |
204 | Mask.CanCollide = false | |
205 | Mask.BrickColor = BrickColor.new("Mid gray") | |
206 | Mask.Transparency = 0 | |
207 | Mask.Material = "Plastic" | |
208 | Mask.Size = Vector3.new(0.1, 0.1, 0.1) | |
209 | Mask.TopSurface = Enum.SurfaceType.Smooth | |
210 | Mask.BottomSurface = Enum.SurfaceType.Smooth | |
211 | ||
212 | local Weld = Instance.new("Weld", Mask) | |
213 | Weld.Part0 = Character.Head | |
214 | Weld.Part1 = Mask | |
215 | Weld.C1 = CFrame.new(0, -0.1, 0.8) | |
216 | ||
217 | local M1 = Instance.new("SpecialMesh") | |
218 | M1.Parent = Mask | |
219 | M1.MeshId = "http://www.roblox.com/asset/?id=62679079" | |
220 | M1.Scale = Vector3.new( 1, 1, 2) | |
221 | ---------------------------------------------------------- | |
222 | local Hood = Instance.new("Part", Character) | |
223 | Hood.Name = "Hood" | |
224 | Hood.CanCollide = false | |
225 | Hood.BrickColor = BrickColor.new("Really black") | |
226 | Hood.Transparency = 0 | |
227 | Hood.Material = "Plastic" | |
228 | Hood.Size = Vector3.new(0.1, 0.1, 0.1) | |
229 | Hood.TopSurface = Enum.SurfaceType.Smooth | |
230 | Hood.BottomSurface = Enum.SurfaceType.Smooth | |
231 | ||
232 | local Weld = Instance.new("Weld", Hood) | |
233 | Weld.Part0 = Character.Head | |
234 | Weld.Part1 = Hood | |
235 | Weld.C1 = CFrame.new(0, -0.2, 0) | |
236 | ||
237 | local M2 = Instance.new("SpecialMesh") | |
238 | M2.Parent = Hood | |
239 | M2.MeshId = "http://www.roblox.com/asset/?id=83499032" | |
240 | M2.Scale = Vector3.new( 1, 1.2, 1.1) | |
241 | ------------------------------------------------------ | |
242 | ||
243 | p = game.Players.LocalPlayer | |
244 | char049 = p.Character | |
245 | ||
246 | char049.Shirt:Remove() | |
247 | for i,v in pairs(char049:GetChildren()) do if v:IsA("Pants") then v:Remove() end end | |
248 | wait()shirt = Instance.new("Shirt", char049) | |
249 | shirt.Name = "Shirt" | |
250 | pants = Instance.new("Pants", char049) | |
251 | pants.Name = "Pants" | |
252 | ||
253 | char049.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=648758131" | |
254 | char049.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=472675863" | |
255 | ------------------------------------------------- | |
256 | ---- Orbd,Orbvc,Mask,Hood | |
257 | ||
258 | --[[NIGHTOWLACE_WEAPONRY]]-- | |
259 | maincolor = game.Players.LocalPlayer.Character.Torso.BrickColor.Name | |
260 | secondcolor = "Really black" | |
261 | ||
262 | wait(1 / 60) | |
263 | Effects = { } | |
264 | local Player = game.Players.localPlayer | |
265 | local Character = Player.Character | |
266 | local Humanoid = Character.Humanoid | |
267 | local mouse = Player:GetMouse() | |
268 | local LeftArm = Character["Left Arm"] | |
269 | local RightArm = Character["Right Arm"] | |
270 | local LeftLeg = Character["Left Leg"] | |
271 | local RightLeg = Character["Right Leg"] | |
272 | local Head = Character.Head | |
273 | local Torso = Character.Torso | |
274 | local cam = game.Workspace.CurrentCamera | |
275 | local RootPart = Character.HumanoidRootPart | |
276 | local RootJoint = RootPart.RootJoint | |
277 | local equipped = false | |
278 | local attack = false | |
279 | local Anim = 'Idle' | |
280 | local idle = 0 | |
281 | local attacktype = 1 | |
282 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
283 | local velocity = RootPart.Velocity.y | |
284 | local sine = 0 | |
285 | local change = 1 | |
286 | local grabbed = false | |
287 | local cn = CFrame.new | |
288 | local mr = math.rad | |
289 | local angles = CFrame.Angles | |
290 | local ud = UDim2.new | |
291 | local c3 = Color3.new | |
292 | ||
293 | local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
294 | Humanoid.Animator:Destroy() | |
295 | Character.Animate:Destroy() | |
296 | ||
297 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
298 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
299 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
300 | ||
301 | RSH, LSH = nil, nil | |
302 | ||
303 | RW = Instance.new("Weld") | |
304 | LW = Instance.new("Weld") | |
305 | ||
306 | RH = Torso["Right Hip"] | |
307 | LH = Torso["Left Hip"] | |
308 | ||
309 | RSH = Torso["Right Shoulder"] | |
310 | LSH = Torso["Left Shoulder"] | |
311 | ||
312 | RSH.Parent = nil | |
313 | LSH.Parent = nil | |
314 | ||
315 | RW.Name = "RW" | |
316 | RW.Part0 = Torso | |
317 | RW.C0 = cn(1.5, 0.5, 0) | |
318 | RW.C1 = cn(0, 0.5, 0) | |
319 | RW.Part1 = RightArm | |
320 | RW.Parent = Torso | |
321 | ||
322 | LW.Name = "LW" | |
323 | LW.Part0 = Torso | |
324 | LW.C0 = cn(-1.5, 0.5, 0) | |
325 | LW.C1 = cn(0, 0.5, 0) | |
326 | LW.Part1 = LeftArm | |
327 | LW.Parent = Torso | |
328 | ||
329 | function clerp(a, b, t) | |
330 | local qa = { | |
331 | QuaternionFromCFrame(a) | |
332 | } | |
333 | local qb = { | |
334 | QuaternionFromCFrame(b) | |
335 | } | |
336 | local ax, ay, az = a.x, a.y, a.z | |
337 | local bx, by, bz = b.x, b.y, b.z | |
338 | local _t = 1 - t | |
339 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
340 | end | |
341 | ||
342 | function QuaternionFromCFrame(cf) | |
343 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
344 | local trace = m00 + m11 + m22 | |
345 | if trace > 0 then | |
346 | local s = math.sqrt(1 + trace) | |
347 | local recip = 0.5 / s | |
348 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
349 | else | |
350 | local i = 0 | |
351 | if m11 > m00 then | |
352 | i = 1 | |
353 | end | |
354 | if m22 > (i == 0 and m00 or m11) then | |
355 | i = 2 | |
356 | end | |
357 | if i == 0 then | |
358 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
359 | local recip = 0.5 / s | |
360 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
361 | elseif i == 1 then | |
362 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
363 | local recip = 0.5 / s | |
364 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
365 | elseif i == 2 then | |
366 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
367 | local recip = 0.5 / s | |
368 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
369 | end | |
370 | end | |
371 | end | |
372 | local naeeym = Instance.new("BillboardGui",Character) | |
373 | naeeym.Size = UDim2.new(0,100,0,40) | |
374 | naeeym.StudsOffset = Vector3.new(0,2,0) | |
375 | naeeym.Adornee = Character.Head | |
376 | local tecks = Instance.new("TextLabel",naeeym) | |
377 | tecks.BackgroundTransparency = 1 | |
378 | tecks.BorderSizePixel = 0 | |
379 | tecks.Text = "Plague-Doctor" | |
380 | tecks.Font = "Bodoni" | |
381 | tecks.FontSize = "Size24" | |
382 | tecks.TextStrokeTransparency = 0.5 | |
383 | tecks.TextColor3 = Color3.new(0,0,0) | |
384 | rrer = BrickColor.new("Institutional white") | |
385 | tecks.TextStrokeColor3 = rrer.Color | |
386 | tecks.Size = UDim2.new(1,0,0.5,0) | |
387 | local licht = Instance.new("PointLight",Character.Torso) | |
388 | licht.Color = tecks.TextStrokeColor3 | |
389 | licht.Range = 60 | |
390 | licht.Brightness = 1 | |
391 | licht.Enabled = false | |
392 | ||
393 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
394 | local xs, ys, zs = x + x, y + y, z + z | |
395 | local wx, wy, wz = w * xs, w * ys, w * zs | |
396 | local xx = x * xs | |
397 | local xy = x * ys | |
398 | local xz = x * zs | |
399 | local yy = y * ys | |
400 | local yz = y * zs | |
401 | local zz = z * zs | |
402 | 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)) | |
403 | end | |
404 | ||
405 | function QuaternionSlerp(a, b, t) | |
406 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
407 | local startInterp, finishInterp; | |
408 | if cosTheta >= 0.0001 then | |
409 | if (1 - cosTheta) > 0.0001 then | |
410 | local theta = math.acos(cosTheta) | |
411 | local invSinTheta = 1 / math.sin(theta) | |
412 | startInterp = math.sin((1 - t) * theta) * invSinTheta | |
413 | finishInterp = math.sin(t * theta) * invSinTheta | |
414 | else | |
415 | startInterp = 1 - t | |
416 | finishInterp = t | |
417 | end | |
418 | else | |
419 | if (1 + cosTheta) > 0.0001 then | |
420 | local theta = math.acos(-cosTheta) | |
421 | local invSinTheta = 1 / math.sin(theta) | |
422 | startInterp = math.sin((t - 1) * theta) * invSinTheta | |
423 | finishInterp = math.sin(t * theta) * invSinTheta | |
424 | else | |
425 | startInterp = t - 1 | |
426 | finishInterp = t | |
427 | end | |
428 | end | |
429 | 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 | |
430 | end | |
431 | ||
432 | function swait(num) | |
433 | if num == 0 or num == nil then | |
434 | game:service'RunService'.RenderStepped:wait(0) | |
435 | else | |
436 | for i = 0, num do | |
437 | game:service'RunService'.RenderStepped:wait(0) | |
438 | end | |
439 | end | |
440 | end | |
441 | ||
442 | local RbxUtility = LoadLibrary("RbxUtility") | |
443 | local Create = RbxUtility.Create | |
444 | ||
445 | function RemoveOutlines(part) | |
446 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
447 | end | |
448 | ||
449 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
450 | local Part = Create("Part"){ | |
451 | formFactor = FormFactor, | |
452 | Parent = Parent, | |
453 | Reflectance = Reflectance, | |
454 | Transparency = Transparency, | |
455 | CanCollide = false, | |
456 | Locked = true, | |
457 | BrickColor = BrickColor.new(tostring(BColor)), | |
458 | Name = Name, | |
459 | Size = Size, | |
460 | Material = Material, | |
461 | } | |
462 | RemoveOutlines(Part) | |
463 | return Part | |
464 | end | |
465 | ||
466 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
467 | local Msh = Create(Mesh){ | |
468 | Parent = Part, | |
469 | Offset = OffSet, | |
470 | Scale = Scale, | |
471 | } | |
472 | if Mesh == "SpecialMesh" then | |
473 | Msh.MeshType = MeshType | |
474 | Msh.MeshId = MeshId | |
475 | end | |
476 | return Msh | |
477 | end | |
478 | ||
479 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
480 | local Weld = Create("Weld"){ | |
481 | Parent = Parent, | |
482 | Part0 = Part0, | |
483 | Part1 = Part1, | |
484 | C0 = C0, | |
485 | C1 = C1, | |
486 | } | |
487 | return Weld | |
488 | end | |
489 | ||
490 | function rayCast(Position, Direction, Range, Ignore) | |
491 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
492 | end | |
493 | ||
494 | function CreateSound(id, par, vol, pit) | |
495 | coroutine.resume(coroutine.create(function() | |
496 | local sou = Instance.new("Sound", par or workspace) | |
497 | sou.Volume = vol | |
498 | sou.Pitch = pit or 1 | |
499 | sou.SoundId = id | |
500 | wait() | |
501 | sou:play() | |
502 | game:GetService("Debris"):AddItem(sou, 6) | |
503 | end)) | |
504 | end | |
505 | ||
506 | local function getclosest(obj, distance) | |
507 | local last, lastx = distance + 1 | |
508 | for i, v in pairs(workspace:GetChildren()) do | |
509 | if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then | |
510 | local t = v.Torso | |
511 | local dist = (t.Position - obj.Position).magnitude | |
512 | if dist <= distance then | |
513 | if dist < last then | |
514 | last = dist | |
515 | lastx = v | |
516 | end | |
517 | end | |
518 | end | |
519 | end | |
520 | return lastx | |
521 | end | |
522 | ||
523 | function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch) | |
524 | for i, v in pairs(hit:GetChildren()) do | |
525 | if v:IsA("Humanoid") and hit.Name ~= Character.Name then | |
526 | local find = v:FindFirstChild("Hitz") | |
527 | if not find then | |
528 | if v.Parent:findFirstChild("Head") then | |
529 | local BillG = Create("BillboardGui"){ | |
530 | Parent = v.Parent.Head, | |
531 | Size = UDim2.new(1, 0, 1, 0), | |
532 | Adornee = v.Parent.Head, | |
533 | StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)), | |
534 | } | |
535 | local TL = Create("TextLabel"){ | |
536 | Parent = BillG, | |
537 | Size = UDim2.new(3, 3, 3, 3), | |
538 | BackgroundTransparency = 1, | |
539 | Text = tostring(damage).."-", | |
540 | TextColor3 = Color1.Color, | |
541 | TextStrokeColor3 = Color2.Color, | |
542 | TextStrokeTransparency = 0, | |
543 | TextXAlignment = Enum.TextXAlignment.Center, | |
544 | TextYAlignment = Enum.TextYAlignment.Center, | |
545 | FontSize = Enum.FontSize.Size18, | |
546 | Font = "ArialBold", | |
547 | } | |
548 | coroutine.resume(coroutine.create(function() | |
549 | wait(1) | |
550 | for i = 0, 1, .1 do | |
551 | wait(.1) | |
552 | BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0) | |
553 | end | |
554 | BillG:Destroy() | |
555 | end)) | |
556 | end | |
557 | v.Health = v.Health - damage | |
558 | local bool = Create("BoolValue"){ | |
559 | Parent = v, | |
560 | Name = 'Hitz', | |
561 | } | |
562 | if HSound ~= nil and HPitch ~= nil then | |
563 | CreateSound(HSound, hit, 1, HPitch) | |
564 | end | |
565 | game:GetService("Debris"):AddItem(bool, cooldown) | |
566 | end | |
567 | end | |
568 | end | |
569 | end | |
570 | ||
571 | ||
572 | function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
573 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
574 | prt.Anchored = true | |
575 | prt.CFrame = cframe | |
576 | local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
577 | game:GetService("Debris"):AddItem(prt, 10) | |
578 | if Type == 1 or Type == nil then | |
579 | table.insert(Effects, { | |
580 | prt, | |
581 | "Block1", | |
582 | delay, | |
583 | x3, | |
584 | y3, | |
585 | z3, | |
586 | msh | |
587 | }) | |
588 | elseif Type == 2 then | |
589 | table.insert(Effects, { | |
590 | prt, | |
591 | "Block2", | |
592 | delay, | |
593 | x3, | |
594 | y3, | |
595 | z3, | |
596 | msh | |
597 | }) | |
598 | end | |
599 | end | |
600 | ||
601 | function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
602 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
603 | prt.Anchored = true | |
604 | prt.CFrame = cframe | |
605 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
606 | game:GetService("Debris"):AddItem(prt, 10) | |
607 | table.insert(Effects, { | |
608 | prt, | |
609 | "Cylinder", | |
610 | delay, | |
611 | x3, | |
612 | y3, | |
613 | z3, | |
614 | msh | |
615 | }) | |
616 | end | |
617 | ||
618 | function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
619 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
620 | prt.Anchored = true | |
621 | prt.CFrame = cframe * CFrame.new(x1, y1, z1) | |
622 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
623 | game:GetService("Debris"):AddItem(prt, 10) | |
624 | table.insert(Effects, { | |
625 | prt, | |
626 | "Cylinder", | |
627 | delay, | |
628 | x3, | |
629 | y3, | |
630 | z3, | |
631 | msh | |
632 | }) | |
633 | end | |
634 | ||
635 | function CylinderEffect(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("CylinderMesh", prt, "", "", 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 WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
653 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
654 | prt.Anchored = true | |
655 | prt.CFrame = cframe | |
656 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "20329976", 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 SpecialEffect(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("SpecialMesh", prt, "FileMesh", "24388358", 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 BreakEffect(brickcolor, cframe, x1, y1, z1) | |
687 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
688 | prt.Anchored = true | |
689 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
690 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
691 | local num = math.random(10, 50) / 1000 | |
692 | game:GetService("Debris"):AddItem(prt, 10) | |
693 | table.insert(Effects, { | |
694 | prt, | |
695 | "Shatter", | |
696 | num, | |
697 | prt.CFrame, | |
698 | math.random() - math.random(), | |
699 | 0, | |
700 | math.random(50, 100) / 100 | |
701 | }) | |
702 | end | |
703 | ||
704 | ||
705 | ||
706 | ||
707 | for i = 0, 1, 0.05 do | |
708 | swait() | |
709 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1) | |
710 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1) | |
711 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1) | |
712 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
713 | if Torsovelocity > 2 then | |
714 | 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) | |
715 | 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) | |
716 | 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) | |
717 | elseif Torsovelocity < 1 then | |
718 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1) | |
719 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1) | |
720 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1) | |
721 | end | |
722 | end | |
723 | attack = false | |
724 | ||
725 | ||
726 | ||
727 | game:GetService'RunService'.Stepped:connect(function() | |
728 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
729 | velocity = RootPart.Velocity.y | |
730 | sine = sine + change | |
731 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
732 | if equipped == true or equipped == false then | |
733 | if RootPart.Velocity.y > 1 and hit == nil then | |
734 | Anim = "Jump" | |
735 | if attack == false then | |
736 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1) | |
737 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1) | |
738 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(30)), .1) | |
739 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-30)), .1) | |
740 | RH.C0 = clerp(RH.C0, cn(1, -.9, -.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), .1) | |
741 | LH.C0 = clerp(LH.C0, cn(-1, -.7, -.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), .1) | |
742 | end | |
743 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
744 | Anim = "Fall" | |
745 | if attack == false then | |
746 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .1) | |
747 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1) | |
748 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), .1) | |
749 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), .1) | |
750 | RH.C0 = clerp(RH.C0, cn(1, -1, -.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1) | |
751 | LH.C0 = clerp(LH.C0, cn(-1, -.8, -.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1) | |
752 | end | |
753 | elseif Torsovelocity < 1 and hit ~= nil then | |
754 | Anim = "Idle" | |
755 | if attack == false then | |
756 | change = 1 | |
757 | 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) | |
758 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), .1) | |
759 | 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) | |
760 | 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) | |
761 | 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) | |
762 | 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) | |
763 | end | |
764 | elseif Torsovelocity > 2 and hit ~= nil then | |
765 | Anim = "Walk" | |
766 | if attack == false then | |
767 | 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) | |
768 | 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) | |
769 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(4)), .2) | |
770 | 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) | |
771 | 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) | |
772 | 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) | |
773 | end | |
774 | end | |
775 | end | |
776 | if #Effects > 0 then | |
777 | for e = 1, #Effects do | |
778 | if Effects[e] ~= nil then | |
779 | local Thing = Effects[e] | |
780 | if Thing ~= nil then | |
781 | local Part = Thing[1] | |
782 | local Mode = Thing[2] | |
783 | local Delay = Thing[3] | |
784 | local IncX = Thing[4] | |
785 | local IncY = Thing[5] | |
786 | local IncZ = Thing[6] | |
787 | if Thing[1].Transparency <= 1 then | |
788 | if Thing[2] == "Block1" then | |
789 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
790 | local Mesh = Thing[1].Mesh | |
791 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
792 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
793 | elseif Thing[2] == "Block2" then | |
794 | Thing[1].CFrame = Thing[1].CFrame | |
795 | local Mesh = Thing[7] | |
796 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
797 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
798 | elseif Thing[2] == "Cylinder" then | |
799 | local Mesh = Thing[1].Mesh | |
800 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
801 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
802 | elseif Thing[2] == "Blood" then | |
803 | local Mesh = Thing[7] | |
804 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0) | |
805 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
806 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
807 | elseif Thing[2] == "Elec" then | |
808 | local Mesh = Thing[1].Mesh | |
809 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
810 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
811 | elseif Thing[2] == "Disappear" then | |
812 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
813 | elseif Thing[2] == "Shatter" then | |
814 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
815 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
816 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
817 | Thing[6] = Thing[6] + Thing[5] | |
818 | end | |
819 | else | |
820 | Part.Parent = nil | |
821 | table.remove(Effects, e) | |
822 | end | |
823 | end | |
824 | end | |
825 | end | |
826 | end | |
827 | end) | |
828 | ||
829 | ||
830 | local lp = game.Players.LocalPlayer | |
831 | local chr = lp.Character | |
832 | local mouseV2 = lp:GetMouse() | |
833 | local euler = CFrame.fromEulerAnglesXYZ | |
834 | local rad = math.rad | |
835 | local trso = chr.Torso | |
836 | ||
837 | ||
838 | ||
839 | ||
840 | ||
841 | ||
842 | ||
843 | ||
844 | ||
845 | ||
846 | ||
847 | ||
848 | ||
849 | ||
850 | ||
851 | ||
852 | ||
853 | ||
854 | ||
855 | ||
856 | ||
857 | ||
858 | ||
859 | ||
860 | ||
861 | hum = chr.Humanoid | |
862 | ||
863 | ||
864 | ||
865 | function CreateMesh(parent, id, x, y, z, texture) | |
866 | local m=Instance.new("SpecialMesh", parent) | |
867 | m.MeshType = "FileMesh" | |
868 | m.MeshId="http://www.roblox.com/asset/?id="..id | |
869 | if texture ~= nil then | |
870 | m.TextureId="http://www.roblox.com/asset/?id="..texture | |
871 | end | |
872 | m.Scale = Vector3.new(x,y,z) | |
873 | end | |
874 | ||
875 | ||
876 | ||
877 | Hat=function() | |
878 | hat = Instance.new("Part", chr) | |
879 | hat.Transparency = 1 | |
880 | hat.Name = "Top hat" | |
881 | hat.Locked = true | |
882 | hat.BrickColor = BrickColor.new("Really black") | |
883 | hat.CanCollide=true | |
884 | hat.Size=Vector3.new(1,1,1) | |
885 | hatw = Instance.new("Weld",hat) | |
886 | hatw.Part0=hat | |
887 | hatw.Part1=chr['Head'] | |
888 | hatw.C0=CFrame.new(0,-1.7,0) | |
889 | hatw.C1=euler(rad(0),rad(0),rad(0)) | |
890 | end | |
891 | ||
892 | Hat() | |
893 | ||
894 | ||
895 | ||
896 | function Name(msg) | |
897 | if hat.Parent then | |
898 | pcall(function() | |
899 | local Gui = Instance.new('BillboardGui', hat) | |
900 | Gui.ExtentsOffset = Vector3.new(0,1.5,0) | |
901 | Gui.Size = UDim2.new(0,200,0,300) | |
902 | local Frame = Instance.new('Frame',Gui) | |
903 | Frame.BackgroundTransparency = 1 | |
904 | Frame.Size = UDim2.new(1,0,1,0) | |
905 | local Txt = Instance.new('TextLabel',Frame) | |
906 | Txt.BackgroundTransparency = 1 | |
907 | Txt.Size = UDim2.new(1,0,1,0) | |
908 | Txt.Font = 'ArialBold' | |
909 | Txt.FontSize = 'Size24' | |
910 | Txt.Text = msg | |
911 | Txt.TextColor3 = BrickColor.new("Really black").Color | |
912 | Txt.TextStrokeColor3 = Color3.new(1,0,0) | |
913 | Txt.TextStrokeTransparency = 0 | |
914 | Txt.TextWrapped = true | |
915 | Txt.TextScaled = false | |
916 | end) | |
917 | else | |
918 | end | |
919 | end | |
920 | ||
921 | function Chat(msg) -- Credit to jillmiles1, kthxbye | |
922 | if hat.Parent then | |
923 | pcall(function() | |
924 | if hat:FindFirstChild("Fazbear Chat Gui") then | |
925 | hat['Fazbear Chat Gui']:destroy() | |
926 | end | |
927 | local Gui = Instance.new('BillboardGui', hat) | |
928 | Gui.Name = "Fazbear Chat Gui" | |
929 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
930 | Gui.Size = UDim2.new(0,200,0,300) | |
931 | local Frame = Instance.new('Frame',Gui) | |
932 | Frame.BackgroundTransparency = 1 | |
933 | Frame.Size = UDim2.new(1,0,1,0) | |
934 | local Txt = Instance.new('TextLabel',Frame) | |
935 | Txt.BackgroundTransparency = 1 | |
936 | Txt.Size = UDim2.new(1,0,1,0) | |
937 | Txt.Font = 'ArialBold' | |
938 | Txt.Name = "ChatGui" | |
939 | Txt.FontSize = 'Size24' | |
940 | Txt.Text = '' | |
941 | Txt.TextColor3 = BrickColor.new("Really black").Color | |
942 | Txt.TextStrokeColor3 = Color3.new(1,1,1) | |
943 | Txt.TextStrokeTransparency = .5 | |
944 | Txt.TextWrapped = true | |
945 | Txt.TextScaled = false | |
946 | ||
947 | delay(wait(),function() | |
948 | for v = 1, #msg do | |
949 | Txt.Text=string.sub(msg,1,v) | |
950 | Gui.ExtentsOffset = Vector3.new(.1,2.9,0) | |
951 | wait(.009) | |
952 | Gui.ExtentsOffset = Vector3.new(0,3,-0.1) | |
953 | wait(.009) | |
954 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
955 | end; | |
956 | ||
957 | ||
958 | ||
959 | Gui.ExtentsOffset = Vector3.new(.1,2.9,0) | |
960 | wait(.03) | |
961 | Gui.ExtentsOffset = Vector3.new(0,3,-0.1) | |
962 | wait(.03) | |
963 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
964 | wait(.03) | |
965 | Gui.ExtentsOffset = Vector3.new(.1,2.9,0) | |
966 | wait(.03) | |
967 | Gui.ExtentsOffset = Vector3.new(0,3,-0.1) | |
968 | wait(.03) | |
969 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
970 | wait(.03) | |
971 | Gui.ExtentsOffset = Vector3.new(.1,2.9,0) | |
972 | wait(.03) | |
973 | Gui.ExtentsOffset = Vector3.new(0,3,-0.1) | |
974 | wait(.03) | |
975 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
976 | wait(.03) | |
977 | Gui.ExtentsOffset = Vector3.new(.1,2.9,0) | |
978 | wait(.03) | |
979 | Gui.ExtentsOffset = Vector3.new(0,3,-0.1) | |
980 | wait(.03) | |
981 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
982 | wait(.03) | |
983 | Gui.ExtentsOffset = Vector3.new(.1,2.9,0) | |
984 | wait(.03) | |
985 | Gui.ExtentsOffset = Vector3.new(0,3,-0.1) | |
986 | wait(.03) | |
987 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
988 | wait(.03) | |
989 | Gui.ExtentsOffset = Vector3.new(.1,2.9,0) | |
990 | wait(.03) | |
991 | Gui.ExtentsOffset = Vector3.new(0,3,-0.1) | |
992 | wait(.03) | |
993 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
994 | wait(.03) | |
995 | ||
996 | Txt.TextStrokeTransparency = .6 | |
997 | wait() | |
998 | Txt.TextStrokeTransparency = .7 | |
999 | wait() | |
1000 | Txt.TextStrokeTransparency = .8 | |
1001 | wait() | |
1002 | Txt.TextStrokeTransparency = .9 | |
1003 | wait() | |
1004 | Txt.TextStrokeTransparency = 1 | |
1005 | wait() | |
1006 | ||
1007 | for v = 1, #Txt.Text do | |
1008 | Txt.Text=string.sub(msg,-1,v) | |
1009 | ||
1010 | ||
1011 | ||
1012 | ||
1013 | ||
1014 | ||
1015 | ||
1016 | end; | |
1017 | Gui:remove() | |
1018 | end) | |
1019 | end) | |
1020 | else | |
1021 | end | |
1022 | end | |
1023 | ||
1024 | ||
1025 | ||
1026 | ||
1027 | function PlaySound(id, pitch, looped) | |
1028 | epicsound = Instance.new("Sound") | |
1029 | epicsound.Name = "FazbearSound" | |
1030 | epicsound.SoundId = "rbxassetid://"..id | |
1031 | epicsound.Volume = 2 | |
1032 | epicsound.Pitch = pitch | |
1033 | if looped == nil then | |
1034 | looped = true | |
1035 | else | |
1036 | looped = looped | |
1037 | end | |
1038 | wait() | |
1039 | epicsound.Looped = looped | |
1040 | epicsound.Parent = workspace | |
1041 | if epicsound.SoundId=="rbxassetid://tt" then -- TELL ME, TELL ME, WHERE DA FREAKS AT! | |
1042 | epicsound.SoundId="rbxassetid://181158033" | |
1043 | elseif epicsound.SoundId=="rbxassetid://fabulous" then -- FA-FA-FABULOUS! | |
1044 | epicsound.SoundId="rbxassetid://191819419" | |
1045 | elseif epicsound.SoundId=="rbxassetid://ufdb" then -- ultimate final death battle(fairy tail XD) | |
1046 | epicsound.SoundId="rbxassetid://153085393" | |
1047 | elseif epicsound.SoundId=="rbxassetid://nnm" then | |
1048 | epicsound.SoundId="rbxassetid://210189234" | |
1049 | elseif epicsound.SoundId=="rbxassetid://tun" then -- tunak tunak tun | |
1050 | epicsound.SoundId="rbxassetid://162682002" | |
1051 | elseif epicsound.SoundId=="rbxassetid://zelda" then | |
1052 | epicsound.SoundId="rbxassetid://158215156" | |
1053 | elseif epicsound.SoundId=="rbxassetid://cc" then | |
1054 | epicsound.SoundId="rbxassetid://177080835" | |
1055 | end | |
1056 | es=epicsound:clone() | |
1057 | es:Stop() | |
1058 | es.Parent = chr | |
1059 | wait() | |
1060 | es:Play() | |
1061 | end | |
1062 | ||
1063 | ||
1064 | ||
1065 | ||
1066 | lp.Chatted:connect(function(msg) | |
1067 | Chat(msg) | |
1068 | end) | |
1069 | ||
1070 | goldie=true | |
1071 | ||
1072 | ||
1073 | function StopMusic() | |
1074 | if chr:FindFirstChild("FazbearSound") then | |
1075 | if chr.FazbearSound.ClassName == "Sound" then | |
1076 | chr.FazbearSound:Stop() | |
1077 | wait() | |
1078 | chr.FazbearSound:Destroy() | |
1079 | end | |
1080 | end | |
1081 | end | |
1082 | ||
1083 | Name("") | |
1084 | ||
1085 | ||
1086 | mouseV2.KeyDown:connect(function(key) | |
1087 | if key == "g" then | |
1088 | if goldie==false then | |
1089 | goldie=true | |
1090 | ||
1091 | elseif goldie==true then | |
1092 | goldie=false | |
1093 | ||
1094 | end | |
1095 | elseif key == "j" then -- Plays a song | |
1096 | StopMusic() | |
1097 | PlaySound(150456585, 1.1, true) | |
1098 | elseif key == "k" then -- Plays a song | |
1099 | StopMusic() | |
1100 | PlaySound(260170583, 1, true) | |
1101 | Chat("Heh...") | |
1102 | elseif key == "p" then -- Stops any sound(s) playing from your torso | |
1103 | StopMusic() | |
1104 | Chat("All sounds stopped!") | |
1105 | end | |
1106 | end) | |
1107 | ||
1108 | ||
1109 | ||
1110 | hum.Died:connect(function() | |
1111 | es.Pitch = 10 | |
1112 | wait() | |
1113 | es:Pause() | |
1114 | es:Stop() | |
1115 | es.Name = "Ded" | |
1116 | wait() | |
1117 | es:Destroy() | |
1118 | end) | |
1119 | ||
1120 | ||
1121 | ||
1122 | ||
1123 | ||
1124 | ||
1125 | p = (game.Players.LocalPlayer.Name) | |
1126 | char = game.Players.LocalPlayer.Character | |
1127 | ||
1128 | ||
1129 | local player = game.Players.LocalPlayer | |
1130 | repeat wait() until player.Character.Humanoid | |
1131 | local humanoid = player.Character.Humanoid | |
1132 | local mouse = player:GetMouse() | |
1133 | ||
1134 | for i,v in pairs(char:GetChildren()) do | |
1135 | if v.ClassName == 'Accessory' then | |
1136 | v:Destroy() | |
1137 | end | |
1138 | end | |
1139 | ||
1140 | ScarySound1 = Instance.new("Sound") | |
1141 | ScarySound1.Parent = char.Torso | |
1142 | ScarySound1.SoundId = "rbxassetid://161964276" | |
1143 | ScarySound1.Volume = .5 | |
1144 | ||
1145 | ScarySound2 = Instance.new("Sound") | |
1146 | ScarySound2.Parent = char.Torso | |
1147 | ScarySound2.SoundId = "rbxassetid://669623416" | |
1148 | ScarySound2.Volume = 2 | |
1149 | ScarySound2.Looped = true | |
1150 | ||
1151 | ScarySound3 = Instance.new("Sound") | |
1152 | ScarySound3.Parent = char.Torso | |
1153 | ScarySound3.SoundId = "rbxassetid://483810543" | |
1154 | ScarySound3.Volume = 0.3 | |
1155 | ScarySound3.Looped = true | |
1156 | ||
1157 | ScarySound4 = Instance.new("Sound") | |
1158 | ScarySound4.Parent = char.Torso | |
1159 | ScarySound4.SoundId = "rbxassetid://177113856" | |
1160 | ScarySound4.Volume = 2 | |
1161 | ScarySound4.Looped = false | |
1162 | ||
1163 | Punch = Instance.new("Sound") | |
1164 | Punch.Parent = char.Torso | |
1165 | Punch.SoundId = "rbxassetid://146938349" | |
1166 | Punch.Volume = 1.5 | |
1167 | Punch.Looped = false | |
1168 | Punch.Pitch = 0.8 | |
1169 | ||
1170 | hole = Instance.new("Sound") | |
1171 | hole.Parent = char.Torso | |
1172 | hole.SoundId = "rbxassetid://224339308" | |
1173 | hole.Volume = .3 | |
1174 | ||
1175 | ||
1176 | game.Players.LocalPlayer.Character.Sound:Destroy() | |
1177 | ||
1178 | function Normal() | |
1179 | ScarySound3:Play() | |
1180 | char.Humanoid.WalkSpeed = 18 | |
1181 | char.Head.face.Texture = "rbxassetid://0" | |
1182 | char["Left Leg"].Transparency = 0 | |
1183 | char["Head"].Transparency = 0 | |
1184 | char["Right Leg"].Transparency = 0 | |
1185 | char["Torso"].Transparency = 0 | |
1186 | char["Left Arm"].Transparency = 0 | |
1187 | char["Right Arm"].Transparency = 0 | |
1188 | end | |
1189 | ||
1190 | function GoInvisible() | |
1191 | ScarySound3:Stop() | |
1192 | ScarySound1:Stop() | |
1193 | char.Humanoid.WalkSpeed = 120 | |
1194 | char.Head.face.Transparency = 1 | |
1195 | char["Left Leg"].Transparency = 0.5 | |
1196 | char["Head"].Transparency = 0.5 | |
1197 | char["Right Leg"].Transparency = 0.5 | |
1198 | char["Torso"].Transparency = 0.5 | |
1199 | char["Left Arm"].Transparency = 0.5 | |
1200 | char["Right Arm"].Transparency = 0.5 | |
1201 | Hood.Transparency = 0.5 | |
1202 | Mask.Transparency = 0.5 | |
1203 | Orbvc.Transparency = 0.5 | |
1204 | Orbd.Transparency = 0.5 | |
1205 | Orbvc.BrickColor = BrickColor.new("Really red") | |
1206 | Orbd.BrickColor = BrickColor.new("Really red") | |
1207 | wait(0.001) | |
1208 | char["Left Leg"].Transparency = 0.6 | |
1209 | char["Head"].Transparency = 0.6 | |
1210 | char["Right Leg"].Transparency = 0.6 | |
1211 | char["Torso"].Transparency = 0.6 | |
1212 | char["Left Arm"].Transparency = 0.6 | |
1213 | char["Right Arm"].Transparency = 0.6 | |
1214 | Hood.Transparency = 0.6 | |
1215 | Mask.Transparency = 0.6 | |
1216 | Orbvc.Transparency = 0.6 | |
1217 | Orbd.Transparency = 0.6 | |
1218 | wait(0.001) | |
1219 | char["Left Leg"].Transparency = 0.7 | |
1220 | char["Head"].Transparency = 0.7 | |
1221 | char["Right Leg"].Transparency = 0.7 | |
1222 | char["Torso"].Transparency = 0.7 | |
1223 | char["Left Arm"].Transparency = 0.7 | |
1224 | char["Right Arm"].Transparency = 0.7 | |
1225 | Hood.Transparency = 0.7 | |
1226 | Mask.Transparency = 0.7 | |
1227 | Orbvc.Transparency = 0.7 | |
1228 | Orbd.Transparency = 0.7 | |
1229 | wait(0.001) | |
1230 | char["Left Leg"].Transparency = 1 | |
1231 | char["Head"].Transparency = 1 | |
1232 | char["Right Leg"].Transparency = 1 | |
1233 | char["Torso"].Transparency = 1 | |
1234 | char["Left Arm"].Transparency = 1 | |
1235 | char["Right Arm"].Transparency = 1 | |
1236 | Hood.Transparency = 1 | |
1237 | Mask.Transparency = 1 | |
1238 | Orbvc.Transparency = 1 | |
1239 | Orbd.Transparency = 1 | |
1240 | end | |
1241 | ||
1242 | function GoVisible() | |
1243 | ScarySound3:Play() | |
1244 | char.Humanoid.WalkSpeed = 16 | |
1245 | ScarySound1:Play() | |
1246 | char.Head.face.Transparency = 0 | |
1247 | Orbvc.BrickColor = BrickColor.new("Really black") | |
1248 | Orbd.BrickColor = BrickColor.new("Really black") | |
1249 | char["Left Leg"].Transparency = 0.9 | |
1250 | char["Head"].Transparency = 0.9 | |
1251 | char["Right Leg"].Transparency = 9 | |
1252 | char["Torso"].Transparency = 0.9 | |
1253 | char["Left Arm"].Transparency = 0.9 | |
1254 | char["Right Arm"].Transparency = 0.9 | |
1255 | Hood.Transparency = 0.9 | |
1256 | Mask.Transparency = 0.9 | |
1257 | Orbvc.Transparency = 0.9 | |
1258 | Orbd.Transparency = 0.9 | |
1259 | wait(0.001) | |
1260 | char["Left Leg"].Transparency = 0.7 | |
1261 | char["Head"].Transparency = 0.7 | |
1262 | char["Right Leg"].Transparency = 0.7 | |
1263 | char["Torso"].Transparency = 0.7 | |
1264 | char["Left Arm"].Transparency = 0.7 | |
1265 | char["Right Arm"].Transparency = 0.7 | |
1266 | Hood.Transparency = 0.7 | |
1267 | Mask.Transparency = 0.7 | |
1268 | Orbvc.Transparency = 0.7 | |
1269 | Orbd.Transparency = 0.7 | |
1270 | wait(0.001) | |
1271 | char["Left Leg"].Transparency = 0 | |
1272 | char["Head"].Transparency = 0 | |
1273 | char["Right Leg"].Transparency = 0 | |
1274 | char["Torso"].Transparency = 0 | |
1275 | char["Left Arm"].Transparency = 0 | |
1276 | char["Right Arm"].Transparency = 0 | |
1277 | Hood.Transparency = 0 | |
1278 | Mask.Transparency = 0 | |
1279 | Orbvc.Transparency = 0 | |
1280 | Orbd.Transparency = 0 | |
1281 | end | |
1282 | ||
1283 | Normal() | |
1284 | ||
1285 | Music1 = New("Sound",chara,"Music",{SoundId = "rbxassetid://276148629",Volume = math.huge,Looped = true}) | |
1286 | Music1.Pitch = 1.2 | |
1287 | musicon = false | |
1288 | mouse.KeyDown:connect(function(key) | |
1289 | if key == "z" then | |
1290 | if char.Head.Transparency == 0 then | |
1291 | GoInvisible() | |
1292 | ||
1293 | elseif char.Head.Transparency == 1 then | |
1294 | GoVisible() | |
1295 | Chat("...") | |
1296 | end | |
1297 | end end) | |
1298 | ||
1299 | mouse.KeyDown:connect(function(key) | |
1300 | if key == "x" then | |
1301 | if ScarySound2.IsPlaying == false then | |
1302 | ScarySound2:Play() | |
1303 | elseif ScarySound2.IsPlaying == true then | |
1304 | ScarySound2:Stop() | |
1305 | ||
1306 | ||
1307 | end | |
1308 | end end) | |
1309 | ||
1310 | mouse.KeyDown:connect(function(key) | |
1311 | if key == "r" then | |
1312 | if ScarySound4.IsPlaying == false then | |
1313 | ScarySound4:Play() | |
1314 | Chat("Hello...") | |
1315 | wait(1.5) | |
1316 | Chat("greetings...") | |
1317 | wait(2) | |
1318 | Chat("o my...") | |
1319 | wait(1.5) | |
1320 | Chat("he have another victim of the disease") | |
1321 | wait(3) | |
1322 | Chat("you are not a doctor...") | |
1323 | wait(2) | |
1324 | Chat("i sense the the disease in you") | |
1325 | wait(2.3) | |
1326 | Chat("i am the cure...") | |
1327 | wait(2) | |
1328 | Chat("do not be afraid") | |
1329 | wait(2) | |
1330 | Chat("i am the cure") | |
1331 | wait(2) | |
1332 | Chat("stop resisting...") | |
1333 | wait(1.8) | |
1334 | Chat("i am here to cure you...") | |
1335 | ||
1336 | ||
1337 | ||
1338 | ||
1339 | end | |
1340 | end end) | |
1341 | mouse.KeyDown:connect(function(key) | |
1342 | if key == "u" then | |
1343 | for _, z in pairs(workspace:GetChildren()) do | |
1344 | ||
1345 | if z.Name == "Zombie" then | |
1346 | Chat("Clean...") | |
1347 | z:Destroy() | |
1348 | ||
1349 | end | |
1350 | end | |
1351 | end | |
1352 | end) | |
1353 | ||
1354 | ||
1355 | mouse.KeyDown:connect(function(key) | |
1356 | if key == "m" then | |
1357 | if musicon == true then | |
1358 | Music1:Stop() | |
1359 | musicon = false | |
1360 | Chat("Auto Target: Deactivated") | |
1361 | else | |
1362 | Chat("Auto Target: Activated") | |
1363 | Music1:Play() | |
1364 | musicon = true | |
1365 | ||
1366 | end | |
1367 | end | |
1368 | end) | |
1369 | ||
1370 | Virus = true | |
1371 | ||
1372 | ||
1373 | mouse.KeyDown:connect(function(key) | |
1374 | if key == "v" then | |
1375 | if Virus == true then | |
1376 | Chat("Infection: Deactivated") | |
1377 | Virus = false | |
1378 | ||
1379 | else | |
1380 | ||
1381 | Virus = true | |
1382 | Chat("Infection: Activated") | |
1383 | end | |
1384 | end | |
1385 | end) | |
1386 | ||
1387 | ||
1388 | ||
1389 | mouse.KeyDown:connect(function(key) | |
1390 | if key == "h" then | |
1391 | for _, z in pairs(workspace:GetChildren()) do | |
1392 | ||
1393 | if z.Name == "Zombie" then | |
1394 | ||
1395 | ||
1396 | ||
1397 | end | |
1398 | end | |
1399 | end | |
1400 | end) | |
1401 | ||
1402 | ||
1403 | ||
1404 | ||
1405 | mouse.KeyDown:connect(function(key) | |
1406 | if key == "f" then | |
1407 | if targetted == nil then | |
1408 | targetted = char | |
1409 | else | |
1410 | ||
1411 | targetted = nil | |
1412 | end | |
1413 | ||
1414 | ||
1415 | end | |
1416 | end) | |
1417 | ||
1418 | ||
1419 | ||
1420 | ||
1421 | ||
1422 | function SpawnZombie() | |
1423 | ||
1424 | ||
1425 | if ZomWait == false and ZomWait2 == false then | |
1426 | Zombie.Parent = game.Lighting | |
1427 | Zombie2 = Zombie:Clone() | |
1428 | Zombie3 = Zombie:Clone() | |
1429 | ||
1430 | Zombie:Destroy() | |
1431 | ---------------------------- | |
1432 | ZomWait2 = true | |
1433 | wait() | |
1434 | ZomWait = true | |
1435 | end | |
1436 | ||
1437 | ||
1438 | ||
1439 | if ZomWait == true and ZomWait2 == false then | |
1440 | Zombie3.Parent = game.Lighting | |
1441 | Zombie2 = Zombie3:Clone() | |
1442 | Zombie = Zombie3:Clone() | |
1443 | ||
1444 | Zombie3:Destroy() | |
1445 | ---------------------------- | |
1446 | ZomWait2 = true | |
1447 | wait() | |
1448 | ZomWait = false | |
1449 | end | |
1450 | Zombie2.Parent = game.Workspace | |
1451 | ||
1452 | end | |
1453 | ||
1454 | ||
1455 | ||
1456 | ||
1457 | function ResetZombie() | |
1458 | wait(4) | |
1459 | ZomSyle = false | |
1460 | ZomWait2 = false | |
1461 | ||
1462 | end | |
1463 | waitV2 = false | |
1464 | function onTouch(part) | |
1465 | ||
1466 | local humanoid = part.Parent:findFirstChild("Humanoid") | |
1467 | local model = part.Parent | |
1468 | local torso = part.Parent:FindFirstChild("Torso") | |
1469 | local head = part.Parent:findFirstChild("Head") | |
1470 | local leftleg = part.Parent:findFirstChild("Left Leg") | |
1471 | local rightleg = part.Parent:findFirstChild("Right Leg") | |
1472 | local leftarm = part.Parent:findFirstChild("Left Arm") | |
1473 | local rightarm = part.Parent:findFirstChild("Right Arm") | |
1474 | if model.Name == 'Zombie' == false and model.Name == ''..p == false and Virus == true and waitV2 == false then | |
1475 | waitV2 = true | |
1476 | wait(.2) | |
1477 | waitV2 = false | |
1478 | ||
1479 | ||
1480 | ||
1481 | ||
1482 | if (humanoid ~=nil) then | |
1483 | ||
1484 | --humanoid.Health = 0 | |
1485 | ||
1486 | ||
1487 | ---------------------------R15------------------------------------------------- | |
1488 | if part.Parent:FindFirstChild("Torso") == nil and model.Humanoid.Health == 0 == false then | |
1489 | local torso2 = part.Parent:FindFirstChild("UpperTorso") | |
1490 | torso2:Destroy() | |
1491 | end | |
1492 | ------------------------------------------------------------------------------- | |
1493 | ||
1494 | ||
1495 | ||
1496 | humanoid.Sit = true | |
1497 | wait(0.5) | |
1498 | torso.Anchored = true | |
1499 | wait(.3) | |
1500 | zomchar = humanoid.Parent | |
1501 | e=Instance.new('Part', model) | |
1502 | e.Size = Vector3.new(2.25,2.25,2.25) | |
1503 | e.Transparency = 1 | |
1504 | e.Anchored = true | |
1505 | e.CFrame = CFrame.new(torso.Position) | |
1506 | ||
1507 | ||
1508 | ||
1509 | wait(1) | |
1510 | torso:Destroy() | |
1511 | q=Instance.new('ParticleEmitter', e) | |
1512 | q.Size = NumberSequence.new(2,.0) | |
1513 | q.Rate = 500 | |
1514 | q.Transparency = NumberSequence.new(0,1) | |
1515 | q.Speed = NumberRange.new(7) | |
1516 | q.VelocitySpread = 100 | |
1517 | q.Lifetime = NumberRange.new(0.1,1) | |
1518 | q.Texture = 'rbxassetid://164417280' | |
1519 | wait(.1) | |
1520 | torso.Anchored = true | |
1521 | rightleg.Anchored = true | |
1522 | leftleg.Anchored = true | |
1523 | rightarm.Anchored = true | |
1524 | leftarm.Anchored = true | |
1525 | ded = Instance.new("Sound") | |
1526 | ded.Parent = e | |
1527 | ded.SoundId = "rbxassetid://130976109" | |
1528 | ded.Volume = 3 | |
1529 | ded.Looped = false | |
1530 | wait() | |
1531 | ||
1532 | ded:Play() | |
1533 | ||
1534 | wait(1) | |
1535 | leftleg.Transparency = 0.5 | |
1536 | head.Transparency = 0.5 | |
1537 | rightleg.Transparency = 0.5 | |
1538 | torso.Transparency = 0.5 | |
1539 | leftarm.Transparency = 0.5 | |
1540 | rightarm.Transparency = 0.5 | |
1541 | ||
1542 | ||
1543 | wait(0.001) | |
1544 | leftleg.Transparency = 0.6 | |
1545 | head.Transparency = 0.6 | |
1546 | rightleg.Transparency = 0.6 | |
1547 | torso.Transparency = 0.6 | |
1548 | leftarm.Transparency = 0.6 | |
1549 | rightarm.Transparency = 0.6 | |
1550 | ||
1551 | wait(0.001) | |
1552 | leftleg.Transparency = 0.7 | |
1553 | head.Transparency = 0.7 | |
1554 | rightleg.Transparency = 0.7 | |
1555 | torso.Transparency = 0.7 | |
1556 | leftarm.Transparency = 0.7 | |
1557 | rightarm.Transparency = 0.7 | |
1558 | ||
1559 | ||
1560 | ||
1561 | ||
1562 | ||
1563 | ||
1564 | wait(0.001) | |
1565 | leftleg.Transparency = 1 | |
1566 | head.Transparency = 1 | |
1567 | rightleg.Transparency = 1 | |
1568 | torso.Transparency = 1 | |
1569 | leftarm.Transparency = 1 | |
1570 | rightarm.Transparency = 1 | |
1571 | wait() | |
1572 | ||
1573 | SpawnZombie() | |
1574 | Zombie2.Torso.Touched:connect(onTouch) | |
1575 | Zombie2.Name = 'Zombie' | |
1576 | function AutoJump() | |
1577 | Zombie2.Humanoid.Jump = true | |
1578 | end | |
1579 | Zombie2.Torso.Touched:connect(AutoJump) | |
1580 | wait() | |
1581 | Zombie2:MoveTo(zomchar.Head.Position + Vector3.new(math.random(0,1),0,math.random(0,1))) | |
1582 | ---------------------- | |
1583 | ||
1584 | if ZomSyle == false then | |
1585 | ZomSyle = true | |
1586 | ||
1587 | ||
1588 | ||
1589 | ||
1590 | ||
1591 | ||
1592 | ||
1593 | ||
1594 | Zombie2.archivable = false | |
1595 | ||
1596 | ||
1597 | skin = zomchar["Body Colors"]:Clone() | |
1598 | skin.Parent = Zombie2 | |
1599 | wait() | |
1600 | ||
1601 | ||
1602 | Character= Zombie2 | |
1603 | plr = Zombie2 | |
1604 | Headmaker = Character.Head | |
1605 | Headcol1 = Headmaker.BrickColor | |
1606 | Headmat = Headmaker.Material | |
1607 | Headsize = Headmaker.Size | |
1608 | Headsize2 = Headmaker.Mesh.Scale | |
1609 | hed = Character.Head | |
1610 | hed.Transparency = 1 | |
1611 | ||
1612 | local Headnr1 = Instance.new("Model",Character.Head) | |
1613 | Headnr1.Name = "Lmao" | |
1614 | local Headnr2 = Instance.new("Model",Headnr1) | |
1615 | Headnr2.Name = ""..zomchar.Name | |
1616 | ||
1617 | ||
1618 | ---------------------------------------------------------- | |
1619 | wait() | |
1620 | local Mask = Instance.new("Part", Headnr2) | |
1621 | Mask.Name = "Head" | |
1622 | Mask.CanCollide = false | |
1623 | Mask.BrickColor = Headcol1 | |
1624 | Mask.Transparency = 0 | |
1625 | Mask.Material = Headmat | |
1626 | Mask.Size = Headsize | |
1627 | Mask.TopSurface = Enum.SurfaceType.Smooth | |
1628 | Mask.BottomSurface = Enum.SurfaceType.Smooth | |
1629 | local Weld = Instance.new("Weld", Mask) | |
1630 | Weld.Part0 = Character.Head | |
1631 | Weld.Part1 = Mask | |
1632 | Weld.C1 = CFrame.new(0,0,0) | |
1633 | ||
1634 | local M1 = Instance.new("SpecialMesh") | |
1635 | M1.Parent = Mask | |
1636 | M1.MeshType='Head' | |
1637 | M1.Scale = Headsize2 | |
1638 | ---------------------------------------------------------- | |
1639 | local Name2 = Instance.new("Humanoid",Headnr2) | |
1640 | ||
1641 | wait() | |
1642 | ||
1643 | for i,v in pairs(zomchar:GetChildren()) do | |
1644 | if v:IsA("CharacterMesh") then | |
1645 | v:clone().Parent = Zombie2 | |
1646 | end | |
1647 | ||
1648 | if v:IsA("ShirtGraphic") then | |
1649 | v:clone().Parent = Zombie2 | |
1650 | end | |
1651 | ||
1652 | if v:IsA("Pants") then | |
1653 | v:clone().Parent = Zombie2 | |
1654 | end | |
1655 | if v:IsA("Shirt") then | |
1656 | v:clone().Parent = Zombie2 | |
1657 | ||
1658 | end | |
1659 | ||
1660 | ||
1661 | if v:IsA("Accessory") then | |
1662 | v:clone().Parent = Zombie2 | |
1663 | end | |
1664 | ||
1665 | if v:IsA("Hat") then | |
1666 | v:clone().Parent = Zombie2 | |
1667 | end | |
1668 | ||
1669 | end | |
1670 | ||
1671 | ||
1672 | ||
1673 | end | |
1674 | ||
1675 | ||
1676 | ||
1677 | ||
1678 | ||
1679 | ||
1680 | ||
1681 | ---------------------- | |
1682 | wait() | |
1683 | leftleg:Destroy() | |
1684 | head:Destroy() | |
1685 | rightleg:Destroy() | |
1686 | leftarm:Destroy() | |
1687 | rightarm:Destroy() | |
1688 | ResetZombie() | |
1689 | end | |
1690 | end | |
1691 | end | |
1692 | ||
1693 | ||
1694 | ||
1695 | char.Torso.Touched:connect(onTouch) | |
1696 | ||
1697 | mouse.KeyDown:connect(function(key) | |
1698 | if key == "c" then | |
1699 | ||
1700 | LockOn() | |
1701 | ||
1702 | ||
1703 | ||
1704 | ||
1705 | ||
1706 | end | |
1707 | end) | |
1708 | ||
1709 | ||
1710 | debounce = false | |
1711 | ||
1712 | function onTouched(hit) | |
1713 | hole:Play() | |
1714 | hit.CanCollide=false | |
1715 | wait(.5) | |
1716 | hit.CanCollide = true | |
1717 | debounce = true | |
1718 | ||
1719 | end | |
1720 | game.Players.LocalPlayer.Character.Torso.Touched:connect(onTouched) | |
1721 | ||
1722 | ||
1723 | ||
1724 | game:GetService("RunService"):BindToRenderStep("ew", 0, function() | |
1725 | ||
1726 | ||
1727 | if targetted == nil and musicon == true then | |
1728 | print('Waiting For A Target...') | |
1729 | wait() | |
1730 | GetPlayers() | |
1731 | local d = math.random(1, #dft) | |
1732 | local s = d | |
1733 | print(''..dft[s]..'?') | |
1734 | ||
1735 | ||
1736 | ||
1737 | for _, z in pairs(workspace:GetChildren()) do | |
1738 | ||
1739 | if z.Name == ""..dft[s] then | |
1740 | ||
1741 | ||
1742 | ||
1743 | ||
1744 | ||
1745 | targetted = z | |
1746 | ||
1747 | if z.Name == ''..p then | |
1748 | ||
1749 | targetted = nil | |
1750 | ||
1751 | print('Wait a sec is that not me!') | |
1752 | ||
1753 | end | |
1754 | end | |
1755 | end | |
1756 | ||
1757 | ||
1758 | end | |
1759 | ||
1760 | if musicon == true and targetted.Humanoid.Health == 0 then | |
1761 | targetted = nil | |
1762 | ||
1763 | end | |
1764 | ||
1765 | for _, z in pairs(workspace:GetChildren()) do | |
1766 | ||
1767 | if z.Name == "Zombie" then | |
1768 | ||
1769 | z.Humanoid:MoveTo(targetted.Head.Position) | |
1770 | ||
1771 | end | |
1772 | end | |
1773 | for _, z in pairs(workspace:GetChildren()) do | |
1774 | ||
1775 | if z.Name == "Zombie" then | |
1776 | if z.Humanoid.Health == 0 then | |
1777 | z.Head.face.Transparency = 1 | |
1778 | z["Left Leg"].Transparency = 0.5 | |
1779 | z["Head"].Transparency = 0.5 | |
1780 | z["Right Leg"].Transparency = 0.5 | |
1781 | z["Torso"].Transparency = 0.5 | |
1782 | z["Left Arm"].Transparency = 0.5 | |
1783 | z["Right Arm"].Transparency = 0.5 | |
1784 | wait(0.1) | |
1785 | z:Destroy() | |
1786 | end | |
1787 | end | |
1788 | end | |
1789 | ||
1790 | ||
1791 | ||
1792 | ------------------- | |
1793 | end) | |
1794 | ||
1795 | ||
1796 | ||
1797 | print('Loaded...') | |
1798 | print('---------------------') | |
1799 | print('Made by 123jl123') | |
1800 | print('---------------------') | |
1801 | print('do not leak...') | |
1802 | print('Have a nice day :)') | |
1803 | print('---------------------') | |
1804 | while wait() do | |
1805 | ||
1806 | ||
1807 | ||
1808 | char["Left Leg"].BrickColor = BrickColor.new("Really black") | |
1809 | char["Head"].BrickColor = BrickColor.new("Really black") | |
1810 | char["Right Leg"].BrickColor = BrickColor.new("Really black") | |
1811 | char["Torso"].BrickColor = BrickColor.new("Really black") | |
1812 | char["Left Arm"].BrickColor = BrickColor.new("Black") | |
1813 | char["Right Arm"].BrickColor = BrickColor.new("Black") | |
1814 | imgl.Rotation = imgl.Rotation + 1 | |
1815 | if targetted ~= nil then | |
1816 | crosshair.Adornee = targetted:FindFirstChild("Torso") or targetted:FindFirstChild("UpperTorso") | |
1817 | crosshair.Enabled = true | |
1818 | ||
1819 | elseif targetted == nil then | |
1820 | ||
1821 | crosshair.Adornee = nil | |
1822 | crosshair.Enabled = false | |
1823 | ||
1824 | end | |
1825 | ||
1826 | ||
1827 | ||
1828 | ||
1829 | ||
1830 | ||
1831 | ||
1832 | ||
1833 | ||
1834 | ||
1835 | ||
1836 | ||
1837 | end |