#Humanoid.WalkSpeed decimal numbers issue

34 messages · Page 1 of 1 (latest)

old girder
#

Okay, I currently have a weird issue when trying to set the WalkSpeed on the server side with decimal numbers below "0.1" like my goal is to reduce it every frame (a heartbeat connection) by "0.005" but the walkspeed is getting stuck between ~16.9 and 15.999 !
What is the issue here?!

burnt fog
#

it's probably getting rounded

#

try something bigger

#

it's not like a change in 0.005 is noticeable at all

#

.05 would already be hardly noticeable

old girder
#

the problem is the heartbeat connection in this situation

burnt fog
#

so change by .05 every 10th heartbeat

old girder
#

if I made this number bigger, it will be reduced to the target speed in less than a second

old girder
burnt fog
#

no other option

old girder
#

bruh.

burnt fog
#

these properties aren't supposed to work with numbers that small

#

it's just like the limitation of part size

old girder
#

but this actually worked fine on the health

burnt fog
#

health is something different

#

what's the problem with doing it every 10th heartbeat

old girder
#

don't have a debounce idea

burnt fog
#

just have a variable and increment it

#

and when it's at 10, it goes back to 1

old girder
#

wow

#

that simple

burnt fog
#

yes

old girder
#

I'll try this out

old girder
#

Yo

#

It was something making the opposite thing.. like when I was decreasing the speed, another statement was increasing it!

burnt fog
#

right

old girder
#

the walkspeed is actually working like health values now. I also did the debounce and it worked very good

#

thanks for your help tho

burnt fog
#

very goof

#

good

#

no problem

#

the precision of numbers on roblox is higher than 10^-3 so I was surprised anyway

#

thought it was something specific with the walkspeed