#Collision check while dashing
7 messages · Page 1 of 1 (latest)
Add a flag and do
while flag do
—check if touched
end
oh thats a great approach, where should i place the while loop though?
Outside of the function
wait there's another issue, because i am doing all these in a server script, a new linearVelocity instance is created everytime a player dashes, so i couldn't pass the linearVelocity outside of the function to destroy it
nvm i found a solution over it, but is fireserver synchronous or asynchronous? for example i have the following code
dashing = true
dashRemote:FireServer()
dashing = false
does it wait until the event to finish before setting dashing to false or it will set it to false immediately?
afaik, FireServer doesn't wait