How can I make this script check the workspace for any part named 'window' every 300 seconds and change the transparency to 0 and the cancollide to false?
I've tried this already.
while true do
wait(300)
a = game.Workspace:getChildren(game.Workspace)
if a.Name == "Window" then
a.Transparency = 0
a.Cancollide = false
end

1 comment
One important thing to note is that :GetChildren() returns only the immediate children. You can use :GetDescendants() which basically returns the children of the children just in case a window is in a model that is a child to workspace.