Hi,
So I made a part that gives money every 5 minutes, but I want the remaining time to show on the billboard gui which I defined, but not sure how to make it work.
Any help is very much appreciated!
local db = true
local timedisplay = script.Parent.Timer.TextLabel
script.Parent.Touched:Connect(function(hit)
if db == true then
if hit.Parent:FindFirstChild("Humanoid") then
db = false
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
plr.leaderstats.Gold.Value = plr.leaderstats.Gold.Value + 50
wait(10)
db = true
end
end
end)