For some reason MouseButton1Click isnt working in my code.Any solutions.Doesnt work in everything I code. It is a Local Script My code is below
local EnterCodeFrame = game.StarterGui.SupportACreator.EnterCodeFrame
local player = game.Players.LocalPlayer
local Button = script.Parent
Button.MouseButton1Click:Connect(function()
wait(0.1)
EnterCodeFrame.Visible = true
end)
Try MouseButton1Down and define the frame variable differently. I don’t think you can access GUIs like that using StarterGUI. So try using playergui instead. If not use remote events.