Police Alert System

Before making a scripting support post, actually read the things you should do before you make a new post. You did not follow the requirements set, but here:

Use Remotes and FireAllClients?
then enable the notifications on the client side or create them?

Server Trigger

local prompt = script.Parent
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local event = ReplicatedStorage.RemoteEvent


prompt.Triggered:Connect(function(player)
	local data = {}
	event:FireAllClients(data)
end)

Client Trigger

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local event = ReplicatedStorage:WaitForChild("RemoteEvent")

event.OnClientEvent:Connect(function(data)
	print(data)
end)

Then you can use this on ui modifications.

1 Like