I'm not sure how to make the move thing, but here's a skript I didn't make
command /sethome:
trigger:
if player has permission "command.home":
set {home.%player%} to location of player
message "<gray>Home set succesfully"
command /home:
trigger:
if player has permission "command.home":
if {home.%player%} is not set:
message "<light red>You have not set your home!"
stop
teleport player to {home.%player%}
message "<gray>Teleported to your home"
command /delhome:
trigger:
if player has permission "command.home":
delete {home.%player%}
message "<gray>Home removed succesfully"