--!nonstrict

local ContentProvider = game:GetService("ContentProvider")
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local SelfieMode = ReplicatedStorage:WaitForChild("SelfieMode")

local Emotes = require(SelfieMode.Emotes)
local assets = require(SelfieMode.assets)
local preloadAssets = require(SelfieMode.Modules.preloadAssets)
local setEnabled = require(SelfieMode.Api.setEnabled)

Emotes.preloadEmotes()
preloadAssets(assets)

task.spawn(function()
	ContentProvider:PreloadAsync(SelfieMode.Sounds:GetChildren())
end)

setEnabled(true)
