RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"create a player drag system with a rope with the keybind G"
-- local script local player = game.Players.LocalPlayer local character = player.Character local mouse = player:GetMouse() local rope = Instance.new("RopeConstraint") local function onKeyDown(key) if key == "g" then local part = Instance.new("Part") part.Parent = character part.Anchored = true part.Position = character.Head.Position rope.Parent = part rope.Attachment0 = part rope.Attachment1 = mouse.Target rope.Visible = true end end mouse.KeyDown:Connect(onKeyDown) local function onKeyUp(key) if key == "g" then rope.Visible = false rope.Parent:Destroy() end end mouse.KeyUp:Connect(onKeyUp)