Small thing
- Create demo script for showcases/videos/expos/whatever. Just loops through all the states.
This commit is contained in:
parent
37e687a103
commit
a0224bcae4
35
Demo Stuff/DemoScript.lua
Normal file
35
Demo Stuff/DemoScript.lua
Normal 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
BIN
Demo Stuff/DemoZone.rbxm
Normal file
Binary file not shown.
Loading…
Reference in a new issue