local ChatGui = game.Players:WaitForChild("DevSeveral").PlayerGui
local Part = script.Parent
local Blackoutthingy = game.Workspace.Black1:GetDescendants()
Part.ClickDetector.MouseClick:Connect(function(pussy2)
Part.BrickColor = BrickColor.new("Bright yellow")
Part.Anchored = true
Part.Transparency = .2
wait(2)
ChatGui:Destroy()
wait(2)
if Part.BrickColor == BrickColor.new("Bright yellow") then
print('Part is bright yellow')
wait(.01)
print('Changing...')
Part.BrickColor = BrickColor.new("Alder")
wait(2)
Part.BrickColor = BrickColor.new("White")
print('BLACKOUT INCOMING!')
wait(3)
Blackoutthingy.transparency = 0
Blackoutthingy.Cancollide = true
print('Blackout will end in 5 seconds')
wait(5)
Blackoutthingy.transparency = 0
Blackoutthingy.Cancollide = true
print('Blackout ended')
print('DEV ONLY INFO: ',Blackoutthingy)
end
end)
Errors: none
I want the parts that are the children of Black1 to cancollide be true and for transparency go to 0 at line 20, And then go back to transparency 1 and cancollide false also, why does it print this 'function: 0x0de61314625aab51 table: 0x6a71a87bcce0e3a1' at the end instead of what I want it to print?

3 comments
well if you problem is only what ever its printing then the problem is that you are trying to print out a table and not an integer, if you want the contents of the table then you should use a loop to go through the table and print each index
Show your whole script
you would use a for loop to fix both things will post an answer soon