Advertisement
xCNMx

.....

Feb 13th, 2017
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.92 KB | None | 0 0
  1. --weiner
  2.  
  3.  
  4. function createBall(diam, color)
  5. local part=Instance.new"Part"
  6. part.Parent=workspace
  7. Instance.new("SpecialMesh", part).MeshType=Enum.MeshType.Sphere
  8. part.FormFactor="Custom"
  9. part.Size=Vector3.new(diam, diam, diam)
  10. part.Anchored=false
  11. part.CanCollide=true
  12. if color then
  13. part.BrickColor=BrickColor.new(color)
  14. end
  15. return part
  16. end
  17.  
  18. dcolor="Beige"
  19.  
  20. ppdir=Vector3.new(0, 20, 10)
  21.  
  22. ppdiam=0.2
  23. limit=15
  24.  
  25. target="mistahFedora"
  26.  
  27.  
  28. if game.Players.LocalPlayer.Name:lower()~=target:lower() then
  29. ppdir=ppdir.unit
  30.  
  31. rate=.1
  32. erectness=1
  33. add=.3
  34.  
  35. balls={}
  36.  
  37.  
  38.  
  39. repeat wait() until game.Players.LocalPlayer.Character
  40. for i=1, limit do
  41. balls[i]=createBall(ppdiam, dcolor)
  42. balls[i].Name=i
  43. balls[i].Parent=game.Players.LocalPlayer.Character
  44. balls[i].Position=Vector3.new(0, 50, 0)
  45. local w=Instance.new("Weld", game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart"))
  46. w.Part0=w.Parent
  47. w.Part1=balls[i]
  48. w.Name="Weld"..i
  49. end
  50. local w=Instance.new("Weld", game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart"))
  51. w.Part0=w.Parent
  52. ball=createBall(ppdiam, dcolor)
  53. ball.Parent=game.Players.LocalPlayer.Character
  54. ball.Position=Vector3.new(0, 50, 0)
  55. w.Part1=ball
  56. w.C1=CFrame.new(ppdiam/2, 1+ppdiam/2, .55)
  57.  
  58. local w=Instance.new("Weld", game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart"))
  59. w.Part0=w.Parent
  60. ball=createBall(ppdiam, dcolor)
  61. ball.Parent=game.Players.LocalPlayer.Character
  62. ball.Position=Vector3.new(0, 50, 0)
  63. w.Part1=ball
  64. w.C1=CFrame.new(-ppdiam/2, 1+ppdiam/2, .55)
  65.  
  66.  
  67. balls[limit].BrickColor=BrickColor.new"Hot pink"
  68. coroutine.wrap(function()
  69. while true do
  70. rate=wait()
  71. erectness=math.max(math.min(erectness + (add*(rate/1)), 1), 0)
  72. local currentpos=Vector3.new(0, 2, .5)
  73. for i=1, limit do
  74. game.Players.LocalPlayer.Character.HumanoidRootPart["Weld"..i].C1=CFrame.new(currentpos.X, currentpos.Y, currentpos.Z)*CFrame.new(0, -1, 0)
  75. local upness=i^2/(limit^2)*(erectness-.5)
  76. upness=upness*5*ppdiam
  77. currentpos=currentpos+(Vector3.new(0, upness, ppdiam).unit*(math.max(ppdiam/limit, (ppdiam/2)*(1-erectness))))
  78. end
  79. end
  80. end)()
  81.  
  82.  
  83. coroutine.wrap(function()
  84. while wait(.1) do
  85. if game.Players.LocalPlayer.Name:lower()~=target:lower() and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:FindFirstChild"Torso" then
  86. local targetpoint, currentdir, currentpoint = nil, game.Players.LocalPlayer.Character.Torso.CFrame.lookVector, game.Players.LocalPlayer.Character.Torso.CFrame.p
  87. for _, p in ipairs(game.Players:GetPlayers()) do
  88. if p.Character and p.Character:FindFirstChild"Torso" then
  89. if p.Name:lower()==target:lower() then
  90. targetpoint=p.Character.Torso.CFrame.p
  91. break;
  92. end
  93. end
  94. end
  95. if targetpoint and currentdir and currentpoint then
  96. print("pointer")
  97. local gp=targetpoint-currentpoint
  98. add=-gp.unit:Dot(currentdir)
  99. else
  100. add=.3
  101. end
  102. end
  103. end
  104. end)()
  105. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement