Can't tell what is wrong but it is not working so something is wrong. Please ask if needing other scripts/info.
Unlocking
local UnlockButton = game.Workspace.Button1.Click.Clicked
--local TweenService = game:GetService("TweenService")
local parts = game.Workspace.Button2
for _, part in ipairs(parts:GetChildren()) do
if part:IsA("BasePart") then
part.Transparency = 1
part.CanCollide = false
end
end
while wait(0.1) do
print(UnlockButton.Value)
if UnlockButton.Value then
print("wow i actully did something")
for _, part in ipairs(parts:GetChildren()) do
if part:IsA("BasePart") then
part.Transparency = 0
part.CanCollide = true
end
end
else
print("false sigma :nerd:")
end
end