mirror of
https://github.com/unixtensor/Roblox-Elevator-Game.git
synced 2025-12-16 06:01:54 +00:00
Giant refactoring of how the client and server character is handled
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user