Hello! I am working on a game like “I’m on Observation Duty” and my scripts aren’t working in the GUI.
The “Report” Button Script: (Local)
local type1 = script.Parent.Parent.Parent:WaitForChild("Type")
local room = script.Parent.Parent.Parent:WaitForChild("Room")
local cObj = script.Parent.Types.Values:WaitForChild("CurObject")
local disappear = script.Parent.Types.Values:WaitForChild("Disappearance")
script.Parent.MouseButton1Click:connect(function()
if type1.Value ~= "" and room.Value ~= "" then
print(1)
local room2 = workspace.Rooms:WaitForChild(room.Value)
for i, v in pairs(room2.Furniture:GetChildren()) do
if v.Anomaly.Value == true then
if v.Types.Value == type1.Value then
print("Local to Server")
cObj.Value = v
disappear.Value = true
end
elseif v.Anomaly.Value == false then
print("No Anomalies Detected.")
end
end
end
end)
I also made a different script thinking that would work: (Server)
local v = script.Parent.Values:WaitForChild("CurObject").Value
script.Parent.Values.Disappearance.Changed:Connect(function(newValue)
if newValue == true then
print("Resolved!")
v.Types.Value = "None"
v.Anomaly.Value = false
v.Transparency = 1
end
end)
Everything else is working fine but these scripts won’t budge, no errors in output, here’s the layout:

Any help would be appreciated!
Please request any more pictures if needed.