I have made attempted to make a system where when a player right clicks something, it prints out a string.
If I do this following code, it doesn’t activate when right clicked, however if I replace the “MouseButton2Down” with “MouseButton1Down”, it will work when left clicking.
CODE
local plr = game.Players.LocalPlayer
local Mouse = plr:GetMouse()
Mouse.Button2Down:Connect(function()
print(“Has Right Clicked”)
end)
It may work fine however, for the future he should instead use UserInputService seeing as it’s more efficient, and has many more viable customizations.