Aeyao

peescript

Apr 26th, 2016
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.65 KB | None | 0 0
  1. print(script.Parent.Parent.Parent)
  2. print(script.Parent.Parent)
  3. print(script.Parent)
  4.  
  5.  
  6. torso = game.Players.ASlendersBestFrend.Character.Torso
  7. larm = game.Players.ASlendersBestFrend.Character["Left Arm"]
  8. rarm = game.Players.ASlendersBestFrend.Character["Right Arm"]
  9. head = game.Players.ASlendersBestFrend.Character.Head
  10.  
  11.  
  12. tool = Instance.new("HopperBin")
  13. tool.Parent = game.Players.ASlendersBestFrend.Backpack
  14. tool.Name = "PEE"
  15.  
  16. Tool = workspace.ASlendersBestFrend.Head
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23. wait()
  24. function onButton1Down(mouse)
  25. arms = {Tool.Parent:FindFirstChild("Left Arm"), Tool.Parent:FindFirstChild("Right Arm")}
  26. local sh = {torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")}
  27. if sh ~= nil then
  28. sh[1].Part1 = nil
  29. sh[2].Part1 = nil
  30. end
  31. posla = CFrame.new(-0.5,0,0.5) * CFrame.Angles(math.rad(-20),0,math.rad(32))
  32. posra = CFrame.new(0.5,0,0.5) * CFrame.Angles(math.rad(-20),0,math.rad(-32))
  33.  
  34.  
  35. print("eey")
  36.  
  37. weldla = Instance.new("Weld")
  38. weldla.Parent = torso
  39. weldla.Part0 = larm
  40. weldla.Part1 = torso
  41. weldla.C0 = CFrame.new(1.5,0,0)
  42.  
  43. weldra = Instance.new("Weld")
  44. weldra.Parent = torso
  45. weldra.Part0 = rarm
  46. weldra.Part1 = torso
  47. weldra.C0 = CFrame.new(-1.5,0,0)
  48.  
  49.  
  50.  
  51.  
  52. part = Instance.new("Part")
  53. part.Parent = game.Players.ASlendersBestFrend.Character
  54. part.CanCollide = false
  55. part.Size = Vector3.new(0.1,0.1,0.1)
  56. part.Transparency = 1
  57.  
  58. weldpe = Instance.new("Weld")
  59. weldpe.Parent = torso
  60. weldpe.Part0 = torso
  61. weldpe.Part1 = part
  62. weldpe.C0 = CFrame.new(0,-0.8,0)
  63.  
  64.  
  65.  
  66. local poop = Instance.new("ParticleEmitter")
  67. poop.Parent = part
  68. poop.Texture = "http://www.roblox.com/asset/?id=41068180"
  69. poop.Rate = 10000
  70. poop.Acceleration = Vector3.new(0,-10,0)
  71. poop.EmissionDirection = "Front"
  72. poop.Size = NumberSequence.new(0.2)
  73.  
  74.  
  75.  
  76. wait()
  77.  
  78.  
  79.  
  80. weldra.C0 = posla
  81. weldla.C0 = posra
  82.  
  83.  
  84.  
  85.  
  86. end
  87.  
  88. function onButton1Up(mouse)
  89. weldpe:remove()
  90. part:remove()
  91.  
  92.  
  93. weldla.C0 = CFrame.new(1.5,0,0)
  94. weldra.C0 = CFrame.new(-1.5,0,0)
  95.  
  96.  
  97.  
  98. end
  99.  
  100. function onSelected(mouse)
  101. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  102. mouse.Button1Up:connect(function() onButton1Up(mouse) end)
  103. end
  104.  
  105. function onDeselected(mouse)
  106. things = torso:GetChildren()
  107.  
  108. if arms ~= nil and torso ~= nil then
  109. local sh = {torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")}
  110. if sh ~= nil then
  111. sh[1].Part1 = arms[1]
  112. sh[2].Part1 = arms[2]
  113. end
  114. end
  115. for i = 1,#things do
  116. if things[i].ClassName == "Weld" then
  117. things[i].Parent = nil
  118. end
  119.  
  120. end
  121. end
  122.  
  123. game.Players.ASlendersBestFrend.Backpack.PEE.Selected:connect(onSelected)
  124. game.Players.ASlendersBestFrend.Backpack.PEE.Deselected:connect(onDeselected)
Add Comment
Please, Sign In to add comment