this is due to your client script running before all proximity prompts have loaded
there are tons of ways to waiting for the game to load, one of them which may be good enough for what your trying to achieve is
game.Loaded:Once(function()
--your code here
end)