I have a backpack script which indicates how many ores you have in a mining game. The CurrentValue's value changes, but the text on the TextLabel doesn't record what the CurrentValue's value is, along with the MaxValue's value.
Here's my code:
local player = game.Players.LocalPlayer
local playergui = player.PlayerGui.Backpack
local title = playergui.Title
local max = playergui.MaxAmount
local current = max.Parent.CurrentAmount
local remote = game.ReplicatedStorage.Events.AddBlocks
title.Text = current.Value.."/"..max.Value
title:GetPropertyChangedSignal("Text"):Connect(function()
title.Text = current.Value.."/"..max.Value
end)
remote.OnClientEvent:Connect(function(drop)
current.Value = current.Value + drop.Value
end)
Any help would be appreciated

2 comments
Remote functions / events require a local script and a server script, do you have both?
yes