How can I change properties of all childrens and why does it print something I don't want? No errors
01 | local ChatGui = game.Players:WaitForChild( "DevSeveral" ).PlayerGui |
02 | local Part = script.Parent |
03 | local Blackoutthingy = game.Workspace.Black 1 :GetDescendants() |
04 | Part.ClickDetector.MouseClick:Connect( function (pussy 2 ) |
05 | Part.BrickColor = BrickColor.new( "Bright yellow" ) |
07 | Part.Transparency = . 2 |
11 | if Part.BrickColor = = BrickColor.new( "Bright yellow" ) then |
12 | print ( 'Part is bright yellow' ) |
15 | Part.BrickColor = BrickColor.new( "Alder" ) |
17 | Part.BrickColor = BrickColor.new( "White" ) |
18 | print ( 'BLACKOUT INCOMING!' ) |
20 | Blackoutthingy.transparency = 0 |
21 | Blackoutthingy.Cancollide = true |
22 | print ( 'Blackout will end in 5 seconds' ) |
24 | Blackoutthingy.transparency = 0 |
25 | Blackoutthingy.Cancollide = true |
26 | print ( 'Blackout ended' ) |
27 | print ( 'DEV ONLY INFO: ' ,Blackoutthingy) |
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?