This is a video to show my problem:
If I anchor any other blocks that are not part of the ship, the ship just goes under water and I don’t know how to fix it.
This is a video to show my problem:
If I anchor any other blocks that are not part of the ship, the ship just goes under water and I don’t know how to fix it.
Is the ship initially anchored? Can you share any scripts that are used to move the boat? Does the boat contain any body movers?
No, the ship is not anchored.
These are the scripts that are attached to the vehicle seat.
Check
local seat = script.Parent
function checkOccupant()
if seat.Occupant ~= nil then
local findPlayer = game.Players:FindFirstChild(seat.Occupant.Parent.Name)
if findPlayer then
script.Parent.Control.Disabled = false
end
elseif seat.Occupant == nil then
script.Parent.Control.Disabled = true
end
end
checkOccupant()
seat.Changed:Connect(function()
checkOccupant()=
end)
Control
local seat = script.Parent
local speed = 0
local bv = script.Parent.BodyVelocity
local bg = script.Parent.BodyGyro
while true do
wait()
if seat.Throttle == 1 then
if speed < seat.MaxSpeed then
speed = speed + 0.5
end
bv.Velocity = script.Parent.CFrame.LookVector * speed
elseif seat.Throttle == 0 then
if speed > 0 then
speed = speed - 0.5
elseif speed < 0 then
speed = speed + 0.5
end
bv.Velocity = script.Parent.CFrame.LookVector * speed
elseif seat.Throttle == -1 then
if speed > -seat.MaxSpeed then
speed = speed - 0.25
end
bv.Velocity = script.Parent.CFrame.LookVector * speed
end
if seat.Steer == 1 then
bg.CFrame = bg.CFrame * CFrame.fromEulerAnglesXYZ(0, -math.rad(1), 0)
elseif seat.Steer == -1 then
bg.CFrame = bg.CFrame * CFrame.fromEulerAnglesXYZ(0, math.rad(1), 0)
end
end
Boat Position
local oceanLevel = workspace:WaitForChild("Ocean").OceanLevel.Value
script.Parent.Position = Vector3.new(0, oceanLevel + 30, 0)
Ocean Level
script.Parent.OceanLevel.Value = script.Parent.Position.Y
Hi! How are you!
So if you want the ship to be “moving”, then it shouldn’t be anchored but its gonna fall if you placed it in the sky, and maybe it will break apart if your not using a qperfection weld but I’m 100% sure about this one.
So if you want it in its place and not move then it should be anchored, If you want it to move, then unanchore it and then place it above the baseplate so it won’t fall of the sky!
Hope my answer was helpful!
The thing is, the boat is already anchored and I don’t place it in the sky. The placement of the ship is supposed to be a specific level above the water.
Oh… I get what you’re saying, this is supposed to be water. I’m not a builder so I don’t know much about making boats and water, but I believe that there is a part that is placed somewhere different which makes the whole boat stick to it.
Maybe try checking on all the parts, if there is nothing wrong with it, try unanchoring it, I believe that maybe its because of the seat? I’m not really sure about this sorry!
Sorry, I don’t know much about this, I’m not really used to making really good building like making a boat, I’m used to scripting. Sorry!