Trajectories in Roblox Studio

Hello developers!

  1. What do you want to achieve? I’ve been trying to make trajectories in roblox for a long time.
  2. What is the issue? To learn how to do this, I followed a GameMaker tutorial, I passed it to RobloxStudio since reading the code it is easy to know what it does, but it does not work like the tutorial, at first it goes well but then it goes up too much: ezgif-4-6e5f6365af9b
    I even gave the variables the same names in case it was a problem of order!
  3. What solutions have you tried so far? I checked the code quite a few times, compared it several times, researched, but everything points to it being fine.

If you need it here is the video, but it is in Spanish, I hope it is not a bother: Predecir trayectorias de balas | Matemáticas para crear juegos #2 - YouTube

GameMaker code:

RobloxStudio code:


You could try interpolation and set its position manually with something like this

1 Like