Skip to main content

Script examples

Play a recording when a button is pressed

local clickDetector = script.Parent.ClickDetector
local core = require(workspace.StacyPilot.Core)

clickDetector.MouseClick:Connect(function()
core:Play("interval")
end)