Players = game:GetService("Players")
FoStat = game.Players.LocalPlayer.FoodStat
remoteEvent = game.ReplicatedStorage:WaitForChild("StatStart")
FoodStatOn = false
remoteEvent.OnServerEvent(function()
FoodStatOn = true
while FoodStatOn == true do
wait(math.random(45, 120))
FoStat - math.random(-3, -6)
end
end)
FoStat - math.random on line 10 keeps getting an error expecting a function call or assignment. I've read and watched a bunch of tutorials and documentation on the while true do statement, can't find the problem.

2 comments
I believe you meant
FoStat.Value -= math.random(-6, -3). First off, you need to get the values of IntValues by accessing its.Valueproperty. Next,math.random()arguments go from min to max. If your min is bigger than your max, it will error. As fora -= bthat is the same as doinga = a - b.there's no such thing as a -= b in roblox lua