Having trouble with a tool gun rope system

I am attempting to get position outside a part relative to the mouse.

So lets say I click on a part, I want to make an attachment at said position on the part.

The red arrow would be the mouse,
and the attachment that would be spawned is the green dot,
the black lines would be said part.

I may just remove this since it isnt getting attention

Like that ? (local script in StarterCharacterScripts)

local player = game.Players.LocalPlayer
local mouse = player:GetMouse()

mouse.Button1Down:Connect(function()
	local Hit = mouse.Hit.p
	local Attachement = Instance.new("Attachment",mouse.Target)
	Attachement.WorldCFrame = CFrame.new(Hit)
	Attachement.Visible = true
end)

Use workspace:Raycast() then check if it hit the part, then use the hit position and add the attachment

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.