i made a script that gives the player a certain amount of walkspeed and jumppower every 3 seconds if the tool is clicked, but the result shows something else
print("loaded")
debounce = false
script.Parent.Activated:Connect(function()
if not debounce then
debounce = true
if script.Parent.Parent:FindFirstChild("Humanoid") then
script.Parent.Parent.Humanoid.WalkSpeed = script.Parent.Parent.Humanoid.WalkSpeed + 1/5
script.Parent.Parent.Humanoid.JumpPower = script.Parent.Parent.Humanoid.JumpPower + 1/10
wait(3)
debounce = false
end
end
end)
the result is 0.20000000298023 walkspeed and 0.10000000149012 jumppower when its supposed to just be + 0.2 walkspeed and + 0.1 jumppower. I added the / after to check if that would help but no it didnt at all

3 comments
i have that value as a screengui so the player can see how much speed and jumppower they currently have since i havent successfully put in a leaderboard yet
and yes there is nothing else changing the walkspeed
Then its something engine side or a bug. Or maybe your gui is a tad messed up. @Gameplayer365247v2