I have tried to make a simple raft like in booga booga using a vehical seat but it did not work. the raft simply floats and does not move. Do I have to script this to make it work? I thought I could do it like the basic car where you simply weld a vehicle seat to a part with wheels (which are connected by hinge constraints).
Basically, I would like to know if this requires any scripts. If not, how would I rig this boat? I am not asking for someone to make something for me just some pointers.
Yes you would require it due to
:
Collision service - make the boat collide on water
userinputservice - detect hotkeys and WASD
And also,don’t ask people to write entire systems for you. It’s even on the rules.
I don’t remember exactly how the rafts worked in Booga Booga, but it’s not hard.
A VehicleSeat has Throttle/Steer properties, which are updated by the player controlling the VehicleSeat.
Use a script to update a force or bodymover of some sort when they change.
You can detect changes in these properties with seat.Changed
, seat:GetPropertyChangedSignal("Throttle")
or just checking the throttle and steer in a loop.
VectorForce will apply linear force, so overly heavy rafts might have difficulty moving.
LinearVelocity will apply linear velocity, so rafts might start/stop on a dime, but generally move effortlessly.
Make one of these move the raft with Force = throttle * Vector3.new(0, 0, speed)
. The Z axis is “forward”.
About the same as above, except they apply rotational forces.
Make one of these steer the raft with Force = steer * Vector3.new(0, turnspeed, 0)
. The Y axis is “upward”, meaning it rotates about its top axis.
You should be able to do all of this from a LocalScript inside the VehicleSeat, since the player entering the seat also gets network ownership of the raft, meaning it can move it however it likes.
The exception is if the raft is anchored, or if someone sits on the raft on another seat before the captain does (unless this was patched). It’s not going to be relevant now, but when that issue crops up, just set NetworkOwnership to the Occupant in a Script.
Also, if the raft is unanchored, then exploiters will be able to fling it, teleport it etc., although this isn’t an issue because they can do that even without a raft. Leave it to when you’ve gotten your game almost exploit-proof, and don’t care about it before then.
I said I am NOT asking for a system. I just wanted a help with where I should start.