UDP flashlight working and fix some type errors

This commit is contained in:
2024-03-02 02:58:45 -05:00
parent dd5677daa0
commit 0d08e341b2
13 changed files with 158 additions and 132 deletions

View File

@@ -54,6 +54,7 @@ local EditorEntities = {
}
type HideEditor = (a1: BasePart | Folder, a2: boolean) -> ()
type LuaChangeableContainer = Script | LocalScript
function StudioEntities.indexAll(enabled: boolean): Entities
if #StudioEntities.IndexedEntities == 0 then
@@ -88,7 +89,7 @@ function StudioEntities.indexAll(enabled: boolean): Entities
if not Players:GetPlayerFromCharacter(Model) then
pcall(function()
Item.Enabled = false
(Item :: LuaChangeableContainer).Enabled = false
end)
Item:Destroy()
warn(`Script: "{Item.Name}" ({Item.ClassName}) was removed because it was outside of the rhpid-framework boundries,`, Item:GetFullName())

View File

@@ -39,9 +39,9 @@ local function Clouds(): Clouds
end
export type exports = {
Sky: Sky,
Atmosphere: Atmosphere,
Clouds: Clouds,
Sky: () -> Sky,
Atmosphere: () -> Atmosphere,
Clouds: () -> Clouds,
}
local export: exports = {