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

Make the length of value only 1 character long?

So, i have the value of seconds at 30 seconds, when i want to get minutes i get 0.5, and how would i make it only show the first character appear?

local min = seconds.Value / 60

1 answer

✓ Accepted answer
local min = seconds.Value / 60

local intmin = string.split(min, ".")[1]
print(intmin)

EDIT: more flexibility

1 comment

0

accept the answer if it helped

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