Everything from my script is working apart from changing the text just for the client. I have found text in workspace but I’m not sure how I can make this text only show locally for the player.
local Players = game:GetService("Players")
local text = game.Workspace.Lobby_Obby.ClaimTextTime.BillboardGui.TextLabel.Text
local player = Players.LocalPlayer
local LastClaimedTime = player:WaitForChild("LastClaimedTime")
while true do
task.wait(1)
local currentTime = os.difftime(os.time(), LastClaimedTime.Value)
print(currentTime)
if currentTime >= 18000 then
text = "00: 00: 00"
else
local hours = math.floor(currentTime / 3600)
print(hours.. "Hours")
local minutes = math.floor((currentTime - (hours * 3600)) / 60)
print(minutes.. "Minutes")
local seconds = math.floor(currentTime - (minutes * 60))
print(seconds.. "Seconds")
text = ((8 - hours + 1)..": "..(60 - minutes)..": "..(60 - seconds))
end
end
Any help would be appreciated. This local script is in starterPlayer scripts