diff --git a/Loader/Config/Settings.luau b/Loader/Config/Settings.luau index 04a748438..88b54846d 100644 --- a/Loader/Config/Settings.luau +++ b/Loader/Config/Settings.luau @@ -210,6 +210,16 @@ settings.Aliases = { [":examplealias "] = ":ff | :fling | :fire " --// Order arguments appear in alias string determines their required order in the command message when ran later }; +settings.Cameras = { +--[[ + "Camera Name" would be the name of your camera + { + Name = "Camera Name"; + Position = Vector3.new(0, 0, 0) + } +]] +} + settings.Banned = {} -- List of people banned from the game Format: {"Username"; "Username:UserId"; UserId; "Group:GroupId:GroupRank"; "Group:GroupId"; "Item:ItemID"; "GamePass:GamePassID";} settings.Muted = {} -- List of people muted (cannot send chat messages) Format: {"Username"; "Username:UserId"; UserId; "Group:GroupId:GroupRank"; "Group:GroupId"; "Item:ItemID"; "GamePass:GamePassID";} settings.Blacklist = {} -- List of people banned from running commands Format: {"Username"; "Username:UserId"; UserId; "Group:GroupId:GroupRank"; "Group:GroupId"; "Item:ItemID"; "GamePass:GamePassID";} @@ -406,6 +416,7 @@ descs.Creators = [[ Anyone to be identified as a place owner; Format: {"Username descs.Permissions = [[ Command permissions; Format: {"Command:NewLevel";} ]] descs.Aliases = [[ Command aliases; Format: {[":alias ..."] = ":command ..."} ]] +descs.Cameras = [[ Cameras; Format: {Name = "CamName", Position = Vector3.new(X, Y, Z)} ]] descs.Commands = [[ Custom commands ]] descs.Banned = [[ List of people banned from the game; Format: {"Username"; "Username:UserId"; UserId; "Group:GroupId:GroupRank"; "Group:GroupId"; "Item:ItemID";} ]] @@ -523,6 +534,7 @@ order = { " "; "Permissions"; "Aliases"; + "Cameras"; " "; "Commands"; "Banned"; diff --git a/MainModule/Server/Core/Variables.luau b/MainModule/Server/Core/Variables.luau index f7243ea00..dc5132804 100644 --- a/MainModule/Server/Core/Variables.luau +++ b/MainModule/Server/Core/Variables.luau @@ -32,6 +32,21 @@ return function(Vargs, GetEnv) Variables.ChatCreateRobloxCommands = Settings.ChatCreateRobloxCommands == nil and Variables.ChatCreateRobloxCommands or Settings.ChatCreateRobloxCommands Variables.DisableRejoinAtMaxPlayers = Settings.DisableRejoinAtMaxPlayers or Variables.DisableRejoinAtMaxPlayers + for _, v in Settings.Cameras or {} do + local cam = service.New("Part", { + Parent = workspace; + Name = `Camera: {v.Name}`; + Position = v.Position; + Anchored = true; + CanCollide = false; + Locked = true; + Size = Vector3.new(1, 1, 1); + Transparency = 1; + }) + + table.insert(Variables.Cameras, {Brick = cam, Name = v.Name}) + end + for _, v in Settings.MusicList or {} do table.insert(Variables.MusicList, v) end for _, v in Settings.InsertList or {} do table.insert(Variables.InsertList, v) end for _, v in Settings.CapeList or {} do table.insert(Variables.Capes, v) end diff --git a/MainModule/Server/Dependencies/DefaultSettings.luau b/MainModule/Server/Dependencies/DefaultSettings.luau index c19cbef1d..8bde88b27 100644 --- a/MainModule/Server/Dependencies/DefaultSettings.luau +++ b/MainModule/Server/Dependencies/DefaultSettings.luau @@ -211,6 +211,17 @@ settings.Aliases = { [":examplealias "] = ":ff | :fling | :fire " --// Order arguments appear in alias string determines their required order in the command message when ran later }; +--// Use the below table to define pre-set cameras +settings.Cameras = { +--[[ + "Camera Name" would be the name of your camera + { + Name = "Camera Name"; + Position = Vector3.new(0, 0, 0) + } +]] +} + settings.Banned = {} -- List of people banned from the game Format: {"Username"; "Username:UserId"; UserId; "Group:GroupId:GroupRank"; "Group:GroupId"; "Item:ItemID"; "GamePass:GamePassID";} settings.Muted = {} -- List of people muted (cannot send chat messages) Format: {"Username"; "Username:UserId"; UserId; "Group:GroupId:GroupRank"; "Group:GroupId"; "Item:ItemID"; "GamePass:GamePassID";} settings.Blacklist = {} -- List of people banned from running commands Format: {"Username"; "Username:UserId"; UserId; "Group:GroupId:GroupRank"; "Group:GroupId"; "Item:ItemID"; "GamePass:GamePassID";} @@ -407,6 +418,7 @@ descs.Creators = [[ Anyone to be identified as a place owner; Format: {"Username descs.Permissions = [[ Command permissions; Format: {"Command:NewLevel";} ]] descs.Aliases = [[ Command aliases; Format: {[":alias ..."] = ":command ..."} ]] +descs.Cameras = [[ Cameras; Format: {Name = "CamName", Position = Vector3.new(X, Y, Z)} ]] descs.Commands = [[ Custom commands ]] descs.Banned = [[ List of people banned from the game; Format: {"Username"; "Username:UserId"; UserId; "Group:GroupId:GroupRank"; "Group:GroupId"; "Item:ItemID";} ]] @@ -524,6 +536,7 @@ order = { " "; "Permissions"; "Aliases"; + "Cameras"; " "; "Commands"; "Banned";