So i'm making this skript, and i want to make one of those teleport pads like hypixel. But i can't figure out the correct way to set the teleport interpolation / delay
function startTeleport(p: player, n: number):
if {_n} = 1:
set {padcn::%{_p}'s uuid%} to 2 seconds from now
spawn item display at location of {_p}
set {_display} to last spawned item display
set display item of {_display} to stone
set display interpolation start of {_display} to 1
set display interpolation delay of {_display} to 200
make {_p} ride {_display}
teleport {_display} to location at ({_p}'s z-coordinate, {_p}'s y-coordinate + 50, {_p}'s x-coordinate) in {_p}'s world
wait 2 seconds
delete {padcn::%{_p}'s uuid%}
, then make the player ride the snowball