My fishing rod isn't working properly

Hey there! I am making a fishing system as a quest for my game, but it doesn’t work as it should. Here’s the video:

External Media

and here is the code:

local FishingRod = script.Parent;

local Hook = FishingRod:WaitForChild('Hook')

local debounce = false

local function on_Activated()
    
    if not debounce then
        debounce = true
    else
        return;
    end    
    
    
    local rope = Instance.new("RopeConstraint", Hook);
    
    local Lure = Instance.new("Part", workspace);
    
    Lure.Size = Vector3.new(.2, .2, .2)
    
    Lure.CFrame = Hook.CFrame;
    
    
    rope.Visible = true
    
    rope.Length = (game.Players.LocalPlayer:GetMouse().Hit.p - Lure.CFrame.p).magnitude;
    
    rope.Thickness = 0.5;
    
    local attachment1 = Instance.new("Attachment")

    local velo = Instance.new("BodyVelocity", Lure);
    
    velo.MaxForce = Vector3.new(1,1,1) * math.huge
    
    velo.P = 20
    
    velo.Velocity = game.Players.LocalPlayer:GetMouse().Hit.lookVector * 50 + Vector3.new(0, 10, 0);
    
    attachment1.Parent = Lure
    
    rope.Attachment0 = Hook:FindFirstChild("Attachment")

    rope.Attachment1 = attachment1
    
    attachment1.Position += Vector3.new(0, 2.5, 0);
    
    wait(0.5)
    
    velo:Destroy()
    Lure.CFrame = attachment1.CFrame
    
    wait(5)
    
    debounce = false
    
    rope:Destroy()
    
    Lure:Destroy()
    
    attachment1:Destroy()
    
end


FishingRod.Activated:Connect(on_Activated);

Help is appreciated! Thanks!:smiley:

Hey I can help you! Use attachments, I will show you what shud be the code.

Uhh, I am using attachments, please read the code again.

Okay Now let me correct the code.

May I get access to a separate world with tc?

No, sorry. I am not team-creating anyone.

Can I team create with u? add ur fishing rod model/a free model then I will fix ur prob.

Okay. Team Create me and then I’ll add my fishing rod.

Okay add me in roblox, also do you have disco?

I sent you a friend request. Accept it

Okay, Let me add you…, a sec

sorry for delay. acccepted! now let me add you to tc!