So I'm working on a game and in it you can buy stuff from clicking on buttons. But for some reason the MouseClick event only fires when I RIGHT click it. And I am very confused. Here is the code

clicker = script.Parent:WaitForChild("ClickDetector")

clicker.MouseClick:connect(function(player)
	if player.Credits.Value > 9 and player.Weapon.Value ~= "Dusty Needle" then 
		player.Credits.Value = player.Credits.Value - 10
		player.Weapon.Value = "Dusty Needle"
		tool = game.Lighting.Items:FindFirstChild("Dusty Needle"):clone()
		tool.Parent = player:WaitForChild("Backpack")
		
		
	end
end)