Would it be possible to data save bool/string/int values using DataStore? Here is my script, its for one item but I plan to have a lot:
LocalScript inside button in StarterGUI:
local button = script.Parent
local player = game.Players.LocalPlayer
button.MouseButton1Down:Connect(function(input)
if player.leaderstats.Credits.Value >= 50 then
player.Character.Humanoid.WalkSpeed = 60
game.ReplicatedStorage.ShopEvents.RemoveFifty:FireServer()
end
end)
ServerScript inside ServerScriptService:
local value = game.ReplicatedStorage.ShopValues.FirstWalkspeed
game.ReplicatedStorage.ShopEvents.RemoveFifty.OnServerEvent:Connect(function(player)
player.leaderstats.Credits.Value = player.leaderstats.Credits.Value - 50
value.Value = true
end)
The BoolValue is inside ReplicatedStorage, thanks!

2 comments
This is related to the question but check if the player's credits are greater than 50 on the server, since that's easily exploitable.
Got it, thanks