RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a left cllck drag script where you can drag anything that's un anchored"
-- local script local part = script.Parent local mouse = game.Players.LocalPlayer:GetMouse() local dragging = false local dragPart = nil mouse.Button1Down:Connect(function() local target = mouse.Target if target and target.Parent == part and target:IsA("BasePart") and not target:IsAnchored() then dragging = true dragPart = target end end) mouse.Button1Up:Connect(function() dragging = false dragPart = nil end) mouse.Move:Connect(function() if dragging then local targetPosition = mouse.Hit.p dragPart:SetPrimaryPartCFrame(CFrame.new(targetPosition)) end end)