Pull model to player

i have a fishing rod and i want while the player is holding down the mouse the hook to come closer and closer slowly
i tried to move it with linear velocity but it didnt work

local HookModel = workspace.Floatables:FindFirstChild("HookModel")
		
		local LV = Instance.new("LinearVelocity")
		LV.MaxForce = math.huge
		LV.Attachment0 = HookModel.Mesh.VelocityAttachment
		LV.Parent = HookModel

		while game.ReplicatedStorage.Functions.GetKeyHeld:InvokeClient(player, "MouseButton1") and Trown.Value do
			LV.VectorVelocity = Handle.CFrame.LookVector * -30
			HookModel.Mesh.RopeConstraint.Length = (Handle.Position - HookModel.Mesh.Position).Magnitude

			if HookModel.Mesh.RopeConstraint.Length <= 5 then
				Trown.Value = false
				break
			end

			wait(.1)
		end


		LV:Destroy()

		if not Trown.Value then
			HookModel.Parent = Hook
			HookModel.Mesh.Anchored = false
			HookModel.Platform.Anchored = false
			Handle.WeldConstraint.Enabled = true
			HookModel.Mesh.RopeConstraint.Enabled = false
		end
	end

i think the player is getting pulled instead of the hook but im not sure

You’re attaching the LinearVelocity to the Model, which doesn’t have a physical presence in the game. What you want to do is attach it to the Model’s PrimaryPart:

LV.Parent = HookModel.PrimaryPart

This will put the velocity on, at least, one of the parts inside that model. (if it doesn’t work, you may need to click on the Model in Explorer and set the PrimaryPart property by clicking the empty space, then clicking on a part inside the model.)

i tried and its pulling the player i tried anchoring the player but the hook still doesnt move

the model was anchored i unanchored it and it works now

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