More type fixes and need to fix CoreGuis PlayerAdded

This commit is contained in:
2024-03-09 14:06:05 -05:00
parent 04fc707bec
commit 3e28667b13
4 changed files with 21 additions and 18 deletions

View File

@@ -2,19 +2,22 @@
--!native
--!strict
local CoreGuis = {
AllowReset = false,
AllowEmotes = true,
AllowBackpack = false,
AllowPlayerList = false
}
CoreGuis.__index = CoreGuis
local SG = game:GetService("StarterGui")
local Players = game:GetService("Players")
type CustomCoreGuiEnums = {Enum.CoreGuiType}
type Impl_Constructor = {
}
local CoreGuis = {}
CoreGuis.AllowReset = false
CoreGuis.AllowEmotes = true
CoreGuis.AllowBackpack = false
CoreGuis.AllowPlayerList = false
local SG = game:GetService("StarterGui")
local Players = game:GetService("Players")
local function CustomCoreGuiEnums(): CustomCoreGuiEnums
local CoreElements = Enum.CoreGuiType:GetEnumItems()
table.remove(CoreElements, table.find(CoreElements, Enum.CoreGuiType.All))
@@ -53,7 +56,7 @@ function CoreGuis:Off()
--Enable multiplayer features
self:On()
local PlayerAdded --So weird...
local PlayerAdded
PlayerAdded = Players.PlayerAdded:Connect(function(_)
if #Players:GetPlayers()>1 then
self:On()