Gui.Enabled = false doesn't work as intended

I’m trying to make an area in which an edit button would pop up when the player is in the area and disappear when the player leaves. I’m able to get the GUI’s enabled property on the local script side to be turned off but despite not being enabled, the GUI somehow remains visible?

Script:

Local Script:
image

Doesn’t disappear despite GUI’s Enabled Property is turned off on client side.

I also don’t intend to use ZonePlus. Please don’t mention it as a solution

You can try setting the visible property of the ‘edit’ button to false
Like this:

Edit.OnClientEvent:Connect(function(bool)
    EditPanel.Enabled = bool
    --EditButton.Visible = bool
end)

I removed the if statement since it’s pretty unneccesary.

Thanks. No idea how that worked. Didn’t also notice the if statement.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.