What is the difference between MouseButton1Down and MouseButton1Click?
1 Like
MouseButton1Click is fired whenever you click which means you’ve held the mouse button down and then up to perform a click. MouseButton1Down fires if the mouse button is currently being held down.
3 Likes
So for this button script I would want to use 1Click right
local button = script.Parent.TextButton
local frame = script.Parent.Frame
local visible = false
button.MouseButton1Click:Connect(function()
if visible == false then
print(“Part 1 Completed”)
frame.Visible = true
visible = true
else
frame.Visible = false
visible = false
end
end)
Yes, that’s the right way to use MouseButton1Click it should be the same for MouseButton1Down.
1 Like