Giant refactoring of how the client and server character is handled

This commit is contained in:
2024-04-19 23:08:02 -04:00
parent dbda8f9ca6
commit 4baf7bff51
15 changed files with 271 additions and 213 deletions

View File

@@ -61,9 +61,9 @@ export type LanternsTree = {
}
export type LightSwitchProperties = {
Switch: BasePart?,
Lights: {BasePart}?,
LightSources: {PointLight | SpotLight}?,
Switch: Instance?,
Lights: {Instance}?,
LightSources: {Instance}?,
Prompt: ProximityPrompt?,
ClickSound: Sound?,
ColorActivated: Color3?,
@@ -288,10 +288,10 @@ function Tags:__Interactables()
ptr.Lights = Inst
else
ptr.Lights = {}
table.insert(ptr.Lights :: {BasePart}, Inst :: BasePart)
table.insert(ptr.Lights :: {Instance}, Inst)
end
elseif InteractType == Enums.InteractType.LightSource then
ptr.LightSources = {}
ptr.LightSources = (type(Inst) == "table" and Inst or {Inst :: Instance}) :: {Instance}
end
end
end