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