Problems with mailbox system

Hello, I am creating my own mail delivery system and I have a problem. Before I get to the problem, I will present how the mail system works:

  1. I go to the “workplace” with my character
    image

  2. At this point, the game selects a mailbox to deliver the letter to and puts it in my backpack

  3. The game generates a line that leads to the mailbox selected by the game

  4. I go to the selected mailbox and deliver the letter, receiving a reward of PLN 10 (PLN - currency)

Everything works as it should, but when you play with other people, when you go to the “workplace” to get a letter, the game assigns each player a route to the mailbox. Here is my problem, I would like the task of delivering the letter to be done with one player. I have tried everything but I do not know what it could be.

Below I am posting the system, please help me make it work 100%. (I have notes in Polish in the scripts so you can translate to your language if necessary)
mail system.rbxm (10.5 KB)

Is it a server script or a local script (i cant view because im. On phone currently)

The script that gives the player a letter, finds a path, etc. is a local script in the starter character scripts, and the script with leaderstats and giving money for delivering it is a regular script in the server script service.

ok I will try my best to fix it for u

done I fixed it all I needed to do was change the local script but yeah it works now
starter character script.lua (4.5 KB)

1 Like

yoooo bro thank youuuuu, I was trying to solve the problem all day and you did it in an hour :joy:, thanks

lol sometimes you just need a little help

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.