Going to start of a loop

Just a an example to demonstrate what you could ish do

local active = false
local timestamp = tick()

something.MouseButton1Click:Connect(function()
	if active then
		active = false
		local reaction_time = tick() - timestamp
		-- this is how fast they clicked

	else
		-- not active / premature
	end
end)

-- other logic handling the game based on events for example
timestamp = tick()
active = true
1 Like