@gunwormz: I'd love to see people implement this in their games --------------------------------- Copy this into a local script in StarterCharacterScripts ---- local RunService = game:GetService("RunService") local Players = game:GetService("Players") local character = script.Parent local humanoidRootPart = character:WaitForChild("HumanoidRootPart") -- Variables to track the platform's state between frames local lastPlatform = nil local lastPlatformCFrame = nil -- Heartbeat runs after physics calculations, perfect for CFrame snapping RunService.Heartbeat:Connect(function(deltaTime) -- 1. Raycast down to find what the player is standing on local rayOrigin = humanoidRootPart.Position local rayDirection = Vector3.new(0, -15, 0) -- Adjust based on your character's HipHeight local raycastParams = RaycastParams.new() raycastParams.FilterDescendantsInstances = {character} raycastParams.FilterType = Enum.RaycastFilterType.Exclude local raycastResult = workspace:Raycast(rayOrigin, rayDirection, raycastParams) if raycastResult and raycastResult.Instance then local currentPlatform = raycastResult.Instance -- 2. Check if the platform is your train (using tags or names) -- We highly recommend using CollectionService to tag moving platforms if currentPlatform:HasTag("MovingPlatform") then if lastPlatform == currentPlatform then -- 3. Calculate the Delta CFrame (How much it moved/rotated) -- C1 * C0^-1 gives you the offset between the two frames local platformDeltaCFrame = currentPlatform.CFrame * lastPlatformCFrame:Inverse() print(currentPlatform.CFrame, lastPlatformCFrame:Inverse(), platformDeltaCFrame) -- 4. Apply that exact same offset to the player humanoidRootPart.CFrame = platformDeltaCFrame * humanoidRootPart.CFrame end -- Update tracking variables for the next frame lastPlatform = currentPlatform lastPlatformCFrame = currentPlatform.CFrame else -- The player is standing on normal ground lastPlatform = nil lastPlatformCFrame = nil end else -- The player is mid-air (jumping) lastPlatform = nil lastPlatformCFrame = nil end end) --------------------------------- #robloxstudio #foryoupage #gaming #gamedev
gunwormz
Region: US
Wednesday 15 July 2026 16:48:31 GMT
Music
Download
Comments
Gerbil_king :
Games with airplanes need to implement this
2026-07-15 21:26:54
2961
️ :
Jailbreak actually moves the whole map, not the train
2026-07-16 20:22:01
55
✈️ Delta 🧬 :
I remember when the jailbreak train wasn't able to do that and it was so annoying
2026-07-16 04:07:17
603
vanganban :
Was thinking about this the other day
2026-07-15 17:46:32
136
pileton :
this is actually realistic and the real way how physics work because wind resistance, so if youre on a train OUTSIDE you wont stay on the same place you were before unlike when inside without air resistance
2026-07-16 15:05:13
7
4nge1 :
move the ground
2026-07-15 23:51:33
12
:
i hate when games dont have it😭
2026-07-16 14:50:11
29
Nick :
Roblox implemented this a year ago. But you have to implement they’re “new” movement system cause it’s not standard yet
2026-07-16 06:22:58
5
rune''' :
i love finding non ai roblox dev posts
2026-07-16 11:22:05
8
Astronautdudeguy :
You explained it really perfectly
2026-07-15 20:24:12
8
crayt :
roblox physics is good
2026-07-17 19:17:44
0
marcus :
not that complicated
2026-07-17 20:33:25
0
. :
Build a boat for treasure needs that
2026-07-15 21:00:57
2
⃟ :
For build a boat 🙏🏻🙏🏻
2026-07-17 10:58:27
0
hatenal :
force due to air resistance
2026-07-17 13:02:26
0
sixoverseven :
if you put the math on the camera's cframe as well it'll turn with the train and feel like you're really on it
2026-07-15 18:24:02
6
Doodle Noodle>>AWU🦖 :
Ur so based
2026-07-15 18:17:02
7
🗽🇺🇸George Washington🇺🇸🗽 :
couldn't you make the platform taller and invisible with no collision
2026-07-15 20:12:20
7
Zazu :
You should do that only when youre in a closed zone, because in reality air particles does some bla bla and pushes you back if you jump in a moving plataform
2026-07-16 23:00:27
0
Molly 🇳🇱 :
this is so overly complicated lol just make a bounding box that creates a ghost version of yourself
2026-07-16 18:10:35
3
hidz :
bro just AI it omg dont gotta do allat 😭💔
2026-07-16 20:38:46
3
ִ️⃝ᅠ ️⃝ᅠ ️⃝ᅠ ️⃝ᅠ ️⃝ᅠ: :
Ooor just use the method Roblox added. Character controllers
2026-07-17 13:36:19
3
To see more videos from user @gunwormz, please go to the Tikwm
homepage.