First if statement works, not the second.
local uis = game:GetService("UserInputService")
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
uis.InputBegan:Connect(function(Start,End)
if mouse.Button2Down then
print("mouse.Button2Down worked")
elseif mouse.Button2Up then
print("mouse.Button2Up worked")
end
end)
