Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game.Players.owner
- repeat wait() until plr and plr.Character
- local mouse = plr:GetMouse()
- local mtarget
- local down
- mouse.Button1Down:connect(function()
- 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.
- print(mouse.Target.Name)
- mtarget = mouse.Target
- down = true
- mouse.TargetFilter = mtarget or mouse.Target
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement