Skip to content

Custom Trajectories

What is Custom Trajectory?

Custom Trajectory is a property in Properties called Trajectory, which makes the Caster follow a predefined path.


How do I get this Trajectory?

I created a plugin to simplify this process for you. Here is the plugin.


How to use this Plugin?

Here are all the controls:

  • Double-click to create a new point. (These points are draggable.)

Reminder!

Since these points use UI Drag Detectors, you need to enable the beta feature in Roblox Studio called UI Drag Detectors

  • Press E on a point to change its state

What is State?

Each point currently has two states:

  • Free
  • Locked on Y-axis

If a point is locked on the Y-axis, its height won't be affected by the start position of the cast or the target's position. The Free state is the standard state, allowing height to change during flight

  • Use the mouse wheel to adjust the maximum height
  • Press C on a point to create a checkpoint

What is a Checkpoint?

A checkpoint contains a name. When the Caster reaches this point, it will fire the CheckpointReached signal.


Saving and using the Trajectory

Once you've created the points, press the Save button. This will generate a script in ReplicatedStorage containing the trajectory table. Copy and paste this table into the Trajectory property

Example

Properties.Trajectory = {
    {["Yscale"] = 0.7392795883361921, ["Xscale"] = 0.1490480939713951, ["State"] = "Free"},
    {["Yscale"] = 0.7438536306460835, ["Xscale"] = 0.7176853600471377, ["State"] = "Free"},
    MaxHeight = 200
}

Modes

There're 2 modes:

  • Trajectory - To create a custom trajectory curve (default)
  • AoA - To create yaw / pitch angle of attack tables

To change the mode, click Mode button