Also to add on a bit to what I said, you made a variable for game.Workspace.Part1Button yet to don’t use it, to help out a bit
local CD1 = game.Workspace.Part1Button.CD
Should be
local CD1 = P1B.CB
So you are using your P1B variable
Also, use workspace instead of game.Workspace as they both do the same thing but workspace is shorter and references the Workspace service directly in the event you accidentally rename the service in the Explorer.
If you have anymore issues don’t be afraid to make another post!