Trying to script a Boat Landed Script, but it doesn't work

So, for some reason my script isn’t working, and I have no idea why. Hopefully by just looking at it, you can understand what I’m working with. I would really appreciate help with it, thanks!

script:

local killpart = script.Parent
local Boat1 = game.workspace.Boats.Boat1
local Boat2 = game.workspace.Boats.Boat2
local Boat3 = game.workspace.Boats.Boat3
local Boat4 = game.workspace.Boats.Boat4
local Boat5 = game.workspace.Boats.Boat5

local function BoatLanded(Part)
local Parent = Part.Parent
if game.workspace.Boats.Boat1 then
Boat1:GetChildren().Anchored = true
else
end
if game.workspace.Boats.Boat2 then
Boat2:GetChildren().Anchored = true
end
if game.workspace.Boats.Boat3 then
Boat3:GetChildren().Anchored = true
end
if game.workspace.Boats.Boat4 then
Boat4:GetChildren().Anchored = true
end
if game.workspace.Boats.Boat5 then
Boat5:GetChildren().Anchored = true
end
end

killpart.Touched:Connect(BoatLanded)