Hello. I've been having troubles with making a projector like object, and I don't know what the issue is? Here's a snippit of code for what turns it on.
if game.Workspace.Projector.Buttons.OnButton.On.MouseClick then game.Workspace.Projector.Screen.Projector.M1Frame.M1Garand.Visible = true end
I have click detectors on the button as well.
Try this.
MouseClick is a RBLXConnection so use :Connect() to use this.
local debounce = false game.Workspace.Projector.Buttons.OnButton.On.MouseClick:Connect(function() if debounce then debounce = false else debounce = true end game.Workspace.Projector.Screen.Projector.M1Frame.M1Garand.Visible = debounce end)