You're conditional syntax is incorrect. What you're trying to do is check if a value is between 2 numbers, but the wording isn't correct. The correct syntax is this: if (Value >= Min and Value <= Max) then
. So for your first conditional, I would reword it to this:
1 | if P.leaderstats.Wind.Value > = 100 and P.leaderstats.Wind.Value < = 500 then |
Also, it would be much simpler to store the Wind value to a variable, so that way you need to do less typing, like so:
1 | local Wind = P.leaderstats.Wind.Value |
2 | if Wind > = 100 and Wind < = 500 then |
See how much neater that is?
Here's the full fixed code:
01 | local P = game.Players.LocalPlayer |
02 | local Humanoid = script.Parent.Parent.Character.Humanoid |
05 | local Wind = P.leaderstats.Wind.Value |
06 | if Wind > = 100 and Wind < = 500 then |
07 | Humanoid.WalkSpeed = 20 |
08 | elseif Wind > = 501 and Wind < = 1000 then |
09 | Humanoid.Walkspeed = 30 |
10 | elseif Wind > = 1001 and Wind < = 5000 then |
11 | Humanoid.Walkspeed = 40 |
12 | elseif Wind > = 5001 and Wind < = 25000 then |
13 | Humanoid.Walkspeed = 50 |
Hope this helped!