mirror of
https://github.com/unixtensor/Roblox-Elevator-Game.git
synced 2025-12-14 14:51:55 +00:00
fix lighting objects using the incorrect function and sound objects now hide
This commit is contained in:
@@ -24,14 +24,14 @@ local function HidePart(Part: BasePart, enabled: boolean)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function HideIndicatorPart(Part: BasePart, enabled: boolean)
|
local function HideIndicatorPart(Part: BasePart, enabled: boolean)
|
||||||
--local billboard_light_indicator = Part:FindFirstChildOfClass("BillboardGui")
|
local billboard_light_indicator = Part:FindFirstChildOfClass("BillboardGui")
|
||||||
--if billboard_light_indicator then
|
if billboard_light_indicator then
|
||||||
-- if enabled then
|
if enabled then
|
||||||
-- billboard_light_indicator:Destroy()
|
billboard_light_indicator:Destroy()
|
||||||
-- end
|
end
|
||||||
--else
|
else
|
||||||
-- warn("Indicator source had no image indicator", Part:GetFullName())
|
warn("Indicator source had no image indicator", Part:GetFullName())
|
||||||
--end
|
end
|
||||||
|
|
||||||
HidePart(Part, enabled)
|
HidePart(Part, enabled)
|
||||||
end
|
end
|
||||||
@@ -57,7 +57,7 @@ local function HideLadderContact(Part: BasePart, enabled: boolean)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local EditorEntities = {
|
local EditorEntities = {
|
||||||
["LightSource"] = HideIndicatorPart,
|
["LightSource"] = HidePart,
|
||||||
["SoundSource"] = HideIndicatorPart,
|
["SoundSource"] = HideIndicatorPart,
|
||||||
["PulleyRopeContact"] = HidePart,
|
["PulleyRopeContact"] = HidePart,
|
||||||
["BarrierCollision"] = HideBarrierCollision,
|
["BarrierCollision"] = HideBarrierCollision,
|
||||||
|
|||||||
Reference in New Issue
Block a user