This is weird... No errors in the dev console.. and nothing in the script...... and this is in a local script, if that helps anything
Any help? My code:
local frame = script.Parent.Parent.key_frame
local button = script.Parent
local textOpen = "SHOW ANIMATION KEYS"
local textClose = "HIDE ANIMATION KEYS"
if frame.Parent.key_show_hide_btn.Text == textOpen then
button.MouseButton1Down:connect(function()
frame.Visible = true
button.Text = textClose
end)
elseif
frame.Parent.key_show_hide_btn.Text == textClose then
button.MouseButton1Down:connect(function()
frame.Visible = false
button.Text = textOpen
end)
end

1 comment
Does everything exists?