When calling PlayerDataStore to store information (like stats for an rpg and whatnot), do you have to use a script? Many sites I looked up said it won't work otherwise. If so, how do you get the player to use in "PlayerDataStore:GetSaveData(player)" in the regular script? If you can use a LocalScript, how do I remove this error?
Error: "PlayerDataStore requested on the client, is a server-only module."
game:GetService("Players").PlayerAdded:Connect(function(plr) -- plr is our player variable -- PlayerDataStore:GetSaveData(plr) -- The variable used above end)