Event = game.ReplicatedStorage:WaitForChild('GameStart') Guis = game.StarterGui:WaitForChild('Credits')and game.StarterGui:WaitForChild('Playbutton')
Event.OnServerEvent:Connect(function(Player) --Play button-- Player.PlayerGui.Playbutton.Enabled = false
--Credits-- Player.PlayerGui.Credits.Enabled = false Player.PlayerGui.CreditsOpened.Enabled = false
--Donations-- Player.PlayerGui.Donation.Enabled = false Player.PlayerGui.DonationOpened.Enabled = false
end)
**(the issue is that 'DonationOpened' and 'CreditsOpened' won't turn of when told to, the Play button, Credits button and Donation button will but these won't, sorry if it's obvious, I'm just a dumb kid lol) **

3 comments
it's not really set on the button, it turns of the parent of which does have .Enabled as a variable
Please put it in a code block to make it easier to read
You can’t access PlayerGui in a server script. You have to do it in a LocalScript.