ConfigService's ConfigSnapshot:Refresh() Not Refreshing The Snapshot

Hello, I’ve been messing around with the new service of Roblox called ConfigService and found it really useful. However when I’ve tried updating the config elements in real-time, however it did not seem to work well.

After executing the code below, I’ve tried changing the element dimension_enter_cooldown however it ended up returning the same snapshot over and over again even though I’ve used the function ConfigSnapshot:Refresh() in the following code:

Edit Note: A video evidence is already included for The Roblox Staff.

-- This script contains the online config data. Do NOT edit this if you don't know what you're doing.
-- Created by @ZephyriaLysa.

--// Services
local ConfigService = game:GetService("ConfigService")

--// Variables/Constants
local config = ConfigService:GetConfigAsync()
local autoUpdate = true
local updateDuration = 10

--// Module Declaration
local onlineConfig = {}
onlineConfig.m1NormalDamage = config:GetValue("m1_normal_damage")
onlineConfig.cooldowns = {}
onlineConfig.cooldowns.dimensionenter = config:GetValue("dimension_enter_cooldown")
onlineConfig.cooldowns.dream = config:GetValue("dream_cooldown")
onlineConfig.cooldowns.slowarea = config:GetValue("flame_cooldown")
onlineConfig.cooldowns.pull = config:GetValue("pull_cooldown")
onlineConfig.cooldowns.flame = config:GetValue("slow_area_cooldown")

--// Functions
function onlineConfig.updateConfig()
	config:Refresh()
	
	onlineConfig.m1NormalDamage = config:GetValue("m1_normal_damage")
	onlineConfig.cooldowns.dimensionenter = config:GetValue("dimension_enter_cooldown")
	onlineConfig.cooldowns.dream = config:GetValue("dream_cooldown")
	onlineConfig.cooldowns.slowarea = config:GetValue("flame_cooldown")
	onlineConfig.cooldowns.pull = config:GetValue("pull_cooldown")
	onlineConfig.cooldowns.flame = config:GetValue("slow_area_cooldown")
	
	print("🔁 | Dimension Enter Cooldown: ".. config:GetValue("dimension_enter_cooldown"))
end

function onlineConfig.initUpdateLoop()
	task.spawn(function()
		while task.wait(updateDuration) do
			onlineConfig.updateConfig()
			print("🔁 | Online Config Updated:", onlineConfig)
		end
	end)
	--[[config.UpdateAvailable:Connect(function()
		print("💚 | Online Config Update Found.")
		onlineConfig.updateConfig()
		print("🔁 | Online Config Updated:", onlineConfig)
	end)]]
end

--// Initialization
print("💻 | Online Config:", onlineConfig)

if autoUpdate then
	onlineConfig.initUpdateLoop()
end

--// Module Exporting
return onlineConfig

A private message is associated with this bug report

Hi! Config updates can take up to 5 minutes to propagate to your game server. You can also use GetValueChangedSignal to listen to when that change gets propagated. Examples here: https://create.roblox.com/docs/production/configs#refresh-snapshots

Let me know if you run into any issues here!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.