I have Filtering Enabled on and I got this code fixed by someone before, but it still won't work for whatever reason, could someone please help?
Client:
local codes = script.Parent.Parent.Codes -- location of the codes
local ds = game:GetService("DataStoreService")
local store = ds:GetDataStore("CodeSave")
script.Parent.MouseButton1Down:Connect(function()
if script.Parent.Parent.codeBox.Text == "Alpha" then
if codes.Alpha.Value == true then
script.Parent.Parent.codeBox.Text = "Already Redeemed!"
end
if codes.Alpha.Value == false then
codes.Alpha.Value = true
game.ReplicatedStorage.GiveMoney:FireServer()
script.Parent.Parent.codeBox.Text = "Redeemed!"
end
end
end)
Server:
game.ReplicatedStorage.GiveMoney.OnServerEvent:connect(function(player)
local codes = game.StarterGui.CodeSystem.RedeemArea.Codes
player.leaderstats.Credits.Value = player.leaderstats.Credits.Value +
codes.Alpha.Reward.Value
end)
Don't mind the datastore part, I'm working on that still.

2 comments
Just a heads up, DataStores can only be accessed from the Server. You have it started in your clients code and that won't work.
ok, thanks with that.