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
    local rope ="RopeConstraint", Hook);
    local Lure ="Part", workspace);
    Lure.Size =, .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 ="Attachment")

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

    rope.Attachment1 = attachment1
    attachment1.Position +=, 2.5, 0);
    Lure.CFrame = attachment1.CFrame
    debounce = false


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!