I’ve been trying to make an ATM robbery system, and whenever an ATM is robbed, it sends a message onto a police radio system automatically alongside a 911 call in a separate tab.
The entire system works, however, if there is more than 1 person that has access to the police radio, then it will send a message every single time for every single person. For example, if there are 3 people that have access to the radio, then the system will send 3 messages.
There is a remote which fires to the server whenever the ATM is robbed, and it is intercepted in a local script with the ‘OnClientEvent.’ This then fires another remote with a message saying that the ATM was robbed into a server script, which sends it to all clients with the radio GUI.
I am sorry if it’s difficult to understand my issue, I am willing to try and describe it better.
Initial ATM Robbery Remote being fired:
RobRemote:FireServer("ATMRobbed.V173", Amount, NearestATM, Player)
ATM Robbery Remote being intercepted in a client-script radio GUI
if ReplicatedStorage:FindFirstChild("ATMRemotes") then
local EmergencyRobCallRemote = ReplicatedStorage.ATMRemotes.Remotes.RobCall
EmergencyRobCallRemote.OnClientEvent:Connect(function(Player, Action, Location, Reason, Caller)
firing another remote to all other radio clients:
RadioEvent:FireServer("NewMessage", "ATM Robbery Reported at "..Location2, Channels[Channel].Frequency, "Dispatch")
Any help would be much appreciated, and please let me know if I’m missing any detail - I’ll be willing to add it on. I’m super tired and I am certain that I have missed something judging by the fact that I am still relatively new to scripting. The ATM robbery feature is part of a purchased ATM economy system which I have modified.