RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"create a player drag system with a rope"
-- local script local character = script.Parent.HumanoidRootPart local rope = script.Parent.Rope local dragging = false local function drag(otherPart) if dragging then character.CFrame = CFrame.new(rope.Position, otherPart.Position) end end rope.Touched:Connect(drag) local function startDrag(otherPart) if otherPart.Parent:FindFirstChild("Humanoid") then dragging = true end end rope.Touched:Connect(startDrag) local function endDrag(otherPart) if otherPart.Parent:FindFirstChild("Humanoid") then dragging = false end end rope.TouchEnded:Connect(endDrag)