Advertisement
Tinybang_Studio

Untitled

Sep 2nd, 2019
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. local plr = game.Players.owner
  2. repeat wait() until plr and plr.Character
  3. local mouse = plr:GetMouse()
  4. local mtarget
  5. local down
  6.  
  7. mouse.Button1Down:connect(function()
  8. if mouse.Target ~= nil and mouse.Target.Locked == false and mouse.Target.Name == "Part1" or mouse.Target.Name == "Part2" then -- Change "Part1/Part2" to whatever block you want to be moved by the player.
  9. print(mouse.Target.Name)
  10. mtarget = mouse.Target
  11. down = true
  12. mouse.TargetFilter = mtarget or mouse.Target
  13. end
  14. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement