Hi all! Im trying to create a button where if you click it, Another frame becomes visible, And another becomes invisible, Sadly for some reason its not working.
Apps = script.Parent.Parent.Parent.Apps
SocialMedia = script.Parent.Parent.Parent.Parent.SocialMedia
script.Parent.MouseButton1Click:Connect(function(LeftClick)
SocialMedia.Visible = true
if SocialMedia.Visible == true then
Apps.Visible = false
end
end)
Dont judge, I had a coding break for like a year and Im basically blank.
Your paths are correct (Apps and SocialMedia index to the correct places)
The button is actually being clicked (add a print() underneath the connection
On an unrelated note i’d also recommend using Activated instead of MouseButton1Click - it does the same thing however Activated fires for all platforms
Sadly, Its when I press a button, I want to show SocialMedia. But in your code It Shows socialmedia when button isnt clicked, Hence the reason why is was bellow MouseButton1Click.
It used to say SocialMedia is not a valid member of PlayerGui “Players.westyboy08.PlayerGui” - Client - LocalScript:2, But @iFrexsim Fixed it with, WaitForChild(“SocialMedia”), But it still dosen’t Work. When I click it nothing happens