#input.keycode not cancelling sliding function

22 messages · Page 1 of 1 (latest)

stiff topaz
#

also dont worry about the comments i just figured those out

wheat mica
#

What type of script is it? Server side or Client Side?

#

Here is a possible problem: When you press space, the whole loop is stoping, even the slide stop

#

You should use "continue" instead of "return" (at line 30)

stiff topaz
#

localscript

#

clientside

wheat mica
#

Ok, try changing "return" to "continue" at line 30

stiff topaz
#

will do when i get a chance

stiff topaz
#

so when i run it nothing has really changed, id assume its because continue just continues running the loop

#

idk tho, just a guess since i know a bit of python and lua is very similar

#

im checking the code again and i feel like it is just a matter of the wrong statement but i really dont know, all the movement is contained inside that loop so when its cancelled it should cancel the movement

wheat mica
#

Find a way to stop the loop but still running the script

#

Try using a deb variable

stiff topaz
#

it still didnt work 😭

#

this is a newer slightly tweaked version using my newfound knowledge of modscripts

#

destroying the slide instance just locks my character in an awkward slide that you cant escape

#

tried to reset the velocity but that brought up an error message

#

pullin out my hair rn

stiff topaz
#

i still have this problem 😭

#

granted ive hardly focused on fixing it

#

i fixed it i just updated the slide value and destroyed it afterwards