#Is there a way to round number using Time()
15 messages · Page 1 of 1 (latest)
os.time?
Is that the same as just time() cause thats what I'm doing
local tool = script.Parent
local player = game.Players.LocalPlayer
local cdtimer = tool.Name
local UIS = game:GetService("UserInputService")
local debug = true
tool.Equipped:Connect(function()
UIS.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
if debug == true then
debug = false
while true do
wait(0.5)
time()
tool.Name = time()
debug = false
if time() > 30 then
debug = true
break
end
end
while debug == false do
wait(0.5)
print("ON CD")
end
end
end
end)
end)
This the script
well i've never heard of time before but os.time is rounded