
Key Required

local Player = game:GetService("Players").LocalPlayer
local Rooms = workspace:WaitForChild("CurrentRooms")
--// feel free to add your own stuff to the item list just: ClassName#Name (and remember to separate vai "," to separate each item)
local ItemList = "Model#KeyObtain, Model#LiveHintBook, Model#LeverForGate, Model#ChestBox, Model#LiveBreakerPolePickup, Model#FigureRig, Model#Snare"
local CheatingLightColor = Color3.new(0, 255, 0)
local LightDirection = Enum.NormalId.Back
local RbxCreate, tinsert, tclear, tostr = Instance.new, table.insert, table.clear, tostring
local ActiveHints = {}
local function CreateHint(Parent, HintType)
if HintType == "Hint" then
local Highlight = RbxCreate("Highlight", Parent)
Highlight.FillTransparency = 1
Highlight.OutlineColor = CheatingLightColor
tinsert(ActiveHints, Highlight)
elseif HintType == "Light" then
local Bulb = RbxCreate("SpotLight", Parent)
Bulb.Color = CheatingLightColor
Bulb.Face = LightDirection
Bulb.Brightness = 5
tinsert(ActiveHints, Bulb)
end
end
Player:GetAttributeChangedSignal("CurrentRoom"):Connect(function()
local RoomID = Player:GetAttribute("CurrentRoom")
for _, hint in ActiveHints do
if hint and hint.Parent then
hint:Destroy()
end
end
tclear(ActiveHints)
local CurrentRoom = Rooms:FindFirstChild(tostr(RoomID))
if not CurrentRoom then return end
local Door = CurrentRoom:FindFirstChild("Door")
if Door then
CreateHint(Door.Door, "Light")
end
for _, Object in CurrentRoom:QueryDescendants(ItemList) do
CreateHint(Object, "Hint")
end
end)No comments yet for this script.



