- What do you want to achieve? Keep it simple and clear!
Check all Profiles using ProfileService to find and get something called “Coins” in every player’s
data and check if the player’s coins are higher than 0
- What is the issue? Include screenshots / videos if possible!
i don’t know how to figure it out.
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
i tried looking around but someone said put the data in a module script but that just makes it only check data on the server but i want it to check every single player that ever joined which means i want it to be global
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Storage = ReplicatedStorage:FindFirstChild("Storage")
local ProfileService = require(game.ServerScriptService.Libs.ProfileService.ProfileService)
Storage.Functions.CheckAllCoins.OnServerInvoke = function(player:Player, CoinValueToBeChecked:number)
end