Hello everyone! I’ve been trying to get an effect like Vibe Train’s movement. Example: The train moving while players are fine and not jittery, i know how this works, but i don’t really know how to recreate it.
Possibly CFrame, or you could use a surface UI, and use tweenservice. I would recommend taking my advice with a grain of salt, since I am not a scripter.
-- just an example
local model = workspace.Model -- the outside
local defaultCFrame = model:GetPrimaryPartCFrame() -- the default cframe (where it should reset at)
local function loop()
if model:GetPrimaryPartCFrame() == defaultCFrame - Vector3.new(100, 0, 0) then -- check if it went back a certain distance
model:SetPrimaryPartCFrame(defaultCFrame) -- reset the position
end
model:SetPrimaryPartCFrame(model:GetPrimaryPartCFrame() - Vector3.new(10, 0, 0)) -- make it go backwards
wait(0.1) -- so it doesn't crash studio
loop() -- do it all again
end
loop() -- call the function
-- this script is just for a basic visualization of what it should look like, this may not work in real time
I’m thinking the outside was actually models being placed at a certain disance, then using CFrame to be pushed backwards, then destroyed after a certain amount of time.