Having trouble with script

Hello, so I’ve been trying to make a ship anchors at a certain area script, and it works, but for some reason the velocity keeps going and makes the player go across the boat like a conveyer belt. Help will be very appreciated.

This is how the boat is set up:

Hacksaw Ridge - Script - Roblox Studio 1_24_2024 4_45_16 PM

This is the code:

local Boats = workspace:WaitForChild(“Boats”)
local AnchorPoint = script.Parent

AnchorPoint.Touched:Connect(function(hit)
if hit.Parent.Parent.Parent.Parent.Name ~= “Boats” then return end
for i,v in pairs(hit.Parent.Parent.Parent:GetDescendants()) do
if v:IsA(“BasePart”) then
hit.Parent.Particles:Destroy()
v.Anchored = true
hit.Parent.Parent.Parent.ShipControls.VehicleSeat.Script.Enabled = true
hit.Parent.Parent.Parent.ShipControls.Driving.Value = false
hit.Parent.Parent.Parent.ShipControls.VehicleSeat.Disabled = true
end
end
end)

“I” got it fixed. AI fixed it for me.

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