You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
I want it so the leaderstats arent shown, but its shown on a simple TextLabel instead. I also want it so they get 25 coins every day they join, and how do I stop them from getting coins for each second they are in the game.
What is the issue? Include screenshots / videos if possible!
I have a leadstat that I want put onto a text label, however it doesnt work no-matter what I’ve tried. (top right)
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have looked on the developer fourm, asked friends and nobody has a solid answer. Can you help me out?
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
I am using 2 scripts, one called Manager, and one called PlayerData.
Hi there, it looks like I cannot find the problem. It might be because you are requiring a useless parameter on changeValue, but im not sure.
Maybe you could try using my module?
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local DataService = require(ReplicatedStorage:WaitForChild("DataService"))
local MyDataStore = DataService.CreateDataStore("PlayerData", {Cash = 100}) -- default data and datastore name
Players.PlayerAdded:Connect(function(player)
local PlayerData = MyDataStore:LoadDataAsync(player)
PlayerData.DataLoaded:Connect(function()
-- do your stuff here
end)
-- do other stuff when the player is added
end)
Players.PlayerRemoving:Connect(function(player)
MyDataStore:UnclaimSessionLock(player)
end)
Other than that I have no idea why this would not work.