So in rocket league, it shows the whole scene of how a goal was scored and everything. How would I do this is in roblox? I have heard about recording cframes and then putting players in the same position as the recorded cframe, but wouldn’t this cause lag?
That’s kinda the only way I can see it happening. You’d have to record the CFrame values. But really you’d only need to record the values for the root part of the vehicle, not every part. And then playing it back would be pretty easy. Shouldn’t cause much lag unless you’re trying to animate thousands of parts.
What if I wanted to record player in the car too?
If the character has no animations, you can attach the character to the vehicle.
I’ve seen a game like Legendary Football do replays before, but the FPS is poor. I believe you could record CFrame values as Crazyman32 posted, but the more parts a car has, the more potential lag it might cause.
Yes legendary football I believe just save the values of their position like every second and just replays them. It will cause minor lag, but it’s the best you will get in roblox. I have seen people make like viewports in gui’s like that game action! where you were able to save videos taken from a custom scripted camera. Similar to those mirror games.
It’s perfectly plausible. You’ll have to work your game around making it easy to accomplish this, but you definitely can.
I once wrote a module to handle Replays when I was bored. if you spend actual time on it, I’m sure you’ll get it!
Are you open-sourcing you module?
It’s a tacked together mess made from a modified version of my open source ViewportFrame Handler. I don’t plan on releasing it, but simply showed it to demonstrate that it is, in fact, possible to do something like you asked.
I made a module like this. It’s pretty performant and replays are smooth. It also supports playback speed. I was actually working on rewriting this since I’m not quite happy with the current version but you can find it here: GitHub - Hexcede/Roblox-Replay-Module: A module for recording and replaying gameplay to a ViewportFrame
I’ll edit my reply if and when I finish the new version which will support saving.
I like yours, it’s pretty clean. A few issues that I hope you handle in your new version:
- If you have unstable FPS, it won’t behave perfectly
- Uses TweenService which can’t handle many parts at once
- Only supports basic playback, no API for going to specific frames, times, percents, or pausing/resuming.
You’ve done a great job, and I’m really happy you’ve decided to share it with us!
I’m inspired to start my own again from scratch, with as much functionality as I can cram in. Care to collab? Could be a fun side project!
Here’s what I want mine to support. I’ll probably have to cut things out as I hit roadblocks later on.
I also want it to have events like PlaybackFinished
and useful things like that.
Hey I found something that might help you!
the video is private
Summary
This text will be hidden
Would any of you guys know how to save replays through datastore? or datastore2? I’ve seen Auto Duels do it without lag where you can replay the matches you played even after leaving. I’ve been trying to achieve this for a while now.
if you have all the data for the replay, you could store it in a table and save that replay to a datastore. the only issue would be organizing it to your specifications.
Yeah i’ve tried this but its really complicated but I’m close to achieving it.
i’ve done multiple replays for games such as football, handball, and hockey, what have you tried bc as someone who procrastinated making it because i felt it’d take hours, i can assure you its not that bad once you get the ball rollin’
I know I’m super late (sorry ) but I’m making a replay saving system for a football (soccer) game.
well you have all your CFrame/Position data, correct? or have you not made a replay system? i do not know where to start with this
The recording part was pretty easy the saving part wasn’t, I was able to create a table and save it to datastore however it lags a lot (when recording) and takes lots of data to save.
Since im aiming for 60 fps replay of the full match (5 minutes, could be more because of overtime) you have to constantly save every players cframe on the field including the ball.
Since it was taking too much time from my upcoming project, i decided to put it on standby til later.