I have tried so many ways to make this work and its just not happening. I am using a remote function to send the data from a LocalScript to a Script here is the LocalScript:
local info = {
diseasename = textbox.Text,
player = player
}
game.ReplicatedStorage.Diseasecreated:InvokeServer(info)
and here is the Script:
game.ReplicatedStorage.Diseasecreated.OnServerInvoke = function(player,info)
local diseasename = info.diseasename
local player = info.player
print(diseasename)
print(player)
local stat = player.leaderstats.diseasename.Value
stat = diseasename
print(stat)
end
At the print(stat) it does print the correct stat, but it doesn't show in the leaderboard or in the .Value in properties. I am not really good at scripting, could anyone help me?

2 comments
Maybe you should try with a remote event
try diseasenname = stat