Advertisement
OofeyDoofy

Merasmus v1.1

Feb 4th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 18.36 KB | None | 0 0
  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.idle.Animation1.AnimationId = "http://www.roblox.com/Asset?ID=180435571"
  141. elseif staffout == false then
  142.     C.Animate.idle.Animation1.AnimationId = "http://www.roblox.com/Asset?ID=27758613"
  143.     staffout = true
  144.     C.Staff.Fire.Enabled = true
  145.     C.Staff.Transparency = 0
  146. end
  147. end
  148. if key == "r" then
  149.     if staffout == true then
  150.     local sounds = Instance.new("Sound")
  151.     sounds.SoundId = "http://www.roblox.com/asset/?id=130973839"
  152.     sounds.Parent = C.Torso
  153.     sounds.Volume = 10
  154.     sounds:play()
  155.    local animation=Instance.new("Animation",C)
  156.    animation.Name="LocalAnimation"
  157.    animation.AnimationId = "http://www.roblox.com/Asset?ID=32326245"
  158.    local anim=humanoid:LoadAnimation(animation)
  159.    anim:Play()
  160.    C.LocalAnimation:remove()
  161.     wait(1.3)
  162.    local animation=Instance.new("Animation",C)
  163.    animation.Name="LocalAnimation"
  164.    animation.AnimationId = "http://www.roblox.com/Asset?ID=27761123"
  165.    local anim=humanoid:LoadAnimation(animation)
  166.    anim:Play()
  167.    C.LocalAnimation:remove()
  168.    wait(0.5)
  169.    local ball = Instance.new("Part")
  170.    local mesh = Instance.new("SpecialMesh")
  171.    ball.Parent = workspace
  172.    ball.Color = Color3.new(0.458824, 0, 0)
  173.    ball.Size = Vector3.new(1, 1, 1)
  174.    ball.Shape = Enum.PartType.Ball
  175.    ball.CanCollide = false
  176.    ball.Anchored = true
  177.    ball.Transparency = 0.1
  178.    ball.CFrame = CFrame.new(C.Torso.Position)
  179.    mesh.Parent = ball
  180.    mesh.MeshId = "rbxassetid://689879827"
  181.    mesh.Scale = Vector3.new(0.001, 0.001, 0.001)
  182.     local Music = Instance.new("Sound")
  183.     Music.SoundId = "http://www.roblox.com/asset/?id=280247455"
  184.     Music.Parent = workspace
  185.     Music.Volume = 10
  186.     Music:play()
  187.     function onTouch(part)
  188.     local humanoid = part.Parent:findFirstChild("Humanoid")
  189.     if (humanoid ~=nil) then
  190.     humanoid.Health = humanoid.Health - 25
  191.     end
  192.     end
  193.     ball.Touched:connect(onTouch)
  194. for i=1,100 do
  195. mesh.Scale = mesh.Scale + Vector3.new(0.2, 0.2, 0.2)
  196. ball.Size = ball.Size + Vector3.new(10, 10, 10)
  197. wait(0.015)
  198. end
  199. ball:Remove()
  200. Music:Remove()
  201. anim:remove()
  202. end
  203. end
  204.  
  205. function onButton1Down(mouse)
  206.     if staffout == true then
  207.     local LS = C.Torso["Left Shoulder"]
  208.     local mt = mouse.Target
  209.     local hl = mt.Parent:findFirstChild("Humanoid")
  210.     if hl == nil then return end
  211.     for i=1,15 do
  212.     RS.C0 = RS.C0 * CFrame.Angles(0, 0, 0.05)
  213.     wait(0.01)
  214.     end
  215.     local hit = Instance.new("Attachment")
  216.     hit.Parent = mt.Parent:FindFirstChild("Torso")
  217.     trail.Attachment1 = hit
  218.     local Music = Instance.new("Sound")
  219.     Music.SoundId = "http://www.roblox.com/asset/?id=169628396"
  220.     Music.Parent = C.Torso
  221.     Music.Volume = 0.5
  222.     Music:play()
  223.     local boom = Instance.new("Explosion")
  224.     boom.BlastRadius = 0
  225.     boom.Parent = hit.Parent.Parent
  226.     boom.Position = hit.Parent.Position
  227.     hl.WalkSpeed = 3
  228.     hl.Health = hl.Health - 55
  229.     RS.C0 = RS.C0 * CFrame.Angles(0, 0, 0.5)
  230.     for i=1,25 do
  231.     RS.C0 = RS.C0 * CFrame.Angles(0, 0, -0.05)
  232.     wait(0.01)
  233.     end
  234. trail.Attachment1 = nil
  235. wait(2.5)
  236. boom:remove()
  237. hl.WalkSpeed = 16
  238. end
  239. end
  240.    
  241. if key == "z" then 
  242.  
  243. end
  244.    
  245. if key == "f" then
  246.     local Sound = Instance.new("Sound")
  247.     Sound.SoundId = "http://www.roblox.com/asset/?id=287614966"
  248.     Sound.Parent = workspace
  249.     Sound.Volume = 10
  250.     Sound:play()
  251.    local animation=Instance.new("Animation",C)
  252.    animation.Name="LocalAnimation"
  253.    animation.AnimationId = "http://www.roblox.com/Asset?ID=52155728"
  254.    local anim=humanoid:LoadAnimation(animation)
  255.    anim:Play()
  256.    C.LocalAnimation:remove()
  257.    wait(2)
  258.    anim:Stop()
  259.    end   
  260.    
  261. if key == "e" then
  262.     if staffout == true then
  263.     local sounds = Instance.new("Sound")
  264.     sounds.SoundId = "http://www.roblox.com/asset/?id=199607491"
  265.     sounds.Parent = C.Torso
  266.     sounds.Volume = 10
  267.     sounds:play()
  268.     wait(0.1)
  269. local animation=Instance.new("Animation",C)
  270.    animation.Name="LocalAnimation"
  271.    animation.AnimationId = "http://www.roblox.com/Asset?ID=27741468"
  272.    local anim=humanoid:LoadAnimation(animation)
  273.    anim:Play()
  274.    C.LocalAnimation:remove()
  275. wait(0.8)
  276. local drooling_zombie = Instance.new("Model")
  277. local humanoidrootpart = Instance.new("Part")
  278. local root_hip = Instance.new("Motor6D")
  279. local torso = Instance.new("Part")
  280. local left_hip = Instance.new("Motor6D")
  281. local right_hip = Instance.new("Motor6D")
  282. local left_shoulder = Instance.new("Motor6D")
  283. local right_shoulder = Instance.new("Motor6D")
  284. local neck = Instance.new("Motor6D")
  285. local repulsionforce = Instance.new("BodyForce")
  286. local left_leg = Instance.new("Part")
  287. local right_leg = Instance.new("Part")
  288. local left_arm = Instance.new("Part")
  289. local right_arm = Instance.new("Part")
  290. local head = Instance.new("Part")
  291. local face = Instance.new("Decal")
  292. local mesh = Instance.new("SpecialMesh")
  293. local humanoid = Instance.new("Humanoid")
  294. local body_colors = Instance.new("BodyColors")
  295.  
  296. drooling_zombie.Name = "Zombie"
  297. drooling_zombie.Parent = workspace
  298. humanoidrootpart.Size = Vector3.new(2, 2, 1)
  299. humanoidrootpart.BottomSurface = Enum.SurfaceType.Smooth
  300. humanoidrootpart.Orientation = Vector3.new(0, -90, 0)
  301. humanoidrootpart.Color = Color3.new(0.152941, 0.27451, 0.176471)
  302. humanoidrootpart.Name = "HumanoidRootPart"
  303. humanoidrootpart.BrickColor = BrickColor.new("Earth green")
  304. humanoidrootpart.Transparency = 1
  305. humanoidrootpart.TopSurface = Enum.SurfaceType.Smooth
  306. humanoidrootpart.Parent = drooling_zombie
  307. humanoidrootpart.CFrame = CFrame.new(-25.01, 5, 8.51) * CFrame.Angles(0, -1.571, 0)
  308. root_hip.Part1 = torso
  309. root_hip.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.571, 0, -3.142)
  310. root_hip.MaxVelocity = 0.1
  311. root_hip.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.571, 0, -3.142)
  312. root_hip.Name = "Root Hip"
  313. root_hip.Part0 = humanoidrootpart
  314. root_hip.Parent = humanoidrootpart
  315. torso.Size = Vector3.new(2, 2, 1)
  316. torso.BottomSurface = Enum.SurfaceType.Smooth
  317. torso.Orientation = Vector3.new(0, -90, 0)
  318. torso.Color = Color3.new(0.152941, 0.27451, 0.176471)
  319. torso.Name = "Torso"
  320. torso.TopSurface = Enum.SurfaceType.Smooth
  321. torso.BrickColor = BrickColor.new("Earth green")
  322. torso.Parent = drooling_zombie
  323. torso.CFrame = CFrame.new(-25.01, 5, 8.51) * CFrame.Angles(0, -1.571, 0)
  324. left_hip.Part1 = left_leg
  325. left_hip.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(0, -1.571, 0)
  326. left_hip.MaxVelocity = 0.1
  327. left_hip.C1 = CFrame.new(-0.5, 1, 0) * CFrame.Angles(0, -1.571, 0)
  328. left_hip.Name = "Left Hip"
  329. left_hip.Part0 = torso
  330. left_hip.Parent = torso
  331. right_hip.Part1 = right_leg
  332. right_hip.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, 1.571, 0)
  333. right_hip.MaxVelocity = 0.1
  334. right_hip.C1 = CFrame.new(0.5, 1, 0) * CFrame.Angles(0, 1.571, 0)
  335. right_hip.Name = "Right Hip"
  336. right_hip.Part0 = torso
  337. right_hip.Parent = torso
  338. left_shoulder.Part1 = left_arm
  339. left_shoulder.C0 = CFrame.new(-1, 0.5, 0) * CFrame.Angles(0, -1.571, 0)
  340. left_shoulder.MaxVelocity = 0.1
  341. left_shoulder.C1 = CFrame.new(0.5, 0.5, 0) * CFrame.Angles(0, -1.571, 0)
  342. left_shoulder.Name = "Left Shoulder"
  343. left_shoulder.Part0 = torso
  344. left_shoulder.Parent = torso
  345. right_shoulder.Part1 = right_arm
  346. right_shoulder.C0 = CFrame.new(1, 0.5, 0) * CFrame.Angles(0, 1.571, 0)
  347. right_shoulder.MaxVelocity = 0.1
  348. right_shoulder.C1 = CFrame.new(-0.5, 0.5, 0) * CFrame.Angles(0, 1.571, 0)
  349. right_shoulder.Name = "Right Shoulder"
  350. right_shoulder.Part0 = torso
  351. right_shoulder.Parent = torso
  352. neck.Part1 = head
  353. neck.C0 = CFrame.new(0, 1, 0) * CFrame.Angles(-1.571, 0, -3.142)
  354. neck.MaxVelocity = 0.1
  355. neck.C1 = CFrame.new(0, -0.5, 0) * CFrame.Angles(-1.571, 0, -3.142)
  356. neck.Name = "Neck"
  357. neck.Part0 = torso
  358. neck.Parent = torso
  359. repulsionforce.Name = "RepulsionForce"
  360. repulsionforce.Force = Vector3.new(0, 0, 0)
  361. repulsionforce.Parent = torso
  362. left_leg.CanCollide = false
  363. left_leg.Size = Vector3.new(1, 2, 1)
  364. left_leg.BottomSurface = Enum.SurfaceType.Smooth
  365. left_leg.Orientation = Vector3.new(0, -90, 0)
  366. left_leg.Color = Color3.new(0.152941, 0.27451, 0.176471)
  367. left_leg.Name = "Left Leg"
  368. left_leg.TopSurface = Enum.SurfaceType.Smooth
  369. left_leg.BrickColor = BrickColor.new("Earth green")
  370. left_leg.Parent = drooling_zombie
  371. left_leg.CFrame = CFrame.new(-25.01, 3, 8.01) * CFrame.Angles(0, -1.571, 0)
  372. right_leg.CanCollide = false
  373. right_leg.Size = Vector3.new(1, 2, 1)
  374. right_leg.BottomSurface = Enum.SurfaceType.Smooth
  375. right_leg.Orientation = Vector3.new(0, -90, 0)
  376. right_leg.Color = Color3.new(0.152941, 0.27451, 0.176471)
  377. right_leg.Name = "Right Leg"
  378. right_leg.TopSurface = Enum.SurfaceType.Smooth
  379. right_leg.BrickColor = BrickColor.new("Earth green")
  380. right_leg.Parent = drooling_zombie
  381. right_leg.CFrame = CFrame.new(-25.01, 3, 9.01) * CFrame.Angles(0, -1.571, 0)
  382. left_arm.CanCollide = false
  383. left_arm.Size = Vector3.new(1, 2, 1)
  384. left_arm.BottomSurface = Enum.SurfaceType.Smooth
  385. left_arm.Orientation = Vector3.new(0, -90, 0)
  386. left_arm.Color = Color3.new(0.152941, 0.27451, 0.176471)
  387. left_arm.Name = "Left Arm"
  388. left_arm.TopSurface = Enum.SurfaceType.Smooth
  389. left_arm.BrickColor = BrickColor.new("Earth green")
  390. left_arm.Parent = drooling_zombie
  391. left_arm.CFrame = CFrame.new(-25.01, 5, 7.01) * CFrame.Angles(0, -1.571, 0)
  392. right_arm.CanCollide = false
  393. right_arm.Size = Vector3.new(1, 2, 1)
  394. right_arm.BottomSurface = Enum.SurfaceType.Smooth
  395. right_arm.Orientation = Vector3.new(0, -90, 0)
  396. right_arm.Color = Color3.new(0.152941, 0.27451, 0.176471)
  397. right_arm.Name = "Right Arm"
  398. right_arm.TopSurface = Enum.SurfaceType.Smooth
  399. right_arm.BrickColor = BrickColor.new("Earth green")
  400. right_arm.Parent = drooling_zombie
  401. right_arm.CFrame = CFrame.new(-25.01, 5, 10.01) * CFrame.Angles(0, -1.571, 0)
  402. head.Size = Vector3.new(2, 1, 1)
  403. head.BottomSurface = Enum.SurfaceType.Smooth
  404. head.Orientation = Vector3.new(0, -90, 0)
  405. head.Color = Color3.new(0.227451, 0.490196, 0.0823529)
  406. head.Name = "Head"
  407. head.TopSurface = Enum.SurfaceType.Smooth
  408. head.BrickColor = BrickColor.new("Camo")
  409. head.Parent = drooling_zombie
  410. head.CFrame = CFrame.new(-25.01, 6.5, 8.51) * CFrame.Angles(0, -1.571, 0)
  411. face.Texture = "http://www.roblox.com/asset/?id=7074882"
  412. face.Name = "Face"
  413. face.Parent = head
  414. mesh.Scale = Vector3.new(1.25, 1.25, 1.25)
  415. mesh.Parent = head
  416. humanoid.WalkSpeed = 10
  417. humanoid.Parent = drooling_zombie
  418. body_colors.HeadColor = BrickColor.new("Medium green")
  419. body_colors.LeftLegColor = BrickColor.new("Reddish brown")
  420. body_colors.LeftArmColor = BrickColor.new("Medium green")
  421. body_colors.RightLegColor = BrickColor.new("Reddish brown")
  422. body_colors.RightArmColor = BrickColor.new("Medium green")
  423. body_colors.TorsoColor = BrickColor.new("Reddish brown")
  424. body_colors.Parent = drooling_zombie
  425. drooling_zombie.Torso.CFrame = CFrame.new(C.Torso.Position)
  426. drooling_zombie.Torso.CFrame = C.Torso.CFrame * CFrame.new(0,0,-12)
  427.  
  428.    local ball = Instance.new("Part")
  429.    local mesh = Instance.new("SpecialMesh")
  430.    ball.Parent = workspace
  431.    ball.Color = Color3.new(0.458824, 0, 0)
  432.    ball.Size = Vector3.new(1, 1, 1)
  433.    ball.Shape = Enum.PartType.Ball
  434.    ball.CanCollide = false
  435.    ball.Anchored = true
  436.    ball.Transparency = 0.5
  437.    ball.Material = Enum.Material.Neon
  438.    ball.CFrame = CFrame.new(drooling_zombie.Torso.Position)
  439.    mesh.Parent = ball
  440.    mesh.MeshId = "rbxassetid://689879827"
  441.    mesh.Scale = Vector3.new(0.05,0.05,0.05)
  442.  
  443.     for i=1,22 do
  444.     mesh.Scale = mesh.Scale + Vector3.new(0.01,0.01,0.01)
  445.     wait(0.01)
  446.     end
  447.  
  448. function onTouch(part)
  449. local humanoid = part.Parent:findFirstChild("Humanoid")
  450. if (humanoid ~=nil) then
  451. humanoid.Health = humanoid.Health - 25
  452. end
  453. end
  454. drooling_zombie.Torso.Touched:connect(onTouch)
  455.  
  456. mesh:remove()
  457. ball:remove()
  458.  
  459. local arms = {drooling_zombie:FindFirstChild("Left Arm"), drooling_zombie:FindFirstChild("Right Arm")}
  460. local torso = drooling_zombie:FindFirstChild("Torso")
  461. local weld1 = Instance.new("Weld")
  462. weld1.Part0 = drooling_zombie.Torso
  463. weld1.Parent = drooling_zombie.Torso
  464. weld1.Part1 = arms[1]
  465. 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)
  466.  
  467. local weld1 = Instance.new("Weld")
  468. weld1.Part0 = drooling_zombie.Torso
  469. weld1.Parent = drooling_zombie.Torso
  470. weld1.Part1 = arms[2]
  471. 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)
  472.  
  473. function findNearestTorso(pos)
  474.     local list = game.Workspace:children()
  475.     local torso = nil
  476.     local dist = 125
  477.     local temp = nil
  478.     local human = nil
  479.     local temp2 = nil
  480.     for x = 1, #list do
  481.         temp2 = list[x]
  482.         if (temp2.className == "Model") and (temp2 ~= drooling_zombie) then
  483.             temp = temp2:findFirstChild("Torso")
  484.             human = temp2:findFirstChild("Humanoid")
  485.             if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  486.                 if (temp.Position - pos).magnitude < dist then
  487.                     torso = temp
  488.                     dist = (temp.Position - pos).magnitude
  489.                 end
  490.             end
  491.         end
  492.     end
  493.     return torso
  494. end
  495.  
  496. while true do
  497.     wait(0.1)
  498.     local target = findNearestTorso(drooling_zombie.Torso.Position)
  499.     if target ~= nil then
  500.         drooling_zombie.Humanoid:MoveTo(target.Position, target)
  501.     end
  502.     end
  503.     end
  504. end
  505. end)
  506.     mouse.Button1Down:connect(function() onButton1Down(mouse) end) 
  507.     local staff = Instance.new("Part")
  508.     local weld = Instance.new("Weld")
  509.     local sounds = Instance.new("Sound")
  510.     sounds.SoundId = "http://www.roblox.com/asset/?id=169310310"
  511.     sounds.Parent = C.Torso
  512.     sounds.Volume = 10
  513.     sounds:play()
  514.     C.Animate.idle.Animation2:remove()
  515.     staff.Parent = C
  516.     staff.Anchored = false
  517.     staff.CanCollide = false
  518.     staff.Name = "Staff"
  519.     local fire = Instance.new("Fire")
  520.     fire.Heat = 25
  521.     fire.Color = Color3.new(0.0352941, 0.345098, 0.92549)
  522.     fire.Size = 2
  523.     fire.SecondaryColor = Color3.new(0.0352941, 0.0666667, 0.545098)
  524.     fire.Parent = staff
  525.     weld.Name = "staffweld"
  526.     weld.Parent = C.Torso
  527.     weld.Part0 = staff
  528.     weld.Part1 = C:FindFirstChild("Right Arm")
  529.     weld.C1 = CFrame.fromEulerAnglesXYZ(-1.5, 3.2, 0)
  530.     weld.C0 = CFrame.new(-0.4, 0, -0.9)
  531.     local mesh = Instance.new("SpecialMesh")
  532.     mesh.MeshType = Enum.MeshType.FileMesh
  533.     mesh.Scale = Vector3.new(0.02, 0.02, 0.02)
  534.     mesh.MeshId = "rbxassetid://591079842"
  535.     mesh.TextureId = "rbxassetid://591079849"
  536.     mesh.Parent = staff
  537.     wait(0.5)
  538. wait(1.5)
  539. C.Humanoid.Name = "Merasmus"
  540.  
  541. print("Merasmus is swag.moi")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement