Advertisement
OofeyDoofy

Creepy v1.0

Feb 10th, 2018
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.48 KB | None | 0 0
  1. npc=Instance.new("Model")
  2. head=Instance.new("Part")mesh=Instance.new("SpecialMesh")
  3. face=Instance.new("Decal")mesh_2=Instance.new("SpecialMesh")
  4. torso=Instance.new("Part")roblox=Instance.new("Decal")
  5. right_shoulder=Instance.new("Motor")left_shoulder=Instance.new("Motor")
  6. right_hip=Instance.new("Motor")left_hip=Instance.new("Motor")
  7. neck=Instance.new("Motor")mesh_3=Instance.new("SpecialMesh")
  8. left_arm=Instance.new("Part")mesh_4=Instance.new("SpecialMesh")
  9. right_arm=Instance.new("Part")mesh_5=Instance.new("SpecialMesh")
  10. left_leg=Instance.new("Part")mesh_6=Instance.new("SpecialMesh")
  11. right_leg=Instance.new("Part")mesh_7=Instance.new("SpecialMesh")
  12. humanoid=Instance.new("Humanoid")npc.PrimaryPart=head;npc.Name=""npc.Parent=workspace
  13. head.Size=Vector3.new(2,1,1)head.Color=Color3.new(0.960784,0.803922,0.188235)
  14. head.BrickColor=BrickColor.new(24)head.TopSurface=0;head.Name="Head"head.Parent=npc
  15. head.CFrame=CFrame.new(135.76,156.73,138.82)mesh.Scale=Vector3.new(1.25,1.25,1.25)mesh.Parent=head
  16. face.Texture="rbxasset://textures/face.png"face.Name="face"face.Parent=head;mesh_2.MeshType=5
  17. mesh_2.Scale=Vector3.new(0.873,0.873,0.873)mesh_2.MeshId="http://www.roblox.com/asset/?id=114690930 "
  18. mesh_2.TextureId="http://www.roblox.com/asset/?id=297548963"mesh_2.Parent=head;torso.Size=Vector3.new(2,2,1)
  19. torso.RightSurface=2;torso.Name="Torso"torso.RightParamA=0;torso.LeftParamA=0
  20. torso.LeftParamB=0;torso.BrickColor=BrickColor.new(23)torso.LeftSurface=2
  21. torso.Color=Color3.new(0.0509804,0.411765,0.67451)torso.RightParamB=0;torso.Parent=npc
  22. torso.CFrame=CFrame.new(135.76,155.23,138.82)roblox.Name="roblox"roblox.Parent=torso
  23. right_shoulder.Part1=right_arm
  24. right_shoulder.C0=CFrame.new(1,0.5,0)*CFrame.Angles(0,1.571,0)right_shoulder.Part0=torso;right_shoulder.C1=CFrame.new(-0.5,0.5,0)*
  25. CFrame.Angles(0,1.571,0)
  26. right_shoulder.Name="Right Shoulder"right_shoulder.MaxVelocity=0.15;right_shoulder.Parent=torso
  27. left_shoulder.Part1=left_arm
  28. left_shoulder.C0=CFrame.new(-1,0.5,0)*CFrame.Angles(0,-1.571,0)left_shoulder.Part0=torso
  29. left_shoulder.C1=CFrame.new(0.5,0.5,0)*CFrame.Angles(0,
  30. -1.571,0)left_shoulder.Name="Left Shoulder"
  31. left_shoulder.MaxVelocity=0.15;left_shoulder.Parent=torso;right_hip.Part1=right_leg
  32. right_hip.C0=CFrame.new(1,
  33. -1,0)*CFrame.Angles(0,1.571,0)right_hip.Part0=torso;right_hip.C1=CFrame.new(0.5,1,0)*
  34. CFrame.Angles(0,1.571,0)
  35. right_hip.Name="Right Hip"right_hip.MaxVelocity=0.1;right_hip.Parent=torso
  36. left_hip.Part1=left_leg
  37. left_hip.C0=CFrame.new(-1,-1,0)*CFrame.Angles(0,-1.571,0)left_hip.Part0=torso;left_hip.C1=CFrame.new(-0.5,1,0)*
  38. CFrame.Angles(0,-1.571,0)
  39. left_hip.Name="Left Hip"left_hip.MaxVelocity=0.1;left_hip.Parent=torso;neck.Part1=head
  40. neck.C0=
  41. CFrame.new(0,1,0)*CFrame.Angles(-1.571,0,-3.142)neck.Part0=torso;neck.C1=CFrame.new(0,-0.5,0)*
  42. CFrame.Angles(-1.571,0,-3.142)neck.Name="Neck"
  43. neck.MaxVelocity=0.1;neck.Parent=torso;mesh_3.MeshType=5
  44. mesh_3.Scale=Vector3.new(0.499,0.499,0.499)mesh_3.MeshId="http://www.roblox.com/asset/?id=152167638"
  45. mesh_3.TextureId="http://www.roblox.com/asset/?id=297542876"mesh_3.Parent=torso;left_arm.CanCollide=false
  46. left_arm.Size=Vector3.new(1,2,1)
  47. left_arm.Color=Color3.new(0.960784,0.803922,0.188235)left_arm.BrickColor=BrickColor.new(24)
  48. left_arm.Name="Left Arm"left_arm.Parent=npc
  49. left_arm.CFrame=CFrame.new(134.26,155.23,138.82)mesh_4.MeshType=5
  50. mesh_4.Scale=Vector3.new(0.499,0.499,0.499)mesh_4.MeshId="http://www.roblox.com/asset/?id=152167720"
  51. mesh_4.TextureId="http://www.roblox.com/asset/?id=152618588"mesh_4.Parent=left_arm;right_arm.CanCollide=false
  52. right_arm.Size=Vector3.new(1,2,1)
  53. right_arm.Color=Color3.new(0.960784,0.803922,0.188235)right_arm.BrickColor=BrickColor.new(24)
  54. right_arm.Name="Right Arm"right_arm.Parent=npc
  55. right_arm.CFrame=CFrame.new(137.26,155.23,138.82)mesh_5.MeshType=5
  56. mesh_5.Scale=Vector3.new(0.499,0.499,0.499)mesh_5.MeshId="http://www.roblox.com/asset/?id=152167765"
  57. mesh_5.TextureId="http://www.roblox.com/asset/?id=152618588"mesh_5.Parent=right_arm;left_leg.CanCollide=false
  58. left_leg.Size=Vector3.new(1,2,1)left_leg.BrickColor=BrickColor.new(119)
  59. left_leg.BottomSurface=0
  60. left_leg.Color=Color3.new(0.643137,0.741176,0.278431)left_leg.Name="Left Leg"left_leg.TopSurface=4;left_leg.Parent=npc
  61. left_leg.CFrame=CFrame.new(135.26,153.23,138.82)mesh_6.MeshType=5
  62. mesh_6.Scale=Vector3.new(0.499,0.499,0.499)mesh_6.MeshId="http://www.roblox.com/asset/?id=152167845"
  63. mesh_6.TextureId="http://www.roblox.com/asset/?id=152618588"mesh_6.Parent=left_leg;right_leg.CanCollide=false
  64. right_leg.Size=Vector3.new(1,2,1)right_leg.BrickColor=BrickColor.new(119)
  65. right_leg.BottomSurface=0
  66. right_leg.Color=Color3.new(0.643137,0.741176,0.278431)right_leg.Name="Right Leg"right_leg.TopSurface=4
  67. right_leg.Parent=npc;right_leg.CFrame=CFrame.new(136.26,153.23,138.82)
  68. mesh_7.MeshType=5;mesh_7.Scale=Vector3.new(0.499,0.499,0.499)
  69. mesh_7.MeshId="http://www.roblox.com/asset/?id=152167904"mesh_7.TextureId="http://www.roblox.com/asset/?id=152618588"
  70. mesh_7.Parent=right_leg;humanoid.NameOcclusion=0;humanoid.Parent=npc
  71. local dance3 = Instance.new("Animation")
  72. dance3.Name = "Dance3"
  73. dance3.AnimationId = "rbxassetid://27759788"
  74. dance3.Parent = npc.Head
  75. local humanoid = npc.Humanoid
  76. local w = humanoid:LoadAnimation(npc.Head.Dance3)
  77. w:Play()
  78. local startsound = Instance.new("Sound")
  79. startsound.Name = "MerasmusIntro"
  80. startsound.SoundId = "http://www.roblox.com/asset/?id=961600832"
  81. startsound.Parent = npc
  82. startsound.Volume = 10
  83. startsound.Looped = true
  84. startsound:play()
  85. function onTouch(part)
  86. local humanoid = part.Parent:findFirstChild("Humanoid")
  87. if (humanoid ~=nil) then
  88. humanoid.Health = humanoid.Health - 25
  89. end
  90. end
  91. npc.Torso.Touched:connect(onTouch)
  92. npc.Parent = game.workspace
  93. function findNearestTorso(pos)
  94.     local list = game.Workspace:children()
  95.     local torso = nil
  96.     local dist = 1000
  97.     local temp = nil
  98.     local human = nil
  99.     local temp2 = nil
  100.     for x = 1, #list do
  101.         temp2 = list[x]
  102.         if (temp2.className == "Model") and (temp2 ~= npc) then
  103.             temp = temp2:findFirstChild("Torso")
  104.             human = temp2:findFirstChild("Humanoid")
  105.             if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  106.                 if (temp.Position - pos).magnitude < dist  then
  107.                     torso = temp
  108.                     dist = (temp.Position - pos).magnitude
  109.                 end
  110.             end
  111.         end
  112.     end
  113.     return torso
  114. end
  115.     while true do
  116.     local MaxInc = 40
  117.     local target = findNearestTorso(npc.Torso.Position)
  118.     wait(0.5)
  119.     if target ~= nil then
  120.     npc.Humanoid:MoveTo(target.Position)
  121.     target.Parent.Humanoid.Health = target.Parent.Humanoid.Health - 9
  122.     end
  123.     wait(0.5)
  124.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement