Time Scale Framework

Hello, I have created a Tutorial to walk you through setting up the framework. Hopefully it will be useful to everyone getting into using the framework! :slightly_smiling_face:

1 Like

Update

Multiplayer Support

@iGottic Hopefully this will do. :grin:
My brain was actually exploding trying to add this so hopefully it’s all working! :grimacing:
Improvements with this update:

  • Improved performance.
  • Multiplayer support.

Multiplayer Limitations

A current limitation with multiplayer is that jumping is normal for players that should in slowed time.

I also have a feeling there might be a bug or two with it that could need ironing out so please keep that in mind and let me know about any bugs you encounter! :stuck_out_tongue:

Finishing Up

Hope you all had a merry Christmas and a happy new year all. As always, please report any bugs you find and ideas for the future & enjoy the update! :slightly_smiling_face:

1 Like

Update

Hello again all :wave:,

This is just a small update that brings with it some changes to better account for settings changing in game.

Thank you all so much for your continued support, I couldn’t do this without you!
Hope you enjoy the update and as usual, report and issues or ideas you have! :smiley:

good job man, you are doing really hard work to make Roblox new physics, my game that is using your time scale module will be improved a lot because of you :smile:

1 Like

this is great. I always had trouble making a realistic slow mo effect but this helps alot! Thank you.

2 Likes

Update

Improvements

Sorry for the quick update straight after the last but there are some big backend changes to the framework. These include:

  • Added a settings to toggle for if BasePart should be an affected instance.
  • Documentation is now included in the original post.
  • Optimised changing time scale even further.
  • Organised code to make future updates easier.
  • Started on animation fixes. Still needs loads of work however.

Coming Soon

Going to look into working on the animation system more to get that fixed up if possible. If anyone can help with scaling animation with time then please feel free to send me a message, any help is greatly appreciated!

Finishing Up

Hopefully this update will help those who have been facing small amounts of lag when toggling the time scale. Thank you all and stay tuned for more updates!

1 Like

Update

Another quick little update to fix some bugs from the previous release as well as bringing some overall improvements to the framework.

Improvements

Here’s the release notes for this update:

  • Fixed some physics errors.
  • General bug fixes.
  • Improved code organisation for future updates.
  • Improved compatibility with existing games.
  • Improved overall performance.
  • Removed some no longer needed code.

Finishing Up

Thank you all for supporting me throughout working on this, I hope it has come in handy to many of you & I can’t wait to see how much more I can do with this in the future!

Major Update

Animation Support

This update adds proper animation support with bugs fixed from the previous implementation now in place. Let me know if there’s anything else I need to change or fix with it going forwards.

API Rework

This version includes a major rework to APIs and where they are located. This will require subtle changes to code for where it refers to objects. This is to make future updates easier and work better with existing projects. There will now be 2 folders. One in ReplicatedStorage and one in ServerStorage.
The APIs have also been expanded allowing for more functionality and easier developing. The documentation in the original post has also been update accordingly.

Changes

Changes to the framework to help make it a more well rounded tool for developers to use. These are the following:

  • Added proper animation support. This will support Humanoid and AnimationController for the time being but please know that these methods have been deprecated and should not be used. Please use Animators instead. Also note that the BoolValue system for identifying animators which should appear normal in slowed time will be replaced with an attributes system once those are released.
  • Changed up the APIs. Please refer to the documentation in the original post to see what has changed.

Finishing Up

Cheers all once again for the support, sorry for the rapid number of updates lately, shouldn’t be a need to update for a little while now until Roblox pushes out some new updates. Thank you all so much for you support throughout this project and hope it has been of use to you! More coming in the future!

2 Likes

this is great, the animation support is fixed, now we don’t have to worry about your movement slowed down then revert to default at a randomized time, this update reduced the chance of your movement slowed down when activating the ability by 90% (this bug still occur but now it’s rare), despite the rare chance of movement slowed down while the ability is activated, everything else is doing GREAT!

I would love to see more stuff and features that you added to the framework :eyes:

also, the bug will occur more often if you move around normally then active the ability after stopping/idling/standing still for a long time

oh and i need the CPU and GPU tracker again, this is important so we can track if the ability or the environment will affect the rendering, FPS and much more stuff

Hello, you can find the CPU and GPU tracker can be found here. I removed it from the demonstration place to simplify the place for developers to breakdown easier.

Update

Didn’t take too long for the new feature I was hoping for to come out. :laughing:

Attributes

Hello all, just letting you know that this is only a minor update that changes the old value system over to the new attributes system. This update is a drag and drop one where you can just replace the old time scale framework folder with this one and nothing on your end should change. :grinning:

Finishing Up

Thank you all for your continued support with this framework! This is just a small mostly optional update to bring the framework up to speed with the latest from Roblox to stay ahead of the curve.

Will there be support for tweens? I know how hard it is trying to make it compatible with tweens but hopefully Roblox has something to slow down tweens like a property of tween service.Something like this;

local TweenService = game:GetService("TweenService")
TweenService:GetTweensPlaying()--something like this since we will be able to do for loops with it.

Unfortunately I don’t think an API like that exists at the moment. It would need to be up to the developer at the moment to implement this feature. I can look at making a custom TweenService that developers can use which is integrated into the framework. Sounds like a fantastic suggestion which I will look into!

I would like to help you make a custom TweenService with more versatility since TweenService needs more features.

Had some ideas and I think to start with I might make a simpler wrapper that handles scaling tweens with the time scale framework for you, but I’d be happy to expand it into a more fully featured system in the future.
Many thanks for the offer to help, let me know if you get something working! :grinning:

Major Update

Summary

:warning: This update has API changes that you will need to account for. These changes have been made so that the APIs can be more streamlined going forwards. :warning:
This update makes large structural changes to the framework so let me know ASAP if anything is broken!
I have also made some progress on multiplayer which gets a big rework in this update to help improve its stability and functionality. I still do not recommend using multiplayer in public projects JUST yet though.

Changes

  • General bug fixes.
  • Improved ability to adapt to live tag changes.
  • Improved framework organisation/structure.
  • Improved multiplayer.
  • Improved performance.
  • Improved physics simulation with bounces.
  • Moved ServerScriptService/TimeScaleFramework/Functions/ToggleSpeed to ServerStorage/TimeScaleFramework/ToggleSpeed.
  • Removed unused code.

Coming Soon

Multiplayer is getting close to being stable enough for use in a public environment so that will soon be stable enough to be recommended for use if you wish! :grinning_face_with_smiling_eyes: Please report any issues you have with it to me so that they can be worked on before its next update.

I’m also currently working on a custom tween service to allow tweens to be used with this framework to allow for even more possibilities. No estimated date as to when this should release however I will try to get it in for the next release.

Finishing Up

Thank you all so much for all of your amazing ideas and support! Please be sure to let me know if there’s any other changes you would like made! :+1:

Update

:warning: Animators will now require the TimeScaleWhitelist tag. This was not required before this update. :warning:
This is just a quick little update to the framework which focuses on animations.

Changes

  • Added ability to toggle animations (Was not functional before & is now available in settings).
  • Fixed animation bugs.
  • Improved animation transition performance.

Finishing Up

Sorry about the quick release although I wanted to fix the long standing animation bugs quickly.

I figured out a way to make a scaling tween and make the TweenService:GetTweensPlaying() but I have been thinking making some like this:

TweenService:GetTweensPlaying(-- the instance, -- and the tween) --(use for loops with workspace parts to  before I thought just getting the tweens with the api service but I would just test out both