i'm trying make it so when you click with sword it gives value but it keeps saying debounce is not valid member of folder there error is line 5 can yall help me pls?

local replicatedStorage = game:GetService("ReplicatedStorage") local remoteData = game:GetService("ServerStorage"):WaitForChild("RemoteData") local starterRebirthAmount = 5000

local cooldown = 0.85

replicatedStorage.Remotes.Swing.OnServerEvent:Connect(function(player)

print("Fired")

if not remoteData:FindFirstChild(player.Name) then return "NoFolder" end

local debounce = remoteData[player.Name].Debounce

print("Got Past ")

if not debounce then
	
    debounce.Value = true

    player.leaderstats.Gold.Value = player.leaderstats.Gold.Value + 25 * (player.leaderstats.Rebirths.Value + 1)

    wait(cooldown)

    debounce.Value = false
else

end

end)

replicatedStorage.Remotes.Rebirth.OnServerInvoke = function(player)

if not remoteData:FindFirstChild(player.Name) then return "NoFolder" end

local rebirths = player.leaderstats.Rebirths

if player.leaderstats.Coins.Value >= (math.floor((starterRebirthAmount + (rebirths.Value) * math.sqrt(50000000)))) then 
	
	rebirths.Value = rebirths.Value + 1
	
	player.leaderstats.Coins.Value = 0
	
	player:LoadCharacter()
	
	return true
else return	"NotEnoughGold"
end

end