Advertisement
memberhero

detain script

Mar 8th, 2018
454
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. local t=Instance.new("HopperBin",game.Players.LocalPlayer.Backpack)
  2. t.Name="Detain"
  3. sub=nil
  4. t.Selected:connect(function(m)
  5. m.Button1Down:connect(function()
  6. if m.Target~=nil then
  7. pcall(function() sub.Parent.Torso.Anchored=false end)
  8. sub=m.Target
  9. if sub.Parent:FindFirstChild("Torso")~=nil then
  10. sub.Parent.Torso.Anchored=true
  11. coroutine.wrap(function()
  12. while sub.Parent.Torso.Anchored do wait()
  13. sub.Parent.Torso.CFrame=game.Players.LocalPlayer.Character.Torso.CFrame*CFrame.new(0,0,-2.5)
  14. end
  15. end)()
  16. end
  17. end
  18. end)
  19. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement