Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to make something activated based on time with : in the time?

local Timer = game.Players.LocalPlayer.PlayerGui:WaitForChild("timer")
local CurrentTime = Timer:WaitForChild("timeLeft").Text
local AutoFarmEnabled = false
local WinPartPos = false


repeat wait(1)
	
until CurrentTime < (11..":"..58)
warn("Script Actiavted")

2 comments

0

Why not use == instead of < since < is comparing a string in this case.

0

Edited my answer.

1 answer

✓ Accepted answer

11..":"..58 is not a value, do just do: until CurrentTime == ("11:58")

4 comments

0

Also still gives me an error

0

01:11:44.080 - Players.decrypod.PlayerGui.LocalScript:9: Malformed number

0

Edited, buddy.

0

also it wont work :) just keeps repeating time goes to 11:58

This discussion is preserved as it was. New answers, comments, and votes are closed.