Hello. So, I have this server script which is supossed to change some values inside the local player when it receives a remoteEvent, but for some reason it does not change anything. Can anyone help me out?
Here's the script: (oh, sorry if it's a little bit messy, I am new to making my own projects without tutorials.)
game.ReplicatedStorage.TaskFinished.OnServerEvent:Connect(function(player)
local ongoingtasks = player.values.ongoingtasks.Value
local finishedtasks = player.values.finishedtasks.Value
ongoingtasks = false -- THis does not work.
finishedtasks = finishedtasks + 1 --This does not work.
player.PlayerGui.Tasks.objective.Text = "Objective: None"
player.PlayerGui.Tasks.main.current_task.Text = "Current task: None"
print("Finished task correctly.")
end)

3 comments
Wow, thank you for the help!
Please accept the answer :D
There ya go :D