#knockback
1 messages · Page 1 of 1 (latest)
Ok so I found numerous errors with your script and I am not here to prove I am better than you please take my feedback and do not be pressed:
-
Yes bodyvelocity is deprecated but they still work. Many popular games use it instead of linearvelocity since its honestly simpler than linearvelocities. Its the type of deprecated where yes linearvelocities are better but you arent doing bad if you use bodyvelocities, you can just use bodyvelocities and should imo
-
Math.huge shouldn't be used for the MaxForce of the LinearVelocity. Try starting off with 10^3 / 1000 and increasing by a power of 1 until it works
-
Idk what youre using RelativeTo for, another reason to use bodyvelocities
-
Not really related to your script but you don't rlly need to use debris u can js use destroy imo but you do you
TL;DR
Swap to bodyvelocities and dont use math.huge
alr thanks, the debris is used because if i do a task.wait its gonna hold back the rest of the code and its better for performance than a task.delay
Debris spawns a seperate thread similar to task.delay
How do you think it waits
i know but still its better for performance no?
Ive heard its useless
alr