Right now I'm making a game where at one point you get seated on a boat and after some time the boat moves away, but the problem is as soon as I move a seat the player stops sitting in it.
If there is a way to move the model with the seats in it properly then let me know, otherwise I could change the seats so you don't need to move the model, only the seats. But ofc I need to move the seats while the player remains in the seat.
Try using tweens: Using SetPrimaryPartCFrame() moves parts and seats along with players, if its a model.
01 | local ts = game:GetService( "TweenService" ) |
02 | local destination = CFrame.new() -- put the destination position here, inside |
03 |
04 | local info = TweenInfo.new( |
05 | 1 -- time, |
06 | Enum.EasingStyle.Quad, -- direction |
07 | Enum.EasingDirection.Out, -- style |
08 | 0 , -- repeatcount |
09 | false , -- reverses |
10 | 0 -- delay |
11 | ) |
12 |
13 | local cframevalue = Instance.new( "CFrameValue" , script.Parent) |
14 |
15 | local tween = ts:Create(cframevalue, info, { Value = destination } |
Thats kinda how u do it! (Kind of)