local Player = game.Players.LocalPlayer --local player
local Mouse = Player:GetMouse() --mouse input
local OffClick = ("Dragger")
---Do I just delete Dragger object if this becomes true?
local Click = Instance.new("Dragger")
---What properties can I add to this so i can create a dragger script?
---Where you click to drag specific items then release mouse to drop.
**---Should I create object with transparency and a weld?**
---I'd like some physics to be implemented but will wait until I know
---this can work.
Mouse.Button1Up:connect(function()
if true then OffClick = true
print("OffClick")
end
end)
Mouse.Button1Down:connect(function()
if true then MouseDown = true
print("Click")
end
end)
COMMUNITY QUESTION
Help, simple object dragging script? Yet not so simple, as I'm learning Lua.
1 answer
The Dragger object is a helper object used to create tools that can drag parts. It is expected (but not required) to be used with Mouse events. Its implementation is primarily used in the RbxStamper library.
Functions void AxisRotate ( Axis axis = X )
Rotates the currently dragged part(s) by 90 degrees on the given axis.
void MouseDown ( BasePart mousePart, Vector3 pointOnMousePart, array parts )
Initializes a dragging action, specifying which parts to use when dragging.
void MouseMove ( Ray mouseRay )
Tries to move the currently dragged part to the point where MouseRay hits another part.
void MouseUp ( )
Stops the current dragging action (made by MouseDown).
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Making a drag/drop system is probably tiers above your current level of scripting ability. I highly recommend you learn how to properly use if statements and creating new Instances (the Instance.new). Plenty of online help to guide you.
I was under the impression ther was an API for this system already, according to the Context Help.