#I need help with multipliers

23 messages · Page 1 of 1 (latest)

hasty flare
#

I need help with scripting multipliers. I'm trying to do so when you're in a hitbox, your "Speed" (The value I want to multiply) gets multiplied with a world booster.

I already made it so when you're in the hitbox you gain the world boost value, I only need it to multiply with the amount of speed

craggy arrow
#
  • speed
#

lol

hasty flare
#

wait what

craggy arrow
#

can't you just * speed

#

onto the player?

hasty flare
#

I mean

craggy arrow
#

Humanoid.WalkSpeed = worldBoost * speed

#

speed += worldBoost

hasty flare
#

no not that

craggy arrow
#

or something

hasty flare
#

its like when you're in a certain zone you gain multipliers

craggy arrow
#

so you want "Speed" to get multiplied?

hasty flare
#

yes

craggy arrow
#

whereeverspeedis *= boosterSpeed

#

kinda hard to do anything without code lol

hasty flare
#

wait but to go into player's leaderstats I just write game.players.leaderstats

#

right?

craggy arrow
#

yeah

#

game:getService("Players") (more reliable)

hasty flare
#

alright

#

uhhh its working but its glitching

#

example I have 1 speed it goes to 3 for a split second and goes back to 2