Small thing

- Create demo script for showcases/videos/expos/whatever. Just loops through all the states.
This commit is contained in:
Christopher Cookman 2024-08-15 19:14:54 -06:00
parent 37e687a103
commit a0224bcae4
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42
2 changed files with 35 additions and 0 deletions

35
Demo Stuff/DemoScript.lua Normal file
View file

@ -0,0 +1,35 @@
-- Place under boot() in SecuritySystem
local demoLoop = function()
while wait() do
wait(5)
toggleChime()
wait(5)
toggleChime()
wait(5)
armStay()
wait(script.Parent.Settings.exitDelay.Value + 5)
disarm()
wait(5)
armAway()
wait(script.Parent.Settings.exitDelay.Value + 5)
disarm()
wait(5)
armInstant()
wait(script.Parent.Settings.exitDelay.Value + 5)
disarm()
wait(5)
armMax()
wait(script.Parent.Settings.exitDelay.Value + 5)
disarm()
wait(5)
armAway()
wait(script.Parent.Settings.exitDelay.Value + 5)
script.Parent.Zones["1"].Sensors.Demo.Alarm.Value = true
wait(1)
script.Parent.Zones["1"].Sensors.Demo.Alarm.Value = false
repeat wait() until armState == 3
wait(5)
disarm()
end
end
task.spawn(demoLoop)

BIN
Demo Stuff/DemoZone.rbxm Normal file

Binary file not shown.