----------------------------------------------------------------------
-----------------------By Apocalyps-------------------------------
--When using this, it would be nice if you gave credit!---
----------------------------------------------------------------------
----------------------------------------------------------------------
script.Parent.MouseButton1Down:connect(function(x,y)
local startPos = script.Parent.Position
local conn = script.Parent.MouseMoved:connect(function(X,Y)
script.Parent.Position = startPos + UDim2.new(0,X-x,0,Y-y)
end)
script.Parent.MouseButton1Up:wait()
conn:disconnect()
end)
Copy above.
Script is not mine. |