Hello devforum!
How would I make a prediction of where a player is moving by putting like, 5 clones infront of them to their predicted position?
I have some code that predicts stuff, but I dont know how it works cause I just found it off the devforums.
How would I implement my idea into this code, or is this code not fit for my idea?
You can predict a position of the ‘HumanoidRootPart’ by predictedPosition(timeInterval) = position + velocity * timeInterval. This function requires a time interval so you can predict as far ahead as you want.
local function predictPosition(part, timeInterval)
return part.Position + part.Velocity * timeInterval
end