FastCast2 - An improved version of FastCast with Parallel scripting, more extensions, and statically typed, A powerful modern projectile library

Documentation | Source | Github Releases | Model(broken)

An improved version of FastCast with parallel scripting, more extensions, and static typing.

A powerful, modern projectile simulation library.



Current version: 0.1.0


FastCast2 is a projectile simulation library, designed to simulate thousands of projectiles without relying on physics replication.

Because FastCast is no longer actively maintained by EtiTheSpirit, this repository continues the project with updates and adaptations.

Features

  • Highly customizable
  • Versatile projectile library
  • Parallel scripting support
  • Easy to use and integrate
  • Raycast and Blockcast, Spherecast support
  • BulkMoveTo/Motor6D support
  • Built-in castVisualization
  • Built-in ObjectCache
  • Built-in HighFidelitySegment control
  • Flexible, extensible
  • High Performance

FastCast2 is an open-source project, and contributions from the community are welcome!
Check out CONTRIBUTING.md to get started

Discord server

FastCast2 community

I’ll most likely chat, post announcements, and share other stuff there.
Make sure to join the server so you can keep up with everything that’s going on






Status: Inactive maintenance

Just a quick update and a note: I’ve put a lot of effort, time, and care into this PR, and I’m going to take some rest.

yk, it’s been really painful switching between GitHub accounts just to use GitHub Codespaces, and pushing my CPU to its limits just to run a Docker container with Tiny10 so I can use Roblox Studio at around 10 FPS. It’s extremely laggy.

Because of this, this PR will take some time to stabilize, fix, and properly review everything.

I can’t do that properly or quickly without a PC, especially when I’m working with just a phone and a tablet.

There’s a lot of stuff that has changed in FastCast2 v1.0.0. You can read the PR description for more details, including:

  • Title changes
  • Code changes and refactoring
  • API improvements

I also have a bunch of side projects, with 100+ todos waiting for me. These include building an entire gun system from scratch with a team, modding, and other projects. If you guys could help me finish this PR, I’d really appreciate it.

Honestly, nobody understands my thousands of lines of alien code except me and Naymmmm (and this guy is busy doing his stuffs).

I just want everyone to understand that this has been a LOT of work, and I really appreciate everyone who’s been involved or willing to help.

Hopefully, I’ll be able to get a new PC in the coming months or maybe next year.

For now, I’m going to take a break and come back later.


Benchmarking

Place:

  1. Join the game
  2. Press F9
  3. Enjoy benchmarking

LICENSES


Changelog

People behind FastCast2(Contributors)


Special thanks

Special thanks to the following people from the Suphi Kaner Discord Server

  • @avibah - For helping me create VMDispatcher
  • @ace9b472eeec4f53ba9e8d91bo87c636 - For advice, feedback, and some ideas (i dont remember)
  • @23sinek345 - For code reviews, benchmark discussions, and improvement suggestions

And thanks to everyone else on the server who helped along the way.

This community was the reason why FastCast2 exists, and one of the reasons why I started advanced scripting and making really serious projects, also shooting myself in the foot back in 2025.

Special thanks to the following people from The Revolutionary Computer Union, The Glorious Robot Army

  • nerd0ne - Pointing out a broken Wally setup
  • 90gq31 - Giving me the opportunity to be part of the community

Dependency

Alternative to FastCast2

  • SwiftCast
    If you want simple + lightweight, highly optimized for the client Instanced projectiles, being simple and easy to use. It runs on a single thread and doesn’t require the complex thread-communication of parallel/serial.

Why do I recommend this alternative?

Both libraries were developed by members of the same community: the Suphi Kaner Discord server.

SwiftCast is a newer projectile library designed around simplicity, minimalism, performance, and customizability, without unnecessary complexity.

But what about FastCast2? FastCast2 started as a community-maintained continuation of FastCastRedux, with the goal of reviving the original project, fixing existing issues, improving its architecture, and introducing new features.

Because FastCast2 inherits parts of an older codebase and API design, it carries some of legacy complexity.

If you want something lightweight and straightforward, I recommend SwiftCast. You can still use FastCast2 if you want; ultimately, it’s your choice.


NOTE

Hello everyone, I realize some of my past posts may have seemed off-topic or too casual. I apologize for any confusion or inconvenience this caused. I’m truly grateful for the feedback and support on my project, and I will make sure to keep future posts focused and clearly written. Thank you for your understanding

122 Likes

Keep working on this, I’ve been using FastCast for years, it definitely needs an update.

5 Likes

Good to hear that, appreciate it

4 Likes

Also, it would be really helpful if you showed some stress tests/benchmarks.

5 Likes

Why not using raycast without middleware?

4 Likes

You should read what fastcast does first.

4 Likes

Looks like a regular raycast with some bloat to me
Totally doable in 20 lines of code at best, no need of FactoryManagerSignalWatchdogEnterpriceEdition

6 Likes

Respectfully, if you don’t know what FastCast is or WHY people use it, you shouldn’t reply to the post. FastCast is more than just “raycast middleware.” It is a simple to use, extendable casting library with features like built-in penetration capabilities, bullet drop, and the entire purpose: simulated projectile physics. You’re not going to get these features in 20 lines of raycasting lol

20 Likes

They see “fast” and “OOP” in the same README.txt, and their brains shut off. It’s amazing!

Can you elaborate in this regard? extensions such as? and how does the parallelism work in a module, of things?a

9 Likes

Hey, I’ve found a performance issue with the FastCast2

I found that it stores RunService connections every time it creates a projectile, so my plan was: instead of multiple RunService, why not just 1 for each actor

It can handle 100+ projectiles, but that just roughly 100+ RunService connections too

3 Likes

I will be updating more about this later

3 Likes

Because it’s not, LMAO.
It’s just some PR-approved buzzwords people slap
We are getting closer and closer to doublethink LETS GOOO

Zero mentions about parallel in code, btw.

4 Likes

So you’re just trying to say “No task.desynchronize() in the code? Haha, this is actually not parallel luau.”

Have you looked up ConnectParallel?

23 Likes

Also, you should scroll through my code and understand how it works first before you come here and argue about something

If there’s something wrong with my code, respectfully tell/report it to me so that it
Everyone happy

If you have any kind of problem/question about FastCast2, tell me

Thank you for reading

6 Likes

Also, I’ve planned to add a built-in BulkMoveTo, so you all can use it
I will update about this too later

4 Likes

Imagine making conclusion after one fast search “task.desynchronize”? ConnectParallel exist tho :skull:

11 Likes

What’s going to change? :

  • FastCast2 will be more performant at handling up to 100+ projectiles (I guess :P)
  • More features
  • Extensions with external libraries(we’ll talk about this later)
  • Reworked ActiveCast, ActiveBlockcast
  • New API Usages
  • User-friendly (I will try anything possible to make FastCast2 easier to use, and you guys can ask for feedback)

Question: Is this going to be done quickly?

A: Unfortunately, this will TAKE me a lot of time

6 Likes

UPDATE ABOUT TESTINGS :
Hey, I’ve tried modifying FastCast2 to a version that handle projectiles in 1 RunService and tested it out in my workspace, but it seems like it’s worse than using multiple RunServices
And I’m gonna have to find another solution

Why did this happen? :
Let’s see the difference between handling it in a single RunService and multiple(as I’ve seen in microprofiler)

  • Multiple runservice: After multiple tasks finished → serial phase execution(etc. fire signal, changing things)
  • single runservice: pretty much the same as multiple, but this is single
    and seem like multiple run services perform better than a single one

cause of lags: as projectiles go up to 100+, you can significantly see the fps drop, this happened in the serial phase

Now the only solution I can think of is: Reserve engineering the code and improve/rewrite it

If you have any ideas or solutions, please share them with me, I’m all ears

4 Likes

My conclusion to make serial phase execution more performant was :

  • I’m gonna reduce a lot of unnecessary execution
  • Use a pure function instead of the signal module
  • Native luau code gen (we’ll talk about this later)
  • BulkToMove (Idk if this is possible)
4 Likes

UPDATE ABOUT TESTINGS :
LOOK IS BURNING


HOW DID BINDABLEEVENT FIRE TOOK THAT LONG TO EXECUTE?!

3 Likes