So, I am currently making a Quiz game, and after each correct answer I want to reward the player with currency. The only problem: I don’t know how to safely give the player currency without using a RemoteEvent or RemoteFunction, which the client has access to. I made a function which currently looks like this:
local function correct(credits)
local plr = game:GetService("Players").LocalPlayer
--Dont know how to award the player the currency..
end
^ → This function will be called if a player pressed the right quiz button.
Does anyone know a method how I would award the player the currency without exploiters having easy access to give themself unlimited currency?