Alert System [TV Support]

Hello Developers! :derp:

Today I will tell you about my alarm system and give you a link to download it

You can configure permissions for alarms (which teams will be able to use this or that alarm). You will be able to display an alarm signal on TVs and with the help of notifications

To get this system you can borrow it from the library or use the uncopylocked place!

FAQ
How many TVs can I add?

You can add an unlimited number of TVs. Just duplicate the TV in the folder and make sure that they all have the same name and the names of the screen elements are not different

How do I add my alarm?
  1. You need to create a Remote Event in the ReplicatedStorage/Events/AlarmCodes folder and name it the way you want your alarm to be called
  2. Add a new prompt to Alarm/Prompts and name it as you would like
    Add a path to your Remote event and prompt in AlarmController[SERVER]. Also at the very bottom you will need to specify your remote event that you created, what is the name of the configuration in your alarm config and the rights to use this alarm.
yourRemoteEvent.OnServerEvent:Connect(function(player, yourPerms)
	activateAlarm("YourConfigName", player, yourPerms)
end)
  1. In the same script, you need to create a new alarm Config with these settings:
Example = {
	code = "Example", -- What title (code) will be on the TVs and in the notification?
	description = "Example, Example", -- What description will be on the TVs and in the notification?
	color = Color3.new(0, 0, 0), -- What screen color will the TV screens and notifications have?
	alarmTime = 30 -- How long will the alarm work?
},
  1. In the AlarmController[CLIENT] script, you will need to connect the remote event and prompt you created.
  2. Create perms, for your alarm. Specify, separated by commas and from a new line, the name of your commands that will be able to activate this alarm.
yourPerms = {
	"Example",
	"Example"
},
  1. In the same script, at the very bottom, you need to add a new trigger that will listen to your prompt. Replace “yourPrompt”, “yourPerms” and “yourRemote” with the ones you created.
yourPromt.Triggered:Connect(function()
	handlePrompt(yourPromt, yourRemote, permissions.yourPerms)
end)
How do I turn off the alarm?

The alarm is turned off automatically after as many seconds as specified in the alarm config.

How do I find out which files I need to ungroup into which folders?

You can use an uncopylocked place or when adding a model to your game there will be an instruction where it will be told what to do.

Photos


Скриншот 04-09-2023 17.31.42
Скриншот 04-09-2023 17.31.51

In any case, if you have any problems or questions that are not answered in the FAQ, describe your problem under this post and I will try to answer as soon as possible! :roblox_light:

Library: Alarm system - Roblox
Uncopylocked: Alarm System [DF] - Roblox

11 Likes

Wow! This seems great! I can’t wait for every military game in a 30 mile radius use this to advertise trainings.

2 Likes