I’d like to know any alternatives to raycasting in scripts.
Reason?
Well, the primary reason is well Lag!
It works fine the first few minutes. But then things get messy when it is looped.
The raycast slows the server to the point of even the beefiest computers crashing.
So; any smoother alternatives?
Things I tried (that didnt work):
Doing raycasts on the client side
Increasing delay between raycasts (This worked, but it broke the script.)
if its only for that just change the collision id. theres not really any need to loop rays for this. So once the char hits the wall it can create a platform with the same collision id and walk right through. this means that while you arent waling through walls it will appear normal.