Using
mouse.Button1Down:Connect(function()
only fires when the button is pressed, how would I make it turn into a if statement?
if mouse.Button1Down then does not work.
I believe it needs to be in a function. If you do
function onClick() if onClick then
print("Hello" else print("Not Hello")
end end
script.Parent.MouseButton1Click:Connect(onClick)
it prints 'Hello'. That means it does check if onClick has been fired but it has been wrapped in a function :/