I need some example code for..
Something that checks when the last time you clicked the button is.
Like, if you double click the button really fast, it calls a function.
local TimeBetween = 0.25
local LastClick = tick()
function Clicked()
local Time = tick()
if Time - LastClick <= TimeBetween then
--Do stuff
end
LastClick = Time
end