for this purpose you will want to use a timeout loop
a basic timeout loop on the clientside would be something like
PHP Code:
//#CLIENTSIDE
if (created) {
// perhaps initialize some vars here since you will need some variables for this script
}
if (playerenters || timeout) {
// code here
timeout = 0.05;
}
you will want to increase and decrease your size variable
perhaps set a variable saying whether the size is increasing or decreasing, then once it reaches a certain size, make it start decreasing
hopefully you understand what I am saying