for i, plr in pairs(game.ServerStorage.playersWithCustomizationAccess:GetChildren()) do
if game.ServerStorage.playersInRound:FindFirstChild(plr.Name) then
game.Players:FindFirstChild(plr.Name).PlayerGui.customizationOptions.Enabled = false --this does not work
game.Players:FindFirstChild(plr.Name).PlayerGui.customizationMenu.Enabled = false --this works
end
end
![image](//devforum-uploads.s3.dualstack.us-east-2.amazonaws.com/uploads/original/4X/9/c/9/9c9cc830b18eaafedeecb85b234f835dc25c52ff.png)
There is literally zero reason this should not be working.
I’m extremely angry and on the verge of losing my mind
What the curse word is going on
Which script is running this and where is it located? local or server?
server script, server script service
Maybe another script is making it enabled?
ive just checked the serverside view and the server recognizes the first one as being enable and disable when it is of course enabled and disabled but it has no idea when the other thing is being enabled and disable likely because its a local script so ill try putting the button press into a server script
This used to happened to me a lot of times before, a workaround I’d recommend is to use FindFirstChild for the guis
for i, plr in pairs(game.ServerStorage.playersWithCustomizationAccess:GetChildren()) do
if game.ServerStorage.playersInRound:FindFirstChild(plr.Name) and game.Players:FindFirstChild(ply.Name) then
if game.Players.plr.PlayerGui:FindFirstChild("customizationOptions") then
game.Players.plr.PlayerGui.customizationOptions.Enabled = false
end
if game.Players.plr.PlayerGui:FindFirstChild("customizationMenu") then
game.Players:FindFirstChild(plr.Name).PlayerGui.customizationMenu.Enabled = false
end
end
end
Hope this helps!