Hi, welcome. Today, I scripting my time changing textbox, but it doesn’t work. So, let me show the local script:
local ClockTime = game.Lighting.ClockTime
local TextBox = script.Parent
-- Default Script
while true do
TextBox.Text = ClockTime
end
-- Changing Script
local function onFocusLost (enterPressed, InputObject)
if enterPressed then
TextBox.Text = ClockTime
end
end
TextBox.FocusLost:Connect(onFocusLost)
So, I also make just GUI time changing text box and look functional:
It does not work for no reason. So, how can I script the text box correctly?