#Collision check while dashing

7 messages · Page 1 of 1 (latest)

fallen ferry
#

How can I add a collision check in between the task.wait() so i can stop dashing when the character hits a wall?

task.wait(dashDuration) -- Wait until dashing finishes
linearVelocity:Destroy() -- Stops the character
night veldt
fallen ferry
night veldt
#

Outside of the function

fallen ferry
# night veldt 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

fallen ferry
# night veldt Outside of the function

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?

gaunt ginkgo
#

afaik, FireServer doesn't wait