this is my localscript
wait (2)
local remoteEvent = game.ReplicatedStorage:WaitForChild("get"):InvokeServer()
local count = game.ReplicatedStorage:WaitForChild("get"):InvokeServer("skipcount")
function check()
script.Parent.Text = "Skips: "..count
print("checkingstage2")
end
while true do
check()
print("checkingstage1")
wait(2)
end
and this is my module script, located within serverscriptservice
function checkValue(player, valuename)
print ("checking value!")
local skips = player.stat.skips
return skips.Value
end
game.ReplicatedStorage.get.OnServerInvoke = checkValue
The problem is, it only checks twice at the start and then it stops checking! I have no idea why! Here is my output:
checking value! (x2) checkingstage2 checkingstage1 checkingstage2 checkingstage1 checkingstage2 checkingstage1 checkingstage2 checkingstage1 checkingstage2 checkingstage1
anyone know why this is happening?

2 comments
Wouldn't it be game.ReplicatedStorage.get.OnServerInvoke:Connect(checkValue) for your module script oh and also you only invoke twice at the start so yes that is why it only runs twice but what do you want to do make it constant?
okay thanks that helped