Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local t=Instance.new("HopperBin",game.Players.LocalPlayer.Backpack)
- t.Name="Detain"
- sub=nil
- t.Selected:connect(function(m)
- m.Button1Down:connect(function()
- if m.Target~=nil then
- pcall(function() sub.Parent.Torso.Anchored=false end)
- sub=m.Target
- if sub.Parent:FindFirstChild("Torso")~=nil then
- sub.Parent.Torso.Anchored=true
- coroutine.wrap(function()
- while sub.Parent.Torso.Anchored do wait()
- sub.Parent.Torso.CFrame=game.Players.LocalPlayer.Character.Torso.CFrame*CFrame.new(0,0,-2.5)
- end
- end)()
- end
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement