Advertisement
metilol

Untitled

May 1st, 2018
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. wait(1/60)
  2.  
  3. plr = game:service'Players'.LocalPlayer
  4. char = plr.Character
  5. root = char:FindFirstChild'HumanoidRootPart'
  6. hum = char:FindFirstChildOfClass'Humanoid'
  7. mouse = plr:GetMouse()
  8. clones = {}
  9. followplr = true
  10. radius = 50
  11.  
  12. num = 1
  13. cooldown = false
  14. rand = math.random(1,2)
  15.  
  16. for i = 1,10 do
  17. wait()
  18. char.Archivable = true
  19. clone = char:Clone()
  20. for _, a in pairs(clone:children()) do
  21. if a.Name == "Right Arm" or a.Name == "UpperRightArm" then
  22. a:Destroy()
  23. elseif a.Name == 'Left Arm' or a.Name == 'UpperLeftArm' then
  24. a:Destroy()
  25. elseif a.Name == "Torso" or a.Name == "UpperTorso" then
  26.     if a.Sound then
  27.         a.Sound:Remove()
  28.     end
  29. end
  30. end
  31. table.insert(clones,clone)
  32. end
  33.  
  34. for _, a in pairs(clones) do
  35. a.Parent = char
  36. a:MoveTo(root.Position + Vector3.new(math.random(1,10),math.random(1,10),math.random(1,10)))
  37. end
  38.  
  39. function sfx1()
  40. for _, a in pairs(clones) do
  41. rand = math.random(1,2)
  42. if rand == 1 then
  43. a.Body['TheWay1'].Pitch = math.random(0.9,1)
  44. a.Body['TheWay1']:Stop()
  45. a.Body['TheWay2']:Stop()
  46. a.Body['TheWay1']:Play()
  47. elseif rand == 2 then
  48. a.Body['TheWay2'].Pitch = math.random(0.9,1)
  49. a.Body['TheWay2']:Stop()
  50. a.Body['TheWay1']:Stop()
  51. a.Body['TheWay2']:Play()
  52. end
  53. wait(math.random(0.4,0.6))
  54. end
  55. end
  56.  
  57. function sfx2()
  58. for _, a in pairs(clones) do
  59. a.Body.Spit.Pitch = math.random(0.9,1)
  60. a.Body.Spit:Play()
  61. wait(math.random(0.4,0.6))
  62. end
  63. end
  64.  
  65. mouse.KeyDown:connect(function(k)
  66. key = k:lower()
  67. if key == "q" and not cooldown then
  68. cooldown = true
  69. sfx1()
  70. wait(.7)
  71. cooldown = false
  72. elseif key == "e" and not cooldown then
  73. cooldown = true
  74. sfx2()
  75. wait(.7)
  76. cooldown = false
  77. end
  78. end)
  79.  
  80. plr.Chatted:connect(function(m)
  81. if string.sub(m:lower(),1,15) == "Quack!" then
  82. for _,v in pairs(game:service'Players':GetPlayers()) do
  83. if string.find(v.Name:lower(),string.sub(m:lower(),17,-1)) then
  84. stalking = v
  85. else
  86. stalking = plr
  87. end
  88. end
  89. elseif string.sub(m:lower(),1,16) == "Proquack!" then
  90. for _,v in pairs(game:service'Players':GetPlayers()) do
  91. if string.find(v.Name:lower(),string.sub(m:lower(),18,-1)) then
  92. protecting = v
  93. else
  94. protecting = nil
  95. end
  96. end
  97. end
  98. end)
  99.  
  100. while wait(1) do
  101. number = #clones
  102. position = root.CFrame
  103. protecting = false
  104. if stalking == nil then
  105. followplr = true
  106. elseif stalking ~= nil then
  107. followplr = false
  108. end
  109. for _, a in pairs(clones) do
  110. if a:FindFirstChildOfClass'Humanoid' and followplr and not protecting then
  111. a:FindFirstChildOfClass'Humanoid':MoveTo(root.Position + Vector3.new(math.random(-10,10),0,math.random(-10,10)))
  112. end
  113. end
  114. if not protecting and not followplr and stalking ~= nil and stalking.Character:FindFirstChild'HumanoidRootPart' then
  115. for _, a in pairs(clones) do
  116. if a:FindFirstChildOfClass'Humanoid' then
  117. a:FindFirstChildOfClass'Humanoid':MoveTo(stalking.Character.HumanoidRootPart.Position + Vector3.new(math.random(-10,10),0,math.random(-10,10)))
  118. end
  119. end
  120. rand = math.random(1,10)
  121. if rand == 5 then
  122. for i = 1,3 do
  123. random = clones[math.random(1,#clones)]
  124. rand = math.random(1,2)
  125. if rand == 1 then
  126. random.Body['TheWay1']:Play()
  127. else
  128. random.Body['TheWay2']:Play()
  129. end
  130. end
  131. end
  132. end
  133. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement