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 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)