If i have this call to a module
local LeaderstatsModule = require(game.ServerScriptService.Modules.Game.Leaderstats)
Players.PlayerAdded:Connect(function(player)
self:_loadData(player)
LeaderstatsModule:Set(player, self.PlayerData[player.UserId])
end)
function Leaderstats.Set(self: Leaderstats, player: Player, data: { Coins: number, Wins: number }, onChange)
local leaderstatsClone = leaderstatsFolder:Clone()
leaderstatsClone.Parent = player
Coins.Value = data.Coins
Wins.Value = data.Wins
Coins.Changed:Connect(function(value)
--stuck here
end)
end
How do I make it to call a function from the data service without having to require in both modules since it gives a type error
** You are now Level 7! **