RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a left cllck drag script where you can drag anything thats un anchord"
-- local script local player = game.Players.LocalPlayer local mouse = player:GetMouse() local dragging = false mouse.Button1Down:Connect(function() local target = mouse.Target if target and target.CanCollide and not target:IsAncestorOf(player.Character) then dragging = true mouse.Icon = "rbxassetid://YourIconIDHere" end end) mouse.Button1Up:Connect(function() dragging = false mouse.Icon = "" end) game:GetService("RunService").RenderStepped:Connect(function() if dragging then local target = mouse.Target if target and target.CanCollide and not target:IsAncestorOf(player.Character) then target.CFrame = CFrame.new(mouse.Hit.p) end end end)