RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"create a player drag system with a rope"
-- local script local player = game.Players.LocalPlayer local character = player.Character local mouse = player:GetMouse() local rope = Instance.new("RopeConstraint") local function drag() local target = mouse.Target if target and target.Parent == character then rope.Parent = target rope.Attachment0 = character.HumanoidRootPart.CFrame rope.Attachment1 = target.CFrame end end mouse.Button1Down:Connect(drag) mouse.Button1Up:Connect(function() rope.Parent = nil end)