So, I've got a localscript for a GUI inside a module script.
Whenever I click the button, the code inside the local script doesn't run UNLESS I have the module script somewhere in the game.
LOCAL SCRIPT:
script.Parent.logo.Button.MouseButton1Click:connect(function()
script.Parent.main.Visible = true
end)
Hierarchy:
- Players
- TimeLordSir
- PlayerGui
- ScreenGui
- logo
- Button
- main
- LocalScript
- logo
- ScreenGui
- PlayerGui

1 comment
After end, add a )