SHOW:
|
|
- or go back to the newest paste.
1 | --Merasmus Script, by SlayKillerX66-- | |
2 | ||
3 | staffout = true | |
4 | ||
5 | wait(1/60) | |
6 | ||
7 | local player = game.Players.LocalPlayer | |
8 | local C = player.Character | |
9 | local humanoid = C:WaitForChild("Humanoid") | |
10 | local RS = C.Torso["Right Shoulder"] | |
11 | local LS = C.Torso["Left Shoulder"] | |
12 | local RH = C.Torso["Right Hip"] | |
13 | local LH = C.Torso["Left Hip"] | |
14 | RH.C0 = RH.C0 * CFrame.Angles(-0.05,0,0) | |
15 | LS.C0 = LS.C0 * CFrame.Angles(-0.1,0,0) | |
16 | RS.C0 = RS.C0 * CFrame.Angles(-0.1,0,0) | |
17 | LH.C0 = LH.C0 * CFrame.Angles(-0.05,0,0) | |
18 | local mouse = player:GetMouse() | |
19 | ||
20 | local sounds = Instance.new("Sound") | |
21 | sounds.SoundId = "http://www.roblox.com/asset/?id=130945622" | |
22 | sounds.Parent = C.Torso | |
23 | sounds.Volume = 10 | |
24 | sounds:play() | |
25 | ||
26 | local trail = Instance.new("Beam") | |
27 | trail.Color = ColorSequence.new(Color3.new(0.0666667, 0.0666667, 0.0666667), Color3.new(0.0666667, 0.0666667, 0.0666667)) | |
28 | trail.Parent = C.Torso | |
29 | trail.Attachment0 = C:FindFirstChild("Right Arm").RightGripAttachment | |
30 | trail.Attachment1 = nil | |
31 | ||
32 | local billboardgui = Instance.new("BillboardGui") | |
33 | local textbox = Instance.new("TextBox") | |
34 | ||
35 | billboardgui.LightInfluence = 0 | |
36 | billboardgui.SizeOffset = Vector2.new(0, 1.8) | |
37 | billboardgui.Size = UDim2.new(0, 200, 0, 50) | |
38 | billboardgui.Parent = C.Head | |
39 | textbox.TextWrapped = true | |
40 | textbox.BackgroundTransparency = 1 | |
41 | textbox.BackgroundColor3 = Color3.new(1, 1, 1) | |
42 | textbox.BorderColor3 = Color3.new(1, 1, 1) | |
43 | textbox.TextSize = 40 | |
44 | textbox.Font = Enum.Font.SourceSans | |
45 | textbox.Size = UDim2.new(0, 200, 0, 50) | |
46 | textbox.Text = "Merasmus" | |
47 | textbox.Parent = billboardgui | |
48 | ||
49 | local skullcap = Instance.new("Part") | |
50 | local mesh = Instance.new("SpecialMesh") | |
51 | local welde = Instance.new("Weld") | |
52 | skullcap.Size = Vector3.new(4, 2.4, 2) | |
53 | skullcap.BrickColor = BrickColor.new("Bright green") | |
54 | skullcap.Color = Color3.new(0.294118, 0.592157, 0.294118) | |
55 | skullcap.Name = "SkullCap" | |
56 | skullcap.Parent = workspace | |
57 | skullcap.CFrame = CFrame.new(0.26, 3.2, 44.85) | |
58 | mesh.TextureId = "http://www.roblox.com/asset/?id=14027832" | |
59 | mesh.MeshType = Enum.MeshType.FileMesh | |
60 | mesh.MeshId = "http://www.roblox.com/asset/?id=14028428" | |
61 | mesh.Parent = skullcap | |
62 | welde.Parent = C.Torso | |
63 | welde.Part0 = C.Head | |
64 | welde.Part1 = skullcap | |
65 | welde.C1 = CFrame.Angles(-0.2,0,0) | |
66 | welde.C0 = CFrame.new(0, 1, 0) | |
67 | skullcap.Parent=C | |
68 | ||
69 | function kill(nam, parent) if parent:FindFirstChild(nam) then | |
70 | parent[nam]:Destroy() | |
71 | end end | |
72 | kill("roblox", C.Torso) | |
73 | kill("Shirt", C) | |
74 | kill("Pants", C) | |
75 | local s=Instance.new("Shirt") | |
76 | s.Parent=C | |
77 | s.ShirtTemplate="http://www.roblox.com/asset/?id=388831708" | |
78 | local t=Instance.new("Pants") | |
79 | t.Parent=C | |
80 | t.PantsTemplate="http://www.roblox.com/asset/?id=203678568" | |
81 | ||
82 | ||
83 | C.Animate.walk.WalkAnim.AnimationId = 'http://www.roblox.com/Asset?ID=27759788' | |
84 | C.Animate.idle.Animation1.AnimationId = "http://www.roblox.com/Asset?ID=27758613" | |
85 | ||
86 | mouse.KeyDown:connect(function(key) | |
87 | ||
88 | if key == "x" then | |
89 | local sound = Instance.new("Sound") | |
90 | sounds.SoundId = "http://www.roblox.com/asset/?id=437846473" | |
91 | sounds.Parent = C.Torso | |
92 | sounds.Volume = 10 | |
93 | sounds:play() | |
94 | wait(0.7) | |
95 | local animation=Instance.new("Animation",C) | |
96 | animation.Name="LocalAnimation" | |
97 | animation.AnimationId = "http://www.roblox.com/Asset?ID=32326246" | |
98 | local anim=humanoid:LoadAnimation(animation) | |
99 | anim:Play() | |
100 | C.LocalAnimation:remove() | |
101 | local landmine = Instance.new("Part",workspace) | |
102 | landmine.Transparency = 0.1 | |
103 | landmine.Size = Vector3.new(0.1,0.1,0.1) | |
104 | landmine.CFrame = CFrame.new(C.Torso.Position) | |
105 | landmine.CFrame = C.Torso.CFrame * CFrame.new(0,0,-6) | |
106 | landmine.Anchored = true | |
107 | landmine.CanCollide = true | |
108 | landmine.Shape = Enum.PartType.Ball | |
109 | landmine.Material = Enum.Material.Glass | |
110 | landmine.Color = Color3.new(0.0156863, 0.686275, 0.92549) | |
111 | wait(0.5) | |
112 | for i=1,8 do | |
113 | landmine.Size = landmine.Size + Vector3.new(0.5,0.5,0.5) | |
114 | wait(0.02) | |
115 | end | |
116 | landmine.Anchored = false | |
117 | local v = Instance.new("BodyVelocity",landmine) | |
118 | v.Velocity = C.Torso.CFrame.lookVector * 90 | |
119 | v.MaxForce = Vector3.new(math.huge, math.huge, math.huge) | |
120 | for i=1,8 do | |
121 | landmine.Size = landmine.Size + Vector3.new(0.5,0.5,0.5) | |
122 | wait(0.02) | |
123 | end | |
124 | function onTouch(part) | |
125 | local humanoid = part.Parent:findFirstChild("Humanoid") | |
126 | if (humanoid ~=nil) then | |
127 | humanoid.Health = humanoid.Health - 25 | |
128 | end | |
129 | end | |
130 | landmine.Touched:connect(onTouch) | |
131 | wait(3) | |
132 | landmine:remove() | |
133 | end | |
134 | ||
135 | if key == "q" then | |
136 | if staffout == true then | |
137 | staffout = false | |
138 | C.Staff.Transparency = 1 | |
139 | C.Staff.Fire.Enabled = false | |
140 | C.Animate.walk.WalkAnim.AnimationId = 'http://www.roblox.com/Asset?ID=28440069' | |
141 | C.Animate.idle.Animation1.AnimationId = "http://www.roblox.com/Asset?ID=180435571" | |
142 | local animateScript = C:WaitForChild("Animate") | |
143 | for _, animationTrack in pairs(humanoid:GetPlayingAnimationTracks()) do | |
144 | animationTrack:Stop(0) | |
145 | end | |
146 | elseif staffout == false then | |
147 | C.Animate.idle.Animation1.AnimationId = "http://www.roblox.com/Asset?ID=27758613" | |
148 | C.Animate.walk.WalkAnim.AnimationId = 'http://www.roblox.com/Asset?ID=27759788' | |
149 | local animateScript = C:WaitForChild("Animate") | |
150 | for _, animationTrack in pairs(humanoid:GetPlayingAnimationTracks()) do | |
151 | animationTrack:Stop(0) | |
152 | end | |
153 | staffout = true | |
154 | C.Staff.Fire.Enabled = true | |
155 | C.Staff.Transparency = 0 | |
156 | end | |
157 | end | |
158 | if key == "r" then | |
159 | if staffout == true then | |
160 | local sounds = Instance.new("Sound") | |
161 | sounds.SoundId = "http://www.roblox.com/asset/?id=130973839" | |
162 | sounds.Parent = C.Torso | |
163 | sounds.Volume = 10 | |
164 | sounds:play() | |
165 | local animation=Instance.new("Animation",C) | |
166 | animation.Name="LocalAnimation" | |
167 | animation.AnimationId = "http://www.roblox.com/Asset?ID=32326245" | |
168 | local anim=humanoid:LoadAnimation(animation) | |
169 | anim:Play() | |
170 | C.LocalAnimation:remove() | |
171 | wait(1.3) | |
172 | local animation=Instance.new("Animation",C) | |
173 | animation.Name="LocalAnimation" | |
174 | animation.AnimationId = "http://www.roblox.com/Asset?ID=27761123" | |
175 | local anim=humanoid:LoadAnimation(animation) | |
176 | anim:Play() | |
177 | C.LocalAnimation:remove() | |
178 | wait(0.5) | |
179 | local ball = Instance.new("Part") | |
180 | local mesh = Instance.new("SpecialMesh") | |
181 | ball.Parent = workspace | |
182 | ball.Color = Color3.new(0.458824, 0, 0) | |
183 | ball.Size = Vector3.new(1, 1, 1) | |
184 | ball.Shape = Enum.PartType.Ball | |
185 | ball.CanCollide = false | |
186 | ball.Anchored = true | |
187 | ball.Transparency = 0.1 | |
188 | ball.CFrame = CFrame.new(C.Torso.Position) | |
189 | mesh.Parent = ball | |
190 | mesh.MeshId = "rbxassetid://689879827" | |
191 | mesh.Scale = Vector3.new(0.001, 0.001, 0.001) | |
192 | local Music = Instance.new("Sound") | |
193 | Music.SoundId = "http://www.roblox.com/asset/?id=280247455" | |
194 | Music.Parent = workspace | |
195 | Music.Volume = 10 | |
196 | Music:play() | |
197 | function onTouch(part) | |
198 | local humanoid = part.Parent:findFirstChild("Humanoid") | |
199 | if (humanoid ~=nil) then | |
200 | humanoid.Health = humanoid.Health - 25 | |
201 | end | |
202 | end | |
203 | ball.Touched:connect(onTouch) | |
204 | for i=1,100 do | |
205 | mesh.Scale = mesh.Scale + Vector3.new(0.2, 0.2, 0.2) | |
206 | ball.Size = ball.Size + Vector3.new(10, 10, 10) | |
207 | wait(0.015) | |
208 | end | |
209 | ball:Remove() | |
210 | Music:Remove() | |
211 | anim:remove() | |
212 | end | |
213 | end | |
214 | ||
215 | function onButton1Down(mouse) | |
216 | if staffout == true then | |
217 | local LS = C.Torso["Left Shoulder"] | |
218 | local mt = mouse.Target | |
219 | local hl = mt.Parent:findFirstChild("Humanoid") | |
220 | if hl == nil then return end | |
221 | for i=1,15 do | |
222 | RS.C0 = RS.C0 * CFrame.Angles(0, 0, 0.05) | |
223 | wait(0.01) | |
224 | end | |
225 | local hit = Instance.new("Attachment") | |
226 | hit.Parent = mt.Parent:FindFirstChild("Torso") | |
227 | trail.Attachment1 = hit | |
228 | local Music = Instance.new("Sound") | |
229 | Music.SoundId = "http://www.roblox.com/asset/?id=169628396" | |
230 | Music.Parent = C.Torso | |
231 | Music.Volume = 0.5 | |
232 | Music:play() | |
233 | local boom = Instance.new("Explosion") | |
234 | boom.BlastRadius = 0 | |
235 | boom.Parent = hit.Parent.Parent | |
236 | boom.Position = hit.Parent.Position | |
237 | hl.WalkSpeed = 3 | |
238 | hl.Health = hl.Health - 55 | |
239 | RS.C0 = RS.C0 * CFrame.Angles(0, 0, 0.5) | |
240 | for i=1,25 do | |
241 | RS.C0 = RS.C0 * CFrame.Angles(0, 0, -0.05) | |
242 | wait(0.01) | |
243 | end | |
244 | trail.Attachment1 = nil | |
245 | wait(2.5) | |
246 | boom:remove() | |
247 | hl.WalkSpeed = 16 | |
248 | end | |
249 | end | |
250 | ||
251 | if key == "z" then | |
252 | ||
253 | end | |
254 | ||
255 | if key == "f" then | |
256 | local Sound = Instance.new("Sound") | |
257 | Sound.SoundId = "http://www.roblox.com/asset/?id=287614966" | |
258 | Sound.Parent = workspace | |
259 | Sound.Volume = 10 | |
260 | Sound:play() | |
261 | local animation=Instance.new("Animation",C) | |
262 | animation.Name="LocalAnimation" | |
263 | animation.AnimationId = "http://www.roblox.com/Asset?ID=52155728" | |
264 | local anim=humanoid:LoadAnimation(animation) | |
265 | anim:Play() | |
266 | C.LocalAnimation:remove() | |
267 | wait(2) | |
268 | anim:Stop() | |
269 | end | |
270 | ||
271 | if key == "e" then | |
272 | if staffout == true then | |
273 | local sounds = Instance.new("Sound") | |
274 | sounds.SoundId = "http://www.roblox.com/asset/?id=199607491" | |
275 | sounds.Parent = C.Torso | |
276 | sounds.Volume = 10 | |
277 | sounds:play() | |
278 | wait(0.1) | |
279 | local animation=Instance.new("Animation",C) | |
280 | animation.Name="LocalAnimation" | |
281 | animation.AnimationId = "http://www.roblox.com/Asset?ID=27741468" | |
282 | local anim=humanoid:LoadAnimation(animation) | |
283 | anim:Play() | |
284 | C.LocalAnimation:remove() | |
285 | wait(0.8) | |
286 | local drooling_zombie = Instance.new("Model") | |
287 | local humanoidrootpart = Instance.new("Part") | |
288 | local root_hip = Instance.new("Motor6D") | |
289 | local torso = Instance.new("Part") | |
290 | local left_hip = Instance.new("Motor6D") | |
291 | local right_hip = Instance.new("Motor6D") | |
292 | local left_shoulder = Instance.new("Motor6D") | |
293 | local right_shoulder = Instance.new("Motor6D") | |
294 | local neck = Instance.new("Motor6D") | |
295 | local repulsionforce = Instance.new("BodyForce") | |
296 | local left_leg = Instance.new("Part") | |
297 | local right_leg = Instance.new("Part") | |
298 | local left_arm = Instance.new("Part") | |
299 | local right_arm = Instance.new("Part") | |
300 | local head = Instance.new("Part") | |
301 | local face = Instance.new("Decal") | |
302 | local mesh = Instance.new("SpecialMesh") | |
303 | local humanoid = Instance.new("Humanoid") | |
304 | local body_colors = Instance.new("BodyColors") | |
305 | ||
306 | drooling_zombie.Name = "Zombie" | |
307 | drooling_zombie.Parent = workspace | |
308 | humanoidrootpart.Size = Vector3.new(2, 2, 1) | |
309 | humanoidrootpart.BottomSurface = Enum.SurfaceType.Smooth | |
310 | humanoidrootpart.Orientation = Vector3.new(0, -90, 0) | |
311 | humanoidrootpart.Color = Color3.new(0.152941, 0.27451, 0.176471) | |
312 | humanoidrootpart.Name = "HumanoidRootPart" | |
313 | humanoidrootpart.BrickColor = BrickColor.new("Earth green") | |
314 | humanoidrootpart.Transparency = 1 | |
315 | humanoidrootpart.TopSurface = Enum.SurfaceType.Smooth | |
316 | humanoidrootpart.Parent = drooling_zombie | |
317 | humanoidrootpart.CFrame = CFrame.new(-25.01, 5, 8.51) * CFrame.Angles(0, -1.571, 0) | |
318 | root_hip.Part1 = torso | |
319 | root_hip.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.571, 0, -3.142) | |
320 | root_hip.MaxVelocity = 0.1 | |
321 | root_hip.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.571, 0, -3.142) | |
322 | root_hip.Name = "Root Hip" | |
323 | root_hip.Part0 = humanoidrootpart | |
324 | root_hip.Parent = humanoidrootpart | |
325 | torso.Size = Vector3.new(2, 2, 1) | |
326 | torso.BottomSurface = Enum.SurfaceType.Smooth | |
327 | torso.Orientation = Vector3.new(0, -90, 0) | |
328 | torso.Color = Color3.new(0.152941, 0.27451, 0.176471) | |
329 | torso.Name = "Torso" | |
330 | torso.TopSurface = Enum.SurfaceType.Smooth | |
331 | torso.BrickColor = BrickColor.new("Earth green") | |
332 | torso.Parent = drooling_zombie | |
333 | torso.CFrame = CFrame.new(-25.01, 5, 8.51) * CFrame.Angles(0, -1.571, 0) | |
334 | left_hip.Part1 = left_leg | |
335 | left_hip.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(0, -1.571, 0) | |
336 | left_hip.MaxVelocity = 0.1 | |
337 | left_hip.C1 = CFrame.new(-0.5, 1, 0) * CFrame.Angles(0, -1.571, 0) | |
338 | left_hip.Name = "Left Hip" | |
339 | left_hip.Part0 = torso | |
340 | left_hip.Parent = torso | |
341 | right_hip.Part1 = right_leg | |
342 | right_hip.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, 1.571, 0) | |
343 | right_hip.MaxVelocity = 0.1 | |
344 | right_hip.C1 = CFrame.new(0.5, 1, 0) * CFrame.Angles(0, 1.571, 0) | |
345 | right_hip.Name = "Right Hip" | |
346 | right_hip.Part0 = torso | |
347 | right_hip.Parent = torso | |
348 | left_shoulder.Part1 = left_arm | |
349 | left_shoulder.C0 = CFrame.new(-1, 0.5, 0) * CFrame.Angles(0, -1.571, 0) | |
350 | left_shoulder.MaxVelocity = 0.1 | |
351 | left_shoulder.C1 = CFrame.new(0.5, 0.5, 0) * CFrame.Angles(0, -1.571, 0) | |
352 | left_shoulder.Name = "Left Shoulder" | |
353 | left_shoulder.Part0 = torso | |
354 | left_shoulder.Parent = torso | |
355 | right_shoulder.Part1 = right_arm | |
356 | right_shoulder.C0 = CFrame.new(1, 0.5, 0) * CFrame.Angles(0, 1.571, 0) | |
357 | right_shoulder.MaxVelocity = 0.1 | |
358 | right_shoulder.C1 = CFrame.new(-0.5, 0.5, 0) * CFrame.Angles(0, 1.571, 0) | |
359 | right_shoulder.Name = "Right Shoulder" | |
360 | right_shoulder.Part0 = torso | |
361 | right_shoulder.Parent = torso | |
362 | neck.Part1 = head | |
363 | neck.C0 = CFrame.new(0, 1, 0) * CFrame.Angles(-1.571, 0, -3.142) | |
364 | neck.MaxVelocity = 0.1 | |
365 | neck.C1 = CFrame.new(0, -0.5, 0) * CFrame.Angles(-1.571, 0, -3.142) | |
366 | neck.Name = "Neck" | |
367 | neck.Part0 = torso | |
368 | neck.Parent = torso | |
369 | repulsionforce.Name = "RepulsionForce" | |
370 | repulsionforce.Force = Vector3.new(0, 0, 0) | |
371 | repulsionforce.Parent = torso | |
372 | left_leg.CanCollide = false | |
373 | left_leg.Size = Vector3.new(1, 2, 1) | |
374 | left_leg.BottomSurface = Enum.SurfaceType.Smooth | |
375 | left_leg.Orientation = Vector3.new(0, -90, 0) | |
376 | left_leg.Color = Color3.new(0.152941, 0.27451, 0.176471) | |
377 | left_leg.Name = "Left Leg" | |
378 | left_leg.TopSurface = Enum.SurfaceType.Smooth | |
379 | left_leg.BrickColor = BrickColor.new("Earth green") | |
380 | left_leg.Parent = drooling_zombie | |
381 | left_leg.CFrame = CFrame.new(-25.01, 3, 8.01) * CFrame.Angles(0, -1.571, 0) | |
382 | right_leg.CanCollide = false | |
383 | right_leg.Size = Vector3.new(1, 2, 1) | |
384 | right_leg.BottomSurface = Enum.SurfaceType.Smooth | |
385 | right_leg.Orientation = Vector3.new(0, -90, 0) | |
386 | right_leg.Color = Color3.new(0.152941, 0.27451, 0.176471) | |
387 | right_leg.Name = "Right Leg" | |
388 | right_leg.TopSurface = Enum.SurfaceType.Smooth | |
389 | right_leg.BrickColor = BrickColor.new("Earth green") | |
390 | right_leg.Parent = drooling_zombie | |
391 | right_leg.CFrame = CFrame.new(-25.01, 3, 9.01) * CFrame.Angles(0, -1.571, 0) | |
392 | left_arm.CanCollide = false | |
393 | left_arm.Size = Vector3.new(1, 2, 1) | |
394 | left_arm.BottomSurface = Enum.SurfaceType.Smooth | |
395 | left_arm.Orientation = Vector3.new(0, -90, 0) | |
396 | left_arm.Color = Color3.new(0.152941, 0.27451, 0.176471) | |
397 | left_arm.Name = "Left Arm" | |
398 | left_arm.TopSurface = Enum.SurfaceType.Smooth | |
399 | left_arm.BrickColor = BrickColor.new("Earth green") | |
400 | left_arm.Parent = drooling_zombie | |
401 | left_arm.CFrame = CFrame.new(-25.01, 5, 7.01) * CFrame.Angles(0, -1.571, 0) | |
402 | right_arm.CanCollide = false | |
403 | right_arm.Size = Vector3.new(1, 2, 1) | |
404 | right_arm.BottomSurface = Enum.SurfaceType.Smooth | |
405 | right_arm.Orientation = Vector3.new(0, -90, 0) | |
406 | right_arm.Color = Color3.new(0.152941, 0.27451, 0.176471) | |
407 | right_arm.Name = "Right Arm" | |
408 | right_arm.TopSurface = Enum.SurfaceType.Smooth | |
409 | right_arm.BrickColor = BrickColor.new("Earth green") | |
410 | right_arm.Parent = drooling_zombie | |
411 | right_arm.CFrame = CFrame.new(-25.01, 5, 10.01) * CFrame.Angles(0, -1.571, 0) | |
412 | head.Size = Vector3.new(2, 1, 1) | |
413 | head.BottomSurface = Enum.SurfaceType.Smooth | |
414 | head.Orientation = Vector3.new(0, -90, 0) | |
415 | head.Color = Color3.new(0.227451, 0.490196, 0.0823529) | |
416 | head.Name = "Head" | |
417 | head.TopSurface = Enum.SurfaceType.Smooth | |
418 | head.BrickColor = BrickColor.new("Camo") | |
419 | head.Parent = drooling_zombie | |
420 | head.CFrame = CFrame.new(-25.01, 6.5, 8.51) * CFrame.Angles(0, -1.571, 0) | |
421 | face.Texture = "http://www.roblox.com/asset/?id=7074882" | |
422 | face.Name = "Face" | |
423 | face.Parent = head | |
424 | mesh.Scale = Vector3.new(1.25, 1.25, 1.25) | |
425 | mesh.Parent = head | |
426 | humanoid.WalkSpeed = 10 | |
427 | humanoid.Parent = drooling_zombie | |
428 | body_colors.HeadColor = BrickColor.new("Medium green") | |
429 | body_colors.LeftLegColor = BrickColor.new("Reddish brown") | |
430 | body_colors.LeftArmColor = BrickColor.new("Medium green") | |
431 | body_colors.RightLegColor = BrickColor.new("Reddish brown") | |
432 | body_colors.RightArmColor = BrickColor.new("Medium green") | |
433 | body_colors.TorsoColor = BrickColor.new("Reddish brown") | |
434 | body_colors.Parent = drooling_zombie | |
435 | drooling_zombie.Torso.CFrame = CFrame.new(C.Torso.Position) | |
436 | drooling_zombie.Torso.CFrame = C.Torso.CFrame * CFrame.new(0,0,-12) | |
437 | ||
438 | local ball = Instance.new("Part") | |
439 | local mesh = Instance.new("SpecialMesh") | |
440 | ball.Parent = workspace | |
441 | ball.Color = Color3.new(0.458824, 0, 0) | |
442 | ball.Size = Vector3.new(1, 1, 1) | |
443 | ball.Shape = Enum.PartType.Ball | |
444 | ball.CanCollide = false | |
445 | ball.Anchored = true | |
446 | ball.Transparency = 0.5 | |
447 | ball.Material = Enum.Material.Neon | |
448 | ball.CFrame = CFrame.new(drooling_zombie.Torso.Position) | |
449 | mesh.Parent = ball | |
450 | mesh.MeshId = "rbxassetid://689879827" | |
451 | mesh.Scale = Vector3.new(0.05,0.05,0.05) | |
452 | ||
453 | for i=1,22 do | |
454 | mesh.Scale = mesh.Scale + Vector3.new(0.01,0.01,0.01) | |
455 | wait(0.01) | |
456 | end | |
457 | ||
458 | function onTouch(part) | |
459 | local humanoid = part.Parent:findFirstChild("Humanoid") | |
460 | if (humanoid ~=nil) then | |
461 | humanoid.Health = humanoid.Health - 25 | |
462 | end | |
463 | end | |
464 | drooling_zombie.Torso.Touched:connect(onTouch) | |
465 | ||
466 | mesh:remove() | |
467 | ball:remove() | |
468 | ||
469 | local arms = {drooling_zombie:FindFirstChild("Left Arm"), drooling_zombie:FindFirstChild("Right Arm")} | |
470 | local torso = drooling_zombie:FindFirstChild("Torso") | |
471 | local weld1 = Instance.new("Weld") | |
472 | weld1.Part0 = drooling_zombie.Torso | |
473 | weld1.Parent = drooling_zombie.Torso | |
474 | weld1.Part1 = arms[1] | |
475 | weld1.C1 = CFrame.new(-0.5, 0.5, 1.3) * CFrame.fromEulerAnglesXYZ(math.rad(270), 0, math.rad(-90)) --(-0.249, 1.35, 0.6) | |
476 | ||
477 | local weld1 = Instance.new("Weld") | |
478 | weld1.Part0 = drooling_zombie.Torso | |
479 | weld1.Parent = drooling_zombie.Torso | |
480 | weld1.Part1 = arms[2] | |
481 | weld1.C1 = CFrame.new(-0.5, 0.5, -1.3) * CFrame.fromEulerAnglesXYZ(math.rad(270), 0, math.rad(-90)) --(-0.249, 1.35, 0.6) | |
482 | ||
483 | function findNearestTorso(pos) | |
484 | local list = game.Workspace:children() | |
485 | local torso = nil | |
486 | local dist = 125 | |
487 | local temp = nil | |
488 | local human = nil | |
489 | local temp2 = nil | |
490 | for x = 1, #list do | |
491 | temp2 = list[x] | |
492 | if (temp2.className == "Model") and (temp2 ~= drooling_zombie) then | |
493 | temp = temp2:findFirstChild("Torso") | |
494 | human = temp2:findFirstChild("Humanoid") | |
495 | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then | |
496 | if (temp.Position - pos).magnitude < dist then | |
497 | torso = temp | |
498 | dist = (temp.Position - pos).magnitude | |
499 | end | |
500 | end | |
501 | end | |
502 | end | |
503 | return torso | |
504 | end | |
505 | ||
506 | while true do | |
507 | wait(0.1) | |
508 | local target = findNearestTorso(drooling_zombie.Torso.Position) | |
509 | if target ~= nil then | |
510 | drooling_zombie.Humanoid:MoveTo(target.Position, target) | |
511 | end | |
512 | end | |
513 | end | |
514 | end | |
515 | end) | |
516 | mouse.Button1Down:connect(function() onButton1Down(mouse) end) | |
517 | local staff = Instance.new("Part") | |
518 | local weld = Instance.new("Weld") | |
519 | local sounds = Instance.new("Sound") | |
520 | sounds.SoundId = "http://www.roblox.com/asset/?id=169310310" | |
521 | sounds.Parent = C.Torso | |
522 | sounds.Volume = 10 | |
523 | sounds:play() | |
524 | C.Animate.idle.Animation2:remove() | |
525 | staff.Parent = C | |
526 | staff.Anchored = false | |
527 | staff.CanCollide = false | |
528 | staff.Name = "Staff" | |
529 | local fire = Instance.new("Fire") | |
530 | fire.Heat = 25 | |
531 | fire.Color = Color3.new(0.0352941, 0.345098, 0.92549) | |
532 | fire.Size = 2 | |
533 | fire.SecondaryColor = Color3.new(0.0352941, 0.0666667, 0.545098) | |
534 | fire.Parent = staff | |
535 | weld.Name = "staffweld" | |
536 | weld.Parent = C.Torso | |
537 | weld.Part0 = staff | |
538 | weld.Part1 = C:FindFirstChild("Right Arm") | |
539 | weld.C1 = CFrame.fromEulerAnglesXYZ(-1.5, 3.2, 0) | |
540 | weld.C0 = CFrame.new(-0.4, 0, -0.9) | |
541 | local mesh = Instance.new("SpecialMesh") | |
542 | mesh.MeshType = Enum.MeshType.FileMesh | |
543 | mesh.Scale = Vector3.new(0.02, 0.02, 0.02) | |
544 | mesh.MeshId = "rbxassetid://591079842" | |
545 | mesh.TextureId = "rbxassetid://591079849" | |
546 | mesh.Parent = staff | |
547 | wait(0.5) | |
548 | wait(1.5) | |
549 | C.Humanoid.Name = "Merasmus" | |
550 | ||
551 | print("Merasmus is swag.moi") |