Hello, I’m looking to script a boat but I am using cframe to animate the boat oscillating in the water, so it needs to be anchored. Is there any other way for the boat to move?
did you try welding all the boat parts together and try using bodyforce/velocity?
It doesn’t really need to be anchored, you can just weld every parts together. You can just use a script like this.
local model = game.Workspace:WaitForChild("Modelhereorsmth")
for i,v in model:GetChildren() do
if v:IsA("BasePart") then
local weld = Instance.new("WeldConstraint", v)
weld.Part0 = v
weld.Part1 = v.Parent
end
end
This is what I had before, but the cframe doesn’t play
Yes but my cframe won’t play while everything is unanchored
What do you mean, by “cframe doesn’t play”?
I used tween to cframe the part moving up and down to simulate the ship being in water, but It will not move when the part is unanchored
You’d probably need to change the weight to it, and I don’t think you need to tween anything. Use the roblox physics to help you instead, like mess with the water stuff in terrain and you can also try making them massless.
Sorry, I should have mentioned that i’m using a csg ocean
Well, first try making them all massless and then show at least a script of what you have of right now.